# add dist

This commit is contained in:
Mario Romano
2016-04-21 11:56:31 +01:00
parent 5914688467
commit 07807e7bc3
13499 changed files with 1808930 additions and 5 deletions

View 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;
}
});
};

View File

@@ -0,0 +1,83 @@
{
"_args": [
[
"capture-stack-trace@^1.0.0",
"/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/create-error-class"
]
],
"_from": "capture-stack-trace@>=1.0.0 <2.0.0",
"_id": "capture-stack-trace@1.0.0",
"_inCache": true,
"_installable": true,
"_location": "/capture-stack-trace",
"_npmUser": {
"email": "floatdrop@gmail.com",
"name": "floatdrop"
},
"_npmVersion": "1.4.28",
"_phantomChildren": {},
"_requested": {
"name": "capture-stack-trace",
"raw": "capture-stack-trace@^1.0.0",
"rawSpec": "^1.0.0",
"scope": null,
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/create-error-class"
],
"_resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz",
"_shasum": "4a6fa07399c26bba47f0b2496b4d0fb408c5550d",
"_shrinkwrap": null,
"_spec": "capture-stack-trace@^1.0.0",
"_where": "/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/create-error-class",
"author": {
"email": "floatdrop@gmail.com",
"name": "Vsevolod Strukchinsky",
"url": "github.com/floatdrop"
},
"bugs": {
"url": "https://github.com/floatdrop/capture-stack-trace/issues"
},
"dependencies": {},
"description": "Error.captureStackTrace ponyfill",
"devDependencies": {
"mocha": "*"
},
"directories": {},
"dist": {
"shasum": "4a6fa07399c26bba47f0b2496b4d0fb408c5550d",
"tarball": "http://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"gitHead": "eb46ce326fa9074b6ce17a94d4b76500321a331f",
"homepage": "https://github.com/floatdrop/capture-stack-trace",
"keywords": [
"Error",
"captureStackTrace"
],
"license": "MIT",
"maintainers": [
{
"email": "floatdrop@gmail.com",
"name": "floatdrop"
}
],
"name": "capture-stack-trace",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/floatdrop/capture-stack-trace.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.0.0"
}

View File

@@ -0,0 +1,36 @@
# capture-stack-trace [![Build Status](https://travis-ci.org/floatdrop/capture-stack-trace.svg?branch=master)](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)