Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@effect/platform

Package Overview
Dependencies
Maintainers
3
Versions
399
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/platform - npm Package Compare versions

Comparing version 0.30.3 to 0.30.4

5

dist/cjs/internal/workerError.js

@@ -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

3

dist/dts/WorkerError.d.ts

@@ -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

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