Comparing version 1.1.1 to 1.1.2
19
index.js
@@ -82,2 +82,21 @@ var natives = process.binding('natives') | ||
} | ||
if (id === 'internal/bootstrap/loaders') { | ||
// 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 {}; | ||
} | ||
}, | ||
NativeModule: { | ||
_source: process.binding('natives'), | ||
nonInternalExists: function(id) { | ||
return !id.startsWith('internal/'); | ||
} | ||
} | ||
}; | ||
} | ||
return req_(id, cache) | ||
@@ -84,0 +103,0 @@ } |
{ | ||
"name": "natives", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Do stuff with Node.js's native JavaScript modules", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6429
132
1