aboutsummaryrefslogtreecommitdiffhomepage
path: root/node_modules/callsite
diff options
context:
space:
mode:
authorYaroslav De La Peña Smirnov <yaros.rus_89@live.com.mx>2017-11-29 11:44:34 +0300
committerYaroslav De La Peña Smirnov <yaros.rus_89@live.com.mx>2017-11-29 11:44:34 +0300
commit67fdec20726e48ba3a934cb25bb30d47ec4a4f29 (patch)
tree37fd9f4f0b0c20103e1646fc83021e4765de3680 /node_modules/callsite
downloadspanish-checkers-67fdec20726e48ba3a934cb25bb30d47ec4a4f29.tar.gz
spanish-checkers-67fdec20726e48ba3a934cb25bb30d47ec4a4f29.zip
Initial commit, version 0.5.3
Diffstat (limited to 'node_modules/callsite')
-rw-r--r--node_modules/callsite/.npmignore4
-rw-r--r--node_modules/callsite/History.md10
-rw-r--r--node_modules/callsite/Makefile6
-rw-r--r--node_modules/callsite/Readme.md44
-rw-r--r--node_modules/callsite/index.js10
-rw-r--r--node_modules/callsite/package.json77
6 files changed, 151 insertions, 0 deletions
diff --git a/node_modules/callsite/.npmignore b/node_modules/callsite/.npmignore
new file mode 100644
index 0000000..f1250e5
--- /dev/null
+++ b/node_modules/callsite/.npmignore
@@ -0,0 +1,4 @@
+support
+test
+examples
+*.sock
diff --git a/node_modules/callsite/History.md b/node_modules/callsite/History.md
new file mode 100644
index 0000000..4994198
--- /dev/null
+++ b/node_modules/callsite/History.md
@@ -0,0 +1,10 @@
+
+1.0.0 / 2013-01-24
+==================
+
+ * remove lame magical getters
+
+0.0.1 / 2010-01-03
+==================
+
+ * Initial release
diff --git a/node_modules/callsite/Makefile b/node_modules/callsite/Makefile
new file mode 100644
index 0000000..634e372
--- /dev/null
+++ b/node_modules/callsite/Makefile
@@ -0,0 +1,6 @@
+
+test:
+ @./node_modules/.bin/mocha \
+ --require should
+
+.PHONY: test \ No newline at end of file
diff --git a/node_modules/callsite/Readme.md b/node_modules/callsite/Readme.md
new file mode 100644
index 0000000..0dbd16a
--- /dev/null
+++ b/node_modules/callsite/Readme.md
@@ -0,0 +1,44 @@
+# callstack
+
+ Access to v8's "raw" `CallSite`s.
+
+## Installation
+
+ $ npm install callsite
+
+## Example
+
+```js
+var stack = require('callsite');
+
+foo();
+
+function foo() {
+ bar();
+}
+
+function bar() {
+ baz();
+}
+
+function baz() {
+ console.log();
+ stack().forEach(function(site){
+ console.log(' \033[36m%s\033[90m in %s:%d\033[0m'
+ , site.getFunctionName() || 'anonymous'
+ , site.getFileName()
+ , site.getLineNumber());
+ });
+ console.log();
+}
+```
+
+## Why?
+
+ Because you can do weird, stupid, clever, wacky things such as:
+
+ - [better-assert](https://github.com/visionmedia/better-assert)
+
+## License
+
+ MIT
diff --git a/node_modules/callsite/index.js b/node_modules/callsite/index.js
new file mode 100644
index 0000000..d3ee6f8
--- /dev/null
+++ b/node_modules/callsite/index.js
@@ -0,0 +1,10 @@
+
+module.exports = function(){
+ var orig = Error.prepareStackTrace;
+ Error.prepareStackTrace = function(_, stack){ return stack; };
+ var err = new Error;
+ Error.captureStackTrace(err, arguments.callee);
+ var stack = err.stack;
+ Error.prepareStackTrace = orig;
+ return stack;
+};
diff --git a/node_modules/callsite/package.json b/node_modules/callsite/package.json
new file mode 100644
index 0000000..8530bdc
--- /dev/null
+++ b/node_modules/callsite/package.json
@@ -0,0 +1,77 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "callsite@1.0.0",
+ "scope": null,
+ "escapedName": "callsite",
+ "name": "callsite",
+ "rawSpec": "1.0.0",
+ "spec": "1.0.0",
+ "type": "version"
+ },
+ "/mnt/e/Yaroslav/Documents/Webs/nodejs/checkers/node_modules/better-assert"
+ ]
+ ],
+ "_from": "callsite@1.0.0",
+ "_id": "callsite@1.0.0",
+ "_inCache": true,
+ "_location": "/callsite",
+ "_npmUser": {
+ "name": "tjholowaychuk",
+ "email": "tj@vision-media.ca"
+ },
+ "_npmVersion": "1.2.2",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "callsite@1.0.0",
+ "scope": null,
+ "escapedName": "callsite",
+ "name": "callsite",
+ "rawSpec": "1.0.0",
+ "spec": "1.0.0",
+ "type": "version"
+ },
+ "_requiredBy": [
+ "/better-assert"
+ ],
+ "_resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz",
+ "_shasum": "280398e5d664bd74038b6f0905153e6e8af1bc20",
+ "_shrinkwrap": null,
+ "_spec": "callsite@1.0.0",
+ "_where": "/mnt/e/Yaroslav/Documents/Webs/nodejs/checkers/node_modules/better-assert",
+ "author": {
+ "name": "TJ Holowaychuk",
+ "email": "tj@vision-media.ca"
+ },
+ "dependencies": {},
+ "description": "access to v8's CallSites",
+ "devDependencies": {
+ "mocha": "*",
+ "should": "*"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "280398e5d664bd74038b6f0905153e6e8af1bc20",
+ "tarball": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "keywords": [
+ "stack",
+ "trace",
+ "line"
+ ],
+ "main": "index",
+ "maintainers": [
+ {
+ "name": "tjholowaychuk",
+ "email": "tj@vision-media.ca"
+ }
+ ],
+ "name": "callsite",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "version": "1.0.0"
+}