smartlog-destination-devtools/.cache/fa/261f4dcfe3907ca489f40e446710a5.json

1 line
104 KiB
JSON
Raw Normal View History

2018-11-13 00:32:39 +00:00
{"id":"node_modules/bindings/bindings.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/bindings/package.json","includedInParent":true,"mtime":1542058764034},{"name":"fs","loc":{"line":6,"column":17},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/bindings/bindings.js","resolved":"/Users/philkunz/.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/src/builtins/_empty.js"},{"name":"path","loc":{"line":7,"column":19},"parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/bindings/bindings.js","resolved":"/Users/philkunz/.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/path-browserify/index.js"},{"name":"process","parent":"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/bindings/bindings.js","resolved":"/Users/philkunz/.nvm/versions/node/v10.13.0/lib/node_modules/parcel-bundler/node_modules/process/browser.js"}],"generated":{"js":"var process = require(\"process\");\nvar __filename = \"/Users/philkunz/gitlab/pushrocks_meta/smartlog-destination-devtools/node_modules/bindings/bindings.js\";\n/**\n * Module dependencies.\n */\nvar fs = require('fs'),\n path = require('path'),\n join = path.join,\n dirname = path.dirname,\n exists = fs.accessSync && function (path) {\n try {\n fs.accessSync(path);\n } catch (e) {\n return false;\n }\n\n return true;\n} || fs.existsSync || path.existsSync,\n defaults = {\n arrow: undefined || ' → ',\n compiled: undefined || 'compiled',\n platform: process.platform,\n arch: process.arch,\n version: process.versions.node,\n bindings: 'bindings.node',\n try: [// node-gyp's linked version in the \"build\" dir\n ['module_root', 'build', 'bindings'] // node-waf and gyp_addon (a.k.a node-gyp)\n , ['module_root', 'build', 'Debug', 'bindings'], ['module_root', 'build', 'Release', 'bindings'] // Debug files, for development (legacy behavior, remove for node v0.9)\n , ['module_root', 'out', 'Debug', 'bindings'], ['module_root', 'Debug', 'bindings'] // Release files, but manually compiled (legacy behavior, remove for node v0.9)\n , ['module_root', 'out', 'Release', 'bindings'], ['module_root', 'Release', 'bindings'] // Legacy from node-waf, node <= 0.4.x\n , ['module_root', 'build', 'default', 'bindings'] // Production \"Release\" buildtype binary (meh...)\n , ['module_root', 'compiled', 'version', 'platform', 'arch', 'bindings']]\n /**\n * The main `bindings()` function loads the compiled bindings for a given module.\n * It uses V8's Error API to determine the parent filename that this function is\n * being invoked from, which is then used to find the root directory.\n */\n\n};\n\nfunction bindings(opts) {\n // Argument surgery\n if (typeof opts == 'string') {\n opts = {\n bindings: opts\n };\n } else if (!opts) {\n opts = {};\n } // maps `defaults` onto `opts` object\n\n\n Object.keys(defaults).map(function (i) {\n if (!(i in opts)) opts[i] = defaults[i];\n }); // Get the module root\n\n if (!opts.module_root) {\n opts.module_root = exports.getRoot(exports.getFileName());\n } // Ensure the given bindings name ends with .node\n\n\n if (path.extname(opts.bindings) != '.node') {\n opts.bindings += '.node';\n }\n\n var tries = [],\n i = 0,\n l = opts.try.length,\n n,\n b,\n err;\n\n for (; i < l; i++) {\n n = join.apply(null, opts.try[i].map(function (p) {\n return opts[p] || p;\n }));\n tries.push(n);\n\n try {\n b = opts.path ? require.resolve(n) : require(n);\n\n if (!opts.path) {\n b.path = n;\n }\n\n return b;\n } catch (e) {\n if (!/not find/i.test(e.message)) {\n throw e;\n }\n }\n }\n\n err = new Error('Could not locate the bindings file. Tried:\\n' + tries.map(function (a) {\n return op