1 line
18 KiB
JSON
1 line
18 KiB
JSON
|
{"id":"node_modules/chai/lib/chai/utils/transferFlags.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/chai/package.json","includedInParent":true,"mtime":1542058764034}],"generated":{"js":"/*!\n * Chai - transferFlags utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/**\n * ### .transferFlags(assertion, object, includeAll = true)\n *\n * Transfer all the flags for `assertion` to `object`. If\n * `includeAll` is set to `false`, then the base Chai\n * assertion flags (namely `object`, `ssfi`, `lockSsfi`,\n * and `message`) will not be transferred.\n *\n *\n * var newAssertion = new Assertion();\n * utils.transferFlags(assertion, newAssertion);\n *\n * var anotherAssertion = new Assertion(myObj);\n * utils.transferFlags(assertion, anotherAssertion, false);\n *\n * @param {Assertion} assertion the assertion to transfer the flags from\n * @param {Object} object the object to transfer the flags to; usually a new assertion\n * @param {Boolean} includeAll\n * @namespace Utils\n * @name transferFlags\n * @api private\n */\nmodule.exports = function transferFlags(assertion, object, includeAll) {\n var flags = assertion.__flags || (assertion.__flags = Object.create(null));\n\n if (!object.__flags) {\n object.__flags = Object.create(null);\n }\n\n includeAll = arguments.length === 3 ? includeAll : true;\n\n for (var flag in flags) {\n if (includeAll || flag !== 'object' && flag !== 'ssfi' && flag !== 'lockSsfi' && flag != 'message') {\n object.__flags[flag] = flags[flag];\n }\n }\n};","map":{"mappings":[{"generated":{"line":1,"column":0},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":1,"column":0}},{"generated":{"line":7,"column":0},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":7,"column":0}},{"name":"module","generated":{"line":29,"column":0},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":0}},{"generated":{"line":29,"column":6},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":6}},{"name":"exports","generated":{"line":29,"column":7},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":7}},{"generated":{"line":29,"column":14},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":0}},{"generated":{"line":29,"column":17},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":17}},{"name":"transferFlags","generated":{"line":29,"column":26},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":26}},{"generated":{"line":29,"column":39},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":17}},{"name":"assertion","generated":{"line":29,"column":40},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":40}},{"generated":{"line":29,"column":49},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":17}},{"name":"object","generated":{"line":29,"column":51},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":51}},{"generated":{"line":29,"column":57},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":17}},{"name":"includeAll","generated":{"line":29,"column":59},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":59}},{"generated":{"line":29,"column":69},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":17}},{"generated":{"line":29,"column":71},"source":"node_modules/chai/lib/chai/utils/transferFlags.js","original":{"line":30,"column":71}},{"generated":{"line":30,"column":0},"source":"node_modu
|