Comparing version 0.1.8 to 0.1.9
@@ -20,9 +20,2 @@ var Entry = require("./entry.js").Entry; | ||
// Platform-specific code should implement this method however | ||
// appropriate. Module.prototype.require(id) should resolve the given | ||
// module identifier, evaluate the module, and return its exports. | ||
Mp.require = Mp.require || function (id) { | ||
return require(this.resolve(id)); | ||
}; | ||
// Platform-specific code should find a way to call this method whenever | ||
@@ -32,3 +25,3 @@ // the module system is about to return module.exports from require. This | ||
// so we want Module.prototype.runModuleSetters to run each time. | ||
Mp.runModuleSetters = function runModuleSetters(id) { | ||
Mp.runModuleSetters = function runModuleSetters() { | ||
var entry = Entry.get(this.id); | ||
@@ -51,3 +44,5 @@ if (entry) { | ||
var countBefore = entry && entry.runCount; | ||
var exports = module.require(absoluteId); | ||
var exports = typeof module.require === "function" | ||
? module.require(absoluteId) | ||
: require(absoluteId); | ||
@@ -54,0 +49,0 @@ if (entry && entry.runCount === countBefore) { |
{ | ||
"name": "reify", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"main": "node/index.js", | ||
@@ -5,0 +5,0 @@ "browser": "lib/empty.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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
28499
728