@effect/io
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.unannotate = exports.stripSomeDefects = exports.stripFailures = exports.squashWith = exports.squash = exports.size = exports.sequential = exports.reduceWithContext = exports.reduce = exports.pretty = exports.parallel = exports.match = exports.map = exports.linearize = exports.keepDefects = exports.isStackAnnotation = exports.isSpanAnnotation = exports.isSequentialType = exports.isRuntimeException = exports.isParallelType = exports.isNoSuchElementException = exports.isInvalidCapacityError = exports.isInterruptedOnly = exports.isInterruptedException = exports.isInterrupted = exports.isInterruptType = exports.isIllegalArgumentException = exports.isFailure = exports.isFailType = exports.isEmptyType = exports.isEmpty = exports.isDieType = exports.isDie = exports.isCause = exports.isAnnotatedType = exports.interruptors = exports.interruptOption = exports.interrupt = exports.flatten = exports.flatMap = exports.find = exports.filter = exports.failures = exports.failureOrCause = exports.failureOption = exports.fail = exports.empty = exports.dieOption = exports.die = exports.defects = exports.defaultRenderer = exports.contains = exports.as = exports.annotated = exports.StackAnnotationTypeId = exports.StackAnnotation = exports.SpanAnnotationTypeId = exports.SpanAnnotation = exports.RuntimeExceptionTypeId = exports.RuntimeException = exports.NoSuchElementExceptionTypeId = exports.NoSuchElementException = exports.InvalidHubCapacityExceptionTypeId = exports.InvalidHubCapacityException = exports.InterruptedExceptionTypeId = exports.InterruptedException = exports.IllegalArgumentExceptionTypeId = exports.IllegalArgumentException = exports.CauseTypeId = void 0; | ||
var _Debug = /*#__PURE__*/require("@effect/io/Debug"); | ||
var FiberId = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/io/Fiber/Id")); | ||
@@ -1059,4 +1060,3 @@ var _stack = /*#__PURE__*/require("@effect/io/internal/stack"); | ||
const junction = Doc.cat(box.branch.down.heavy)(horizontalLines); | ||
const busTerminal = Doc.cat(box.terminal.down.heavy)(horizontalLines); | ||
const fiberBus = Doc.hcat([...times(junction, segment.all.length - 1), busTerminal]); | ||
const fiberBus = Doc.hcat([...times(junction, segment.all.length - 1), box.horizontal.heavy, box.horizontal.heavy, box.terminal.down.heavy]); | ||
const segments = segment.all.reduceRight((acc, curr) => [...prefixBlock(acc, verticalSeparator, verticalSeparator), ...prefixBlock(format(curr), spaces, spaces)], []); | ||
@@ -1131,3 +1131,3 @@ return [fiberBus, ...segments]; | ||
if (isStackAnnotation(annotation)) { | ||
return SafeEval.suspend(() => causeToSequential(cause.cause, renderer, span, Option.some(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)))); | ||
} | ||
@@ -1134,0 +1134,0 @@ return SafeEval.suspend(() => causeToSequential(cause.cause, renderer, span, stack)); |
{ | ||
"name": "@effect/io", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"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
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
3973554
66187