@reventlessdev/reventless-core 3.0.0-alpha.330 → 3.0.0-alpha.332
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/CHANGELOG.md +14 -0
- package/package.json +8 -8
- package/src/CommandSent.res.mjs +2 -2
- package/src/Projection.res.mjs +7 -7
- package/src/RequestContext.res.mjs +1 -1
- package/src/adapter/Runtime/AggregateRuntime_Builder_Common.res.mjs +2 -2
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_Single.res.mjs +2 -2
- package/src/adapter/Runtime/Runtime.res.mjs +8 -7
- package/src/admin/Platform_Admin_Callback.res.mjs +4 -3
- package/src/components/Aggregate/Aggregate_Callback.res.mjs +23 -22
- package/src/components/AutomationSlice/AutomationSlice_Builder.res.mjs +5 -4
- package/src/components/AutomationSlice/AutomationSlice_Callback.res.mjs +1 -1
- package/src/components/CommandGenerator/CommandGenerator_Callback.res.mjs +9 -8
- package/src/components/CommandTopic/CommandTopic_Builder.res.mjs +5 -4
- package/src/components/CommandTopic/CommandTopic_Callback.res.mjs +9 -7
- package/src/components/CommandTopic/CommandTopic_Helpers.res.mjs +2 -2
- package/src/components/CommandTopic/CommandTopic_Operations.res.mjs +2 -2
- package/src/components/Counter/Counter_Callback.res.mjs +4 -3
- package/src/components/Counter/Counter_Operations.res.mjs +1 -1
- package/src/components/DcbEventLog/DcbEventLog_Operations.res.mjs +5 -4
- package/src/components/EventCollector/EventCollector_Builder.res.mjs +1 -1
- package/src/components/EventLog/EventLog_Operations.res +1 -1
- package/src/components/EventLog/EventLog_Operations.res.mjs +9 -8
- package/src/components/EventMapper/EventMapper_Callback.res.mjs +11 -10
- package/src/components/EventTopic/EventTopic_Operations.res.mjs +2 -2
- package/src/components/Extension/Extension_Operations.res.mjs +2 -2
- package/src/components/ExtensionPoint/ExtensionPoint_Callback.res.mjs +3 -3
- package/src/components/ExtensionPoint/ExtensionPoint_Operations.res.mjs +2 -2
- package/src/components/InboundTranslationSlice/InboundTranslationSlice_Callback.res.mjs +1 -1
- package/src/components/InboundTranslationSlice/InboundTranslationSlice_Webhook.res.mjs +2 -2
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Builder.res.mjs +5 -4
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Callback.res.mjs +1 -1
- package/src/components/QueryDb/QueryDb_Operations.res.mjs +1 -1
- package/src/components/ReadModel/ReadModel_Callback.res.mjs +7 -6
- package/src/components/SideEffectHandler/SideEffectHandler_Callback.res.mjs +7 -6
- package/src/components/StateChangeSlice/StateChangeSlice_Builder.res.mjs +5 -4
- package/src/components/StateChangeSlice/StateChangeSlice_Callback.res.mjs +19 -18
- package/src/components/StateViewSlice/StateViewSlice_Builder.res.mjs +9 -8
- package/src/components/StateViewSlice/StateViewSlice_Callback.res.mjs +2 -2
- package/src/plugin/component/Plugin_Callback.res.mjs +5 -4
- package/src/plugin/connect/PluginExtensionPoint_Plugin.res.mjs +1 -1
- package/src/plugin/lifecycle/PluginSpec.res +8 -3
- package/src/plugin/lifecycle/PluginSpec.res.mjs +8 -4
- package/src/util/CommandPublisher.res.mjs +2 -2
- package/src/util/CsvStream.res +8 -4
- package/src/util/CsvStream.res.mjs +7 -6
- package/src/util/EffectLogger.res +26 -46
- package/src/util/EffectLogger.res.mjs +24 -21
- package/src/util/FTPHandler.res.mjs +1 -1
- package/src/util/ScheduleOps.res.mjs +2 -2
- package/src/util/ScheduleTime.res.mjs +5 -5
- package/src/util/Util_AdapterRuntime.res.mjs +2 -2
- package/src/util/Util_Promise.res.mjs +2 -2
- package/src/util/Util_QueryDbRuntime.res.mjs +2 -2
- package/src/util/Validation.res.mjs +2 -2
- package/tests/adapter/RuntimeExtensionHookReachTest.res.mjs +1 -1
- package/tests/aggregate/AggregateCacheTest.res.mjs +1 -1
- package/tests/aggregate/AggregateCallbackTest.res.mjs +1 -1
- package/tests/aggregate/AggregateCausationTest.res.mjs +1 -1
- package/tests/aggregate/AggregateConflictTest.res.mjs +1 -1
- package/tests/aggregate/AggregateRejectionTest.res.mjs +1 -1
- package/tests/aggregate/AggregateRepeatTest.res.mjs +1 -1
- package/tests/aggregate/AggregateSnapshotTest.res.mjs +10 -11
- package/tests/commandgenerator/CommandGeneratorCallbackTest.res.mjs +1 -1
- package/tests/commandgenerator/OwnerActingTest.res.mjs +1 -1
- package/tests/commandgenerator/OwnerStampingTest.res.mjs +1 -1
- package/tests/commandtopic/CommandOutcomeHookTest.res.mjs +1 -1
- package/tests/commandtopic/CommandTopicCallbackFixtures.res.mjs +1 -1
- package/tests/commandtopic/CommandTopicCallbackTest.res.mjs +1 -1
- package/tests/commandtopic/CommandTopicHelpersRejectionTest.res.mjs +1 -1
- package/tests/counter/CounterFixtures.res.mjs +1 -1
- package/tests/dcb/DcbPiiSliceTest.res.mjs +1 -1
- package/tests/dcb/DcbStateChangeSliceTest.res.mjs +1 -1
- package/tests/eventmapper/EventMapperCallbackTest.res.mjs +1 -1
- package/tests/extensionpoint/ExtensionPointCallbackTest.res.mjs +1 -1
- package/tests/logger/ComponentLineIdsTest.res.mjs +1 -1
- package/tests/logger/LogFormatTest.res.mjs +4 -3
- package/tests/logger/LoggerSinkTest.res.mjs +1 -1
- package/tests/querydb/QueryDbOperationsTest.res.mjs +2 -2
- package/tests/querydb/RowChangeTest.res.mjs +2 -2
- package/tests/querydb/TaggedUnionStampTest.res.mjs +2 -2
- package/tests/sideeffecthandler/SideEffectHandlerCallbackTest.res.mjs +1 -1
- package/tests/util/CsvStreamTest.res.mjs +4 -4
- package/tests/util/ScheduleTimeTest.res.mjs +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
4
5
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
5
|
-
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Effect$1 from "effect/Effect";
|
|
6
7
|
import * as Logger from "effect/Logger";
|
|
7
|
-
import * as
|
|
8
|
-
import * as LogLevel from "effect/LogLevel";
|
|
8
|
+
import * as References from "effect/References";
|
|
9
9
|
import * as Logger$ReventlessCore from "./Logger.res.mjs";
|
|
10
10
|
|
|
11
11
|
function _messageToString(msg) {
|
|
@@ -29,27 +29,27 @@ function _messageToString(msg) {
|
|
|
29
29
|
function _effectMin(comp, param) {
|
|
30
30
|
let match = Logger$ReventlessCore.minLevelFor(undefined, comp, undefined);
|
|
31
31
|
if (match === undefined) {
|
|
32
|
-
return
|
|
32
|
+
return "None";
|
|
33
33
|
}
|
|
34
34
|
switch (match) {
|
|
35
35
|
case "Debug" :
|
|
36
|
-
return
|
|
36
|
+
return "Debug";
|
|
37
37
|
case "Info" :
|
|
38
|
-
return
|
|
38
|
+
return "Info";
|
|
39
39
|
case "Warn" :
|
|
40
|
-
return
|
|
40
|
+
return "Warn";
|
|
41
41
|
case "Error" :
|
|
42
|
-
return
|
|
42
|
+
return "Error";
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
function
|
|
47
|
-
if (
|
|
46
|
+
function levelOf(level) {
|
|
47
|
+
if (level === "Fatal" || level === "Error") {
|
|
48
48
|
return "Error";
|
|
49
|
-
} else if (
|
|
50
|
-
return "Warn";
|
|
51
|
-
} else if (ordinal >= 20000) {
|
|
49
|
+
} else if (level === "Info") {
|
|
52
50
|
return "Info";
|
|
51
|
+
} else if (level === "Warn") {
|
|
52
|
+
return "Warn";
|
|
53
53
|
} else {
|
|
54
54
|
return "Debug";
|
|
55
55
|
}
|
|
@@ -58,7 +58,7 @@ function ordinalToLevel(ordinal) {
|
|
|
58
58
|
function install() {
|
|
59
59
|
Logger.defaultLogger.log = opts => {
|
|
60
60
|
let msg = _messageToString(opts.message);
|
|
61
|
-
let level =
|
|
61
|
+
let level = levelOf(opts.logLevel);
|
|
62
62
|
let comp = {
|
|
63
63
|
contents: undefined
|
|
64
64
|
};
|
|
@@ -69,7 +69,10 @@ function install() {
|
|
|
69
69
|
contents: undefined
|
|
70
70
|
};
|
|
71
71
|
let extra = {};
|
|
72
|
-
|
|
72
|
+
Object.entries(opts.fiber.getRef(References.CurrentLogAnnotations)).map(param => [
|
|
73
|
+
param[0],
|
|
74
|
+
param[1]
|
|
75
|
+
]).forEach(param => {
|
|
73
76
|
let v = param[1];
|
|
74
77
|
let k = param[0];
|
|
75
78
|
switch (k) {
|
|
@@ -157,7 +160,7 @@ function idsOfJson(json) {
|
|
|
157
160
|
function _annotate(eff, comp, detail, ids) {
|
|
158
161
|
let one = (eff, key, value) => {
|
|
159
162
|
if (value !== undefined) {
|
|
160
|
-
return Effect.annotateLogs(eff, key, value);
|
|
163
|
+
return Effect$1.annotateLogs(eff, key, value);
|
|
161
164
|
} else {
|
|
162
165
|
return eff;
|
|
163
166
|
}
|
|
@@ -171,19 +174,19 @@ function _annotate(eff, comp, detail, ids) {
|
|
|
171
174
|
}
|
|
172
175
|
|
|
173
176
|
function logInfo(comp, detail, ids, msg) {
|
|
174
|
-
return
|
|
177
|
+
return Effect.withMinimumLogLevel(_annotate(Effect$1.logInfo(msg), comp, detail, ids), _effectMin(comp, undefined));
|
|
175
178
|
}
|
|
176
179
|
|
|
177
180
|
function logWarn(comp, detail, ids, msg) {
|
|
178
|
-
return
|
|
181
|
+
return Effect.withMinimumLogLevel(_annotate(Effect$1.logWarning(msg), comp, detail, ids), _effectMin(comp, undefined));
|
|
179
182
|
}
|
|
180
183
|
|
|
181
184
|
function logError(comp, detail, ids, msg) {
|
|
182
|
-
return
|
|
185
|
+
return Effect.withMinimumLogLevel(_annotate(Effect$1.logError(msg), comp, detail, ids), _effectMin(comp, undefined));
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
function logDebug(comp, detail, ids, msg) {
|
|
186
|
-
return
|
|
189
|
+
return Effect.withMinimumLogLevel(_annotate(Effect$1.logDebug(msg), comp, detail, ids), _effectMin(comp, undefined));
|
|
187
190
|
}
|
|
188
191
|
|
|
189
192
|
let setDefaultMinLevel = Logger$ReventlessCore.setDefaultMinLevel;
|
|
@@ -192,7 +195,7 @@ export {
|
|
|
192
195
|
_messageToString,
|
|
193
196
|
setDefaultMinLevel,
|
|
194
197
|
_effectMin,
|
|
195
|
-
|
|
198
|
+
levelOf,
|
|
196
199
|
install,
|
|
197
200
|
idsOf,
|
|
198
201
|
idsOfSource,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import * as SSH2 from "@reventlessdev/rescript-ssh2/src/SSH2.res.mjs";
|
|
4
4
|
import * as Ssh2 from "ssh2";
|
|
5
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
5
6
|
import * as Nodestream from "node:stream";
|
|
6
7
|
import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.js";
|
|
7
8
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
8
|
-
import * as Effect from "effect/Effect";
|
|
9
9
|
import * as FTP$ReventlessCore from "./FTP.res.mjs";
|
|
10
10
|
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.js";
|
|
11
11
|
import * as Message$ReventlessCore from "../Message.res.mjs";
|
|
@@ -47,7 +47,7 @@ function create(scheduler, channelResources, resourceNaming) {
|
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
let errMsg = Exit.match(exit, cause => Cause.pretty(cause), () => "unknown");
|
|
50
|
-
Effect
|
|
50
|
+
Effect.runSync(EffectLogger$ReventlessCore.logError("ScheduleOps-ReventlessCore", undefined, undefined, `create: couldn't create ` + Stdlib_Option.getOr(JSON.stringify(schedule$1), "") + `: ` + errMsg));
|
|
51
51
|
throw {
|
|
52
52
|
RE_EXN_ID: ScheduleNotCreated,
|
|
53
53
|
_1: schedule$1,
|
|
@@ -65,7 +65,7 @@ function $$delete(scheduler, channelResources, resourceNaming) {
|
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
let errMsg = Exit.match(exit, cause => Cause.pretty(cause), () => "unknown");
|
|
68
|
-
Effect
|
|
68
|
+
Effect.runSync(EffectLogger$ReventlessCore.logError("ScheduleOps-ReventlessCore", undefined, undefined, `delete: couldn't delete ` + name$1 + `: ` + errMsg));
|
|
69
69
|
throw {
|
|
70
70
|
RE_EXN_ID: ScheduleNotDeleted,
|
|
71
71
|
_1: name$1,
|
|
@@ -159,8 +159,8 @@ function localTimeOf(millis, zone) {
|
|
|
159
159
|
year: parts.year,
|
|
160
160
|
month: parts.month,
|
|
161
161
|
day: parts.day,
|
|
162
|
-
hour: parts.
|
|
163
|
-
minute: parts.
|
|
162
|
+
hour: parts.hour,
|
|
163
|
+
minute: parts.minute
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -221,8 +221,8 @@ function instantOf(param, zone) {
|
|
|
221
221
|
year: year,
|
|
222
222
|
month: month,
|
|
223
223
|
day: day,
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
hour: param.hour,
|
|
225
|
+
minute: param.minute
|
|
226
226
|
}, zone);
|
|
227
227
|
if (dateTime !== undefined) {
|
|
228
228
|
return DateTime$1.toEpochMillis(Primitive_option.valFromOption(dateTime));
|
|
@@ -300,7 +300,7 @@ function nextOnWallClock(cron, after, hour, minute, zone) {
|
|
|
300
300
|
let from = _from;
|
|
301
301
|
let next = Cron.next(cron, new Date(from)).getTime();
|
|
302
302
|
let parts = DateTime$1.toParts(DateTime.makeZonedFromMillis(next, zone));
|
|
303
|
-
if (parts.
|
|
303
|
+
if (parts.hour === hour && parts.minute === minute || tries >= 8) {
|
|
304
304
|
return next;
|
|
305
305
|
}
|
|
306
306
|
_tries = tries + 1 | 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Stdlib_JsError from "@rescript/runtime/lib/es6/Stdlib_JsError.js";
|
|
6
6
|
import * as EffectLogger$ReventlessCore from "./EffectLogger.res.mjs";
|
|
7
7
|
|
|
@@ -39,4 +39,4 @@ export {
|
|
|
39
39
|
findResource,
|
|
40
40
|
findResolvedResource,
|
|
41
41
|
}
|
|
42
|
-
/*
|
|
42
|
+
/* Effect Not a pure module */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Stdlib_Math from "@rescript/runtime/lib/es6/Stdlib_Math.js";
|
|
4
5
|
import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.js";
|
|
5
6
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.js";
|
|
8
8
|
import * as EffectLogger$ReventlessCore from "./EffectLogger.res.mjs";
|
|
9
9
|
|
|
@@ -102,4 +102,4 @@ export {
|
|
|
102
102
|
finishTimeout,
|
|
103
103
|
finishRandomTimeout,
|
|
104
104
|
}
|
|
105
|
-
/*
|
|
105
|
+
/* Effect Not a pure module */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as EffectLogger$ReventlessCore from "./EffectLogger.res.mjs";
|
|
6
6
|
|
|
7
7
|
function getRuntimeResource(allQueryDbs, queryDbName) {
|
|
@@ -16,4 +16,4 @@ function getRuntimeResource(allQueryDbs, queryDbName) {
|
|
|
16
16
|
export {
|
|
17
17
|
getRuntimeResource,
|
|
18
18
|
}
|
|
19
|
-
/*
|
|
19
|
+
/* Effect Not a pure module */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stdlib_Promise from "@rescript/runtime/lib/es6/Stdlib_Promise.js";
|
|
5
5
|
import * as Util_Sury$Reventless from "@reventlessdev/reventless-spec/src/util/Util_Sury.res.mjs";
|
|
6
6
|
import * as EffectLogger$ReventlessCore from "./EffectLogger.res.mjs";
|
|
@@ -178,4 +178,4 @@ export {
|
|
|
178
178
|
$less$plus$question$great,
|
|
179
179
|
toResult,
|
|
180
180
|
}
|
|
181
|
-
/*
|
|
181
|
+
/* Effect Not a pure module */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
5
|
import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.js";
|
|
5
6
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.js";
|
|
8
8
|
import * as RuntimeExtension$ReventlessCore from "../../src/adapter/RuntimeExtension/RuntimeExtension.res.mjs";
|
|
9
9
|
import * as CommandGenerator_Callback$ReventlessCore from "../../src/components/CommandGenerator/CommandGenerator_Callback.res.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
5
|
import * as Stdlib_Array from "@rescript/runtime/lib/es6/Stdlib_Array.js";
|
|
5
6
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Stream from "effect/Stream";
|
|
8
8
|
import * as Aggregate_Callback$ReventlessCore from "../../src/components/Aggregate/Aggregate_Callback.res.mjs";
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stream from "effect/Stream";
|
|
5
5
|
import * as AggregateFixtures$ReventlessCore from "./AggregateFixtures.res.mjs";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stream from "effect/Stream";
|
|
5
5
|
import * as AggregateFixtures$ReventlessCore from "./AggregateFixtures.res.mjs";
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
5
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
5
|
-
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as Stream from "effect/Stream";
|
|
7
7
|
import * as Aggregate_Callback$ReventlessCore from "../../src/components/Aggregate/Aggregate_Callback.res.mjs";
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stream from "effect/Stream";
|
|
5
5
|
import * as AggregateFixtures$ReventlessCore from "./AggregateFixtures.res.mjs";
|
|
6
6
|
import * as CommandTopic_Helpers$ReventlessCore from "../../src/components/CommandTopic/CommandTopic_Helpers.res.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
5
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
5
|
-
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as Stream from "effect/Stream";
|
|
7
7
|
import * as Message$ReventlessCore from "../../src/Message.res.mjs";
|
|
8
8
|
import * as Aggregate_Callback$ReventlessCore from "../../src/components/Aggregate/Aggregate_Callback.res.mjs";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
5
5
|
import * as Stdlib_Dict from "@rescript/runtime/lib/es6/Stdlib_Dict.js";
|
|
6
6
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
7
|
-
import * as
|
|
8
|
-
import * as Stream$1 from "effect/Stream";
|
|
7
|
+
import * as Stream from "effect/Stream";
|
|
9
8
|
import * as Util_Sury$Reventless from "@reventlessdev/reventless-spec/src/util/Util_Sury.res.mjs";
|
|
10
9
|
import * as Aggregate_Callback$ReventlessCore from "../../src/components/Aggregate/Aggregate_Callback.res.mjs";
|
|
11
10
|
|
|
@@ -146,7 +145,7 @@ function makeMockEL() {
|
|
|
146
145
|
let fromSeq = fromSeqOpt !== undefined ? fromSeqOpt : 0;
|
|
147
146
|
replayCount.contents = replayCount.contents + 1 | 0;
|
|
148
147
|
lastFromSeq.contents = fromSeq;
|
|
149
|
-
return Stream
|
|
148
|
+
return Stream.fromIterable(eventsFor(id).map(e => e.event).filter((param, i) => i >= fromSeq));
|
|
150
149
|
};
|
|
151
150
|
let latestSnapshotFn = async id => {
|
|
152
151
|
snapReads.contents = snapReads.contents + 1 | 0;
|
|
@@ -215,8 +214,8 @@ function MakeOps(B) {
|
|
|
215
214
|
let eventLog_append = mock.appendFn;
|
|
216
215
|
let eventLog_replay = async id => await Effect.runPromise(Stream.runCollect(mock.replayStreamFn(id, undefined)));
|
|
217
216
|
let eventLog_replayStream = mock.replayStreamFn;
|
|
218
|
-
let eventLog_replayEnvelopes = (id, param) => Stream
|
|
219
|
-
let eventLog_appendStream = (_startingSeqNr, _id, stream) => Stream
|
|
217
|
+
let eventLog_replayEnvelopes = (id, param) => Stream.fromIterable(mock.getAll().filter(e => e.id === id));
|
|
218
|
+
let eventLog_appendStream = (_startingSeqNr, _id, stream) => Stream.runDrain(stream);
|
|
220
219
|
let eventLog_latestSnapshot = mock.latestSnapshotFn;
|
|
221
220
|
let eventLog_writeSnapshot = mock.writeSnapshotFn;
|
|
222
221
|
let eventLog = {
|
|
@@ -259,11 +258,11 @@ async function eventLog_replay(id) {
|
|
|
259
258
|
let eventLog_replayStream = mock.replayStreamFn;
|
|
260
259
|
|
|
261
260
|
function eventLog_replayEnvelopes(id, param) {
|
|
262
|
-
return Stream
|
|
261
|
+
return Stream.fromIterable(mock.getAll().filter(e => e.id === id));
|
|
263
262
|
}
|
|
264
263
|
|
|
265
264
|
function eventLog_appendStream(_startingSeqNr, _id, stream) {
|
|
266
|
-
return Stream
|
|
265
|
+
return Stream.runDrain(stream);
|
|
267
266
|
}
|
|
268
267
|
|
|
269
268
|
let eventLog_latestSnapshot = mock.latestSnapshotFn;
|
|
@@ -410,11 +409,11 @@ async function eventLog_replay$1(id) {
|
|
|
410
409
|
let eventLog_replayStream$1 = mock.replayStreamFn;
|
|
411
410
|
|
|
412
411
|
function eventLog_replayEnvelopes$1(id, param) {
|
|
413
|
-
return Stream
|
|
412
|
+
return Stream.fromIterable(mock.getAll().filter(e => e.id === id));
|
|
414
413
|
}
|
|
415
414
|
|
|
416
415
|
function eventLog_appendStream$1(_startingSeqNr, _id, stream) {
|
|
417
|
-
return Stream
|
|
416
|
+
return Stream.runDrain(stream);
|
|
418
417
|
}
|
|
419
418
|
|
|
420
419
|
let eventLog_latestSnapshot$1 = mock.latestSnapshotFn;
|
|
@@ -508,7 +507,7 @@ function makeItem(idOpt, reference, command) {
|
|
|
508
507
|
|
|
509
508
|
async function run(handler, idOpt, command) {
|
|
510
509
|
let id = idOpt !== undefined ? idOpt : "agg-1";
|
|
511
|
-
return await Effect.runPromise(handler(Stream
|
|
510
|
+
return await Effect.runPromise(handler(Stream.fromIterable([makeItem(id, "ref", command)])));
|
|
512
511
|
}
|
|
513
512
|
|
|
514
513
|
function tick() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
4
5
|
import * as Stdlib_Array from "@rescript/runtime/lib/es6/Stdlib_Array.js";
|
|
5
6
|
import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.js";
|
|
6
7
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
7
8
|
import * as Stdlib_Result from "@rescript/runtime/lib/es6/Stdlib_Result.js";
|
|
8
|
-
import * as Effect from "effect/Effect";
|
|
9
9
|
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.js";
|
|
10
10
|
import * as Plugin_ResolverError$ReventlessCore from "../../src/plugin/component/Plugin_ResolverError.res.mjs";
|
|
11
11
|
import * as CommandGeneratorFixtures$ReventlessCore from "./CommandGeneratorFixtures.res.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
5
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
5
6
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Stream from "effect/Stream";
|
|
8
8
|
import * as Owner$Reventless from "@reventlessdev/reventless-spec/src/components/Owner.res.mjs";
|
|
9
9
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
5
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
5
6
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Owner$Reventless from "@reventlessdev/reventless-spec/src/components/Owner.res.mjs";
|
|
8
8
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
9
9
|
import * as Identity$Reventless from "@reventlessdev/reventless-spec/src/types/Identity.res.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
4
5
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
5
|
-
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as Stream from "effect/Stream";
|
|
7
7
|
import * as Stdlib_JsError from "@rescript/runtime/lib/es6/Stdlib_JsError.js";
|
|
8
8
|
import * as DcbFixtures$ReventlessCore from "../dcb/DcbFixtures.res.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
-
import * as Stream from "@reventlessdev/rescript-effect/src/Stream.res.mjs";
|
|
5
4
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
6
5
|
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Stream from "effect/Stream";
|
|
7
7
|
import * as Stdlib_JsError from "@rescript/runtime/lib/es6/Stdlib_JsError.js";
|
|
8
8
|
import * as Message$ReventlessCore from "../../src/Message.res.mjs";
|
|
9
9
|
import * as CommandTopic_Callback$ReventlessCore from "../../src/components/CommandTopic/CommandTopic_Callback.res.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stream from "effect/Stream";
|
|
5
5
|
import * as CommandTopicCallbackFixtures$ReventlessCore from "./CommandTopicCallbackFixtures.res.mjs";
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Stream from "@reventlessdev/rescript-effect/src/Stream.res.mjs";
|
|
4
3
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
5
4
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
5
|
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Stream from "effect/Stream";
|
|
7
7
|
import * as CommandTopic_Helpers$ReventlessCore from "../../src/components/CommandTopic/CommandTopic_Helpers.res.mjs";
|
|
8
8
|
|
|
9
9
|
function metaWithMsgId(msgId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Stream from "@reventlessdev/rescript-effect/src/Stream.res.mjs";
|
|
4
3
|
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Stream from "effect/Stream";
|
|
5
5
|
import * as Message$ReventlessCore from "../../src/Message.res.mjs";
|
|
6
6
|
import * as Counter_Callback$ReventlessCore from "../../src/components/Counter/Counter_Callback.res.mjs";
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
5
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
5
6
|
import * as Nodebuffer from "node:buffer";
|
|
6
7
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
7
8
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
8
9
|
import * as Stdlib_Result from "@rescript/runtime/lib/es6/Stdlib_Result.js";
|
|
9
|
-
import * as Effect from "effect/Effect";
|
|
10
10
|
import * as Stream from "effect/Stream";
|
|
11
11
|
import * as Pii$Reventless from "@reventlessdev/reventless-spec/src/components/Pii.res.mjs";
|
|
12
12
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Stream from "effect/Stream";
|
|
6
6
|
import * as DcbFixtures$ReventlessCore from "./DcbFixtures.res.mjs";
|
|
7
7
|
import * as DcbEventLog_Operations$ReventlessCore from "../../src/components/DcbEventLog/DcbEventLog_Operations.res.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stream from "effect/Stream";
|
|
5
5
|
import * as Message$ReventlessCore from "../../src/Message.res.mjs";
|
|
6
6
|
import * as EventMapperFixtures$ReventlessCore from "./EventMapperFixtures.res.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stream from "effect/Stream";
|
|
5
5
|
import * as ExtensionPointFixtures$ReventlessCore from "./ExtensionPointFixtures.res.mjs";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Stream from "effect/Stream";
|
|
6
6
|
import * as Logger$ReventlessCore from "../../src/util/Logger.res.mjs";
|
|
7
7
|
import * as Runtime$ReventlessCore from "../../src/adapter/Runtime/Runtime.res.mjs";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as Sury from "sury";
|
|
4
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
5
|
import * as Stdlib_Dict from "@rescript/runtime/lib/es6/Stdlib_Dict.js";
|
|
5
6
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
6
7
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
7
|
-
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Effect$1 from "effect/Effect";
|
|
8
9
|
import * as Primitive_object from "@rescript/runtime/lib/es6/Primitive_object.js";
|
|
9
10
|
import * as AnsiStyle$Reventless from "@reventlessdev/reventless-spec/src/AnsiStyle.res.mjs";
|
|
10
11
|
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.js";
|
|
@@ -291,11 +292,11 @@ globalThis.describe("JSON sink", () => {
|
|
|
291
292
|
globalThis.expect(ok).toBe(true);
|
|
292
293
|
});
|
|
293
294
|
globalThis.test("Effect.annotateLogs(correlationId) surfaces as a top-level field", () => {
|
|
294
|
-
let lines = captureLogs(() => Effect.runSync(Effect.annotateLogs(EffectLogger$ReventlessCore.logInfo("Aggregate(Product)", undefined, undefined, "handling"), "correlationId", "c-123")));
|
|
295
|
+
let lines = captureLogs(() => Effect.runSync(Effect$1.annotateLogs(EffectLogger$ReventlessCore.logInfo("Aggregate(Product)", undefined, undefined, "handling"), "correlationId", "c-123")));
|
|
295
296
|
globalThis.expect(lines.some(line => Primitive_object.equal(fieldOf(line, "correlationId"), "c-123"))).toBe(true);
|
|
296
297
|
});
|
|
297
298
|
globalThis.test("Effect.annotateLogs(plugin) overrides registry resolution", () => {
|
|
298
|
-
let lines = captureLogs(() => Effect.runSync(Effect.annotateLogs(EffectLogger$ReventlessCore.logInfo("Aggregate(Unregistered)", undefined, undefined, "handling"), "plugin", "Ordering")));
|
|
299
|
+
let lines = captureLogs(() => Effect.runSync(Effect$1.annotateLogs(EffectLogger$ReventlessCore.logInfo("Aggregate(Unregistered)", undefined, undefined, "handling"), "plugin", "Ordering")));
|
|
299
300
|
globalThis.expect(lines.some(line => Primitive_object.equal(fieldOf(line, "plugin"), "Ordering"))).toBe(true);
|
|
300
301
|
});
|
|
301
302
|
globalThis.test("every JSON record carries an RFC 3339 time field", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
3
4
|
import * as Stdlib_Dict from "@rescript/runtime/lib/es6/Stdlib_Dict.js";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as AnsiStyle$Reventless from "@reventlessdev/reventless-spec/src/AnsiStyle.res.mjs";
|
|
6
6
|
import * as LogPrefix$Reventless from "@reventlessdev/reventless-spec/src/LogPrefix.res.mjs";
|
|
7
7
|
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
5
5
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
6
6
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
7
7
|
import * as Stdlib_Result from "@rescript/runtime/lib/es6/Stdlib_Result.js";
|
|
8
|
-
import * as
|
|
8
|
+
import * as Stream from "effect/Stream";
|
|
9
9
|
import * as QueryDbFixtures$ReventlessCore from "./QueryDbFixtures.res.mjs";
|
|
10
10
|
import * as QueryDb_Operations$ReventlessCore from "../../src/components/QueryDb/QueryDb_Operations.res.mjs";
|
|
11
11
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
5
5
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
6
6
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as Stream from "effect/Stream";
|
|
8
8
|
import * as RowChange$ReventlessCore from "../../src/RowChange.res.mjs";
|
|
9
9
|
import * as Projection$ReventlessCore from "../../src/Projection.res.mjs";
|
|
10
10
|
import * as QueryDbFixtures$ReventlessCore from "./QueryDbFixtures.res.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
5
5
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
6
6
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as Stream from "effect/Stream";
|
|
8
8
|
import * as QueryDbFixtures$ReventlessCore from "./QueryDbFixtures.res.mjs";
|
|
9
9
|
import * as QueryDb_Operations$ReventlessCore from "../../src/components/QueryDb/QueryDb_Operations.res.mjs";
|
|
10
10
|
import * as TaggedUnionFixtures$ReventlessCore from "../fixtures/TaggedUnionFixtures.res.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Effect from "@reventlessdev/rescript-effect/src/Effect.res.mjs";
|
|
4
4
|
import * as Stream from "effect/Stream";
|
|
5
5
|
import * as SideEffectHandlerFixtures$ReventlessCore from "./SideEffectHandlerFixtures.res.mjs";
|
|
6
6
|
|