smartlog-destination-devtools/.cache/b7/ead18d4d0f64712bb39528b0ec5a0b.json

1 line
19 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"node_modules/assertion-error/index.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/package.json","includedInParent":true,"mtime":1542067438335},{"name":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/assertion-error/package.json","includedInParent":true,"mtime":1542058764033}],"generated":{"js":"/*!\n * assertion-error\n * Copyright(c) 2013 Jake Luer <jake@qualiancy.com>\n * MIT Licensed\n */\n\n/*!\n * Return a function that will copy properties from\n * one object to another excluding any originally\n * listed. Returned function will create a new `{}`.\n *\n * @param {String} excluded properties ...\n * @return {Function}\n */\n\nfunction exclude () {\n var excludes = [].slice.call(arguments);\n\n function excludeProps (res, obj) {\n Object.keys(obj).forEach(function (key) {\n if (!~excludes.indexOf(key)) res[key] = obj[key];\n });\n }\n\n return function extendExclude () {\n var args = [].slice.call(arguments)\n , i = 0\n , res = {};\n\n for (; i < args.length; i++) {\n excludeProps(res, args[i]);\n }\n\n return res;\n };\n};\n\n/*!\n * Primary Exports\n */\n\nmodule.exports = AssertionError;\n\n/**\n * ### AssertionError\n *\n * An extension of the JavaScript `Error` constructor for\n * assertion and validation scenarios.\n *\n * @param {String} message\n * @param {Object} properties to include (optional)\n * @param {callee} start stack function (optional)\n */\n\nfunction AssertionError (message, _props, ssf) {\n var extend = exclude('name', 'message', 'stack', 'constructor', 'toJSON')\n , props = extend(_props || {});\n\n // default values\n this.message = message || 'Unspecified AssertionError';\n this.showDiff = false;\n\n // copy from properties\n for (var key in props) {\n this[key] = props[key];\n }\n\n // capture stack trace\n ssf = ssf || AssertionError;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, ssf);\n } else {\n try {\n throw new Error();\n } catch(e) {\n this.stack = e.stack;\n }\n }\n}\n\n/*!\n * Inherit from Error.prototype\n */\n\nAssertionError.prototype = Object.create(Error.prototype);\n\n/*!\n * Statically set name\n */\n\nAssertionError.prototype.name = 'AssertionError';\n\n/*!\n * Ensure correct constructor\n */\n\nAssertionError.prototype.constructor = AssertionError;\n\n/**\n * Allow errors to be converted to JSON for static transfer.\n *\n * @param {Boolean} include stack (default: `true`)\n * @return {Object} object that can be `JSON.stringify`\n */\n\nAssertionError.prototype.toJSON = function (stack) {\n var extend = exclude('constructor', 'toJSON', 'stack')\n , props = extend({ name: this.name }, this);\n\n // include stack if exists and not turned off\n if (false !== stack && this.stack) {\n props.stack = this.stack;\n }\n\n return props;\n};\n","map":{"mappings":[{"source":"node_modules/assertion-error/index.js","original":{"line":1,"column":0},"generated":{"line":1,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":2,"column":0},"generated":{"line":2,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":3,"column":0},"generated":{"line":3,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":4,"column":0},"generated":{"line":4,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":5,"column":0},"generated":{"line":5,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":6,"column":0},"generated":{"line":6,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":7,"column":0},"generated":{"line":7,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":8,"column":0},"generated":{"line":8,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":9,"column":0},"generated":{"line":9,"column":0}},{"source":"node_modules/assertion-error/index.js","original":{"line":10,"column"