Comparing version 0.1.3 to 0.1.4
@@ -0,1 +1,4 @@ | ||
## 0.1.4 | ||
- Don't expose the `module.exports` and `exports` as predefined globals. | ||
## 0.1.3 | ||
@@ -2,0 +5,0 @@ - Don't throw when we cannot delete the introduced globals. |
@@ -118,2 +118,8 @@ 'use strict'; | ||
// | ||
// These values should not be exposed as they point to our module. | ||
// | ||
delete missing.module; | ||
delete missing.exports; | ||
// | ||
// Expose the module. | ||
@@ -120,0 +126,0 @@ // |
{ | ||
"name": "load", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Load plain JavaScript files that don't use module patterns directly in node.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
x = (function globals() { | ||
'use strict'; | ||
if ('undefined' !== typeof module) throw new Error('I should not exist'); | ||
if ('undefined' !== typeof exports) throw new Error('I should not exist'); | ||
console.log('Buffer.isBuffer', Buffer.isBuffer(null)); | ||
return new(require('stream')); | ||
})(); |
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
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
7827
183