smartlog-destination-devtools/.cache/5f/ee8467a01e9418bf9945fe543a8a61.json
2018-11-13 01:32:39 +01:00

1 line
19 KiB
JSON

{"id":"node_modules/chai/lib/chai/utils/addLengthGuard.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":"var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length');\n/*!\n * Chai - addLengthGuard utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/**\n * ### .addLengthGuard(fn, assertionName, isChainable)\n *\n * Define `length` as a getter on the given uninvoked method assertion. The\n * getter acts as a guard against chaining `length` directly off of an uninvoked\n * method assertion, which is a problem because it references `function`'s\n * built-in `length` property instead of Chai's `length` assertion. When the\n * getter catches the user making this mistake, it throws an error with a\n * helpful message.\n *\n * There are two ways in which this mistake can be made. The first way is by\n * chaining the `length` assertion directly off of an uninvoked chainable\n * method. In this case, Chai suggests that the user use `lengthOf` instead. The\n * second way is by chaining the `length` assertion directly off of an uninvoked\n * non-chainable method. Non-chainable methods must be invoked prior to\n * chaining. In this case, Chai suggests that the user consult the docs for the\n * given assertion.\n *\n * If the `length` property of functions is unconfigurable, then return `fn`\n * without modification.\n *\n * Note that in ES6, the function's `length` property is configurable, so once\n * support for legacy environments is dropped, Chai's `length` property can\n * replace the built-in function's `length` property, and this length guard will\n * no longer be necessary. In the mean time, maintaining consistency across all\n * environments is the priority.\n *\n * @param {Function} fn\n * @param {String} assertionName\n * @param {Boolean} isChainable\n * @namespace Utils\n * @name addLengthGuard\n */\n\nmodule.exports = function addLengthGuard(fn, assertionName, isChainable) {\n if (!fnLengthDesc.configurable) return fn;\n Object.defineProperty(fn, 'length', {\n get: function () {\n if (isChainable) {\n throw Error('Invalid Chai property: ' + assertionName + '.length. Due' + ' to a compatibility issue, \"length\" cannot directly follow \"' + assertionName + '\". Use \"' + assertionName + '.lengthOf\" instead.');\n }\n\n throw Error('Invalid Chai property: ' + assertionName + '.length. See' + ' docs for proper usage of \"' + assertionName + '\".');\n }\n });\n return fn;\n};","map":{"mappings":[{"generated":{"line":1,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":0}},{"name":"fnLengthDesc","generated":{"line":1,"column":4},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":4}},{"generated":{"line":1,"column":16},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":16}},{"name":"Object","generated":{"line":1,"column":19},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":19}},{"generated":{"line":1,"column":25},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":25}},{"name":"getOwnPropertyDescriptor","generated":{"line":1,"column":26},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":26}},{"generated":{"line":1,"column":50},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":19}},{"generated":{"line":1,"column":51},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":51}},{"generated":{"line":1,"column":63},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":63}},{"generated":{"line":1,"column":64},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":65}},{"generated":{"line":1,"column":65},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":19}},{"generated":{"line":1,"column":67},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":67}},{"generated":{"line":1,"column":75},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":19}},{"generated":{"line":1,"column":76},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":1,"column":0}},{"generated":{"line":2,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":3,"column":0}},{"generated":{"line":8,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":9,"column":0}},{"name":"module","generated":{"line":42,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":0}},{"generated":{"line":42,"column":6},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":6}},{"name":"exports","generated":{"line":42,"column":7},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":7}},{"generated":{"line":42,"column":14},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":0}},{"generated":{"line":42,"column":17},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":17}},{"name":"addLengthGuard","generated":{"line":42,"column":26},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":26}},{"generated":{"line":42,"column":40},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":17}},{"name":"fn","generated":{"line":42,"column":41},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":42}},{"generated":{"line":42,"column":43},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":17}},{"name":"assertionName","generated":{"line":42,"column":45},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":46}},{"generated":{"line":42,"column":58},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":17}},{"name":"isChainable","generated":{"line":42,"column":60},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":61}},{"generated":{"line":42,"column":71},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":17}},{"generated":{"line":42,"column":73},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":74}},{"generated":{"line":43,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":2}},{"generated":{"line":43,"column":6},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":6}},{"name":"fnLengthDesc","generated":{"line":43,"column":7},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":7}},{"generated":{"line":43,"column":19},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":19}},{"name":"configurable","generated":{"line":43,"column":20},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":20}},{"generated":{"line":43,"column":32},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":2}},{"generated":{"line":43,"column":34},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":34}},{"name":"fn","generated":{"line":43,"column":41},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":41}},{"generated":{"line":43,"column":43},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":44,"column":34}},{"name":"Object","generated":{"line":44,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":2}},{"name":"Object","generated":{"line":44,"column":2},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":2}},{"generated":{"line":44,"column":8},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":8}},{"name":"defineProperty","generated":{"line":44,"column":9},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":9}},{"generated":{"line":44,"column":23},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":2}},{"name":"fn","generated":{"line":44,"column":24},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":24}},{"generated":{"line":44,"column":26},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":2}},{"generated":{"line":44,"column":28},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":28}},{"generated":{"line":44,"column":36},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":2}},{"generated":{"line":44,"column":38},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":38}},{"name":"get","generated":{"line":45,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":47,"column":4}},{"name":"get","generated":{"line":45,"column":4},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":47,"column":4}},{"generated":{"line":45,"column":7},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":47,"column":7}},{"generated":{"line":45,"column":9},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":47,"column":9}},{"generated":{"line":45,"column":21},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":47,"column":21}},{"generated":{"line":46,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":48,"column":6}},{"name":"isChainable","generated":{"line":46,"column":10},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":48,"column":10}},{"generated":{"line":46,"column":21},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":48,"column":6}},{"generated":{"line":46,"column":23},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":48,"column":23}},{"generated":{"line":47,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":8}},{"name":"Error","generated":{"line":47,"column":14},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":14}},{"generated":{"line":47,"column":19},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":19}},{"generated":{"line":47,"column":20},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":20}},{"name":"assertionName","generated":{"line":47,"column":48},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":48}},{"generated":{"line":47,"column":61},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":20}},{"generated":{"line":47,"column":64},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":64}},{"generated":{"line":47,"column":78},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":20}},{"generated":{"line":47,"column":81},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":50,"column":10}},{"generated":{"line":47,"column":143},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":20}},{"name":"assertionName","generated":{"line":47,"column":146},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":51,"column":10}},{"generated":{"line":47,"column":159},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":20}},{"generated":{"line":47,"column":162},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":51,"column":26}},{"generated":{"line":47,"column":172},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":20}},{"name":"assertionName","generated":{"line":47,"column":175},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":51,"column":39}},{"generated":{"line":47,"column":188},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":20}},{"generated":{"line":47,"column":191},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":51,"column":55}},{"generated":{"line":47,"column":212},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":19}},{"generated":{"line":47,"column":213},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":49,"column":8}},{"generated":{"line":48,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":52,"column":7}},{"generated":{"line":50,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":6}},{"name":"Error","generated":{"line":50,"column":12},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":12}},{"generated":{"line":50,"column":17},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":17}},{"generated":{"line":50,"column":18},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":18}},{"name":"assertionName","generated":{"line":50,"column":46},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":46}},{"generated":{"line":50,"column":59},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":18}},{"generated":{"line":50,"column":62},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":62}},{"generated":{"line":50,"column":76},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":18}},{"generated":{"line":50,"column":79},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":55,"column":8}},{"generated":{"line":50,"column":108},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":18}},{"name":"assertionName","generated":{"line":50,"column":111},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":55,"column":40}},{"generated":{"line":50,"column":124},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":18}},{"generated":{"line":50,"column":127},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":55,"column":56}},{"generated":{"line":50,"column":131},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":17}},{"generated":{"line":50,"column":132},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":54,"column":6}},{"generated":{"line":51,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":56,"column":5}},{"generated":{"line":52,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":38}},{"generated":{"line":52,"column":3},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":46,"column":2}},{"generated":{"line":53,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":59,"column":2}},{"name":"fn","generated":{"line":53,"column":9},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":59,"column":9}},{"generated":{"line":53,"column":11},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":59,"column":2}},{"generated":{"line":54,"column":0},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":60,"column":1}},{"generated":{"line":54,"column":1},"source":"node_modules/chai/lib/chai/utils/addLengthGuard.js","original":{"line":43,"column":0}}],"sources":{"node_modules/chai/lib/chai/utils/addLengthGuard.js":"var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length');\n\n/*!\n * Chai - addLengthGuard utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/**\n * ### .addLengthGuard(fn, assertionName, isChainable)\n *\n * Define `length` as a getter on the given uninvoked method assertion. The\n * getter acts as a guard against chaining `length` directly off of an uninvoked\n * method assertion, which is a problem because it references `function`'s\n * built-in `length` property instead of Chai's `length` assertion. When the\n * getter catches the user making this mistake, it throws an error with a\n * helpful message.\n *\n * There are two ways in which this mistake can be made. The first way is by\n * chaining the `length` assertion directly off of an uninvoked chainable\n * method. In this case, Chai suggests that the user use `lengthOf` instead. The\n * second way is by chaining the `length` assertion directly off of an uninvoked\n * non-chainable method. Non-chainable methods must be invoked prior to\n * chaining. In this case, Chai suggests that the user consult the docs for the\n * given assertion.\n *\n * If the `length` property of functions is unconfigurable, then return `fn`\n * without modification.\n *\n * Note that in ES6, the function's `length` property is configurable, so once\n * support for legacy environments is dropped, Chai's `length` property can\n * replace the built-in function's `length` property, and this length guard will\n * no longer be necessary. In the mean time, maintaining consistency across all\n * environments is the priority.\n *\n * @param {Function} fn\n * @param {String} assertionName\n * @param {Boolean} isChainable\n * @namespace Utils\n * @name addLengthGuard\n */\n\nmodule.exports = function addLengthGuard (fn, assertionName, isChainable) {\n if (!fnLengthDesc.configurable) return fn;\n\n Object.defineProperty(fn, 'length', {\n get: function () {\n if (isChainable) {\n throw Error('Invalid Chai property: ' + assertionName + '.length. Due' +\n ' to a compatibility issue, \"length\" cannot directly follow \"' +\n assertionName + '\". Use \"' + assertionName + '.lengthOf\" instead.');\n }\n\n throw Error('Invalid Chai property: ' + assertionName + '.length. See' +\n ' docs for proper usage of \"' + assertionName + '\".');\n }\n });\n\n return fn;\n};\n"},"lineCount":null}},"hash":"8087e787e017ec23a6e870af9d149eaf","cacheData":{"env":{}}}