@stryker-mutator/util
Advanced tools
Comparing version 8.2.6 to 8.3.0
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
import * as childProcess from 'child_process'; | ||
@@ -3,0 +2,0 @@ export declare const childProcessAsPromised: { |
@@ -1,4 +0,3 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
export declare function isErrnoException(error: unknown): error is NodeJS.ErrnoException; | ||
export declare function errorToString(error: any): string; | ||
export declare function errorToString(error: unknown): string; | ||
export declare const ERROR_CODES: Readonly<{ | ||
@@ -5,0 +4,0 @@ NoSuchFileOrDirectory: "ENOENT"; |
export function isErrnoException(error) { | ||
return error instanceof Error && typeof error.code === 'string'; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
export function errorToString(error) { | ||
@@ -21,3 +20,3 @@ if (!error) { | ||
} | ||
return error.toString(); | ||
return String(error); | ||
} | ||
@@ -24,0 +23,0 @@ export const ERROR_CODES = Object.freeze({ |
@@ -19,3 +19,3 @@ import { notEmpty } from './not-empty.js'; | ||
]; | ||
case 'object': | ||
case 'object': { | ||
// Either a plain object, null, array or instance of a class | ||
@@ -51,4 +51,5 @@ if (thing === null) { | ||
]; | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=find-unserializables.js.map |
{ | ||
"name": "@stryker-mutator/util", | ||
"version": "8.2.6", | ||
"version": "8.3.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.2.6", | ||
"@types/node": "20.11.20" | ||
"@stryker-mutator/test-helpers": "8.3.0", | ||
"@types/node": "20.14.13" | ||
}, | ||
"gitHead": "7a044150fb6a1c5db420f8bc57e0cb59f72debe8" | ||
"gitHead": "b9eb7575b89aa4d3a446c2b9aedd1d5168f0879d" | ||
} |
@@ -5,4 +5,3 @@ export function isErrnoException(error: unknown): error is NodeJS.ErrnoException { | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
export function errorToString(error: any): string { | ||
export function errorToString(error: unknown): string { | ||
if (!error) { | ||
@@ -22,3 +21,3 @@ return ''; | ||
} | ||
return error.toString(); | ||
return String(error); | ||
} | ||
@@ -25,0 +24,0 @@ |
@@ -25,3 +25,3 @@ import { notEmpty } from './not-empty.js'; | ||
]; | ||
case 'object': | ||
case 'object': { | ||
// Either a plain object, null, array or instance of a class | ||
@@ -61,3 +61,4 @@ if (thing === null) { | ||
]; | ||
} | ||
} | ||
} |
@@ -55,3 +55,3 @@ /** | ||
}) | ||
.catch((error) => { | ||
.catch((error: unknown) => { | ||
clearTimeout(timer); | ||
@@ -58,0 +58,0 @@ // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors |
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
Sorry, the diff of this file is not supported yet
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
62077
890