lazy-require
Advanced tools
Comparing version 2.1.1 to 2.1.2
/* eslint no-sync:0 */ | ||
'use strict'; | ||
// Import | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; })(); | ||
var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })(); | ||
exports['default'] = lazyRequire; | ||
var pathUtil = require('path'); | ||
@@ -33,3 +28,2 @@ var fsUtil = require('fs'); | ||
// Also export this function as the default | ||
function lazyRequire(name, opts, next) { | ||
@@ -39,10 +33,9 @@ | ||
var _extractOptsAndCallback = extractOptsAndCallback(opts, next); | ||
var _extractOptsAndCallba = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback2 = _slicedToArray(_extractOptsAndCallback, 2); | ||
var _extractOptsAndCallba2 = _slicedToArray(_extractOptsAndCallba, 2); | ||
opts = _extractOptsAndCallback2[0]; | ||
next = _extractOptsAndCallback2[1]; | ||
opts = _extractOptsAndCallba2[0]; | ||
next = _extractOptsAndCallba2[1]; | ||
return next ? lazyRequire.async(name, opts, next) : lazyRequire.sync(name, opts); | ||
@@ -52,14 +45,13 @@ } | ||
// Require or install a package synchronously or asynchronously | ||
lazyRequire.auto = function (name, opts, next) { | ||
lazyRequire.auto = function auto(name, opts, next) { | ||
// If we have no callback, or if we support sync, then do sync | ||
var _extractOptsAndCallback3 = extractOptsAndCallback(opts, next); | ||
var _extractOptsAndCallba3 = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback32 = _slicedToArray(_extractOptsAndCallback3, 2); | ||
var _extractOptsAndCallba4 = _slicedToArray(_extractOptsAndCallba3, 2); | ||
opts = _extractOptsAndCallback32[0]; | ||
next = _extractOptsAndCallback32[1]; | ||
opts = _extractOptsAndCallba4[0]; | ||
next = _extractOptsAndCallba4[1]; | ||
if (!next || lazyRequire.canSyncInstall()) { | ||
@@ -73,11 +65,10 @@ return lazyRequire.requireOrInstallSync(name, opts, next); | ||
// Require or install a package synchronously | ||
lazyRequire.sync = function (name, opts, next) { | ||
var _extractOptsAndCallback4 = extractOptsAndCallback(opts, next); | ||
lazyRequire.sync = function sync(name, opts, next) { | ||
var _extractOptsAndCallba5 = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback42 = _slicedToArray(_extractOptsAndCallback4, 2); | ||
var _extractOptsAndCallba6 = _slicedToArray(_extractOptsAndCallba5, 2); | ||
opts = _extractOptsAndCallback42[0]; | ||
next = _extractOptsAndCallback42[1]; | ||
opts = _extractOptsAndCallba6[0]; | ||
next = _extractOptsAndCallba6[1]; | ||
@@ -101,14 +92,13 @@ var result = lazyRequire.require(name, opts); | ||
// Require or install a package asynchronously | ||
lazyRequire.async = function (name, opts, next) { | ||
lazyRequire.async = function async(name, opts, next) { | ||
// Asynchronous | ||
var _extractOptsAndCallback5 = extractOptsAndCallback(opts, next); | ||
var _extractOptsAndCallba7 = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback52 = _slicedToArray(_extractOptsAndCallback5, 2); | ||
var _extractOptsAndCallba8 = _slicedToArray(_extractOptsAndCallba7, 2); | ||
opts = _extractOptsAndCallback52[0]; | ||
next = _extractOptsAndCallback52[1]; | ||
opts = _extractOptsAndCallba8[0]; | ||
next = _extractOptsAndCallba8[1]; | ||
lazyRequire.require(name, opts, function (error, result) { | ||
@@ -124,11 +114,10 @@ if (result) return next(error, result); | ||
// Attempt to require a module | ||
lazyRequire.require = function (name, opts, next) { | ||
var _extractOptsAndCallback6 = extractOptsAndCallback(opts, next); | ||
lazyRequire.require = function _require(name, opts, next) { | ||
var _extractOptsAndCallba9 = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback62 = _slicedToArray(_extractOptsAndCallback6, 2); | ||
var _extractOptsAndCallba10 = _slicedToArray(_extractOptsAndCallba9, 2); | ||
opts = _extractOptsAndCallback62[0]; | ||
next = _extractOptsAndCallback62[1]; | ||
opts = _extractOptsAndCallba10[0]; | ||
next = _extractOptsAndCallba10[1]; | ||
@@ -160,11 +149,10 @@ var result = null; | ||
// Can Save | ||
lazyRequire.canSave = function (name, opts, next) { | ||
var _extractOptsAndCallback7 = extractOptsAndCallback(opts, next); | ||
lazyRequire.canSave = function canSave(name, opts, next) { | ||
var _extractOptsAndCallba11 = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback72 = _slicedToArray(_extractOptsAndCallback7, 2); | ||
var _extractOptsAndCallba12 = _slicedToArray(_extractOptsAndCallba11, 2); | ||
opts = _extractOptsAndCallback72[0]; | ||
next = _extractOptsAndCallback72[1]; | ||
opts = _extractOptsAndCallba12[0]; | ||
next = _extractOptsAndCallba12[1]; | ||
@@ -192,11 +180,10 @@ var result = null; | ||
// Can install synchronously | ||
lazyRequire.canSyncInstall = function (opts, next) { | ||
var _extractOptsAndCallback8 = extractOptsAndCallback(opts, next); | ||
lazyRequire.canSyncInstall = function canSyncInstall(opts, next) { | ||
var _extractOptsAndCallba13 = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback82 = _slicedToArray(_extractOptsAndCallback8, 2); | ||
var _extractOptsAndCallba14 = _slicedToArray(_extractOptsAndCallba13, 2); | ||
opts = _extractOptsAndCallback82[0]; | ||
next = _extractOptsAndCallback82[1]; | ||
opts = _extractOptsAndCallba14[0]; | ||
next = _extractOptsAndCallba14[1]; | ||
@@ -218,11 +205,10 @@ var result = safeps.hasSpawnSync(); | ||
// Asynchronous with optional callback | ||
lazyRequire.installAsync = function (name, opts, next) { | ||
var _extractOptsAndCallback9 = extractOptsAndCallback(opts, next); | ||
lazyRequire.installAsync = function installAsync(name, opts, next) { | ||
var _extractOptsAndCallba15 = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback92 = _slicedToArray(_extractOptsAndCallback9, 2); | ||
var _extractOptsAndCallba16 = _slicedToArray(_extractOptsAndCallba15, 2); | ||
opts = _extractOptsAndCallback92[0]; | ||
next = _extractOptsAndCallback92[1]; | ||
opts = _extractOptsAndCallba16[0]; | ||
next = _extractOptsAndCallba16[1]; | ||
@@ -277,11 +263,10 @@ var error = null; | ||
// Synchronous with optional callback | ||
lazyRequire.installSync = function (name, opts, next) { | ||
var _extractOptsAndCallback10 = extractOptsAndCallback(opts, next); | ||
lazyRequire.installSync = function installSync(name, opts, next) { | ||
var _extractOptsAndCallba17 = extractOptsAndCallback(opts, next); | ||
// Prepare | ||
var _extractOptsAndCallback102 = _slicedToArray(_extractOptsAndCallback10, 2); | ||
var _extractOptsAndCallba18 = _slicedToArray(_extractOptsAndCallba17, 2); | ||
opts = _extractOptsAndCallback102[0]; | ||
next = _extractOptsAndCallback102[1]; | ||
opts = _extractOptsAndCallba18[0]; | ||
next = _extractOptsAndCallba18[1]; | ||
@@ -335,2 +320,4 @@ var error = null; | ||
}; | ||
module.exports = exports['default']; | ||
// Export | ||
module.exports = lazyRequire; |
# History | ||
## v2.1.1 September 5, 2015 | ||
## v2.1.2 2015 December 10 | ||
- Updated internal conventions | ||
## v2.1.1 2015 September 5 | ||
- Added explicit support for node 0.10 (regression since v2.1.0) | ||
## v2.1.0 September 5, 2015 | ||
## v2.1.0 2015 September 5 | ||
- Moved from CoffeeScript to ES6+ | ||
- Fixed `canSave` method | ||
## v2.0.0 March 17, 2015 | ||
## v2.0.0 2015 March 17 | ||
- Rewritten | ||
@@ -16,3 +19,3 @@ - Support sync require and installs | ||
## v1.0.0 June 25, 2013 | ||
## v1.0.0 2013 June 25 | ||
- Initial working version |
@@ -1,23 +0,23 @@ | ||
<!-- LICENSEFILE/ --> | ||
# License | ||
<h1>License</h1> | ||
Unless stated otherwise all works are: | ||
- Copyright © 2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me) | ||
<ul><li>Copyright © 2013+ <a href="http://bevry.me">Bevry Pty Ltd</a></li></ul> | ||
and licensed under: | ||
- The incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://opensource.org/licenses/mit-license.php) | ||
<ul><li><a href="http://spdx.org/licenses/MIT.html">MIT License</a></li></ul> | ||
## MIT License | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
<h2>MIT License</h2> | ||
<pre> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
</pre> | ||
<!-- /LICENSEFILE --> | ||
{ | ||
"title": "Lazy Require", | ||
"name": "lazy-require", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"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.", | ||
"homepage": "https://github.com/bevry/lazy-require", | ||
"license": { | ||
"type": "MIT" | ||
}, | ||
"license": "MIT", | ||
"keywords": [ | ||
@@ -19,12 +17,26 @@ "require", | ||
"badges": { | ||
"travis": true, | ||
"npm": true, | ||
"npmdownloads": true, | ||
"david": true, | ||
"daviddev": true, | ||
"gratipay": "bevry", | ||
"flattr": "344188/balupton-on-Flattr", | ||
"paypal": "QB8GQPZAH84N6", | ||
"bitcoin": "https://bevry.me/bitcoin", | ||
"wishlist": "https://bevry.me/wishlist" | ||
"list": [ | ||
"travisci", | ||
"npmversion", | ||
"npmdownloads", | ||
"daviddm", | ||
"daviddmdev", | ||
"---", | ||
"slackin", | ||
"patreon", | ||
"gratipay", | ||
"flattr", | ||
"paypal", | ||
"bitcoin", | ||
"wishlist" | ||
], | ||
"config": { | ||
"patreonUsername": "bevry", | ||
"gratipayUsername": "bevry", | ||
"flattrCode": "344188/balupton-on-Flattr", | ||
"paypalButtonID": "QB8GQPZAH84N6", | ||
"bitcoinURL": "https://bevry.me/bitcoin", | ||
"wishlistURL": "https://bevry.me/wishlist", | ||
"slackinURL": "https://slack.bevry.me" | ||
} | ||
}, | ||
@@ -49,17 +61,19 @@ "author": "2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me)", | ||
}, | ||
"browsers": false, | ||
"dependencies": { | ||
"esnextguardian": "^1.2.0", | ||
"extract-opts": "^3.0.1", | ||
"safeps": "^5.1.0" | ||
"safeps": "^6.0.2" | ||
}, | ||
"devDependencies": { | ||
"assert-helpers": "^1.0.2", | ||
"babel": "^5.8.23", | ||
"babel-eslint": "^4.1.1", | ||
"assert-helpers": "^4.1.0", | ||
"babel-cli": "^6.3.15", | ||
"babel-preset-es2015": "^6.3.13", | ||
"eslint": "^1.3.1", | ||
"joe": "^1.6.0", | ||
"joe-reporter-console": "^1.2.1", | ||
"projectz": "^0.5.0", | ||
"projectz": "^1.0.9", | ||
"rimraf": "^2.3.2" | ||
}, | ||
"main": "./es6guardian.js", | ||
"main": "./esnextguardian.js", | ||
"scripts": { | ||
@@ -77,6 +91,6 @@ "clean": "node --harmony nakefile.js clean", | ||
"nakeConfiguration": { | ||
"BABEL_SRC_PATH": "es6", | ||
"ESLINT_SRC_PATH": "es6", | ||
"YUIDOC_SRC_PATH": "es6" | ||
"BABEL_SRC_PATH": "esnext", | ||
"ESLINT_SRC_PATH": "esnext", | ||
"YUIDOC_SRC_PATH": "esnext" | ||
} | ||
} |
@@ -1,5 +0,4 @@ | ||
<!-- TITLE/ --> | ||
# Lazy Require | ||
<h1>Lazy Require</h1> | ||
@@ -11,12 +10,15 @@ <!-- /TITLE --> | ||
[![Build Status](https://img.shields.io/travis/bevry/lazy-require/master.svg)](http://travis-ci.org/bevry/lazy-require "Check this project's build status on TravisCI") | ||
[![NPM version](https://img.shields.io/npm/v/lazy-require.svg)](https://npmjs.org/package/lazy-require "View this project on NPM") | ||
[![NPM downloads](https://img.shields.io/npm/dm/lazy-require.svg)](https://npmjs.org/package/lazy-require "View this project on NPM") | ||
[![Dependency Status](https://img.shields.io/david/bevry/lazy-require.svg)](https://david-dm.org/bevry/lazy-require) | ||
[![Dev Dependency Status](https://img.shields.io/david/dev/bevry/lazy-require.svg)](https://david-dm.org/bevry/lazy-require#info=devDependencies)<br/> | ||
[![Gratipay donate button](https://img.shields.io/gratipay/bevry.svg)](https://www.gratipay.com/bevry/ "Donate weekly to this project using Gratipay") | ||
[![Flattr donate button](https://img.shields.io/badge/flattr-donate-yellow.svg)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![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://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") | ||
<span class="badge-travisci"><a href="http://travis-ci.org/bevry/lazy-require" title="Check this project's build status on TravisCI"><img src="https://img.shields.io/travis/bevry/lazy-require/master.svg" alt="Travis CI Build Status" /></a></span> | ||
<span class="badge-npmversion"><a href="https://npmjs.org/package/lazy-require" title="View this project on NPM"><img src="https://img.shields.io/npm/v/lazy-require.svg" alt="NPM version" /></a></span> | ||
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/lazy-require" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/lazy-require.svg" alt="NPM downloads" /></a></span> | ||
<span class="badge-daviddm"><a href="https://david-dm.org/bevry/lazy-require" title="View the status of this project's dependencies on DavidDM"><img src="https://img.shields.io/david/bevry/lazy-require.svg" alt="Dependency Status" /></a></span> | ||
<span class="badge-daviddmdev"><a href="https://david-dm.org/bevry/lazy-require#info=devDependencies" title="View the status of this project's development dependencies on DavidDM"><img src="https://img.shields.io/david/dev/bevry/lazy-require.svg" alt="Dev Dependency Status" /></a></span> | ||
<br class="badge-separator" /> | ||
<span class="badge-slackin"><a href="https://slack.bevry.me" title="Join this project's slack community"><img src="https://slack.bevry.me/badge.svg" alt="Slack community badge" /></a></span> | ||
<span class="badge-patreon"><a href="http://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-gratipay"><a href="https://www.gratipay.com/bevry" title="Donate weekly to this project using Gratipay"><img src="https://img.shields.io/badge/gratipay-donate-yellow.svg" alt="Gratipay donate button" /></a></span> | ||
<span class="badge-flattr"><a href="http://flattr.com/thing/344188/balupton-on-Flattr" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span> | ||
<span class="badge-bitcoin"><a href="https://bevry.me/bitcoin" title="Donate once-off to this project using Bitcoin"><img src="https://img.shields.io/badge/bitcoin-donate-yellow.svg" alt="Bitcoin donate button" /></a></span> | ||
<span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span> | ||
@@ -35,7 +37,7 @@ <!-- /BADGES --> | ||
## Install | ||
<h2>Install</h2> | ||
### [NPM](http://npmjs.org/) | ||
- Use: `require('lazy-require')` | ||
- Install: `npm install --save lazy-require` | ||
<a href="https://npmjs.com" title="npm is a package manager for javascript"><h3>NPM</h3></a><ul> | ||
<li>Install: <code>npm install --save lazy-require</code></li> | ||
<li>Use: <code>require('lazy-require')</code></li></ul> | ||
@@ -100,5 +102,6 @@ <!-- /INSTALL --> | ||
## History | ||
[Discover the change history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files) | ||
<h2>History</h2> | ||
<a href="https://github.com/bevry/lazy-require/blob/master/HISTORY.md#files">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a> | ||
<!-- /HISTORY --> | ||
@@ -109,5 +112,5 @@ | ||
## Contribute | ||
<h2>Contribute</h2> | ||
[Discover how you can contribute by heading on over to the `CONTRIBUTING.md` file.](https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files) | ||
<a href="https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a> | ||
@@ -119,28 +122,29 @@ <!-- /CONTRIBUTE --> | ||
## Backers | ||
<h2>Backers</h2> | ||
### Maintainers | ||
<h3>Maintainers</h3> | ||
These amazing people are maintaining this project: | ||
- Benjamin Lupton <b@lupton.cc> (https://github.com/balupton) | ||
<ul><li><a href="https://github.com/balupton">Benjamin Lupton</a> — <a href="https://github.com/bevry/lazy-require/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require">view contributions</a></li></ul> | ||
### Sponsors | ||
<h3>Sponsors</h3> | ||
No sponsors yet! Will you be the first? | ||
[![Gratipay donate button](https://img.shields.io/gratipay/bevry.svg)](https://www.gratipay.com/bevry/ "Donate weekly to this project using Gratipay") | ||
[![Flattr donate button](https://img.shields.io/badge/flattr-donate-yellow.svg)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![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://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") | ||
<span class="badge-patreon"><a href="http://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-gratipay"><a href="https://www.gratipay.com/bevry" title="Donate weekly to this project using Gratipay"><img src="https://img.shields.io/badge/gratipay-donate-yellow.svg" alt="Gratipay donate button" /></a></span> | ||
<span class="badge-flattr"><a href="http://flattr.com/thing/344188/balupton-on-Flattr" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-paypal"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span> | ||
<span class="badge-bitcoin"><a href="https://bevry.me/bitcoin" title="Donate once-off to this project using Bitcoin"><img src="https://img.shields.io/badge/bitcoin-donate-yellow.svg" alt="Bitcoin donate button" /></a></span> | ||
<span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span> | ||
### Contributors | ||
<h3>Contributors</h3> | ||
These amazing people have contributed code to this project: | ||
- [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) | ||
<ul><li><a href="https://github.com/balupton">Benjamin Lupton</a> — <a href="https://github.com/bevry/lazy-require/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/lazy-require">view contributions</a></li> | ||
<li><a href="https://github.com/RobLoach">RobLoach</a> — <a href="https://github.com/bevry/lazy-require/commits?author=RobLoach" title="View the GitHub contributions of RobLoach on repository bevry/lazy-require">view contributions</a></li></ul> | ||
[Become a contributor!](https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files) | ||
<a href="https://github.com/bevry/lazy-require/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a> | ||
@@ -152,14 +156,12 @@ <!-- /BACKERS --> | ||
## License | ||
<h2>License</h2> | ||
Unless stated otherwise all works are: | ||
- Copyright © 2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me) | ||
<ul><li>Copyright © 2013+ <a href="http://bevry.me">Bevry Pty Ltd</a></li></ul> | ||
and licensed under: | ||
- The incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://opensource.org/licenses/mit-license.php) | ||
<ul><li><a href="http://spdx.org/licenses/MIT.html">MIT License</a></li></ul> | ||
<!-- /LICENSE --> | ||
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
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
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
47110
10
961
162
6
3
+ Addedesnextguardian@^1.2.0
+ Addedambi@3.2.0(transitive)
+ Addedesnextguardian@1.2.1(transitive)
+ Addedextendr@3.5.0(transitive)
+ Addedsafefs@4.2.0(transitive)
+ Addedsafeps@6.4.07.0.1(transitive)
+ Addedtaskgroup@5.5.0(transitive)
+ Addedunbounded@1.3.0(transitive)
- Removedambi@2.5.0(transitive)
- Removedcsextends@1.2.0(transitive)
- Removedsafefs@3.2.2(transitive)
- Removedsafeps@5.1.0(transitive)
- Removedtaskgroup@4.3.1(transitive)
- Removedtypechecker@2.1.0(transitive)
Updatedsafeps@^6.0.2