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","original":{"line":22,"column":0},"generated":{"line":22,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":23,"column":0},"generated":{"line":23,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":24,"column":0},"generated":{"line":24,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":25,"column":0},"generated":{"line":25,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":26,"column":0},"generated":{"line":26,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":27,"column":0},"generated":{"line":27,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":28,"column":0},"generated":{"line":28,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":29,"column":0},"generated":{"line":29,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":30,"column":0},"generated":{"line":30,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":31,"column":0},"generated":{"line":31,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":32,"column":0},"generated":{"line":32,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":33,"column":0},"generated":{"line":33,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":34,"column":0},"generated":{"line":34,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":35,"column":0},"generated":{"line":35,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":36,"column":0},"generated":{"line":36,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":37,"column":0},"generated":{"line":37,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":38,"column":0},"generated":{"line":38,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":39,"column":0},"generated":{"line":39,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":40,"column":0},"generated":{"line":40,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":41,"column":0},"generated":{"line":41,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":42,"column":0},"generated":{"line":42,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":43,"column":0},"generated":{"line":43,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":44,"column":0},"generated":{"line":44,"column":0}},{"source":"node_modules/get-func-name/index.js","original":{"line":45,"column":0},"generated":{"line":45,"column":0}}],"sources":{"node_modules/get-func-name/index.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"},"lineCount":45}},"hash":"bf15bfdb170e14e1968cb062eaacb732","cacheData":{"env":{}}} |