Comparing version 1.0.1 to 1.0.2
10
index.js
@@ -91,3 +91,5 @@ 'use strict'; | ||
*/ | ||
var missing = Object.keys(global).reduce(function add(missing, prop) { | ||
var missing = Object.keys(global).filter(function filter(prop) { | ||
return prop !== 'module' && prop !== 'require'; | ||
}).reduce(function add(missing, prop) { | ||
missing[prop] = global[prop]; | ||
@@ -101,8 +103,2 @@ return missing; | ||
// | ||
// These values should not be exposed as they point to our module. | ||
// | ||
delete missing.module; | ||
delete missing.exports; | ||
// | ||
// Expose the module. | ||
@@ -109,0 +105,0 @@ // |
{ | ||
"name": "load", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Load plain JavaScript files that don't use module patterns directly in node.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
7349
11
164
1