Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

load

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load - npm Package Compare versions

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc