Comparing version 0.0.2 to 0.0.3
@@ -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')); |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
4582
9
105
1