initial commit

This commit is contained in:
2017-05-20 16:42:43 -04:00
commit e6530a1fa6
2106 changed files with 206258 additions and 0 deletions

37
node_modules/nested-error-stacks/index.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
var inherits = require('inherits');
var NestedError = function (message, nested) {
this.nested = nested;
Error.captureStackTrace(this, this.constructor);
var oldStackDescriptor = Object.getOwnPropertyDescriptor(this, 'stack');
if (typeof message !== 'undefined') {
Object.defineProperty(this, 'message', {
value: message,
writable: true,
enumerable: false,
configurable: true
});
}
Object.defineProperties(this, {
stack: {
get: function () {
var stack = oldStackDescriptor.get.call(this);
if (this.nested) {
stack += '\nCaused By: ' + this.nested.stack;
}
return stack;
}
}
});
};
inherits(NestedError, Error);
NestedError.prototype.name = 'NestedError';
module.exports = NestedError;