1 line
8.1 KiB
JSON
1 line
8.1 KiB
JSON
{"id":"node_modules/chai/lib/chai/utils/compareByInspect.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},{"name":"./inspect","loc":{"line":11,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/compareByInspect.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/inspect.js"}],"generated":{"js":"/*!\n * Chai - compareByInspect utility\n * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\nvar inspect = require('./inspect');\n/**\n * ### .compareByInspect(mixed, mixed)\n *\n * To be used as a compareFunction with Array.prototype.sort. Compares elements\n * using inspect instead of default behavior of using toString so that Symbols\n * and objects with irregular/missing toString can still be sorted without a\n * TypeError.\n *\n * @param {Mixed} first element to compare\n * @param {Mixed} second element to compare\n * @returns {Number} -1 if 'a' should come before 'b'; otherwise 1\n * @name compareByInspect\n * @namespace Utils\n * @api public\n */\n\n\nmodule.exports = function compareByInspect(a, b) {\n return inspect(a) < inspect(b) ? -1 : 1;\n};","map":{"mappings":[{"generated":{"line":1,"column":0},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":1,"column":0}},{"generated":{"line":7,"column":0},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":7,"column":0}},{"generated":{"line":10,"column":0},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":11,"column":0}},{"name":"inspect","generated":{"line":10,"column":4},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":11,"column":4}},{"generated":{"line":10,"column":11},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":11,"column":11}},{"name":"require","generated":{"line":10,"column":14},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":11,"column":14}},{"generated":{"line":10,"column":21},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":11,"column":21}},{"generated":{"line":10,"column":22},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":11,"column":22}},{"generated":{"line":10,"column":33},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":11,"column":21}},{"generated":{"line":10,"column":34},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":11,"column":0}},{"generated":{"line":11,"column":0},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":13,"column":0}},{"name":"module","generated":{"line":28,"column":0},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":0}},{"generated":{"line":28,"column":6},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":6}},{"name":"exports","generated":{"line":28,"column":7},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":7}},{"generated":{"line":28,"column":14},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":0}},{"generated":{"line":28,"column":17},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":17}},{"name":"compareByInspect","generated":{"line":28,"column":26},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":26}},{"generated":{"line":28,"column":42},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":17}},{"name":"a","generated":{"line":28,"column":43},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":43}},{"generated":{"line":28,"column":44},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":17}},{"name":"b","generated":{"line":28,"column":46},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":46}},{"generated":{"line":28,"column":47},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":17}},{"generated":{"line":28,"column":49},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":49}},{"generated":{"line":29,"column":0},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":2}},{"name":"inspect","generated":{"line":29,"column":9},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":9}},{"generated":{"line":29,"column":16},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":16}},{"name":"a","generated":{"line":29,"column":17},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":17}},{"generated":{"line":29,"column":18},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":16}},{"generated":{"line":29,"column":19},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":9}},{"name":"inspect","generated":{"line":29,"column":22},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":22}},{"generated":{"line":29,"column":29},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":29}},{"name":"b","generated":{"line":29,"column":30},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":30}},{"generated":{"line":29,"column":31},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":29}},{"generated":{"line":29,"column":32},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":9}},{"generated":{"line":29,"column":35},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":35}},{"generated":{"line":29,"column":36},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":36}},{"generated":{"line":29,"column":37},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":9}},{"generated":{"line":29,"column":40},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":40}},{"generated":{"line":29,"column":41},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":30,"column":2}},{"generated":{"line":30,"column":0},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":31,"column":1}},{"generated":{"line":30,"column":1},"source":"node_modules/chai/lib/chai/utils/compareByInspect.js","original":{"line":29,"column":0}}],"sources":{"node_modules/chai/lib/chai/utils/compareByInspect.js":"/*!\n * Chai - compareByInspect utility\n * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\n\nvar inspect = require('./inspect');\n\n/**\n * ### .compareByInspect(mixed, mixed)\n *\n * To be used as a compareFunction with Array.prototype.sort. Compares elements\n * using inspect instead of default behavior of using toString so that Symbols\n * and objects with irregular/missing toString can still be sorted without a\n * TypeError.\n *\n * @param {Mixed} first element to compare\n * @param {Mixed} second element to compare\n * @returns {Number} -1 if 'a' should come before 'b'; otherwise 1\n * @name compareByInspect\n * @namespace Utils\n * @api public\n */\n\nmodule.exports = function compareByInspect(a, b) {\n return inspect(a) < inspect(b) ? -1 : 1;\n};\n"},"lineCount":null}},"hash":"2d6715edf91a1a499ab49e459f43dbe2","cacheData":{"env":{}}} |