Socket
Socket
Sign inDemoInstall

rollup-plugin-worker-factory

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-worker-factory - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

7

CHANGELOG.md

@@ -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)

2

package.json
{
"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();

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