native-ext-loader
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -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 @@ |
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
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
5663
46
74
0