import-lazy
Advanced tools
+6
-1
@@ -16,7 +16,12 @@ 'use strict'; | ||
| return Reflect.apply(mod, thisArg, argumentsList); | ||
| }, | ||
| construct: (target, argumentsList) => { | ||
| mod = lazy(mod, fn, id); | ||
| return Reflect.construct(mod, argumentsList); | ||
| } | ||
| }; | ||
| return new Proxy(() => {}, handler); | ||
| // eslint-disable-next-line prefer-arrow-callback | ||
| return new Proxy(function () {}, handler); | ||
| }; | ||
| }; |
+36
-42
| { | ||
| "name": "import-lazy", | ||
| "version": "3.0.0", | ||
| "description": "Import a module lazily", | ||
| "license": "MIT", | ||
| "repository": "sindresorhus/import-lazy", | ||
| "author": { | ||
| "name": "Sindre Sorhus", | ||
| "email": "sindresorhus@gmail.com", | ||
| "url": "sindresorhus.com" | ||
| }, | ||
| "contributors": [ | ||
| { | ||
| "name": "Jorge Bucaran", | ||
| "email": "jbucaran@me.com" | ||
| } | ||
| ], | ||
| "engines": { | ||
| "node": ">=6" | ||
| }, | ||
| "scripts": { | ||
| "test": "xo && ava" | ||
| }, | ||
| "files": [ | ||
| "index.js" | ||
| ], | ||
| "keywords": [ | ||
| "import", | ||
| "require", | ||
| "load", | ||
| "module", | ||
| "modules", | ||
| "lazy", | ||
| "lazily", | ||
| "defer", | ||
| "deferred", | ||
| "proxy", | ||
| "proxies" | ||
| ], | ||
| "devDependencies": { | ||
| "ava": "*", | ||
| "xo": "*" | ||
| } | ||
| "name": "import-lazy", | ||
| "version": "3.1.0", | ||
| "description": "Import a module lazily", | ||
| "license": "MIT", | ||
| "repository": "sindresorhus/import-lazy", | ||
| "author": { | ||
| "name": "Sindre Sorhus", | ||
| "email": "sindresorhus@gmail.com", | ||
| "url": "sindresorhus.com" | ||
| }, | ||
| "engines": { | ||
| "node": ">=6" | ||
| }, | ||
| "scripts": { | ||
| "test": "xo && ava" | ||
| }, | ||
| "files": [ | ||
| "index.js" | ||
| ], | ||
| "keywords": [ | ||
| "import", | ||
| "require", | ||
| "load", | ||
| "module", | ||
| "modules", | ||
| "lazy", | ||
| "lazily", | ||
| "defer", | ||
| "deferred", | ||
| "proxy", | ||
| "proxies" | ||
| ], | ||
| "devDependencies": { | ||
| "ava": "*", | ||
| "xo": "*" | ||
| } | ||
| } |
3956
0.76%23
27.78%