Socket
Socket
Sign inDemoInstall

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.0.2 to 0.0.3

.npmignore

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## 0.0.3
- Removed pointless missing globals code, we can just use `global` variable as
it's available in node and lists all introduced globals.
## 0.0.2
- Added some missing globals
## 0.0.1

@@ -2,0 +9,0 @@ - Automatically add a `.js` extension if missing.

10

index.js

@@ -60,9 +60,9 @@ 'use strict';

var missing = {
console: console
, setTimeout: setTimeout
, clearTimeout: clearTimeout
, setInterval: setInterval
, clearInterval: clearInterval
require: require
};
Object.keys(global).forEach(function add(prop) {
missing[prop] = global[prop];
});
/**

@@ -69,0 +69,0 @@ * Code reading and cleaning up.

{
"name": "load",
"version": "0.0.2",
"version": "0.0.3",
"description": "Load JavaScript files that do not use the bloat module patterns",

@@ -9,3 +9,6 @@ "main": "index.js",

},
"repository": "",
"repository": {
"type": "git",
"url": "git://github.com/3rd-Eden/load.git"
},
"keywords": [

@@ -16,6 +19,12 @@ "load",

"import",
"export"
"export",
"amd",
"browser",
"exports"
],
"author": "Arnout Kazemier",
"license": "MIT"
"license": "MIT",
"devDependencies": {
"pre-commit": "0.0.4"
}
}

@@ -14,1 +14,4 @@ 'use strict';

assert.ok(typeof lib.bar === 'function');
var stream = load('./fixtures/globals.js');
assert.ok(stream instanceof 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