Socket
Socket
Sign inDemoInstall

load

Package Overview
Dependencies
Maintainers
2
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 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",

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