@definitelytyped/utils
Advanced tools
Comparing version 0.0.30-next.0 to 0.0.30-next.2
@@ -10,3 +10,3 @@ /** Progress options needed for `nAtATime`. Other options will be inferred. */ | ||
export declare function filterNAtATimeOrdered<T>(n: number, inputs: readonly T[], shouldKeep: (input: T) => Awaitable<boolean>, progress?: ProgressOptions<T, boolean>): Promise<T[]>; | ||
export declare function logUncaughtErrors(promise: Promise<unknown> | (() => Promise<unknown>)): void; | ||
export declare function logUncaughtErrors<T>(promise: Promise<T> | (() => Promise<T>)): Promise<T>; | ||
export {}; |
@@ -52,4 +52,9 @@ "use strict"; | ||
function logUncaughtErrors(promise) { | ||
(typeof promise === "function" ? promise() : promise).catch(error => { | ||
console.error(error); | ||
return (typeof promise === "function" ? promise() : promise).catch(error => { | ||
if (error && error.stack) { | ||
console.error(error.stack); | ||
} | ||
else { | ||
console.error(error); | ||
} | ||
process.exit(1); | ||
@@ -56,0 +61,0 @@ }); |
import { TypeScriptVersion } from "@definitelytyped/typescript-versions"; | ||
export declare type TsVersion = TypeScriptVersion | "next" | "local"; | ||
export declare type TsVersion = TypeScriptVersion | "local"; | ||
export declare function installAllTypeScriptVersions(): Promise<void>; | ||
@@ -4,0 +4,0 @@ export declare function installTypeScriptNext(): Promise<void>; |
{ | ||
"name": "@definitelytyped/utils", | ||
"version": "0.0.30-next.0", | ||
"version": "0.0.30-next.2", | ||
"description": "Shared utilities for DefinitelyTyped tools", | ||
@@ -40,3 +40,3 @@ "homepage": "https://github.com/DefinitelyTyped/tools#readme", | ||
}, | ||
"gitHead": "15e8ac61e1a976b0f8ba7aefef110ca22cf3f9e0" | ||
"gitHead": "4af87e4f646106587a3d4926311868ad4ca4d199" | ||
} |
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
131635
2074