Socket
Socket
Sign inDemoInstall

jest-worker

Package Overview
Dependencies
5
Maintainers
5
Versions
169
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 28.0.0-alpha.5 to 28.0.0-alpha.6

8

build/Farm.js

@@ -129,7 +129,11 @@ 'use strict';

const taskOnEnd = task.onEnd;
let taskOnEnd = task.onEnd;
const onEnd = (error, result) => {
taskOnEnd(error, result);
if (taskOnEnd) {
taskOnEnd(error, result);
}
taskOnEnd = null;
this._unlock(workerId);

@@ -136,0 +140,0 @@

@@ -192,3 +192,3 @@ 'use strict';

if (this.constructor.prototype.hasOwnProperty(name)) {
throw new TypeError('Cannot define a method called ' + name);
throw new TypeError(`Cannot define a method called ${name}`);
} // @ts-expect-error: dynamic extension of the class instance is expected.

@@ -195,0 +195,0 @@

@@ -226,3 +226,3 @@ 'use strict';

case _types.PARENT_MESSAGE_SETUP_ERROR:
error = new Error('Error when calling setup: ' + response[2]);
error = new Error(`Error when calling setup: ${response[2]}`);
error.type = response[1];

@@ -241,3 +241,3 @@ error.stack = response[3];

default:
throw new TypeError('Unexpected response from worker: ' + response[0]);
throw new TypeError(`Unexpected response from worker: ${response[0]}`);
}

@@ -244,0 +244,0 @@ }

@@ -184,3 +184,3 @@ 'use strict';

case _types.PARENT_MESSAGE_SETUP_ERROR:
error = new Error('Error when calling setup: ' + response[2]); // @ts-expect-error: adding custom properties to errors.
error = new Error(`Error when calling setup: ${response[2]}`); // @ts-expect-error: adding custom properties to errors.

@@ -200,3 +200,3 @@ error.type = response[1];

default:
throw new TypeError('Unexpected response from worker: ' + response[0]);
throw new TypeError(`Unexpected response from worker: ${response[0]}`);
}

@@ -203,0 +203,0 @@ }

@@ -47,3 +47,3 @@ 'use strict';

throw new TypeError(
'Unexpected request from parent process: ' + request[0]
`Unexpected request from parent process: ${request[0]}`
);

@@ -50,0 +50,0 @@ }

@@ -58,3 +58,3 @@ 'use strict';

throw new TypeError(
'Unexpected request from parent process: ' + request[0]
`Unexpected request from parent process: ${request[0]}`
);

@@ -61,0 +61,0 @@ }

{
"name": "jest-worker",
"version": "28.0.0-alpha.5",
"version": "28.0.0-alpha.6",
"repository": {

@@ -28,3 +28,3 @@ "type": "git",

"get-stream": "^6.0.0",
"jest-leak-detector": "^28.0.0-alpha.5",
"jest-leak-detector": "^28.0.0-alpha.6",
"worker-farm": "^1.6.0"

@@ -38,3 +38,3 @@ },

},
"gitHead": "46fb19b2628bd87676c10730ba19592c30b05478"
"gitHead": "6284ada4adb7008f5f8673b1a7b1c789d2e508fb"
}

@@ -38,3 +38,3 @@ # jest-worker

export function hello(param) {
return 'Hello, ' + param;
return `Hello, ${param}`;
}

@@ -186,7 +186,7 @@ ```

export function foo(param) {
return 'Hello from foo: ' + param;
return `Hello from foo: ${param}`;
}
export function bar(param) {
return 'Hello from bar: ' + param;
return `Hello from bar: ${param}`;
}

@@ -193,0 +193,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc