@stryker-mutator/util
Advanced tools
Comparing version 8.0.0 to 8.1.0
@@ -49,2 +49,3 @@ /** | ||
clearTimeout(timer); | ||
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors | ||
rej(error); | ||
@@ -51,0 +52,0 @@ }); |
{ | ||
"name": "@stryker-mutator/util", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"description": "Contains utilities for Stryker, the mutation testing framework for JavaScript and friends", | ||
@@ -42,6 +42,6 @@ "files": [ | ||
"devDependencies": { | ||
"@stryker-mutator/test-helpers": "8.0.0", | ||
"@types/node": "20.10.1" | ||
"@stryker-mutator/test-helpers": "8.1.0", | ||
"@types/node": "20.11.10" | ||
}, | ||
"gitHead": "64c77210df8facb7b8b1419a215533a6af5eca8e" | ||
"gitHead": "365d7a10a8c20b292432cb578b9c3f8e99048d0e" | ||
} |
@@ -32,8 +32,7 @@ import { notEmpty } from './not-empty.js'; | ||
const things = thing | ||
.flatMap( | ||
(child, index) => | ||
findUnserializables(child)?.map((description) => { | ||
description.path.unshift(index.toString()); | ||
return description; | ||
}), | ||
.flatMap((child, index) => | ||
findUnserializables(child)?.map((description) => { | ||
description.path.unshift(index.toString()); | ||
return description; | ||
}), | ||
) | ||
@@ -46,8 +45,7 @@ .filter(notEmpty); | ||
const things = Object.entries(thing) | ||
.flatMap( | ||
([key, val]) => | ||
findUnserializables(val)?.map((description) => { | ||
description.path.unshift(key); | ||
return description; | ||
}), | ||
.flatMap(([key, val]) => | ||
findUnserializables(val)?.map((description) => { | ||
description.path.unshift(key); | ||
return description; | ||
}), | ||
) | ||
@@ -54,0 +52,0 @@ .filter(notEmpty); |
@@ -8,10 +8,10 @@ import { Primitive } from './primitive.js'; | ||
: T extends Array<infer U> | ||
? ImmutableArray<U> | ||
: T extends Map<infer K, infer V> | ||
? ImmutableMap<K, V> | ||
: T extends Set<infer M> | ||
? ImmutableSet<M> | ||
: T extends RegExp | ||
? Readonly<RegExp> | ||
: ImmutableObject<T>; | ||
? ImmutableArray<U> | ||
: T extends Map<infer K, infer V> | ||
? ImmutableMap<K, V> | ||
: T extends Set<infer M> | ||
? ImmutableSet<M> | ||
: T extends RegExp | ||
? Readonly<RegExp> | ||
: ImmutableObject<T>; | ||
@@ -18,0 +18,0 @@ export type ImmutableArray<T> = ReadonlyArray<Immutable<T>>; |
@@ -57,2 +57,3 @@ /** | ||
clearTimeout(timer); | ||
// eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors | ||
rej(error); | ||
@@ -59,0 +60,0 @@ }); |
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
62283