Socket
Socket
Sign inDemoInstall

@stryker-mutator/util

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stryker-mutator/util - npm Package Compare versions

Comparing version 7.3.0 to 8.0.0

22

dist/src/find-unserializables.js

@@ -26,9 +26,6 @@ import { notEmpty } from './not-empty.js';

const things = thing
.flatMap((child, index) => {
var _a;
return (_a = findUnserializables(child)) === null || _a === void 0 ? void 0 : _a.map((description) => {
description.path.unshift(index.toString());
return description;
});
})
.flatMap((child, index) => findUnserializables(child)?.map((description) => {
description.path.unshift(index.toString());
return description;
}))
.filter(notEmpty);

@@ -40,9 +37,6 @@ return things.length ? things : undefined;

const things = Object.entries(thing)
.flatMap(([key, val]) => {
var _a;
return (_a = findUnserializables(val)) === null || _a === void 0 ? void 0 : _a.map((description) => {
description.path.unshift(key);
return description;
});
})
.flatMap(([key, val]) => findUnserializables(val)?.map((description) => {
description.path.unshift(key);
return description;
}))
.filter(notEmpty);

@@ -49,0 +43,0 @@ return things.length ? things : undefined;

import { errorToString } from './errors.js';
export class StrykerError extends Error {
innerError;
constructor(message, innerError) {

@@ -4,0 +5,0 @@ super(`${message}${innerError ? `. Inner error: ${errorToString(innerError)}` : ''}`);

@@ -5,12 +5,7 @@ /**

export class Task {
_promise;
resolveFn;
rejectFn;
_isCompleted = false;
constructor() {
this._isCompleted = false;
this.resolve = (result) => {
this._isCompleted = true;
this.resolveFn(result);
};
this.reject = (reason) => {
this._isCompleted = true;
this.rejectFn(reason);
};
this._promise = new Promise((resolve, reject) => {

@@ -27,2 +22,10 @@ this.resolveFn = resolve;

}
resolve = (result) => {
this._isCompleted = true;
this.resolveFn(result);
};
reject = (reason) => {
this._isCompleted = true;
this.rejectFn(reason);
};
}

@@ -33,2 +36,3 @@ /**

export class ExpirableTask extends Task {
static TimeoutExpired = Symbol('TimeoutExpired');
constructor(timeoutMS) {

@@ -54,3 +58,2 @@ super();

}
ExpirableTask.TimeoutExpired = Symbol('TimeoutExpired');
//# sourceMappingURL=task.js.map
{
"name": "@stryker-mutator/util",
"version": "7.3.0",
"version": "8.0.0",
"description": "Contains utilities for Stryker, the mutation testing framework for JavaScript and friends",

@@ -42,6 +42,6 @@ "files": [

"devDependencies": {
"@stryker-mutator/test-helpers": "7.3.0",
"@types/node": "18.18.5"
"@stryker-mutator/test-helpers": "8.0.0",
"@types/node": "20.10.1"
},
"gitHead": "deb82d861e13f17dbc80b57499c0347b1ec63f7f"
"gitHead": "64c77210df8facb7b8b1419a215533a6af5eca8e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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