Socket
Socket
Sign inDemoInstall

@effect/io

Package Overview
Dependencies
Maintainers
3
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effect/io - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

2

Debug.js

@@ -15,3 +15,3 @@ "use strict";

traceExecutionEnabled: true,
traceExecutionLogEnabled: true,
traceExecutionLogEnabled: false,
traceExecutionEnabledInCause: true,

@@ -18,0 +18,0 @@ traceSpanEnabledInCause: true,

@@ -284,3 +284,3 @@ "use strict";

const stripFailures = self => {
return match(empty, () => empty, defect => die(defect), fiberId => interrupt(fiberId), (cause, annotation) => annotated(cause, annotation), (left, right) => sequential(left, right), (left, right) => parallel(left, right))(self);
return match(empty, () => empty, defect => die(defect), fiberId => interrupt(fiberId), (cause, annotation) => isEmptyType(cause) ? cause : annotated(cause, annotation), (left, right) => sequential(left, right), (left, right) => parallel(left, right))(self);
};

@@ -1130,3 +1130,3 @@ /** @internal */

if (isStackAnnotation(annotation)) {
return SafeEval.suspend(() => causeToSequential(cause.cause, renderer, span, Option.orElse(Option.some(annotation))(Option.map(parent => new StackAnnotation(annotation.stack.length < _Debug.runtimeDebug.traceStackLimit ? Chunk.take(_Debug.runtimeDebug.traceStackLimit)(Chunk.dedupeAdjacent(Chunk.concat(parent.stack)(annotation.stack))) : annotation.stack, annotation.execution.length < _Debug.runtimeDebug.traceExecutionLimit ? Chunk.take(_Debug.runtimeDebug.traceExecutionLimit)(Chunk.dedupeAdjacent(Chunk.concat(parent.execution)(annotation.execution))) : annotation.execution))(stack))));
return SafeEval.suspend(() => causeToSequential(cause.cause, renderer, span, Option.orElse(Option.some(annotation))(Option.map(parent => new StackAnnotation(annotation.stack.length < _Debug.runtimeDebug.traceStackLimit && parent.stack.length > 0 && (annotation.stack.length > 0 && Chunk.unsafeLast(parent.stack) !== Chunk.unsafeLast(annotation.stack) || annotation.stack.length === 0) ? Chunk.take(_Debug.runtimeDebug.traceStackLimit)(Chunk.dedupeAdjacent(Chunk.concat(parent.stack)(annotation.stack))) : annotation.stack, annotation.execution.length < _Debug.runtimeDebug.traceExecutionLimit && parent.execution.length > 0 && (annotation.execution.length > 0 && Chunk.unsafeLast(parent.execution) !== Chunk.unsafeLast(annotation.execution) || annotation.execution.length === 0) ? Chunk.take(_Debug.runtimeDebug.traceExecutionLimit)(Chunk.dedupeAdjacent(Chunk.concat(parent.execution)(annotation.execution))) : annotation.execution))(stack))));
}

@@ -1164,4 +1164,14 @@ return SafeEval.suspend(() => causeToSequential(cause.cause, renderer, span, stack));

/** @internal */
const UnEmptyCauseReducer = () => ({
emptyCase: () => empty,
failCase: (_, error) => fail(error),
dieCase: (_, defect) => die(defect),
interruptCase: (_, fiberId) => interrupt(fiberId),
annotatedCase: (_, cause, annotation) => isEmptyType(cause) ? cause : annotated(cause, annotation),
sequentialCase: (_, left, right) => isEmptyType(left) ? right : isEmptyType(right) ? left : sequential(left, right),
parallelCase: (_, left, right) => isEmptyType(left) ? right : isEmptyType(right) ? left : parallel(left, right)
});
/** @internal */
const pretty = (renderer = defaultRenderer) => {
return self => SafeEval.execute(prettySafe(self, renderer));
return self => SafeEval.execute(prettySafe(reduceWithContext(undefined, UnEmptyCauseReducer())(self), renderer));
};

@@ -1168,0 +1178,0 @@ /** @internal */

@@ -151,5 +151,4 @@ "use strict";

const threadName = self => {
const identifiers = Array.from(ids(self)).map(n => `${n}`).join(",");
const plural = identifiers.length > 1;
return `effect-fiber${plural ? "s" : ""}-${identifiers}`;
const identifiers = Array.from(ids(self)).map(n => `#${n}`).join(",");
return identifiers;
};

@@ -156,0 +155,0 @@ /** @internal */

{
"name": "@effect/io",
"version": "0.0.13",
"version": "0.0.14",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

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

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 too big to display

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