rollup-plugin-worker-factory
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -0,1 +1,8 @@ | ||
<a name="0.5.7"></a> | ||
## [0.5.7](https://github.com/brandonocasey/rollup-plugin-worker-factory/compare/v0.5.6...v0.5.7) (2021-07-02) | ||
### Bug Fixes | ||
* mock worker dispatchEvent should use onmessage, add type_ debugging aide ([3afd219](https://github.com/brandonocasey/rollup-plugin-worker-factory/commit/3afd219)) | ||
<a name="0.5.6"></a> | ||
@@ -2,0 +9,0 @@ ## [0.5.6](https://github.com/brandonocasey/rollup-plugin-worker-factory/compare/v0.5.5...v0.5.6) (2021-06-24) |
{ | ||
"name": "rollup-plugin-worker-factory", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"description": "Bundle web workers that work in nodejs and the browser, without a separate build target.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
class MockWorker { | ||
constructor() { | ||
this.listeners_ = []; | ||
this.onmessage = null; | ||
this.remote_ = null; | ||
@@ -31,2 +32,5 @@ } | ||
if (this.onmessage) { | ||
this.onmessage(event); | ||
} | ||
this.listeners_.forEach(function(fn) { | ||
@@ -74,4 +78,6 @@ fn(event); | ||
client.type_ = 'window api'; | ||
client.remote_ = worker; | ||
worker.remote_ = client; | ||
worker.type_ = 'web worker'; | ||
@@ -78,0 +84,0 @@ fn(worker); |
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
27887
295