Socket
Socket
Sign inDemoInstall

native-ext-loader

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

native-ext-loader - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 2.3.0
- Allow skipping native file emition (cea2ff2d29)
# 2.2.0

@@ -2,0 +6,0 @@

16

index.js

@@ -6,3 +6,4 @@ var path = require("path");

basePath: [],
rewritePath: undefined
rewritePath: undefined,
emit: true
};

@@ -13,8 +14,11 @@

if (this.emitFile) {
this.emitFile(fileName, content, false);
this.addDependency(this.resourcePath);
} else {
throw new Error("emitFile function is not available");
if (config.emit) {
if (this.emitFile) {
this.emitFile(fileName, content, false);
} else {
throw new Error("emitFile function is not available");
}
}
this.addDependency(this.resourcePath);

@@ -21,0 +25,0 @@ if (config.rewritePath) {

@@ -17,3 +17,3 @@ {

"scripts": {},
"version": "2.2.0"
"version": "2.3.0"
}

@@ -62,2 +62,6 @@ # Node Native Loader

### `emit` (default: `true`)
Specifies whether the imported `.node` file will be copied to the output directory.
## Releasing a new version

@@ -64,0 +68,0 @@

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