effect 4.0.0-beta.10 → 4.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Channel.d.ts +7 -7
- package/dist/Config.d.ts +157 -0
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +56 -1
- package/dist/Config.js.map +1 -1
- package/dist/Effect.d.ts +296 -8
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +72 -0
- package/dist/Effect.js.map +1 -1
- package/dist/ErrorReporter.d.ts +376 -0
- package/dist/ErrorReporter.d.ts.map +1 -0
- package/dist/ErrorReporter.js +246 -0
- package/dist/ErrorReporter.js.map +1 -0
- package/dist/Fiber.d.ts +2 -2
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +3 -6
- package/dist/Graph.js.map +1 -1
- package/dist/LogLevel.d.ts +5 -0
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +25 -91
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +2 -3
- package/dist/Logger.js.map +1 -1
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +0 -1
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +17 -0
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +17 -0
- package/dist/Random.js.map +1 -1
- package/dist/References.d.ts +3 -3
- package/dist/References.d.ts.map +1 -1
- package/dist/Schema.d.ts +3 -1
- package/dist/Schema.d.ts.map +1 -1
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +2 -1
- package/dist/SchemaAST.js.map +1 -1
- package/dist/Stream.d.ts +5 -5
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/effect.js +98 -33
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/hashMap.js +2 -2
- package/dist/internal/hashMap.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +86 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +112 -36
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +47 -10
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +33 -6
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +16 -0
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +14 -0
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/cli/CliOutput.js +37 -6
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +199 -7
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +116 -6
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +60 -2
- package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +11 -1
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +33 -8
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/CommandDescriptor.js +7 -2
- package/dist/unstable/cli/internal/completions/CommandDescriptor.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +10 -2
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +2 -2
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +27 -10
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +28 -4
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +3 -8
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +25 -31
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +4 -8
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +14 -27
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +37 -44
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +2 -2
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +5 -5
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +2 -1
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +2 -0
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/internal/preResponseHandler.d.ts +2 -0
- package/dist/unstable/http/internal/preResponseHandler.d.ts.map +1 -0
- package/dist/unstable/http/internal/preResponseHandler.js +10 -0
- package/dist/unstable/http/internal/preResponseHandler.js.map +1 -0
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +11 -0
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +29 -9
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +7 -4
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +6 -0
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +22 -1
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +13 -0
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +14 -0
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +34 -9
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +0 -7
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +9 -10
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +6 -0
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +131 -0
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +1 -1
- package/src/Channel.ts +9 -9
- package/src/Config.ts +171 -9
- package/src/Effect.ts +315 -8
- package/src/ErrorReporter.ts +459 -0
- package/src/Fiber.ts +9 -2
- package/src/Graph.ts +16 -6
- package/src/LogLevel.ts +6 -0
- package/src/Logger.ts +28 -95
- package/src/Queue.ts +0 -1
- package/src/Random.ts +18 -0
- package/src/References.ts +4 -4
- package/src/Schema.ts +1 -1
- package/src/SchemaAST.ts +2 -1
- package/src/Stream.ts +7 -7
- package/src/index.ts +5 -0
- package/src/internal/effect.ts +205 -49
- package/src/internal/hashMap.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +117 -16
- package/src/unstable/ai/McpSchema.ts +57 -11
- package/src/unstable/ai/McpServer.ts +44 -6
- package/src/unstable/ai/Tool.ts +15 -0
- package/src/unstable/cli/CliOutput.ts +45 -6
- package/src/unstable/cli/Command.ts +298 -11
- package/src/unstable/cli/HelpDoc.ts +68 -2
- package/src/unstable/cli/internal/command.ts +47 -11
- package/src/unstable/cli/internal/completions/CommandDescriptor.ts +7 -2
- package/src/unstable/cli/internal/parser.ts +11 -3
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +2 -2
- package/src/unstable/http/Headers.ts +28 -13
- package/src/unstable/http/HttpClient.ts +45 -10
- package/src/unstable/http/HttpEffect.ts +30 -44
- package/src/unstable/http/HttpMiddleware.ts +4 -14
- package/src/unstable/http/HttpServerError.ts +42 -45
- package/src/unstable/http/HttpServerRespondable.ts +6 -6
- package/src/unstable/http/HttpServerResponse.ts +3 -1
- package/src/unstable/http/internal/preResponseHandler.ts +15 -0
- package/src/unstable/httpapi/HttpApiBuilder.ts +2 -1
- package/src/unstable/httpapi/HttpApiError.ts +30 -9
- package/src/unstable/observability/OtlpLogger.ts +9 -5
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +29 -1
- package/src/unstable/rpc/RpcSchema.ts +17 -0
- package/src/unstable/rpc/RpcSerialization.ts +44 -9
- package/src/unstable/rpc/RpcServer.ts +14 -19
- package/src/unstable/workflow/WorkflowEngine.ts +178 -0
package/dist/internal/effect.js
CHANGED
|
@@ -201,7 +201,8 @@ export const causePrettyErrors = self => {
|
|
|
201
201
|
Error.stackTraceLimit = prevStackLimit;
|
|
202
202
|
return errors;
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const causePrettyError = (original, annotations) => {
|
|
205
206
|
const kind = typeof original;
|
|
206
207
|
let error;
|
|
207
208
|
if (original && kind === "object") {
|
|
@@ -322,17 +323,31 @@ const fiberIdStore = {
|
|
|
322
323
|
/** @internal */
|
|
323
324
|
export const getCurrentFiber = () => globalThis[currentFiberTypeId];
|
|
324
325
|
const keepAlive = /*#__PURE__*/(() => {
|
|
326
|
+
let isAvailable;
|
|
327
|
+
const start = () => {
|
|
328
|
+
if (isAvailable === true) return setInterval(constVoid, 2_147_483_647);else if (isAvailable === false) return undefined;
|
|
329
|
+
try {
|
|
330
|
+
const running = setInterval(constVoid, 2_147_483_647);
|
|
331
|
+
isAvailable = true;
|
|
332
|
+
return running;
|
|
333
|
+
} catch {
|
|
334
|
+
isAvailable = false;
|
|
335
|
+
return undefined;
|
|
336
|
+
}
|
|
337
|
+
};
|
|
325
338
|
let count = 0;
|
|
326
339
|
let running = undefined;
|
|
327
340
|
return {
|
|
328
341
|
increment() {
|
|
329
342
|
count++;
|
|
330
|
-
running
|
|
343
|
+
if (running === undefined) {
|
|
344
|
+
running = start();
|
|
345
|
+
}
|
|
331
346
|
},
|
|
332
347
|
decrement() {
|
|
333
348
|
count--;
|
|
334
349
|
if (count === 0 && running !== undefined) {
|
|
335
|
-
|
|
350
|
+
clearInterval(running);
|
|
336
351
|
running = undefined;
|
|
337
352
|
}
|
|
338
353
|
}
|
|
@@ -598,8 +613,10 @@ export const fiberJoinAll = self => callback(resume => {
|
|
|
598
613
|
/** @internal */
|
|
599
614
|
export const fiberInterrupt = self => withFiber(fiber => fiberInterruptAs(self, fiber.id));
|
|
600
615
|
/** @internal */
|
|
601
|
-
export const fiberInterruptAs = /*#__PURE__*/dual(
|
|
602
|
-
|
|
616
|
+
export const fiberInterruptAs = /*#__PURE__*/dual(args => hasProperty(args[0], FiberTypeId), (self, fiberId, annotations) => withFiber(parent => {
|
|
617
|
+
let ann = fiberStackAnnotations(parent);
|
|
618
|
+
ann = ann && annotations ? ServiceMap.merge(ann, annotations) : ann ?? annotations;
|
|
619
|
+
self.interruptUnsafe(fiberId, ann);
|
|
603
620
|
return asVoid(fiberAwait(self));
|
|
604
621
|
}));
|
|
605
622
|
/** @internal */
|
|
@@ -1117,33 +1134,17 @@ export const updateServices = /*#__PURE__*/dual(2, (self, f) => withFiber(fiber
|
|
|
1117
1134
|
const nextServices = f(prev);
|
|
1118
1135
|
if (prev === nextServices) return self;
|
|
1119
1136
|
fiber.setServices(nextServices);
|
|
1120
|
-
const newServices = new Map();
|
|
1121
|
-
for (const [key, value] of fiber.services.mapUnsafe) {
|
|
1122
|
-
if (!prev.mapUnsafe.has(key) || value !== prev.mapUnsafe.get(key)) {
|
|
1123
|
-
newServices.set(key, value);
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
1137
|
return onExitPrimitive(self, () => {
|
|
1127
|
-
|
|
1128
|
-
for (const [key, value] of newServices) {
|
|
1129
|
-
if (value !== map.get(key)) continue;
|
|
1130
|
-
if (prev.mapUnsafe.has(key)) {
|
|
1131
|
-
map.set(key, prev.mapUnsafe.get(key));
|
|
1132
|
-
} else {
|
|
1133
|
-
map.delete(key);
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
fiber.setServices(ServiceMap.makeUnsafe(map));
|
|
1138
|
+
fiber.setServices(prev);
|
|
1137
1139
|
return undefined;
|
|
1138
1140
|
});
|
|
1139
1141
|
}));
|
|
1140
1142
|
/** @internal */
|
|
1141
|
-
export const updateService = /*#__PURE__*/dual(3, (self, service, f) =>
|
|
1142
|
-
const prev = ServiceMap.getUnsafe(
|
|
1143
|
+
export const updateService = /*#__PURE__*/dual(3, (self, service, f) => updateServices(self, s => {
|
|
1144
|
+
const prev = ServiceMap.getUnsafe(s, service);
|
|
1143
1145
|
const next = f(prev);
|
|
1144
|
-
if (prev === next) return
|
|
1145
|
-
|
|
1146
|
-
return onExit(self, () => sync(() => fiber.setServices(ServiceMap.add(fiber.services, service, prev))));
|
|
1146
|
+
if (prev === next) return s;
|
|
1147
|
+
return ServiceMap.add(s, service, next);
|
|
1147
1148
|
}));
|
|
1148
1149
|
/** @internal */
|
|
1149
1150
|
export const services = () => getServiceMap;
|
|
@@ -1162,11 +1163,10 @@ export const provideService = function () {
|
|
|
1162
1163
|
}
|
|
1163
1164
|
return dual(3, (self, service, impl) => provideServiceImpl(self, service, impl)).apply(this, arguments);
|
|
1164
1165
|
};
|
|
1165
|
-
const provideServiceImpl = (self, service, implementation) =>
|
|
1166
|
-
const prev =
|
|
1167
|
-
if (prev
|
|
1168
|
-
|
|
1169
|
-
return onExit(self, () => sync(() => fiber.setServices(ServiceMap.addOrOmit(fiber.services, service, prev))));
|
|
1166
|
+
const provideServiceImpl = (self, service, implementation) => updateServices(self, s => {
|
|
1167
|
+
const prev = s.mapUnsafe.get(service.key);
|
|
1168
|
+
if (prev === implementation) return s;
|
|
1169
|
+
return ServiceMap.add(s, service, implementation);
|
|
1170
1170
|
});
|
|
1171
1171
|
/** @internal */
|
|
1172
1172
|
export const provideServiceEffect = /*#__PURE__*/dual(3, (self, service, acquire) => flatMap(acquire, implementation => provideService(self, service, implementation)));
|
|
@@ -1569,11 +1569,11 @@ export const scope = /*#__PURE__*/scopeTag.asEffect();
|
|
|
1569
1569
|
export const provideScope = /*#__PURE__*/provideService(scopeTag);
|
|
1570
1570
|
/** @internal */
|
|
1571
1571
|
export const scoped = self => withFiber(fiber => {
|
|
1572
|
-
const prev =
|
|
1572
|
+
const prev = fiber.services;
|
|
1573
1573
|
const scope = scopeMakeUnsafe();
|
|
1574
1574
|
fiber.setServices(ServiceMap.add(fiber.services, scopeTag, scope));
|
|
1575
1575
|
return onExitPrimitive(self, exit => {
|
|
1576
|
-
fiber.setServices(
|
|
1576
|
+
fiber.setServices(prev);
|
|
1577
1577
|
return scopeCloseUnsafe(scope, exit);
|
|
1578
1578
|
});
|
|
1579
1579
|
});
|
|
@@ -1735,6 +1735,15 @@ export const all = (arg, options) => {
|
|
|
1735
1735
|
/** @internal */
|
|
1736
1736
|
export const partition = /*#__PURE__*/dual(args => isIterable(args[0]) && !isEffect(args[0]), (elements, f, options) => map(forEach(elements, (a, i) => result(f(a, i)), options), results => Arr.partitionMap(results, identity)));
|
|
1737
1737
|
/** @internal */
|
|
1738
|
+
export const validate = /*#__PURE__*/dual(args => isIterable(args[0]) && !isEffect(args[0]), (elements, f, options) => flatMap(partition(elements, f, {
|
|
1739
|
+
concurrency: options?.concurrency
|
|
1740
|
+
}), ([excluded, satisfying]) => {
|
|
1741
|
+
if (Arr.isArrayNonEmpty(excluded)) {
|
|
1742
|
+
return fail(excluded);
|
|
1743
|
+
}
|
|
1744
|
+
return options?.discard ? void_ : succeed(satisfying);
|
|
1745
|
+
}));
|
|
1746
|
+
/** @internal */
|
|
1738
1747
|
export const whileLoop = /*#__PURE__*/makePrimitive({
|
|
1739
1748
|
op: "While",
|
|
1740
1749
|
[contA](value, fiber) {
|
|
@@ -2539,6 +2548,38 @@ export const LogToStderr = /*#__PURE__*/ServiceMap.Reference("effect/Logger/LogT
|
|
|
2539
2548
|
defaultValue: constFalse
|
|
2540
2549
|
});
|
|
2541
2550
|
/** @internal */
|
|
2551
|
+
export const annotateLogsScoped = function () {
|
|
2552
|
+
const entries = typeof arguments[0] === "string" ? [[arguments[0], arguments[1]]] : Object.entries(arguments[0]);
|
|
2553
|
+
return uninterruptible(withFiber(fiber => {
|
|
2554
|
+
const prev = fiber.getRef(CurrentLogAnnotations);
|
|
2555
|
+
const next = {
|
|
2556
|
+
...prev
|
|
2557
|
+
};
|
|
2558
|
+
for (let i = 0; i < entries.length; i++) {
|
|
2559
|
+
const [key, value] = entries[i];
|
|
2560
|
+
next[key] = value;
|
|
2561
|
+
}
|
|
2562
|
+
fiber.setServices(ServiceMap.add(fiber.services, CurrentLogAnnotations, next));
|
|
2563
|
+
return scopeAddFinalizerExit(ServiceMap.getUnsafe(fiber.services, scopeTag), _ => {
|
|
2564
|
+
const current = fiber.getRef(CurrentLogAnnotations);
|
|
2565
|
+
const next = {
|
|
2566
|
+
...current
|
|
2567
|
+
};
|
|
2568
|
+
for (let i = 0; i < entries.length; i++) {
|
|
2569
|
+
const [key, value] = entries[i];
|
|
2570
|
+
if (current[key] !== value) continue;
|
|
2571
|
+
if (key in prev) {
|
|
2572
|
+
next[key] = prev[key];
|
|
2573
|
+
} else {
|
|
2574
|
+
delete next[key];
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
fiber.setServices(ServiceMap.add(fiber.services, CurrentLogAnnotations, next));
|
|
2578
|
+
return void_;
|
|
2579
|
+
});
|
|
2580
|
+
}));
|
|
2581
|
+
};
|
|
2582
|
+
/** @internal */
|
|
2542
2583
|
export const LoggerTypeId = "~effect/Logger";
|
|
2543
2584
|
const LoggerProto = {
|
|
2544
2585
|
[LoggerTypeId]: {
|
|
@@ -2845,4 +2886,28 @@ export function interruptChildrenPatch() {
|
|
|
2845
2886
|
const undefined_ = /*#__PURE__*/succeed(undefined);
|
|
2846
2887
|
/** @internal */
|
|
2847
2888
|
export { undefined_ as undefined };
|
|
2889
|
+
// ----------------------------------------------------------------------------
|
|
2890
|
+
// ErrorReporter
|
|
2891
|
+
// ----------------------------------------------------------------------------
|
|
2892
|
+
/** @internal */
|
|
2893
|
+
export const CurrentErrorReporters = /*#__PURE__*/ServiceMap.Reference("effect/ErrorReporter/CurrentErrorReporters", {
|
|
2894
|
+
defaultValue: () => new Set()
|
|
2895
|
+
});
|
|
2896
|
+
/** @internal */
|
|
2897
|
+
export const withErrorReporting = /*#__PURE__*/dual(args => isEffect(args[0]), (self, options) => onError(self, cause => withFiber(fiber => {
|
|
2898
|
+
reportCauseUnsafe(fiber, cause, options?.defectsOnly);
|
|
2899
|
+
return void_;
|
|
2900
|
+
})));
|
|
2901
|
+
/** @internal */
|
|
2902
|
+
export const reportCauseUnsafe = (fiber, cause, defectsOnly) => {
|
|
2903
|
+
const reporters = fiber.getRef(CurrentErrorReporters);
|
|
2904
|
+
if (reporters.size === 0) return;
|
|
2905
|
+
if (defectsOnly && !hasDies(cause)) return;
|
|
2906
|
+
const opts = {
|
|
2907
|
+
cause,
|
|
2908
|
+
fiber,
|
|
2909
|
+
timestamp: fiber.getRef(ClockRef).currentTimeNanosUnsafe()
|
|
2910
|
+
};
|
|
2911
|
+
reporters.forEach(reporter => reporter.report(opts));
|
|
2912
|
+
};
|
|
2848
2913
|
//# sourceMappingURL=effect.js.map
|