smartlog-destination-devtools/.cache/27/1d0386fd673b2b382055fbbcfbe59e.json

1 line
131 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"node_modules/type-detect/type-detect.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/type-detect/package.json","includedInParent":true,"mtime":1542058764034}],"generated":{"js":"var define;\nvar global = arguments[3];\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function (obj) { return typeof obj; }; } else { _typeof = function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.typeDetect = factory();\n})(this, function () {\n 'use strict';\n /* !\n * type-detect\n * Copyright(c) 2013 jake luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n var promiseExists = typeof Promise === 'function';\n /* eslint-disable no-undef */\n\n var globalObject = (typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) === 'object' ? self : global; // eslint-disable-line id-blacklist\n\n var symbolExists = typeof Symbol !== 'undefined';\n var mapExists = typeof Map !== 'undefined';\n var setExists = typeof Set !== 'undefined';\n var weakMapExists = typeof WeakMap !== 'undefined';\n var weakSetExists = typeof WeakSet !== 'undefined';\n var dataViewExists = typeof DataView !== 'undefined';\n var symbolIteratorExists = symbolExists && typeof Symbol.iterator !== 'undefined';\n var symbolToStringTagExists = symbolExists && typeof Symbol.toStringTag !== 'undefined';\n var setEntriesExists = setExists && typeof Set.prototype.entries === 'function';\n var mapEntriesExists = mapExists && typeof Map.prototype.entries === 'function';\n var setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().entries());\n var mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());\n var arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';\n var arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());\n var stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';\n var stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());\n var toStringLeftSliceLength = 8;\n var toStringRightSliceLength = -1;\n /**\n * ### typeOf (obj)\n *\n * Uses `Object.prototype.toString` to determine the type of an object,\n * normalising behaviour across engine versions & well optimised.\n *\n * @param {Mixed} object\n * @return {String} object type\n * @api public\n */\n\n function typeDetect(obj) {\n /* ! Speed optimisation\n * Pre:\n * string literal x 3,039,035 ops/sec ±1.62% (78 runs sampled)\n * boolean literal x 1,424,138 ops/sec ±4.54% (75 runs sampled)\n * number literal x 1,653,153 ops/sec ±1.91% (82 runs sampled)\n * undefined x 9,978,660 ops/sec ±1.92% (75 runs sampled)\n * function x 2,556,769 ops/sec ±1.73% (77 runs sampled)\n * Post:\n * string literal x 38,564,796 ops/sec ±1.15% (79 runs sampled)\n * boolean literal x 31,148,940 ops/sec ±1.10% (79 runs sampled)\n * number literal x 32,679,330 ops/sec ±1.90% (78 runs sampled)\n * undefined x 32,363,368 ops/sec ±1.07% (82 runs sampled)\n * function x 31,296,870 ops/sec ±0.96% (83 runs sampled)\n */\n var typeofObj = _typeof(obj);\n\n if (typeofObj !== 'object') {\n return typeofObj;\n }\n /* ! Speed optimisation\n * Pre:\n * null