modif comtabilite

This commit is contained in:
2019-01-16 16:23:31 +01:00
parent 6b741a9666
commit 9312edc3ae
1844 changed files with 158848 additions and 55874 deletions
+16 -10
View File
@@ -25,8 +25,9 @@ try {
}
var wrap = [
'(function (exports, require, module, __filename, __dirname) { ',
'\n});'
'(function (internalBinding) {' +
' return function (exports, require, module, __filename, __dirname) { ',
'\n };\n});'
];
@@ -84,6 +85,17 @@ function req_ (id, cache) {
}
source = wrap[0] + source + wrap[1]
var internalBinding = function(name) {
if (name === 'types') {
return process.binding('util');
} else {
try {
return process.binding(name);
} catch (e) {}
return {};
}
}
var cachingRequire = function require (id) {
if (cache[id]) {
return cache[id].exports
@@ -92,13 +104,7 @@ function req_ (id, cache) {
// Provide just enough to keep `graceful-fs@3` working and tests passing.
// For now.
return {
internalBinding: function(name) {
if (name === 'types') {
return process.binding('util');
} else {
return {};
}
},
internalBinding: internalBinding,
NativeModule: {
_source: process.binding('natives'),
nonInternalExists: function(id) {
@@ -134,7 +140,7 @@ function req_ (id, cache) {
} else {
fn = runInThisContext(source, nm.filename, true);
}
fn(nm.exports, cachingRequire, nm, nm.filename)
fn(internalBinding)(nm.exports, cachingRequire, nm, nm.filename, '<no dirname available>')
nm.loaded = true
} finally {
nm.loading = false
+14 -12
View File
@@ -1,27 +1,29 @@
{
"_from": "natives@^1.1.0",
"_id": "natives@1.1.4",
"_from": "natives@1.1.6",
"_id": "natives@1.1.6",
"_inBundle": false,
"_integrity": "sha512-Q29yeg9aFKwhLVdkTAejM/HvYG0Y1Am1+HUkFQGn5k2j8GS+v60TVmZh6nujpEAj/qql+wGUrlryO8bF+b1jEg==",
"_integrity": "sha512-6+TDFewD4yxY14ptjKaS63GVdtKiES1pTPyxn9Jb0rBqPMZ7VcCiooEhPNsr+mqHtMGxa/5c/HhcC4uPEUw/nA==",
"_location": "/natives",
"_phantomChildren": {},
"_requested": {
"type": "range",
"type": "version",
"registry": true,
"raw": "natives@^1.1.0",
"raw": "natives@1.1.6",
"name": "natives",
"escapedName": "natives",
"rawSpec": "^1.1.0",
"rawSpec": "1.1.6",
"saveSpec": null,
"fetchSpec": "^1.1.0"
"fetchSpec": "1.1.6"
},
"_requiredBy": [
"#USER",
"/",
"/vinyl-fs/graceful-fs"
],
"_resolved": "https://registry.npmjs.org/natives/-/natives-1.1.4.tgz",
"_shasum": "2f0f224fc9a7dd53407c7667c84cf8dbe773de58",
"_spec": "natives@^1.1.0",
"_where": "/mnt/data/Sites/anissabensalah.net/user/themes/anissabensalah/node_modules/vinyl-fs/node_modules/graceful-fs",
"_resolved": "https://registry.npmjs.org/natives/-/natives-1.1.6.tgz",
"_shasum": "a603b4a498ab77173612b9ea1acdec4d980f00bb",
"_spec": "natives@1.1.6",
"_where": "/home/kevin/Documents/Sites/anissabensalah.net/user/themes/anissabensalah",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
@@ -50,5 +52,5 @@
"scripts": {
"test": "tap test/*.js"
},
"version": "1.1.4"
"version": "1.1.6"
}