rollup-plugin-worker-factory
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -0,1 +1,8 @@ | ||
<a name="0.5.2"></a> | ||
## [0.5.2](https://github.com/brandonocasey/rollup-plugin-worker-factory/compare/v0.5.1...v0.5.2) (2021-03-11) | ||
### Bug Fixes | ||
* mock worker terminate cleanup ([d4a264b](https://github.com/brandonocasey/rollup-plugin-worker-factory/commit/d4a264b)) | ||
<a name="0.5.1"></a> | ||
@@ -2,0 +9,0 @@ ## [0.5.1](https://github.com/brandonocasey/rollup-plugin-worker-factory/compare/v0.5.0...v0.5.1) (2021-02-17) |
{ | ||
"name": "rollup-plugin-worker-factory", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Bundle web workers that work in nodejs and the browser, without a separate build target.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -45,2 +45,8 @@ class FakeWorker { | ||
terminate() { | ||
if (this.remote_) { | ||
this.remote_.remote_ = null; | ||
this.remote_.terminate(); | ||
this.remote_ = null; | ||
} | ||
this.onmessage = null; | ||
this.listeners_.length = 0; | ||
@@ -54,3 +60,3 @@ } | ||
export const factory = function(fn) { | ||
return () => { | ||
return function() { | ||
const client = new FakeWorker(); | ||
@@ -57,0 +63,0 @@ const worker = new FakeWorker(); |
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
24411
239