You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

load

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.1.4

3

CHANGELOG.md

@@ -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 @@ //

2

package.json
{
"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'));
})();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc