smartlog-destination-devtools/.cache/d4/58fa95b7f59978430a6e33ad1c428f.json
2018-11-13 01:32:39 +01:00

1 line
36 KiB
JSON

{"id":"node_modules/chai/lib/chai/utils/expectTypes.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":"assertion-error","loc":{"line":21,"column":29},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/expectTypes.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/assertion-error/index.js"},{"name":"./flag","loc":{"line":22,"column":19},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/expectTypes.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/flag.js"},{"name":"type-detect","loc":{"line":23,"column":19},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/chai/lib/chai/utils/expectTypes.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/type-detect/type-detect.js"}],"generated":{"js":"/*!\n * Chai - expectTypes utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/**\n * ### .expectTypes(obj, types)\n *\n * Ensures that the object being tested against is of a valid type.\n *\n * utils.expectTypes(this, ['array', 'object', 'string']);\n *\n * @param {Mixed} obj constructed Assertion\n * @param {Array} type A list of allowed types for this assertion\n * @namespace Utils\n * @name expectTypes\n * @api public\n */\nvar AssertionError = require('assertion-error');\n\nvar flag = require('./flag');\n\nvar type = require('type-detect');\n\nmodule.exports = function expectTypes(obj, types) {\n var flagMsg = flag(obj, 'message');\n var ssfi = flag(obj, 'ssfi');\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n obj = flag(obj, 'object');\n types = types.map(function (t) {\n return t.toLowerCase();\n });\n types.sort(); // Transforms ['lorem', 'ipsum'] into 'a lorem, or an ipsum'\n\n var str = types.map(function (t, index) {\n var art = ~['a', 'e', 'i', 'o', 'u'].indexOf(t.charAt(0)) ? 'an' : 'a';\n var or = types.length > 1 && index === types.length - 1 ? 'or ' : '';\n return or + art + ' ' + t;\n }).join(', ');\n var objType = type(obj).toLowerCase();\n\n if (!types.some(function (expected) {\n return objType === expected;\n })) {\n throw new AssertionError(flagMsg + 'object tested must be ' + str + ', but ' + objType + ' given', undefined, ssfi);\n }\n};","map":{"mappings":[{"generated":{"line":1,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":1,"column":0}},{"generated":{"line":7,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":7,"column":0}},{"generated":{"line":20,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":21,"column":0}},{"name":"AssertionError","generated":{"line":20,"column":4},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":21,"column":4}},{"generated":{"line":20,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":21,"column":18}},{"name":"require","generated":{"line":20,"column":21},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":21,"column":21}},{"generated":{"line":20,"column":28},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":21,"column":28}},{"generated":{"line":20,"column":29},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":21,"column":29}},{"generated":{"line":20,"column":46},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":21,"column":28}},{"generated":{"line":20,"column":47},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":21,"column":0}},{"generated":{"line":22,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":22,"column":0}},{"name":"flag","generated":{"line":22,"column":4},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":22,"column":4}},{"generated":{"line":22,"column":8},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":22,"column":8}},{"name":"require","generated":{"line":22,"column":11},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":22,"column":11}},{"generated":{"line":22,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":22,"column":18}},{"generated":{"line":22,"column":19},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":22,"column":19}},{"generated":{"line":22,"column":27},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":22,"column":18}},{"generated":{"line":22,"column":28},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":22,"column":0}},{"generated":{"line":24,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":23,"column":0}},{"name":"type","generated":{"line":24,"column":4},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":23,"column":4}},{"generated":{"line":24,"column":8},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":23,"column":8}},{"name":"require","generated":{"line":24,"column":11},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":23,"column":11}},{"generated":{"line":24,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":23,"column":18}},{"generated":{"line":24,"column":19},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":23,"column":19}},{"generated":{"line":24,"column":32},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":23,"column":18}},{"generated":{"line":24,"column":33},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":23,"column":0}},{"name":"module","generated":{"line":26,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":0}},{"generated":{"line":26,"column":6},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":6}},{"name":"exports","generated":{"line":26,"column":7},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":7}},{"generated":{"line":26,"column":14},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":0}},{"generated":{"line":26,"column":17},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":17}},{"name":"expectTypes","generated":{"line":26,"column":26},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":26}},{"generated":{"line":26,"column":37},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":17}},{"name":"obj","generated":{"line":26,"column":38},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":38}},{"generated":{"line":26,"column":41},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":17}},{"name":"types","generated":{"line":26,"column":43},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":43}},{"generated":{"line":26,"column":48},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":17}},{"generated":{"line":26,"column":50},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":50}},{"generated":{"line":27,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":2}},{"name":"flagMsg","generated":{"line":27,"column":6},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":6}},{"generated":{"line":27,"column":13},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":13}},{"name":"flag","generated":{"line":27,"column":16},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":16}},{"generated":{"line":27,"column":20},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":20}},{"name":"obj","generated":{"line":27,"column":21},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":21}},{"generated":{"line":27,"column":24},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":20}},{"generated":{"line":27,"column":26},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":26}},{"generated":{"line":27,"column":35},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":20}},{"generated":{"line":27,"column":36},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":26,"column":2}},{"generated":{"line":28,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":2}},{"name":"ssfi","generated":{"line":28,"column":6},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":6}},{"generated":{"line":28,"column":10},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":10}},{"name":"flag","generated":{"line":28,"column":13},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":13}},{"generated":{"line":28,"column":17},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":17}},{"name":"obj","generated":{"line":28,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":18}},{"generated":{"line":28,"column":21},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":17}},{"generated":{"line":28,"column":23},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":23}},{"generated":{"line":28,"column":29},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":17}},{"generated":{"line":28,"column":30},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":27,"column":2}},{"name":"flagMsg","generated":{"line":29,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":2}},{"name":"flagMsg","generated":{"line":29,"column":2},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":2}},{"generated":{"line":29,"column":9},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":9}},{"name":"flagMsg","generated":{"line":29,"column":12},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":12}},{"generated":{"line":29,"column":19},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":19}},{"name":"flagMsg","generated":{"line":29,"column":22},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":22}},{"generated":{"line":29,"column":29},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":29}},{"generated":{"line":29,"column":32},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":32}},{"generated":{"line":29,"column":36},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":19}},{"generated":{"line":29,"column":39},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":39}},{"generated":{"line":29,"column":41},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":29,"column":2}},{"name":"obj","generated":{"line":30,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":2}},{"name":"obj","generated":{"line":30,"column":2},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":2}},{"generated":{"line":30,"column":5},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":5}},{"name":"flag","generated":{"line":30,"column":8},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":8}},{"generated":{"line":30,"column":12},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":12}},{"name":"obj","generated":{"line":30,"column":13},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":13}},{"generated":{"line":30,"column":16},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":12}},{"generated":{"line":30,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":18}},{"generated":{"line":30,"column":26},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":12}},{"generated":{"line":30,"column":27},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":31,"column":2}},{"name":"types","generated":{"line":31,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":2}},{"name":"types","generated":{"line":31,"column":2},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":2}},{"generated":{"line":31,"column":7},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":7}},{"name":"types","generated":{"line":31,"column":10},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":10}},{"generated":{"line":31,"column":15},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":15}},{"name":"map","generated":{"line":31,"column":16},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":16}},{"generated":{"line":31,"column":19},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":10}},{"generated":{"line":31,"column":20},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":20}},{"name":"t","generated":{"line":31,"column":30},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":30}},{"generated":{"line":31,"column":31},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":20}},{"generated":{"line":31,"column":33},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":33}},{"generated":{"line":32,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":35}},{"name":"t","generated":{"line":32,"column":11},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":42}},{"generated":{"line":32,"column":12},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":43}},{"name":"toLowerCase","generated":{"line":32,"column":13},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":44}},{"generated":{"line":32,"column":24},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":42}},{"generated":{"line":32,"column":26},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":35}},{"generated":{"line":33,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":60}},{"generated":{"line":33,"column":3},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":10}},{"generated":{"line":33,"column":4},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":32,"column":2}},{"name":"types","generated":{"line":34,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":33,"column":2}},{"name":"types","generated":{"line":34,"column":2},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":33,"column":2}},{"generated":{"line":34,"column":7},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":33,"column":7}},{"name":"sort","generated":{"line":34,"column":8},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":33,"column":8}},{"generated":{"line":34,"column":12},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":33,"column":2}},{"generated":{"line":34,"column":15},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":50}},{"generated":{"line":34,"column":16},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":35,"column":2}},{"generated":{"line":36,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":2}},{"name":"str","generated":{"line":36,"column":6},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":6}},{"generated":{"line":36,"column":9},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":9}},{"name":"types","generated":{"line":36,"column":12},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":12}},{"generated":{"line":36,"column":17},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":17}},{"name":"map","generated":{"line":36,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":18}},{"generated":{"line":36,"column":21},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":12}},{"generated":{"line":36,"column":22},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":22}},{"name":"t","generated":{"line":36,"column":32},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":32}},{"generated":{"line":36,"column":33},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":22}},{"name":"index","generated":{"line":36,"column":35},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":35}},{"generated":{"line":36,"column":40},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":22}},{"generated":{"line":36,"column":42},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":42}},{"generated":{"line":37,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":4}},{"name":"art","generated":{"line":37,"column":8},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":8}},{"generated":{"line":37,"column":11},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":11}},{"generated":{"line":37,"column":14},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":14}},{"generated":{"line":37,"column":15},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":15}},{"generated":{"line":37,"column":16},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":17}},{"generated":{"line":37,"column":19},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":15}},{"generated":{"line":37,"column":21},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":22}},{"generated":{"line":37,"column":24},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":15}},{"generated":{"line":37,"column":26},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":27}},{"generated":{"line":37,"column":29},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":15}},{"generated":{"line":37,"column":31},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":32}},{"generated":{"line":37,"column":34},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":15}},{"generated":{"line":37,"column":36},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":37}},{"generated":{"line":37,"column":39},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":15}},{"name":"indexOf","generated":{"line":37,"column":41},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":43}},{"generated":{"line":37,"column":48},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":15}},{"name":"t","generated":{"line":37,"column":49},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":51}},{"generated":{"line":37,"column":50},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":52}},{"name":"charAt","generated":{"line":37,"column":51},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":53}},{"generated":{"line":37,"column":57},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":51}},{"generated":{"line":37,"column":58},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":60}},{"generated":{"line":37,"column":59},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":51}},{"generated":{"line":37,"column":60},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":15}},{"generated":{"line":37,"column":61},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":14}},{"generated":{"line":37,"column":64},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":66}},{"generated":{"line":37,"column":68},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":14}},{"generated":{"line":37,"column":71},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":73}},{"generated":{"line":37,"column":74},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":37,"column":4}},{"generated":{"line":38,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":4}},{"name":"or","generated":{"line":38,"column":8},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":8}},{"generated":{"line":38,"column":10},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":10}},{"name":"types","generated":{"line":38,"column":13},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":13}},{"generated":{"line":38,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":18}},{"name":"length","generated":{"line":38,"column":19},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":19}},{"generated":{"line":38,"column":25},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":13}},{"generated":{"line":38,"column":28},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":28}},{"generated":{"line":38,"column":29},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":13}},{"name":"index","generated":{"line":38,"column":33},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":33}},{"generated":{"line":38,"column":38},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":38}},{"name":"types","generated":{"line":38,"column":43},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":43}},{"generated":{"line":38,"column":48},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":48}},{"name":"length","generated":{"line":38,"column":49},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":49}},{"generated":{"line":38,"column":55},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":43}},{"generated":{"line":38,"column":58},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":58}},{"generated":{"line":38,"column":59},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":13}},{"generated":{"line":38,"column":62},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":62}},{"generated":{"line":38,"column":67},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":13}},{"generated":{"line":38,"column":70},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":70}},{"generated":{"line":38,"column":72},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":38,"column":4}},{"generated":{"line":39,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":4}},{"name":"or","generated":{"line":39,"column":11},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":11}},{"generated":{"line":39,"column":13},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":13}},{"name":"art","generated":{"line":39,"column":16},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":16}},{"generated":{"line":39,"column":19},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":11}},{"generated":{"line":39,"column":22},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":22}},{"generated":{"line":39,"column":25},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":11}},{"name":"t","generated":{"line":39,"column":28},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":28}},{"generated":{"line":39,"column":29},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":39,"column":4}},{"generated":{"line":40,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":40,"column":3}},{"generated":{"line":40,"column":3},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":12}},{"name":"join","generated":{"line":40,"column":5},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":40,"column":5}},{"generated":{"line":40,"column":9},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":12}},{"generated":{"line":40,"column":10},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":40,"column":10}},{"generated":{"line":40,"column":14},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":12}},{"generated":{"line":40,"column":15},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":36,"column":2}},{"generated":{"line":41,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":2}},{"name":"objType","generated":{"line":41,"column":6},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":6}},{"generated":{"line":41,"column":13},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":13}},{"name":"type","generated":{"line":41,"column":16},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":16}},{"generated":{"line":41,"column":20},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":20}},{"name":"obj","generated":{"line":41,"column":21},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":21}},{"generated":{"line":41,"column":24},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":20}},{"generated":{"line":41,"column":25},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":16}},{"name":"toLowerCase","generated":{"line":41,"column":26},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":26}},{"generated":{"line":41,"column":37},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":16}},{"generated":{"line":41,"column":39},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":42,"column":2}},{"generated":{"line":43,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":2}},{"generated":{"line":43,"column":6},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":6}},{"name":"types","generated":{"line":43,"column":7},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":7}},{"generated":{"line":43,"column":12},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":12}},{"name":"some","generated":{"line":43,"column":13},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":13}},{"generated":{"line":43,"column":17},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":7}},{"generated":{"line":43,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":18}},{"name":"expected","generated":{"line":43,"column":28},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":28}},{"generated":{"line":43,"column":36},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":18}},{"generated":{"line":43,"column":38},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":38}},{"generated":{"line":44,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":40}},{"name":"objType","generated":{"line":44,"column":11},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":47}},{"generated":{"line":44,"column":18},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":54}},{"name":"expected","generated":{"line":44,"column":23},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":59}},{"generated":{"line":44,"column":31},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":40}},{"generated":{"line":45,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":70}},{"generated":{"line":45,"column":3},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":7}},{"generated":{"line":45,"column":4},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":2}},{"generated":{"line":45,"column":6},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":44,"column":73}},{"generated":{"line":46,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":45,"column":4}},{"generated":{"line":46,"column":10},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":45,"column":10}},{"name":"AssertionError","generated":{"line":46,"column":14},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":45,"column":14}},{"generated":{"line":46,"column":28},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":45,"column":10}},{"name":"flagMsg","generated":{"line":46,"column":29},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":6}},{"generated":{"line":46,"column":36},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":13}},{"generated":{"line":46,"column":39},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":16}},{"generated":{"line":46,"column":63},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":6}},{"name":"str","generated":{"line":46,"column":66},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":43}},{"generated":{"line":46,"column":69},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":6}},{"generated":{"line":46,"column":72},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":49}},{"generated":{"line":46,"column":80},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":6}},{"name":"objType","generated":{"line":46,"column":83},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":60}},{"generated":{"line":46,"column":90},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":6}},{"generated":{"line":46,"column":93},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":46,"column":70}},{"generated":{"line":46,"column":101},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":45,"column":10}},{"name":"undefined","generated":{"line":46,"column":103},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":47,"column":6}},{"generated":{"line":46,"column":112},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":45,"column":10}},{"name":"ssfi","generated":{"line":46,"column":114},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":48,"column":6}},{"generated":{"line":46,"column":118},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":45,"column":10}},{"generated":{"line":46,"column":119},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":45,"column":4}},{"generated":{"line":47,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":50,"column":3}},{"generated":{"line":48,"column":0},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":51,"column":1}},{"generated":{"line":48,"column":1},"source":"node_modules/chai/lib/chai/utils/expectTypes.js","original":{"line":25,"column":0}}],"sources":{"node_modules/chai/lib/chai/utils/expectTypes.js":"/*!\n * Chai - expectTypes utility\n * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/**\n * ### .expectTypes(obj, types)\n *\n * Ensures that the object being tested against is of a valid type.\n *\n * utils.expectTypes(this, ['array', 'object', 'string']);\n *\n * @param {Mixed} obj constructed Assertion\n * @param {Array} type A list of allowed types for this assertion\n * @namespace Utils\n * @name expectTypes\n * @api public\n */\n\nvar AssertionError = require('assertion-error');\nvar flag = require('./flag');\nvar type = require('type-detect');\n\nmodule.exports = function expectTypes(obj, types) {\n var flagMsg = flag(obj, 'message');\n var ssfi = flag(obj, 'ssfi');\n\n flagMsg = flagMsg ? flagMsg + ': ' : '';\n\n obj = flag(obj, 'object');\n types = types.map(function (t) { return t.toLowerCase(); });\n types.sort();\n\n // Transforms ['lorem', 'ipsum'] into 'a lorem, or an ipsum'\n var str = types.map(function (t, index) {\n var art = ~[ 'a', 'e', 'i', 'o', 'u' ].indexOf(t.charAt(0)) ? 'an' : 'a';\n var or = types.length > 1 && index === types.length - 1 ? 'or ' : '';\n return or + art + ' ' + t;\n }).join(', ');\n\n var objType = type(obj).toLowerCase();\n\n if (!types.some(function (expected) { return objType === expected; })) {\n throw new AssertionError(\n flagMsg + 'object tested must be ' + str + ', but ' + objType + ' given',\n undefined,\n ssfi\n );\n }\n};\n"},"lineCount":null}},"hash":"3f930d728a3309691d31363362de7b4b","cacheData":{"env":{}}}