New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@salesforce/lazy-require

Package Overview
Dependencies
Maintainers
29
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce/lazy-require - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.2.1](https://github.com/forcedotcom/sfdx-dev-packages/compare/@salesforce/lazy-require@0.2.0...@salesforce/lazy-require@0.2.1) (2019-08-30)
**Note:** Version bump only for package @salesforce/lazy-require
# [0.2.0](https://github.com/forcedotcom/sfdx-dev-packages/compare/@salesforce/lazy-require@0.1.15...@salesforce/lazy-require@0.2.0) (2019-07-17)

@@ -8,0 +16,0 @@

8

package.json
{
"name": "@salesforce/lazy-require",
"version": "0.2.0",
"version": "0.2.1",
"description": "Lazily load npm packages",

@@ -19,4 +19,4 @@ "repository": "https://github.com/forcedotcom/sfdx-dev-packages",

"devDependencies": {
"@salesforce/dev-scripts": "^0.4.0",
"@salesforce/ts-sinon": "^1.1.0",
"@salesforce/dev-scripts": "^0.4.1",
"@salesforce/ts-sinon": "^1.1.1",
"@types/debug": "^0.0.31"

@@ -35,3 +35,3 @@ },

},
"gitHead": "d7b0d8d6a19a77872c5e61c244c5685420e29b8c"
"gitHead": "5da7a9c809a17e294cfec88e1604458b164a93e1"
}

@@ -6,1 +6,13 @@ # @salesforce/lazy-require

Note that not all modules are well-suited for lazy loading -- some modules expect to run essential initialization code in addition to exporting types when loaded (BAD!). Modules that do this should not be lazily loaded, or undefined results are likely to occur in your application. _Use with care_ (that is, make sure your app is well tested before using this in production).
## Usage
### TypeScript
### JavaScript
```javascript
// Enable lazy loading of modules
const lazyLoad = require('@salesforce/lazy-require').default.create('name-of-typecache');
lazyLoad.start();
```
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