1 line
27 KiB
JSON
1 line
27 KiB
JSON
{"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","original":{"line":12,"column":13}},{"generated":{"line":12,"column":20},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":12,"column":20}},{"generated":{"line":12,"column":21},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":12,"column":21}},{"generated":{"line":12,"column":32},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":12,"column":20}},{"generated":{"line":12,"column":33},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":12,"column":0}},{"generated":{"line":13,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":14,"column":0}},{"name":"module","generated":{"line":27,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":0}},{"generated":{"line":27,"column":6},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":6}},{"name":"exports","generated":{"line":27,"column":7},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":7}},{"generated":{"line":27,"column":14},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":0}},{"generated":{"line":27,"column":17},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":17}},{"name":"objDisplay","generated":{"line":27,"column":26},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":26}},{"generated":{"line":27,"column":36},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":17}},{"name":"obj","generated":{"line":27,"column":37},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":37}},{"generated":{"line":27,"column":40},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":17}},{"generated":{"line":27,"column":42},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":42}},{"generated":{"line":28,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":2}},{"name":"str","generated":{"line":28,"column":6},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":6}},{"generated":{"line":28,"column":9},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":9}},{"name":"inspect","generated":{"line":28,"column":12},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":12}},{"generated":{"line":28,"column":19},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":19}},{"name":"obj","generated":{"line":28,"column":20},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":20}},{"generated":{"line":28,"column":23},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":19}},{"generated":{"line":28,"column":24},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":2}},{"generated":{"line":29,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":2}},{"name":"type","generated":{"line":29,"column":6},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":6}},{"generated":{"line":29,"column":10},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":10}},{"name":"Object","generated":{"line":29,"column":13},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":13}},{"generated":{"line":29,"column":19},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":19}},{"name":"prototype","generated":{"line":29,"column":20},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":20}},{"generated":{"line":29,"column":29},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":13}},{"name":"toString","generated":{"line":29,"column":30},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":30}},{"generated":{"line":29,"column":38},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":13}},{"name":"call","generated":{"line":29,"column":39},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":39}},{"generated":{"line":29,"column":43},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":13}},{"name":"obj","generated":{"line":29,"column":44},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":44}},{"generated":{"line":29,"column":47},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":29,"column":13}},{"generated":{"line":29,"column":48},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":28,"column":2}},{"generated":{"line":31,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":2}},{"name":"config","generated":{"line":31,"column":6},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":6}},{"generated":{"line":31,"column":12},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":12}},{"name":"truncateThreshold","generated":{"line":31,"column":13},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":13}},{"generated":{"line":31,"column":30},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":6}},{"name":"str","generated":{"line":31,"column":34},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":34}},{"generated":{"line":31,"column":37},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":37}},{"name":"length","generated":{"line":31,"column":38},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":38}},{"generated":{"line":31,"column":44},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":34}},{"name":"config","generated":{"line":31,"column":48},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":48}},{"generated":{"line":31,"column":54},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":54}},{"name":"truncateThreshold","generated":{"line":31,"column":55},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":55}},{"generated":{"line":31,"column":72},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":2}},{"generated":{"line":31,"column":74},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":74}},{"generated":{"line":32,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":32,"column":4}},{"name":"type","generated":{"line":32,"column":8},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":32,"column":8}},{"generated":{"line":32,"column":12},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":32,"column":12}},{"generated":{"line":32,"column":17},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":32,"column":17}},{"generated":{"line":32,"column":36},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":32,"column":4}},{"generated":{"line":32,"column":38},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":32,"column":38}},{"generated":{"line":33,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":6}},{"generated":{"line":33,"column":13},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":13}},{"name":"obj","generated":{"line":33,"column":14},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":14}},{"generated":{"line":33,"column":17},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":17}},{"name":"name","generated":{"line":33,"column":18},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":18}},{"generated":{"line":33,"column":22},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":13}},{"name":"obj","generated":{"line":33,"column":26},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":26}},{"generated":{"line":33,"column":29},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":29}},{"name":"name","generated":{"line":33,"column":30},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":30}},{"generated":{"line":33,"column":34},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":26}},{"generated":{"line":33,"column":39},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":39}},{"generated":{"line":33,"column":41},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":13}},{"generated":{"line":33,"column":44},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":34,"column":10}},{"generated":{"line":33,"column":56},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":13}},{"generated":{"line":33,"column":59},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":35,"column":10}},{"name":"obj","generated":{"line":33,"column":75},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":35,"column":26}},{"generated":{"line":33,"column":78},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":35,"column":29}},{"name":"name","generated":{"line":33,"column":79},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":35,"column":30}},{"generated":{"line":33,"column":83},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":35,"column":10}},{"generated":{"line":33,"column":86},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":35,"column":37}},{"generated":{"line":33,"column":89},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":33,"column":6}},{"generated":{"line":34,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":36,"column":5}},{"generated":{"line":34,"column":5},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":32,"column":4}},{"generated":{"line":34,"column":11},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":36,"column":11}},{"name":"type","generated":{"line":34,"column":15},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":36,"column":15}},{"generated":{"line":34,"column":19},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":36,"column":19}},{"generated":{"line":34,"column":24},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":36,"column":24}},{"generated":{"line":34,"column":40},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":36,"column":11}},{"generated":{"line":34,"column":42},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":36,"column":42}},{"generated":{"line":35,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":37,"column":6}},{"generated":{"line":35,"column":13},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":37,"column":13}},{"name":"obj","generated":{"line":35,"column":26},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":37,"column":26}},{"generated":{"line":35,"column":29},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":37,"column":29}},{"name":"length","generated":{"line":35,"column":30},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":37,"column":30}},{"generated":{"line":35,"column":36},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":37,"column":13}},{"generated":{"line":35,"column":39},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":37,"column":39}},{"generated":{"line":35,"column":44},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":37,"column":6}},{"generated":{"line":36,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":38,"column":5}},{"generated":{"line":36,"column":5},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":36,"column":11}},{"generated":{"line":36,"column":11},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":38,"column":11}},{"name":"type","generated":{"line":36,"column":15},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":38,"column":15}},{"generated":{"line":36,"column":19},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":38,"column":19}},{"generated":{"line":36,"column":24},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":38,"column":24}},{"generated":{"line":36,"column":41},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":38,"column":11}},{"generated":{"line":36,"column":43},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":38,"column":43}},{"generated":{"line":37,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":6}},{"name":"keys","generated":{"line":37,"column":10},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":10}},{"generated":{"line":37,"column":14},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":14}},{"name":"Object","generated":{"line":37,"column":17},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":17}},{"generated":{"line":37,"column":23},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":23}},{"name":"keys","generated":{"line":37,"column":24},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":24}},{"generated":{"line":37,"column":28},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":17}},{"name":"obj","generated":{"line":37,"column":29},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":29}},{"generated":{"line":37,"column":32},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":17}},{"generated":{"line":37,"column":33},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":6}},{"generated":{"line":38,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":6}},{"name":"kstr","generated":{"line":38,"column":10},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":10}},{"generated":{"line":38,"column":14},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":14}},{"name":"keys","generated":{"line":38,"column":17},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":17}},{"generated":{"line":38,"column":21},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":21}},{"name":"length","generated":{"line":38,"column":22},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":22}},{"generated":{"line":38,"column":28},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":17}},{"generated":{"line":38,"column":31},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":31}},{"generated":{"line":38,"column":32},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":17}},{"name":"keys","generated":{"line":38,"column":35},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":12}},{"generated":{"line":38,"column":39},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":16}},{"name":"splice","generated":{"line":38,"column":40},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":17}},{"generated":{"line":38,"column":46},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":12}},{"generated":{"line":38,"column":47},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":24}},{"generated":{"line":38,"column":48},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":12}},{"generated":{"line":38,"column":50},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":27}},{"generated":{"line":38,"column":51},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":12}},{"name":"join","generated":{"line":38,"column":53},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":30}},{"generated":{"line":38,"column":57},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":12}},{"generated":{"line":38,"column":58},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":35}},{"generated":{"line":38,"column":62},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":12}},{"generated":{"line":38,"column":66},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":41,"column":43}},{"generated":{"line":38,"column":73},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":40,"column":17}},{"name":"keys","generated":{"line":38,"column":76},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":42,"column":12}},{"generated":{"line":38,"column":80},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":42,"column":16}},{"name":"join","generated":{"line":38,"column":81},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":42,"column":17}},{"generated":{"line":38,"column":85},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":42,"column":12}},{"generated":{"line":38,"column":86},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":42,"column":22}},{"generated":{"line":38,"column":90},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":42,"column":12}},{"generated":{"line":38,"column":91},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":39,"column":6}},{"generated":{"line":39,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":43,"column":6}},{"generated":{"line":39,"column":13},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":43,"column":13}},{"name":"kstr","generated":{"line":39,"column":28},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":43,"column":28}},{"generated":{"line":39,"column":32},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":43,"column":13}},{"generated":{"line":39,"column":35},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":43,"column":35}},{"generated":{"line":39,"column":40},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":43,"column":6}},{"generated":{"line":40,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":44,"column":5}},{"generated":{"line":40,"column":5},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":38,"column":11}},{"generated":{"line":40,"column":11},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":44,"column":11}},{"generated":{"line":41,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":45,"column":6}},{"name":"str","generated":{"line":41,"column":13},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":45,"column":13}},{"generated":{"line":41,"column":16},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":45,"column":6}},{"generated":{"line":42,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":46,"column":5}},{"generated":{"line":43,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":47,"column":3}},{"generated":{"line":43,"column":3},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":31,"column":2}},{"generated":{"line":43,"column":9},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":47,"column":9}},{"generated":{"line":44,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":48,"column":4}},{"name":"str","generated":{"line":44,"column":11},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":48,"column":11}},{"generated":{"line":44,"column":14},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":48,"column":4}},{"generated":{"line":45,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":49,"column":3}},{"generated":{"line":46,"column":0},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":50,"column":1}},{"generated":{"line":46,"column":1},"source":"node_modules/chai/lib/chai/utils/objDisplay.js","original":{"line":27,"column":0}}],"sources":{"node_modules/chai/lib/chai/utils/objDisplay.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 */\n\nvar inspect = require('./inspect');\nvar config = require('../config');\n\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\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 === ''\n ? '[Function]'\n : '[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\n ? keys.splice(0, 2).join(', ') + ', ...'\n : keys.join(', ');\n return '{ Object (' + kstr + ') }';\n } else {\n return str;\n }\n } else {\n return str;\n }\n};\n"},"lineCount":null}},"hash":"49160fc64d3e6aa22985a149423eea82","cacheData":{"env":{}}} |