Template Upload
This commit is contained in:
4
node_modules/get-caller-file/README.md
generated
vendored
Normal file
4
node_modules/get-caller-file/README.md
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# get-caller-file
|
||||
|
||||
[](https://travis-ci.org/ember-cli/ember-cli)
|
||||
[](https://ci.appveyor.com/project/embercli/get-caller-file/branch/master)
|
20
node_modules/get-caller-file/index.js
generated
vendored
Normal file
20
node_modules/get-caller-file/index.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
// Call this function in a another function to find out the file from
|
||||
// which that function was called from. (Inspects the v8 stack trace)
|
||||
//
|
||||
// Inspired by http://stackoverflow.com/questions/13227489
|
||||
|
||||
module.exports = function getCallerFile(_position) {
|
||||
var oldPrepareStackTrace = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = function(err, stack) { return stack; };
|
||||
var stack = new Error().stack;
|
||||
Error.prepareStackTrace = oldPrepareStackTrace;
|
||||
|
||||
var position = _position ? _position : 2;
|
||||
|
||||
// stack[0] holds this file
|
||||
// stack[1] holds where this function was called
|
||||
// stack[2] holds the file we're interested in
|
||||
return stack[position] ? stack[position].getFileName() : undefined;
|
||||
};
|
84
node_modules/get-caller-file/package.json
generated
vendored
Normal file
84
node_modules/get-caller-file/package.json
generated
vendored
Normal file
@ -0,0 +1,84 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"get-caller-file@^1.0.1",
|
||||
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\yargs"
|
||||
]
|
||||
],
|
||||
"_from": "get-caller-file@>=1.0.1-0 <2.0.0-0",
|
||||
"_id": "get-caller-file@1.0.2",
|
||||
"_inCache": true,
|
||||
"_location": "/get-caller-file",
|
||||
"_nodeVersion": "6.3.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/get-caller-file-1.0.2.tgz_1470703947025_0.16134989843703806"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "stefan.penner@gmail.com",
|
||||
"name": "stefanpenner"
|
||||
},
|
||||
"_npmVersion": "3.10.5",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "get-caller-file",
|
||||
"raw": "get-caller-file@^1.0.1",
|
||||
"rawSpec": "^1.0.1",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.1-0 <2.0.0-0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/yargs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz",
|
||||
"_shasum": "f702e63127e7e231c160a80c1554acb70d5047e5",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "get-caller-file@^1.0.1",
|
||||
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\yargs",
|
||||
"author": {
|
||||
"name": "Stefan Penner"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/stefanpenner/get-caller-file/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "[](https://travis-ci.org/ember-cli/ember-cli) [](https://ci.appveyor.com/projec",
|
||||
"devDependencies": {
|
||||
"chai": "^3.4.1",
|
||||
"ensure-posix-path": "^1.0.1",
|
||||
"mocha": "^2.3.4"
|
||||
},
|
||||
"directories": {
|
||||
"test": "tests"
|
||||
},
|
||||
"dist": {
|
||||
"shasum": "f702e63127e7e231c160a80c1554acb70d5047e5",
|
||||
"tarball": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "7545c5b0b7f55a1bfffea4a57e3671d771372025",
|
||||
"homepage": "https://github.com/stefanpenner/get-caller-file#readme",
|
||||
"installable": true,
|
||||
"license": "ISC",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "stefanpenner",
|
||||
"email": "stefan.penner@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "get-caller-file",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/stefanpenner/get-caller-file.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha test",
|
||||
"test:debug": "mocha test"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
Reference in New Issue
Block a user