lazy-require
Advanced tools
Comparing version 2.0.0 to 2.1.0
# History | ||
## v2.1.0 September 5, 2015 | ||
- Moved from CoffeeScript to ES6+ | ||
- Fixed `canSave` method | ||
## v2.0.0 March 17, 2015 | ||
@@ -4,0 +8,0 @@ - Rewritten |
{ | ||
"title": "Lazy Require", | ||
"name": "lazy-require", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Lazy require allows you to require modules lazily, meaning that when you lazy require a module that is missing, lazy require will automatically install it for you.", | ||
@@ -27,4 +27,4 @@ "homepage": "https://github.com/bevry/lazy-require", | ||
"paypal": "QB8GQPZAH84N6", | ||
"bitcoin": "https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a", | ||
"wishlist": "http://amzn.com/w/2F8TXKSNAFG4V" | ||
"bitcoin": "https://bevry.me/bitcoin", | ||
"wishlist": "https://bevry.me/wishlist" | ||
}, | ||
@@ -36,3 +36,4 @@ "author": "2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me)", | ||
"contributors": [ | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)" | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)", | ||
"RobLoach (https://github.com/RobLoach)" | ||
], | ||
@@ -47,11 +48,13 @@ "bugs": { | ||
"engines": { | ||
"node": ">=0.4" | ||
"node": ">=0.12" | ||
}, | ||
"dependencies": { | ||
"extract-opts": "^3.0.1", | ||
"safeps": "^3.0.1" | ||
"safeps": "^5.1.0" | ||
}, | ||
"devDependencies": { | ||
"assert-helpers": "^1.0.2", | ||
"coffee-script": "^1.9.1", | ||
"babel": "^5.8.23", | ||
"babel-eslint": "^4.1.1", | ||
"eslint": "^1.3.1", | ||
"joe": "^1.6.0", | ||
@@ -62,12 +65,19 @@ "joe-reporter-console": "^1.2.1", | ||
}, | ||
"directories": { | ||
"lib": "./out/lib" | ||
}, | ||
"main": "./es6guardian.js", | ||
"scripts": { | ||
"test": "node ./out/test/lazy-require-test.js" | ||
"clean": "node --harmony nakefile.js clean", | ||
"setup": "node --harmony nakefile.js setup", | ||
"compile": "node --harmony nakefile.js compile", | ||
"watch": "node --harmony nakefile.js watch", | ||
"verify": "node --harmony nakefile.js verify", | ||
"meta": "node --harmony nakefile.js meta", | ||
"prepare": "node --harmony nakefile.js prepare", | ||
"release": "node --harmony nakefile.js release", | ||
"test": "node --harmony ./es5/test/lazy-require-test.js" | ||
}, | ||
"main": "./out/lib/lazy-require.js", | ||
"cakeConfiguration": { | ||
"COFFEE_SRC_PATH": "src" | ||
"nakeConfiguration": { | ||
"BABEL_SRC_PATH": "es6", | ||
"ESLINT_SRC_PATH": "es6", | ||
"YUIDOC_SRC_PATH": "es6" | ||
} | ||
} |
@@ -19,4 +19,4 @@ | ||
[![PayPayl donate button](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
[![BitCoin donate button](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a "Donate once-off to this project using BitCoin") | ||
[![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)](http://amzn.com/w/2F8TXKSNAFG4V "Buy an item on our wishlist for us") | ||
[![BitCoin donate button](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://bevry.me/bitcoin "Donate once-off to this project using BitCoin") | ||
[![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)](https://bevry.me/wishlist "Buy an item on our wishlist for us") | ||
@@ -52,2 +52,3 @@ <!-- /BADGES --> | ||
// Do this synchronously, only available in Node 0.12 and above | ||
// Passing a callback as the 3rd argument will do this asynchronously, available in all node versions | ||
var ambi = lazyRequire('ambi', {/* options */}) | ||
@@ -72,3 +73,3 @@ if ( ambi instanceof Error ) { | ||
// Do this asynchronously, available in all node versions | ||
lazyRequire('ambi', {/* options */}, function(err, ambi){ | ||
lazyRequire.async('ambi', {/* options */}, function(err, ambi){ | ||
// Error ... | ||
@@ -132,4 +133,4 @@ if (err) return console.log('ambi failed to load because of:', err.stack) | ||
[![PayPayl donate button](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
[![BitCoin donate button](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://coinbase.com/checkouts/9ef59f5479eec1d97d63382c9ebcb93a "Donate once-off to this project using BitCoin") | ||
[![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)](http://amzn.com/w/2F8TXKSNAFG4V "Buy an item on our wishlist for us") | ||
[![BitCoin donate button](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://bevry.me/bitcoin "Donate once-off to this project using BitCoin") | ||
[![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)](https://bevry.me/wishlist "Buy an item on our wishlist for us") | ||
@@ -141,2 +142,3 @@ ### Contributors | ||
- [Benjamin Lupton](https://github.com/balupton) <b@lupton.cc> — [view contributions](https://github.com/bevry/lazy-require/commits?author=balupton) | ||
- [RobLoach](https://github.com/RobLoach) — [view contributions](https://github.com/bevry/lazy-require/commits?author=RobLoach) | ||
@@ -143,0 +145,0 @@ [Become a contributor!](https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files) |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38685
9
905
160
8
9
2
+ Addedsafeps@5.1.0(transitive)
- Removedsafeps@3.0.2(transitive)
Updatedsafeps@^5.1.0