1 line
8.0 KiB
JSON
1 line
8.0 KiB
JSON
|
{"id":"node_modules/get-func-name/index.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/get-func-name/package.json","includedInParent":true,"mtime":1542058764034}],"generated":{"js":"'use strict';\n\n/* !\n * Chai - getFuncName utility\n * Copyright(c) 2012-2016 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\n\n/**\n * ### .getFuncName(constructorFn)\n *\n * Returns the name of a function.\n * When a non-function instance is passed, returns `null`.\n * This also includes a polyfill function if `aFunc.name` is not defined.\n *\n * @name getFuncName\n * @param {Function} funct\n * @namespace Utils\n * @api public\n */\n\nvar toString = Function.prototype.toString;\nvar functionNameMatch = /\\s*function(?:\\s|\\s*\\/\\*[^(?:*\\/)]+\\*\\/\\s*)*([^\\s\\(\\/]+)/;\nfunction getFuncName(aFunc) {\n if (typeof aFunc !== 'function') {\n return null;\n }\n\n var name = '';\n if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {\n // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined\n var match = toString.call(aFunc).match(functionNameMatch);\n if (match) {\n name = match[1];\n }\n } else {\n // If we've got a `name` property we just use it\n name = aFunc.name;\n }\n\n return name;\n}\n\nmodule.exports = getFuncName;\n","map":{"mappings":[{"source":"node_modules/get-func-name/index.js","original":{"line":1,"column":0},"generated":{"line":1,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":2,"column":0},"generated":{"line":2,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":3,"column":0},"generated":{"line":3,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":4,"column":0},"generated":{"line":4,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":5,"column":0},"generated":{"line":5,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":6,"column":0},"generated":{"line":6,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":7,"column":0},"generated":{"line":7,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":8,"column":0},"generated":{"line":8,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":9,"column":0},"generated":{"line":9,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":10,"column":0},"generated":{"line":10,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":11,"column":0},"generated":{"line":11,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":12,"column":0},"generated":{"line":12,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":13,"column":0},"generated":{"line":13,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":14,"column":0},"generated":{"line":14,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":15,"column":0},"generated":{"line":15,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":16,"column":0},"generated":{"line":16,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":17,"column":0},"generated":{"line":17,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":18,"column":0},"generated":{"line":18,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":19,"column":0},"generated":{"line":19,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":20,"column":0},"generated":{"line":20,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":21,"column":0},"generated":{"line":21,"column":0}},{"source":"node_modules/get-func-name/index.js","ori
|