smartlog-destination-devtools/.cache/11/652b664bf80c8f7035e71d7737bdf3.json

1 line
27 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"node_modules/chai/lib/chai/utils/objDisplay.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/objDisplay.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/inspect.js"},{"name":"../config","loc":{"line":12,"column":21},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/objDisplay.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/config.js"}],"generated":{"js":"/*!\n * Chai - flag utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/*!\n * Module dependencies\n */\nvar inspect = require('./inspect');\n\nvar config = require('../config');\n/**\n * ### .objDisplay(object)\n *\n * Determines if an object or an array matches\n * criteria to be inspected in-line for error\n * messages or should be truncated.\n *\n * @param {Mixed} javascript object to inspect\n * @name objDisplay\n * @namespace Utils\n * @api public\n */\n\n\nmodule.exports = function objDisplay(obj) {\n var str = inspect(obj),\n type = Object.prototype.toString.call(obj);\n\n if (config.truncateThreshold && str.length >= config.truncateThreshold) {\n if (type === '[object Function]') {\n return !obj.name || obj.name === '' ? '[Function]' : '[Function: ' + obj.name + ']';\n } else if (type === '[object Array]') {\n return '[ Array(' + obj.length + ') ]';\n } else if (type === '[object Object]') {\n var keys = Object.keys(obj),\n kstr = keys.length > 2 ? keys.splice(0, 2).join(', ') + ', ...' : keys.join(', ');\n return '{ Object (' + kstr + ') }';\n } else {\n return str;\n }\n } else {\n return str;\n }\n};","map":{"mappings":[{"generated":{"line":1,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":1,"column":0}},{"generated":{"line":7,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":7,"column":0}},{"generated":{"line":10,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":11,"column":0}},{"name":"inspect","generated":{"line":10,"column":4},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":11,"column":4}},{"generated":{"line":10,"column":11},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":11,"column":11}},{"name":"require","generated":{"line":10,"column":14},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":11,"column":14}},{"generated":{"line":10,"column":21},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":11,"column":21}},{"generated":{"line":10,"column":22},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":11,"column":22}},{"generated":{"line":10,"column":33},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":11,"column":21}},{"generated":{"line":10,"column":34},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":11,"column":0}},{"generated":{"line":12,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":12,"column":0}},{"name":"config","generated":{"line":12,"column":4},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":12,"column":4}},{"generated":{"line":12,"column":10},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":12,"column":10}},{"name":"require","generated":{"line":12,"column":13},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","origina