@fncts/query 0.0.26 → 0.0.27
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/LICENSE +26 -0
- package/_cjs/Cache/api.cjs +53 -47
- package/_cjs/Cache/api.cjs.map +1 -1
- package/_cjs/Cache/definition.cjs +8 -10
- package/_cjs/Cache/definition.cjs.map +1 -1
- package/_cjs/Cache.cjs +7 -28
- package/_cjs/CompletedRequestMap.cjs +40 -38
- package/_cjs/CompletedRequestMap.cjs.map +1 -1
- package/_cjs/DataSource/api.cjs +76 -72
- package/_cjs/DataSource/api.cjs.map +1 -1
- package/_cjs/DataSource/definition.cjs +69 -63
- package/_cjs/DataSource/definition.cjs.map +1 -1
- package/_cjs/DataSource.cjs +14 -28
- package/_cjs/DataSourceAspect.cjs +9 -10
- package/_cjs/DataSourceAspect.cjs.map +1 -1
- package/_cjs/Described.cjs +27 -29
- package/_cjs/Described.cjs.map +1 -1
- package/_cjs/Query/api/bimap.cjs +15 -14
- package/_cjs/Query/api/bimap.cjs.map +1 -1
- package/_cjs/Query/api/catchAllCause.cjs +23 -21
- package/_cjs/Query/api/catchAllCause.cjs.map +1 -1
- package/_cjs/Query/api/collectAll.cjs +13 -12
- package/_cjs/Query/api/collectAll.cjs.map +1 -1
- package/_cjs/Query/api/collectAllBatched.cjs +13 -12
- package/_cjs/Query/api/collectAllBatched.cjs.map +1 -1
- package/_cjs/Query/api/collectAllConcurrent.cjs +13 -12
- package/_cjs/Query/api/collectAllConcurrent.cjs.map +1 -1
- package/_cjs/Query/api/defer.cjs +13 -12
- package/_cjs/Query/api/defer.cjs.map +1 -1
- package/_cjs/Query/api/ensuring.cjs +17 -15
- package/_cjs/Query/api/ensuring.cjs.map +1 -1
- package/_cjs/Query/api/environment.cjs +76 -64
- package/_cjs/Query/api/environment.cjs.map +1 -1
- package/_cjs/Query/api/flatMap.cjs +30 -26
- package/_cjs/Query/api/flatMap.cjs.map +1 -1
- package/_cjs/Query/api/foreach.cjs +22 -21
- package/_cjs/Query/api/foreach.cjs.map +1 -1
- package/_cjs/Query/api/foreachBatched.cjs +22 -21
- package/_cjs/Query/api/foreachBatched.cjs.map +1 -1
- package/_cjs/Query/api/foreachConcurrent.cjs +17 -14
- package/_cjs/Query/api/foreachConcurrent.cjs.map +1 -1
- package/_cjs/Query/api/fromRequest.cjs +42 -33
- package/_cjs/Query/api/fromRequest.cjs.map +1 -1
- package/_cjs/Query/api/map.cjs +17 -15
- package/_cjs/Query/api/map.cjs.map +1 -1
- package/_cjs/Query/api/mapDataSources.cjs +17 -15
- package/_cjs/Query/api/mapDataSources.cjs.map +1 -1
- package/_cjs/Query/api/mapError.cjs +15 -14
- package/_cjs/Query/api/mapError.cjs.map +1 -1
- package/_cjs/Query/api/mapErrorCause.cjs +15 -14
- package/_cjs/Query/api/mapErrorCause.cjs.map +1 -1
- package/_cjs/Query/api/mapIO.cjs +15 -14
- package/_cjs/Query/api/mapIO.cjs.map +1 -1
- package/_cjs/Query/api/match.cjs +15 -14
- package/_cjs/Query/api/match.cjs.map +1 -1
- package/_cjs/Query/api/matchCauseQuery.cjs +23 -20
- package/_cjs/Query/api/matchCauseQuery.cjs.map +1 -1
- package/_cjs/Query/api/matchQuery.cjs +19 -16
- package/_cjs/Query/api/matchQuery.cjs.map +1 -1
- package/_cjs/Query/api/orHalt.cjs +22 -20
- package/_cjs/Query/api/orHalt.cjs.map +1 -1
- package/_cjs/Query/api/race.cjs +46 -36
- package/_cjs/Query/api/race.cjs.map +1 -1
- package/_cjs/Query/api/run.cjs +43 -35
- package/_cjs/Query/api/run.cjs.map +1 -1
- package/_cjs/Query/api/timeout.cjs +70 -56
- package/_cjs/Query/api/timeout.cjs.map +1 -1
- package/_cjs/Query/api/zipWith.cjs +37 -33
- package/_cjs/Query/api/zipWith.cjs.map +1 -1
- package/_cjs/Query/api/zipWithBatched.cjs +39 -34
- package/_cjs/Query/api/zipWithBatched.cjs.map +1 -1
- package/_cjs/Query/api/zipWithConcurrent.cjs +39 -34
- package/_cjs/Query/api/zipWithConcurrent.cjs.map +1 -1
- package/_cjs/Query/api.cjs +68 -60
- package/_cjs/Query/api.cjs.map +1 -1
- package/_cjs/Query/definition.cjs +16 -17
- package/_cjs/Query/definition.cjs.map +1 -1
- package/_cjs/Query.cjs +88 -336
- package/_cjs/QueryFailure.cjs +13 -14
- package/_cjs/QueryFailure.cjs.map +1 -1
- package/_cjs/Request.cjs +48 -41
- package/_cjs/Request.cjs.map +1 -1
- package/_cjs/chunk.cjs +28 -0
- package/_cjs/global.cjs +0 -2
- package/_cjs/index.cjs +0 -2
- package/_cjs/internal/BlockedRequest.cjs +23 -24
- package/_cjs/internal/BlockedRequest.cjs.map +1 -1
- package/_cjs/internal/BlockedRequests.cjs +318 -333
- package/_cjs/internal/BlockedRequests.cjs.map +1 -1
- package/_cjs/internal/Continue.cjs +244 -231
- package/_cjs/internal/Continue.cjs.map +1 -1
- package/_cjs/internal/Parallel.cjs +59 -55
- package/_cjs/internal/Parallel.cjs.map +1 -1
- package/_cjs/internal/Result.cjs +199 -185
- package/_cjs/internal/Result.cjs.map +1 -1
- package/_cjs/internal/Sequential.cjs +44 -41
- package/_cjs/internal/Sequential.cjs.map +1 -1
- package/_mjs/Cache/api.mjs +38 -34
- package/_mjs/Cache/api.mjs.map +1 -1
- package/_mjs/Cache/definition.mjs +8 -4
- package/_mjs/Cache/definition.mjs.map +1 -1
- package/_mjs/Cache.mjs +3 -4
- package/_mjs/CompletedRequestMap.mjs +34 -30
- package/_mjs/CompletedRequestMap.mjs.map +1 -1
- package/_mjs/DataSource/api.mjs +67 -63
- package/_mjs/DataSource/api.mjs.map +1 -1
- package/_mjs/DataSource/definition.mjs +54 -52
- package/_mjs/DataSource/definition.mjs.map +1 -1
- package/_mjs/DataSource.mjs +3 -4
- package/_mjs/DataSourceAspect.mjs +8 -4
- package/_mjs/DataSourceAspect.mjs.map +1 -1
- package/_mjs/Described.mjs +26 -22
- package/_mjs/Described.mjs.map +1 -1
- package/_mjs/Query/api/bimap.mjs +10 -6
- package/_mjs/Query/api/bimap.mjs.map +1 -1
- package/_mjs/Query/api/catchAllCause.mjs +17 -13
- package/_mjs/Query/api/catchAllCause.mjs.map +1 -1
- package/_mjs/Query/api/collectAll.mjs +8 -4
- package/_mjs/Query/api/collectAll.mjs.map +1 -1
- package/_mjs/Query/api/collectAllBatched.mjs +8 -4
- package/_mjs/Query/api/collectAllBatched.mjs.map +1 -1
- package/_mjs/Query/api/collectAllConcurrent.mjs +8 -4
- package/_mjs/Query/api/collectAllConcurrent.mjs.map +1 -1
- package/_mjs/Query/api/defer.mjs +9 -5
- package/_mjs/Query/api/defer.mjs.map +1 -1
- package/_mjs/Query/api/ensuring.mjs +10 -6
- package/_mjs/Query/api/ensuring.mjs.map +1 -1
- package/_mjs/Query/api/environment.mjs +53 -49
- package/_mjs/Query/api/environment.mjs.map +1 -1
- package/_mjs/Query/api/flatMap.mjs +19 -15
- package/_mjs/Query/api/flatMap.mjs.map +1 -1
- package/_mjs/Query/api/foreach.mjs +14 -12
- package/_mjs/Query/api/foreach.mjs.map +1 -1
- package/_mjs/Query/api/foreachBatched.mjs +15 -13
- package/_mjs/Query/api/foreachBatched.mjs.map +1 -1
- package/_mjs/Query/api/foreachConcurrent.mjs +9 -5
- package/_mjs/Query/api/foreachConcurrent.mjs.map +1 -1
- package/_mjs/Query/api/fromRequest.mjs +19 -18
- package/_mjs/Query/api/fromRequest.mjs.map +1 -1
- package/_mjs/Query/api/map.mjs +11 -7
- package/_mjs/Query/api/map.mjs.map +1 -1
- package/_mjs/Query/api/mapDataSources.mjs +11 -7
- package/_mjs/Query/api/mapDataSources.mjs.map +1 -1
- package/_mjs/Query/api/mapError.mjs +10 -6
- package/_mjs/Query/api/mapError.mjs.map +1 -1
- package/_mjs/Query/api/mapErrorCause.mjs +10 -6
- package/_mjs/Query/api/mapErrorCause.mjs.map +1 -1
- package/_mjs/Query/api/mapIO.mjs +11 -7
- package/_mjs/Query/api/mapIO.mjs.map +1 -1
- package/_mjs/Query/api/match.mjs +11 -7
- package/_mjs/Query/api/match.mjs.map +1 -1
- package/_mjs/Query/api/matchCauseQuery.mjs +16 -12
- package/_mjs/Query/api/matchCauseQuery.mjs.map +1 -1
- package/_mjs/Query/api/matchQuery.mjs +12 -8
- package/_mjs/Query/api/matchQuery.mjs.map +1 -1
- package/_mjs/Query/api/orHalt.mjs +14 -10
- package/_mjs/Query/api/orHalt.mjs.map +1 -1
- package/_mjs/Query/api/race.mjs +28 -24
- package/_mjs/Query/api/race.mjs.map +1 -1
- package/_mjs/Query/api/run.mjs +29 -25
- package/_mjs/Query/api/run.mjs.map +1 -1
- package/_mjs/Query/api/timeout.mjs +44 -40
- package/_mjs/Query/api/timeout.mjs.map +1 -1
- package/_mjs/Query/api/zipWith.mjs +26 -22
- package/_mjs/Query/api/zipWith.mjs.map +1 -1
- package/_mjs/Query/api/zipWithBatched.mjs +29 -25
- package/_mjs/Query/api/zipWithBatched.mjs.map +1 -1
- package/_mjs/Query/api/zipWithConcurrent.mjs +28 -24
- package/_mjs/Query/api/zipWithConcurrent.mjs.map +1 -1
- package/_mjs/Query/api.mjs +50 -46
- package/_mjs/Query/api.mjs.map +1 -1
- package/_mjs/Query/definition.mjs +15 -11
- package/_mjs/Query/definition.mjs.map +1 -1
- package/_mjs/Query.mjs +31 -34
- package/_mjs/QueryFailure.mjs +11 -7
- package/_mjs/QueryFailure.mjs.map +1 -1
- package/_mjs/Request.mjs +28 -25
- package/_mjs/Request.mjs.map +1 -1
- package/_mjs/global.mjs +0 -2
- package/_mjs/index.mjs +0 -2
- package/_mjs/internal/BlockedRequest.mjs +21 -17
- package/_mjs/internal/BlockedRequest.mjs.map +1 -1
- package/_mjs/internal/BlockedRequests.mjs +277 -308
- package/_mjs/internal/BlockedRequests.mjs.map +1 -1
- package/_mjs/internal/Continue.mjs +235 -239
- package/_mjs/internal/Continue.mjs.map +1 -1
- package/_mjs/internal/Parallel.mjs +48 -44
- package/_mjs/internal/Parallel.mjs.map +1 -1
- package/_mjs/internal/Result.mjs +177 -170
- package/_mjs/internal/Result.mjs.map +1 -1
- package/_mjs/internal/Sequential.mjs +35 -31
- package/_mjs/internal/Sequential.mjs.map +1 -1
- package/package.json +8 -4
- package/_cjs/Cache.cjs.map +0 -1
- package/_cjs/DataSource.cjs.map +0 -1
- package/_cjs/Query.cjs.map +0 -1
- package/_cjs/global.cjs.map +0 -1
- package/_cjs/index.cjs.map +0 -1
- package/_mjs/Cache.mjs.map +0 -1
- package/_mjs/DataSource.mjs.map +0 -1
- package/_mjs/Query.mjs.map +0 -1
- package/_mjs/global.mjs.map +0 -1
- package/_mjs/index.mjs.map +0 -1
package/_mjs/Query/api.mjs
CHANGED
|
@@ -1,77 +1,81 @@
|
|
|
1
|
-
const fileName_1 = "(@fncts/query) src/Query/api.ts";
|
|
2
1
|
import * as tsplus_module_1 from "@fncts/io/FiberRef/unsafe";
|
|
3
2
|
import * as tsplus_module_2 from "@fncts/query/Cache/api";
|
|
4
3
|
import * as tsplus_module_3 from "@fncts/query/Query/definition";
|
|
5
4
|
import * as tsplus_module_4 from "@fncts/query/internal/Result";
|
|
6
5
|
import * as tsplus_module_5 from "@fncts/io/IO/api";
|
|
7
6
|
import * as tsplus_module_6 from "@fncts/base/data/Cause/api";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
//#region build/esm/Query/api.js
|
|
8
|
+
const fileName_1 = "(@fncts/query) src/Query/api.ts";
|
|
9
|
+
const failCause = failCause_1;
|
|
10
|
+
const failCauseNow = failCauseNow_1;
|
|
11
|
+
const succeedNow = succeedNow_1;
|
|
11
12
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* @tsplus static fncts.query.QueryOps cachingEnabled
|
|
14
|
+
*/
|
|
15
|
+
const cachingEnabled = tsplus_module_1.unsafeMake(true);
|
|
15
16
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* @tsplus static fncts.query.QueryOps currentCache
|
|
18
|
+
*/
|
|
19
|
+
const currentCache = tsplus_module_1.unsafeMake(tsplus_module_2.unsafeMake());
|
|
19
20
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* @tsplus static fncts.query.QueryOps fromIO
|
|
22
|
+
*/
|
|
23
|
+
function fromIO(io) {
|
|
24
|
+
return new tsplus_module_3.Query(tsplus_module_5.matchCause(tsplus_module_4.fail, tsplus_module_4.done, fileName_1 + ":16:43")(tsplus_module_5.defer(io, fileName_1 + ":16:28")));
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
* @tsplus static fncts.query.QueryOps failCause
|
|
28
|
+
*/
|
|
28
29
|
function failCause_1(cause, __tsplusTrace) {
|
|
29
|
-
|
|
30
|
+
return new tsplus_module_3.Query(tsplus_module_5.succeed(() => tsplus_module_4.fail(cause()), __tsplusTrace));
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
* @tsplus static fncts.query.QueryOps failCauseNow
|
|
34
|
+
*/
|
|
34
35
|
function failCauseNow_1(cause, __tsplusTrace) {
|
|
35
|
-
|
|
36
|
+
return new tsplus_module_3.Query(tsplus_module_5.succeedNow(tsplus_module_4.fail(cause), __tsplusTrace));
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
* @tsplus static fncts.query.QueryOps fail
|
|
40
|
+
*/
|
|
41
|
+
function fail(e, __tsplusTrace) {
|
|
42
|
+
return failCause_1(() => tsplus_module_6.fail(e()), __tsplusTrace);
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
* @tsplus static fncts.query.QueryOps failNow
|
|
46
|
+
*/
|
|
47
|
+
function failNow(e, __tsplusTrace) {
|
|
48
|
+
return failCauseNow_1(tsplus_module_6.fail(e), __tsplusTrace);
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
* @tsplus static fncts.query.QueryOps halt
|
|
52
|
+
*/
|
|
53
|
+
function halt(t, __tsplusTrace) {
|
|
54
|
+
return new tsplus_module_3.Query(tsplus_module_5.halt(t, __tsplusTrace));
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
* @tsplus static fncts.query.QueryOps haltNow
|
|
58
|
+
*/
|
|
59
|
+
function haltNow(t, __tsplusTrace) {
|
|
60
|
+
return new tsplus_module_3.Query(tsplus_module_5.haltNow(t, __tsplusTrace));
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
* @tsplus static fncts.query.QueryOps succeed
|
|
64
|
+
*/
|
|
65
|
+
function succeed(value) {
|
|
66
|
+
return new tsplus_module_3.Query(tsplus_module_5.succeed(() => tsplus_module_4.done(value()), fileName_1 + ":65:30"));
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
* @tsplus static fncts.query.QueryOps succeedNow
|
|
70
|
+
*/
|
|
70
71
|
function succeedNow_1(value) {
|
|
71
|
-
|
|
72
|
+
return new tsplus_module_3.Query(tsplus_module_5.succeedNow(tsplus_module_4.done(value), fileName_1 + ":72:33"));
|
|
72
73
|
}
|
|
73
74
|
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
* @tsplus static fncts.query.QueryOps unit
|
|
76
|
+
*/
|
|
77
|
+
const unit = succeedNow_1(void 0);
|
|
78
|
+
//#endregion
|
|
79
|
+
export { cachingEnabled, currentCache, fail, failCause, failCauseNow, failNow, fromIO, halt, haltNow, succeed, succeedNow, unit };
|
|
80
|
+
|
|
77
81
|
//# sourceMappingURL=api.mjs.map
|
package/_mjs/Query/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":["
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/Query/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/query) src/Query/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/FiberRef/unsafe\";\nimport * as tsplus_module_2 from \"@fncts/query/Cache/api\";\nimport * as tsplus_module_3 from \"@fncts/query/Query/definition\";\nimport * as tsplus_module_4 from \"@fncts/query/internal/Result\";\nimport * as tsplus_module_5 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_6 from \"@fncts/base/data/Cause/api\";\nexport const failCause = failCause_1;\nexport const failCauseNow = failCauseNow_1;\nexport const succeedNow = succeedNow_1;\n/**\n * @tsplus static fncts.query.QueryOps cachingEnabled\n */\nexport const cachingEnabled = tsplus_module_1.unsafeMake(true);\n/**\n * @tsplus static fncts.query.QueryOps currentCache\n */\nexport const currentCache = tsplus_module_1.unsafeMake(tsplus_module_2.unsafeMake());\n/**\n * @tsplus static fncts.query.QueryOps fromIO\n */\nexport function fromIO(io) {\n return new tsplus_module_3.Query(tsplus_module_5.matchCause(tsplus_module_4.fail, tsplus_module_4.done, fileName_1 + \":16:43\")(tsplus_module_5.defer(io, fileName_1 + \":16:28\")));\n}\n/**\n * @tsplus static fncts.query.QueryOps failCause\n */\nfunction failCause_1(cause, __tsplusTrace) {\n return new tsplus_module_3.Query(tsplus_module_5.succeed(() => tsplus_module_4.fail(cause()), __tsplusTrace));\n}\n/**\n * @tsplus static fncts.query.QueryOps failCauseNow\n */\nfunction failCauseNow_1(cause, __tsplusTrace) {\n return new tsplus_module_3.Query(tsplus_module_5.succeedNow(tsplus_module_4.fail(cause), __tsplusTrace));\n}\n/**\n * @tsplus static fncts.query.QueryOps fail\n */\nexport function fail(e, __tsplusTrace) {\n return failCause_1(() => tsplus_module_6.fail(e()), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.query.QueryOps failNow\n */\nexport function failNow(e, __tsplusTrace) {\n return failCauseNow_1(tsplus_module_6.fail(e), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.query.QueryOps halt\n */\nexport function halt(t, __tsplusTrace) {\n return new tsplus_module_3.Query(tsplus_module_5.halt(t, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.query.QueryOps haltNow\n */\nexport function haltNow(t, __tsplusTrace) {\n return new tsplus_module_3.Query(tsplus_module_5.haltNow(t, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.query.QueryOps succeed\n */\nexport function succeed(value) {\n return new tsplus_module_3.Query(tsplus_module_5.succeed(() => tsplus_module_4.done(value()), fileName_1 + \":65:30\"));\n}\n/**\n * @tsplus static fncts.query.QueryOps succeedNow\n */\nfunction succeedNow_1(value) {\n return new tsplus_module_3.Query(tsplus_module_5.succeedNow(tsplus_module_4.done(value), fileName_1 + \":72:33\"));\n}\n/**\n * @tsplus static fncts.query.QueryOps unit\n */\nexport const unit = succeedNow_1(undefined);\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;AAAA,MAAM,aAAa;AAOnB,MAAa,YAAY;AACzB,MAAa,eAAe;AAC5B,MAAa,aAAa;;;;AAI1B,MAAa,iBAAiB,gBAAgB,WAAW,KAAK;;;;AAI9D,MAAa,eAAe,gBAAgB,WAAW,gBAAgB,YAAY,CAAC;;;;AAIpF,SAAgB,OAAO,IAAI;AACvB,QAAO,IAAI,gBAAgB,MAAM,gBAAgB,WAAW,gBAAgB,MAAM,gBAAgB,MAAM,aAAa,SAAS,CAAC,gBAAgB,MAAM,IAAI,aAAa,SAAS,CAAC,CAAC;;;;;AAKrL,SAAS,YAAY,OAAO,eAAe;AACvC,QAAO,IAAI,gBAAgB,MAAM,gBAAgB,cAAc,gBAAgB,KAAK,OAAO,CAAC,EAAE,cAAc,CAAC;;;;;AAKjH,SAAS,eAAe,OAAO,eAAe;AAC1C,QAAO,IAAI,gBAAgB,MAAM,gBAAgB,WAAW,gBAAgB,KAAK,MAAM,EAAE,cAAc,CAAC;;;;;AAK5G,SAAgB,KAAK,GAAG,eAAe;AACnC,QAAO,kBAAkB,gBAAgB,KAAK,GAAG,CAAC,EAAE,cAAc;;;;;AAKtE,SAAgB,QAAQ,GAAG,eAAe;AACtC,QAAO,eAAe,gBAAgB,KAAK,EAAE,EAAE,cAAc;;;;;AAKjE,SAAgB,KAAK,GAAG,eAAe;AACnC,QAAO,IAAI,gBAAgB,MAAM,gBAAgB,KAAK,GAAG,cAAc,CAAC;;;;;AAK5E,SAAgB,QAAQ,GAAG,eAAe;AACtC,QAAO,IAAI,gBAAgB,MAAM,gBAAgB,QAAQ,GAAG,cAAc,CAAC;;;;;AAK/E,SAAgB,QAAQ,OAAO;AAC3B,QAAO,IAAI,gBAAgB,MAAM,gBAAgB,cAAc,gBAAgB,KAAK,OAAO,CAAC,EAAE,aAAa,SAAS,CAAC;;;;;AAKzH,SAAS,aAAa,OAAO;AACzB,QAAO,IAAI,gBAAgB,MAAM,gBAAgB,WAAW,gBAAgB,KAAK,MAAM,EAAE,aAAa,SAAS,CAAC;;;;;AAKpH,MAAa,OAAO,aAAa,KAAA,EAAU"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
//#region build/esm/Query/definition.js
|
|
2
|
+
const QueryTypeId = Symbol.for("fncts.query.Query");
|
|
2
3
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
4
|
+
* @tsplus type fncts.query.Query
|
|
5
|
+
* @tsplus companion fncts.query.QueryOps
|
|
6
|
+
*/
|
|
7
|
+
var Query = class {
|
|
8
|
+
step;
|
|
9
|
+
[QueryTypeId] = QueryTypeId;
|
|
10
|
+
constructor(step) {
|
|
11
|
+
this.step = step;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Query, QueryTypeId };
|
|
16
|
+
|
|
13
17
|
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","names":[
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/Query/definition.js"],"sourcesContent":["export const QueryTypeId = Symbol.for(\"fncts.query.Query\");\n/**\n * @tsplus type fncts.query.Query\n * @tsplus companion fncts.query.QueryOps\n */\nexport class Query {\n step;\n [QueryTypeId] = QueryTypeId;\n constructor(step) {\n this.step = step;\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,cAAc,OAAO,IAAI,oBAAoB;;;;;AAK1D,IAAa,QAAb,MAAmB;CACf;CACA,CAAC,eAAe;CAChB,YAAY,MAAM;AACd,OAAK,OAAO"}
|
package/_mjs/Query.mjs
CHANGED
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export
|
|
32
|
-
export * from "./Query/api/zipWithBatched.mjs";
|
|
33
|
-
export * from "./Query/api/zipWithConcurrent.mjs";
|
|
34
|
-
//# sourceMappingURL=Query.mjs.map
|
|
1
|
+
import { cachingEnabled, currentCache, fail, failCause, failCauseNow, failNow, fromIO, halt, haltNow, succeed, succeedNow, unit } from "./Query/api.mjs";
|
|
2
|
+
import { Query, QueryTypeId } from "./Query/definition.mjs";
|
|
3
|
+
import { bimap } from "./Query/api/bimap.mjs";
|
|
4
|
+
import { catchAll, catchAllCause } from "./Query/api/catchAllCause.mjs";
|
|
5
|
+
import { collectAll } from "./Query/api/collectAll.mjs";
|
|
6
|
+
import { collectAllBatched } from "./Query/api/collectAllBatched.mjs";
|
|
7
|
+
import { collectAllConcurrent } from "./Query/api/collectAllConcurrent.mjs";
|
|
8
|
+
import { defer } from "./Query/api/defer.mjs";
|
|
9
|
+
import { ensuring } from "./Query/api/ensuring.mjs";
|
|
10
|
+
import { contramapEnvironment, environment, environmentWith, environmentWithIO, environmentWithQuery, provideEnvironment, provideLayer, provideSomeEnvironment } from "./Query/api/environment.mjs";
|
|
11
|
+
import { flatMap, flatten } from "./Query/api/flatMap.mjs";
|
|
12
|
+
import { foreach } from "./Query/api/foreach.mjs";
|
|
13
|
+
import { foreachBatched } from "./Query/api/foreachBatched.mjs";
|
|
14
|
+
import { foreachConcurrent } from "./Query/api/foreachConcurrent.mjs";
|
|
15
|
+
import { fromRequest } from "./Query/api/fromRequest.mjs";
|
|
16
|
+
import { map } from "./Query/api/map.mjs";
|
|
17
|
+
import { mapDataSources } from "./Query/api/mapDataSources.mjs";
|
|
18
|
+
import { mapError } from "./Query/api/mapError.mjs";
|
|
19
|
+
import { mapErrorCause } from "./Query/api/mapErrorCause.mjs";
|
|
20
|
+
import { mapIO } from "./Query/api/mapIO.mjs";
|
|
21
|
+
import { match } from "./Query/api/match.mjs";
|
|
22
|
+
import { matchCauseQuery } from "./Query/api/matchCauseQuery.mjs";
|
|
23
|
+
import { matchQuery } from "./Query/api/matchQuery.mjs";
|
|
24
|
+
import { orHalt, orHaltWith } from "./Query/api/orHalt.mjs";
|
|
25
|
+
import { race } from "./Query/api/race.mjs";
|
|
26
|
+
import { run, runCache, runLog } from "./Query/api/run.mjs";
|
|
27
|
+
import { timeout, timeoutFail, timeoutFailCause, timeoutTo } from "./Query/api/timeout.mjs";
|
|
28
|
+
import { zipWith } from "./Query/api/zipWith.mjs";
|
|
29
|
+
import { zipWithBatched } from "./Query/api/zipWithBatched.mjs";
|
|
30
|
+
import { zipWithConcurrent } from "./Query/api/zipWithConcurrent.mjs";
|
|
31
|
+
export { Query, QueryTypeId, bimap, cachingEnabled, catchAll, catchAllCause, collectAll, collectAllBatched, collectAllConcurrent, contramapEnvironment, currentCache, defer, ensuring, environment, environmentWith, environmentWithIO, environmentWithQuery, fail, failCause, failCauseNow, failNow, flatMap, flatten, foreach, foreachBatched, foreachConcurrent, fromIO, fromRequest, halt, haltNow, map, mapDataSources, mapError, mapErrorCause, mapIO, match, matchCauseQuery, matchQuery, orHalt, orHaltWith, provideEnvironment, provideLayer, provideSomeEnvironment, race, run, runCache, runLog, succeed, succeedNow, timeout, timeoutFail, timeoutFailCause, timeoutTo, unit, zipWith, zipWithBatched, zipWithConcurrent };
|
package/_mjs/QueryFailure.mjs
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { show } from "@fncts/base/data/Showable";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
2
|
+
//#region build/esm/QueryFailure.js
|
|
3
|
+
var QueryFailure = class extends Error {
|
|
4
|
+
dataSource;
|
|
5
|
+
constructor(dataSource, request) {
|
|
6
|
+
super(`Data source ${dataSource.identifier} did not complete request ${show(request)}.`);
|
|
7
|
+
this.dataSource = dataSource;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { QueryFailure };
|
|
12
|
+
|
|
9
13
|
//# sourceMappingURL=QueryFailure.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryFailure.mjs","names":[
|
|
1
|
+
{"version":3,"file":"QueryFailure.mjs","names":[],"sources":["../esm/QueryFailure.js"],"sourcesContent":["import { show } from \"@fncts/base/data/Showable\";\nexport class QueryFailure extends Error {\n dataSource;\n constructor(dataSource, request) {\n super(`Data source ${dataSource.identifier} did not complete request ${show(request)}.`);\n this.dataSource = dataSource;\n }\n}\n//# sourceMappingURL=QueryFailure.js.map"],"mappings":";;AACA,IAAa,eAAb,cAAkC,MAAM;CACpC;CACA,YAAY,YAAY,SAAS;AAC7B,QAAM,eAAe,WAAW,WAAW,4BAA4B,KAAK,QAAQ,CAAC,GAAG;AACxF,OAAK,aAAa"}
|
package/_mjs/Request.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const fileName_1 = "(@fncts/query) src/Request.ts";
|
|
2
1
|
import * as tsplus_module_1 from "@fncts/base/data/Hashable/hash";
|
|
3
2
|
import * as tsplus_module_2 from "@fncts/base/data/CaseClass";
|
|
3
|
+
import { CaseClassTypeId } from "@fncts/base/data/CaseClass";
|
|
4
4
|
import * as tsplus_module_3 from "@fncts/base/data/Hashable/definition";
|
|
5
5
|
import * as tsplus_module_4 from "@fncts/base/collection/immutable/ReadonlyArray/api";
|
|
6
6
|
import * as tsplus_module_5 from "@fncts/base/data/Equatable/definition";
|
|
@@ -8,29 +8,32 @@ import * as tsplus_module_6 from "@fncts/base/data/Showable/definition";
|
|
|
8
8
|
import * as tsplus_module_7 from "@fncts/base/control/Pure/api";
|
|
9
9
|
import * as tsplus_module_8 from "@fncts/base/collection/immutable/Conc/constructors";
|
|
10
10
|
import * as tsplus_module_9 from "@fncts/base/control/Pure/instances";
|
|
11
|
-
import { CaseClassTypeId } from "@fncts/base/data/CaseClass";
|
|
12
11
|
import { showComputationComplex, showProperty } from "@fncts/base/data/Showable";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
12
|
+
//#region build/esm/Request.js
|
|
13
|
+
const fileName_1 = "(@fncts/query) src/Request.ts";
|
|
14
|
+
const RequestTypeId = Symbol.for("fncts.query.Request");
|
|
15
|
+
const RequestVariance = Symbol.for("fncts.query.Request.Variance");
|
|
16
|
+
var Request = class {
|
|
17
|
+
[RequestTypeId] = RequestTypeId;
|
|
18
|
+
};
|
|
19
|
+
const simpleRequestHash = tsplus_module_1.hashString("fncts.query.Request.SimpleRequest");
|
|
20
|
+
var SimpleRequest = class extends tsplus_module_2.CaseClass {
|
|
21
|
+
[RequestTypeId] = RequestTypeId;
|
|
22
|
+
get [tsplus_module_3.hashSymbol]() {
|
|
23
|
+
return tsplus_module_4.foldLeft(simpleRequestHash, (acc, k) => tsplus_module_1.combineHash(acc, tsplus_module_1.hashUnknown(this[k])))(this[CaseClassTypeId]);
|
|
24
|
+
}
|
|
25
|
+
[tsplus_module_5.equalsSymbol](that) {
|
|
26
|
+
return tsplus_module_1.hashUnknown(this) === tsplus_module_1.hashUnknown(that);
|
|
27
|
+
}
|
|
28
|
+
get [tsplus_module_6._showable]() {
|
|
29
|
+
return showComputationComplex({
|
|
30
|
+
base: tsplus_module_7.succeedNow(`Request (${this.constructor.name})`, fileName_1 + ":42:28"),
|
|
31
|
+
braces: ["{", "}"],
|
|
32
|
+
keys: tsplus_module_7.map(tsplus_module_8.from)(tsplus_module_4.traverse_(this[CaseClassTypeId])(tsplus_module_9.Applicative)((key) => showProperty(this, key, 0)))
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { Request, RequestTypeId, RequestVariance, SimpleRequest };
|
|
38
|
+
|
|
36
39
|
//# sourceMappingURL=Request.mjs.map
|
package/_mjs/Request.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.mjs","names":["
|
|
1
|
+
{"version":3,"file":"Request.mjs","names":[],"sources":["../esm/Request.js"],"sourcesContent":["const fileName_1 = \"(@fncts/query) src/Request.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Hashable/hash\";\nimport * as tsplus_module_2 from \"@fncts/base/data/CaseClass\";\nimport * as tsplus_module_3 from \"@fncts/base/data/Hashable/definition\";\nimport * as tsplus_module_4 from \"@fncts/base/collection/immutable/ReadonlyArray/api\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Equatable/definition\";\nimport * as tsplus_module_6 from \"@fncts/base/data/Showable/definition\";\nimport * as tsplus_module_7 from \"@fncts/base/control/Pure/api\";\nimport * as tsplus_module_8 from \"@fncts/base/collection/immutable/Conc/constructors\";\nimport * as tsplus_module_9 from \"@fncts/base/control/Pure/instances\";\nimport { CaseClassTypeId } from \"@fncts/base/data/CaseClass\";\nimport { showComputationComplex, showProperty } from \"@fncts/base/data/Showable\";\nexport const RequestTypeId = Symbol.for(\"fncts.query.Request\");\nexport const RequestVariance = Symbol.for(\"fncts.query.Request.Variance\");\nexport class Request {\n [RequestTypeId] = RequestTypeId;\n}\nconst simpleRequestHash = tsplus_module_1.hashString(\"fncts.query.Request.SimpleRequest\");\n// @ts-expect-error\nexport class SimpleRequest extends tsplus_module_2.CaseClass {\n [RequestTypeId] = RequestTypeId;\n get [tsplus_module_3.hashSymbol]() {\n return tsplus_module_4.foldLeft(simpleRequestHash, (acc, k) => tsplus_module_1.combineHash(acc, tsplus_module_1.hashUnknown(this[k])))(this[CaseClassTypeId]);\n }\n [tsplus_module_5.equalsSymbol](that) {\n return tsplus_module_1.hashUnknown(this) === tsplus_module_1.hashUnknown(that);\n }\n get [tsplus_module_6._showable]() {\n return showComputationComplex({\n base: tsplus_module_7.succeedNow(`Request (${this.constructor.name})`, fileName_1 + \":42:28\"),\n braces: [\"{\", \"}\"],\n keys: tsplus_module_7.map(tsplus_module_8.from)(tsplus_module_4.traverse_(this[CaseClassTypeId])(tsplus_module_9.Applicative)((key) => showProperty(this, key, 0))),\n });\n }\n}\n//# sourceMappingURL=Request.js.map"],"mappings":";;;;;;;;;;;;AAAA,MAAM,aAAa;AAYnB,MAAa,gBAAgB,OAAO,IAAI,sBAAsB;AAC9D,MAAa,kBAAkB,OAAO,IAAI,+BAA+B;AACzE,IAAa,UAAb,MAAqB;CACjB,CAAC,iBAAiB;;AAEtB,MAAM,oBAAoB,gBAAgB,WAAW,oCAAoC;AAEzF,IAAa,gBAAb,cAAmC,gBAAgB,UAAU;CACzD,CAAC,iBAAiB;CAClB,KAAK,gBAAgB,cAAc;AAC/B,SAAO,gBAAgB,SAAS,oBAAoB,KAAK,MAAM,gBAAgB,YAAY,KAAK,gBAAgB,YAAY,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,iBAAiB;;CAEjK,CAAC,gBAAgB,cAAc,MAAM;AACjC,SAAO,gBAAgB,YAAY,KAAK,KAAK,gBAAgB,YAAY,KAAK;;CAElF,KAAK,gBAAgB,aAAa;AAC9B,SAAO,uBAAuB;GAC1B,MAAM,gBAAgB,WAAW,YAAY,KAAK,YAAY,KAAK,IAAI,aAAa,SAAS;GAC7F,QAAQ,CAAC,KAAK,IAAI;GAClB,MAAM,gBAAgB,IAAI,gBAAgB,KAAK,CAAC,gBAAgB,UAAU,KAAK,iBAAiB,CAAC,gBAAgB,YAAY,EAAE,QAAQ,aAAa,MAAM,KAAK,EAAE,CAAC,CAAC;GACtK,CAAC"}
|
package/_mjs/global.mjs
CHANGED
package/_mjs/index.mjs
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
//#region build/esm/internal/BlockedRequest.js
|
|
2
|
+
const BlockedRequestTypeId = Symbol.for("fncts.query.BlockedRequest");
|
|
2
3
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
4
|
+
* @tsplus type fncts.query.BlockedRequest
|
|
5
|
+
* @tsplus companion fncts.query.BlockedRequestOps
|
|
6
|
+
*/
|
|
7
|
+
var BlockedRequest = class {
|
|
8
|
+
request;
|
|
9
|
+
result;
|
|
10
|
+
[BlockedRequestTypeId] = BlockedRequestTypeId;
|
|
11
|
+
constructor(request, result) {
|
|
12
|
+
this.request = request;
|
|
13
|
+
this.result = result;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
15
16
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
* @tsplus static fncts.query.BlockedRequestOps make
|
|
18
|
+
*/
|
|
19
|
+
function make(request, result) {
|
|
20
|
+
return new BlockedRequest(request, result);
|
|
20
21
|
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { BlockedRequest, BlockedRequestTypeId, make };
|
|
24
|
+
|
|
21
25
|
//# sourceMappingURL=BlockedRequest.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockedRequest.mjs","names":[
|
|
1
|
+
{"version":3,"file":"BlockedRequest.mjs","names":[],"sources":["../../esm/internal/BlockedRequest.js"],"sourcesContent":["export const BlockedRequestTypeId = Symbol.for(\"fncts.query.BlockedRequest\");\n/**\n * @tsplus type fncts.query.BlockedRequest\n * @tsplus companion fncts.query.BlockedRequestOps\n */\nexport class BlockedRequest {\n request;\n result;\n [BlockedRequestTypeId] = BlockedRequestTypeId;\n constructor(request, result) {\n this.request = request;\n this.result = result;\n }\n}\n/**\n * @tsplus static fncts.query.BlockedRequestOps make\n */\nexport function make(request, result) {\n return new BlockedRequest(request, result);\n}\n//# sourceMappingURL=BlockedRequest.js.map"],"mappings":";AAAA,MAAa,uBAAuB,OAAO,IAAI,6BAA6B;;;;;AAK5E,IAAa,iBAAb,MAA4B;CACxB;CACA;CACA,CAAC,wBAAwB;CACzB,YAAY,SAAS,QAAQ;AACzB,OAAK,UAAU;AACf,OAAK,SAAS;;;;;;AAMtB,SAAgB,KAAK,SAAS,QAAQ;AAClC,QAAO,IAAI,eAAe,SAAS,OAAO"}
|