mirror of
https://github.com/bvanroll/rpiRadio.git
synced 2025-08-30 20:42:44 +00:00
Initial Commit
This commit is contained in:
18
ProjectNow/NodeServer/node_modules/capture-stack-trace/index.js
generated
vendored
Normal file
18
ProjectNow/NodeServer/node_modules/capture-stack-trace/index.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = Error.captureStackTrace || function (error) {
|
||||
var container = new Error();
|
||||
|
||||
Object.defineProperty(error, 'stack', {
|
||||
configurable: true,
|
||||
get: function getStack() {
|
||||
var stack = container.stack;
|
||||
|
||||
Object.defineProperty(this, 'stack', {
|
||||
value: stack
|
||||
});
|
||||
|
||||
return stack;
|
||||
}
|
||||
});
|
||||
};
|
61
ProjectNow/NodeServer/node_modules/capture-stack-trace/package.json
generated
vendored
Normal file
61
ProjectNow/NodeServer/node_modules/capture-stack-trace/package.json
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"_from": "capture-stack-trace@^1.0.0",
|
||||
"_id": "capture-stack-trace@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=",
|
||||
"_location": "/capture-stack-trace",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "capture-stack-trace@^1.0.0",
|
||||
"name": "capture-stack-trace",
|
||||
"escapedName": "capture-stack-trace",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/create-error-class"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz",
|
||||
"_shasum": "4a6fa07399c26bba47f0b2496b4d0fb408c5550d",
|
||||
"_spec": "capture-stack-trace@^1.0.0",
|
||||
"_where": "/home/beppe/Documents/Python/proj/1718PROJrpiRadio/NodeServer/node_modules/create-error-class",
|
||||
"author": {
|
||||
"name": "Vsevolod Strukchinsky",
|
||||
"email": "floatdrop@gmail.com",
|
||||
"url": "github.com/floatdrop"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/floatdrop/capture-stack-trace/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Error.captureStackTrace ponyfill",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/floatdrop/capture-stack-trace#readme",
|
||||
"keywords": [
|
||||
"Error",
|
||||
"captureStackTrace"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "capture-stack-trace",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/floatdrop/capture-stack-trace.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
36
ProjectNow/NodeServer/node_modules/capture-stack-trace/readme.md
generated
vendored
Normal file
36
ProjectNow/NodeServer/node_modules/capture-stack-trace/readme.md
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# capture-stack-trace [](https://travis-ci.org/floatdrop/capture-stack-trace)
|
||||
|
||||
> Ponyfill for Error.captureStackTrace
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save capture-stack-trace
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var captureStackTrace = require('capture-stack-trace');
|
||||
|
||||
captureStackTrace({});
|
||||
// => {stack: ...}
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### captureStackTrace(error)
|
||||
|
||||
#### error
|
||||
|
||||
*Required*
|
||||
Type: `Object`
|
||||
|
||||
Target Object, that will recieve stack property.
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)
|
Reference in New Issue
Block a user