@effect/platform
Advanced tools
Comparing version 0.30.3 to 0.30.4
@@ -36,9 +36,10 @@ "use strict"; | ||
/** @internal */ | ||
const WorkerError = (reason, error) => Data.struct({ | ||
const WorkerError = (reason, error, stack) => Data.struct({ | ||
[WorkerErrorTypeId]: WorkerErrorTypeId, | ||
_tag: "WorkerError", | ||
reason, | ||
error | ||
error, | ||
stack | ||
}); | ||
exports.WorkerError = WorkerError; | ||
//# sourceMappingURL=workerError.js.map |
@@ -24,2 +24,3 @@ /** | ||
readonly error: unknown; | ||
readonly stack?: string; | ||
} | ||
@@ -30,3 +31,3 @@ /** | ||
*/ | ||
export declare const WorkerError: (reason: "spawn" | "decode" | "send" | "unknown", error: unknown) => WorkerError; | ||
export declare const WorkerError: (reason: "spawn" | "decode" | "send" | "unknown", error: unknown, stack?: string) => WorkerError; | ||
//# sourceMappingURL=WorkerError.d.ts.map |
@@ -5,8 +5,9 @@ import * as Data from "effect/Data"; | ||
/** @internal */ | ||
export const WorkerError = (reason, error) => Data.struct({ | ||
export const WorkerError = (reason, error, stack) => Data.struct({ | ||
[WorkerErrorTypeId]: WorkerErrorTypeId, | ||
_tag: "WorkerError", | ||
reason, | ||
error | ||
error, | ||
stack | ||
}); | ||
//# sourceMappingURL=workerError.js.map |
{ | ||
"name": "@effect/platform", | ||
"version": "0.30.3", | ||
"version": "0.30.4", | ||
"description": "Unified interfaces for common platform-specific services", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -10,3 +10,7 @@ import * as Data from "effect/Data" | ||
/** @internal */ | ||
export const WorkerError = (reason: WorkerError_.WorkerError["reason"], error: unknown): WorkerError_.WorkerError => | ||
export const WorkerError = ( | ||
reason: WorkerError_.WorkerError["reason"], | ||
error: unknown, | ||
stack?: string | ||
): WorkerError_.WorkerError => | ||
Data.struct({ | ||
@@ -16,3 +20,4 @@ [WorkerErrorTypeId]: WorkerErrorTypeId, | ||
reason, | ||
error | ||
error, | ||
stack | ||
}) |
@@ -28,2 +28,3 @@ /** | ||
readonly error: unknown | ||
readonly stack?: string | ||
} | ||
@@ -35,3 +36,6 @@ | ||
*/ | ||
export const WorkerError: (reason: "spawn" | "decode" | "send" | "unknown", error: unknown) => WorkerError = | ||
internal.WorkerError | ||
export const WorkerError: ( | ||
reason: "spawn" | "decode" | "send" | "unknown", | ||
error: unknown, | ||
stack?: string | ||
) => WorkerError = internal.WorkerError |
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
1238311
22126