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

lazy-require

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lazy-require - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

es5/lib/lazy-require.js

4

HISTORY.md
# 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

38

package.json
{
"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

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