@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/Described.mjs
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
+
//#region build/esm/Described.js
|
|
1
2
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
3
|
+
* A `Described<A>` is a value of type `A` along with a string description of
|
|
4
|
+
* that value. The description may be used to generate a hash associated with
|
|
5
|
+
* the value, so values that are equal should have the same description and
|
|
6
|
+
* values that are not equal should have different descriptions.
|
|
7
|
+
*
|
|
8
|
+
* @tsplus type fncts.query.Described
|
|
9
|
+
* @tsplus companion fncts.query.DescribedOps
|
|
10
|
+
*/
|
|
11
|
+
var Described = class {
|
|
12
|
+
value;
|
|
13
|
+
description;
|
|
14
|
+
constructor(value, description) {
|
|
15
|
+
this.value = value;
|
|
16
|
+
this.description = description;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
18
19
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
* @tsplus pipeable global described
|
|
21
|
+
*/
|
|
22
|
+
function described(description) {
|
|
23
|
+
return (value) => {
|
|
24
|
+
return new Described(value, description);
|
|
25
|
+
};
|
|
25
26
|
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Described, described };
|
|
29
|
+
|
|
26
30
|
//# sourceMappingURL=Described.mjs.map
|
package/_mjs/Described.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Described.mjs","names":[
|
|
1
|
+
{"version":3,"file":"Described.mjs","names":[],"sources":["../esm/Described.js"],"sourcesContent":["/**\n * A `Described<A>` is a value of type `A` along with a string description of\n * that value. The description may be used to generate a hash associated with\n * the value, so values that are equal should have the same description and\n * values that are not equal should have different descriptions.\n *\n * @tsplus type fncts.query.Described\n * @tsplus companion fncts.query.DescribedOps\n */\nexport class Described {\n value;\n description;\n constructor(value, description) {\n this.value = value;\n this.description = description;\n }\n}\n/**\n * @tsplus pipeable global described\n */\nexport function described(description) {\n return (value) => {\n return new Described(value, description);\n };\n}\n//# sourceMappingURL=Described.js.map"],"mappings":";;;;;;;;;;AASA,IAAa,YAAb,MAAuB;CACnB;CACA;CACA,YAAY,OAAO,aAAa;AAC5B,OAAK,QAAQ;AACb,OAAK,cAAc;;;;;;AAM3B,SAAgB,UAAU,aAAa;AACnC,SAAQ,UAAU;AACd,SAAO,IAAI,UAAU,OAAO,YAAY"}
|
package/_mjs/Query/api/bimap.mjs
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/query/Query/api";
|
|
2
2
|
import * as tsplus_module_2 from "@fncts/query/Query/api/matchQuery";
|
|
3
|
+
//#region build/esm/Query/api/bimap.js
|
|
3
4
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
* @tsplus pipeable fncts.query.Query bimap
|
|
6
|
+
*/
|
|
7
|
+
function bimap(failure, success, __tsplusTrace) {
|
|
8
|
+
return (self) => {
|
|
9
|
+
return tsplus_module_2.matchQuery((e) => tsplus_module_1.failNow(failure(e), __tsplusTrace), (a) => tsplus_module_1.succeedNow(success(a)), __tsplusTrace)(self);
|
|
10
|
+
};
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { bimap };
|
|
14
|
+
|
|
11
15
|
//# sourceMappingURL=bimap.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bimap.mjs","names":[
|
|
1
|
+
{"version":3,"file":"bimap.mjs","names":[],"sources":["../../../esm/Query/api/bimap.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/query/Query/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api/matchQuery\";\n/**\n * @tsplus pipeable fncts.query.Query bimap\n */\nexport function bimap(failure, success, __tsplusTrace) {\n return (self) => {\n return tsplus_module_2.matchQuery((e) => tsplus_module_1.failNow(failure(e), __tsplusTrace), (a) => tsplus_module_1.succeedNow(success(a)), __tsplusTrace)(self);\n };\n}\n//# sourceMappingURL=bimap.js.map"],"mappings":";;;;;;AAKA,SAAgB,MAAM,SAAS,SAAS,eAAe;AACnD,SAAQ,SAAS;AACb,SAAO,gBAAgB,YAAY,MAAM,gBAAgB,QAAQ,QAAQ,EAAE,EAAE,cAAc,GAAG,MAAM,gBAAgB,WAAW,QAAQ,EAAE,CAAC,EAAE,cAAc,CAAC,KAAK"}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/query/Query/api";
|
|
2
|
-
import * as tsplus_module_2 from "@fncts/query/Query/api/matchCauseQuery";
|
|
3
2
|
import * as tsplus_module_3 from "@fncts/query/Query/api/matchQuery";
|
|
3
|
+
import * as tsplus_module_2 from "@fncts/query/Query/api/matchCauseQuery";
|
|
4
|
+
//#region build/esm/Query/api/catchAllCause.js
|
|
4
5
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
* @tsplus pipeable fncts.query.Query catchAllCause
|
|
7
|
+
*/
|
|
8
|
+
function catchAllCause(f, __tsplusTrace) {
|
|
9
|
+
return (self) => {
|
|
10
|
+
return tsplus_module_2.matchCauseQuery(f, tsplus_module_1.succeedNow)(self);
|
|
11
|
+
};
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
* @tsplus pipeable fncts.query.Query catchAll
|
|
15
|
+
*/
|
|
16
|
+
function catchAll(f, __tsplusTrace) {
|
|
17
|
+
return (self) => {
|
|
18
|
+
return tsplus_module_3.matchQuery(f, tsplus_module_1.succeedNow, __tsplusTrace)(self);
|
|
19
|
+
};
|
|
19
20
|
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { catchAll, catchAllCause };
|
|
23
|
+
|
|
20
24
|
//# sourceMappingURL=catchAllCause.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catchAllCause.mjs","names":["
|
|
1
|
+
{"version":3,"file":"catchAllCause.mjs","names":[],"sources":["../../../esm/Query/api/catchAllCause.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/query/Query/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api/matchCauseQuery\";\nimport * as tsplus_module_3 from \"@fncts/query/Query/api/matchQuery\";\n/**\n * @tsplus pipeable fncts.query.Query catchAllCause\n */\nexport function catchAllCause(f, __tsplusTrace) {\n return (self) => {\n return tsplus_module_2.matchCauseQuery(f, tsplus_module_1.succeedNow)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.query.Query catchAll\n */\nexport function catchAll(f, __tsplusTrace) {\n return (self) => {\n return tsplus_module_3.matchQuery(f, tsplus_module_1.succeedNow, __tsplusTrace)(self);\n };\n}\n//# sourceMappingURL=catchAllCause.js.map"],"mappings":";;;;;;;AAMA,SAAgB,cAAc,GAAG,eAAe;AAC5C,SAAQ,SAAS;AACb,SAAO,gBAAgB,gBAAgB,GAAG,gBAAgB,WAAW,CAAC,KAAK;;;;;;AAMnF,SAAgB,SAAS,GAAG,eAAe;AACvC,SAAQ,SAAS;AACb,SAAO,gBAAgB,WAAW,GAAG,gBAAgB,YAAY,cAAc,CAAC,KAAK"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/base/data/function/api";
|
|
2
2
|
import * as tsplus_module_2 from "@fncts/query/Query/api/foreach";
|
|
3
|
+
//#region build/esm/Query/api/collectAll.js
|
|
3
4
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
* @tsplus static fncts.query.QueryOps collectAll
|
|
6
|
+
*/
|
|
7
|
+
function collectAll(self, __tsplusTrace) {
|
|
8
|
+
return tsplus_module_2.foreach(self, tsplus_module_1.identity, __tsplusTrace);
|
|
8
9
|
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { collectAll };
|
|
12
|
+
|
|
9
13
|
//# sourceMappingURL=collectAll.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectAll.mjs","names":[
|
|
1
|
+
{"version":3,"file":"collectAll.mjs","names":[],"sources":["../../../esm/Query/api/collectAll.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/base/data/function/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api/foreach\";\n/**\n * @tsplus static fncts.query.QueryOps collectAll\n */\nexport function collectAll(self, __tsplusTrace) {\n return tsplus_module_2.foreach(self, tsplus_module_1.identity, __tsplusTrace);\n}\n//# sourceMappingURL=collectAll.js.map"],"mappings":";;;;;;AAKA,SAAgB,WAAW,MAAM,eAAe;AAC5C,QAAO,gBAAgB,QAAQ,MAAM,gBAAgB,UAAU,cAAc"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/base/data/function/api";
|
|
2
2
|
import * as tsplus_module_2 from "@fncts/query/Query/api/foreachBatched";
|
|
3
|
+
//#region build/esm/Query/api/collectAllBatched.js
|
|
3
4
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
* @tsplus static fncts.query.QueryOps collectAllBatched
|
|
6
|
+
*/
|
|
7
|
+
function collectAllBatched(self, __tsplusTrace) {
|
|
8
|
+
return tsplus_module_2.foreachBatched(self, tsplus_module_1.identity, __tsplusTrace);
|
|
8
9
|
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { collectAllBatched };
|
|
12
|
+
|
|
9
13
|
//# sourceMappingURL=collectAllBatched.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectAllBatched.mjs","names":[
|
|
1
|
+
{"version":3,"file":"collectAllBatched.mjs","names":[],"sources":["../../../esm/Query/api/collectAllBatched.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/base/data/function/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api/foreachBatched\";\n/**\n * @tsplus static fncts.query.QueryOps collectAllBatched\n */\nexport function collectAllBatched(self, __tsplusTrace) {\n return tsplus_module_2.foreachBatched(self, tsplus_module_1.identity, __tsplusTrace);\n}\n//# sourceMappingURL=collectAllBatched.js.map"],"mappings":";;;;;;AAKA,SAAgB,kBAAkB,MAAM,eAAe;AACnD,QAAO,gBAAgB,eAAe,MAAM,gBAAgB,UAAU,cAAc"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/base/data/function/api";
|
|
2
2
|
import * as tsplus_module_2 from "@fncts/query/Query/api/foreachConcurrent";
|
|
3
|
+
//#region build/esm/Query/api/collectAllConcurrent.js
|
|
3
4
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
* @tsplus static fncts.query.QueryOps collectAllConcurrent
|
|
6
|
+
*/
|
|
7
|
+
function collectAllConcurrent(self, __tsplusTrace) {
|
|
8
|
+
return tsplus_module_2.foreachConcurrent(self, tsplus_module_1.identity, __tsplusTrace);
|
|
8
9
|
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { collectAllConcurrent };
|
|
12
|
+
|
|
9
13
|
//# sourceMappingURL=collectAllConcurrent.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectAllConcurrent.mjs","names":[
|
|
1
|
+
{"version":3,"file":"collectAllConcurrent.mjs","names":[],"sources":["../../../esm/Query/api/collectAllConcurrent.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/base/data/function/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api/foreachConcurrent\";\n/**\n * @tsplus static fncts.query.QueryOps collectAllConcurrent\n */\nexport function collectAllConcurrent(self, __tsplusTrace) {\n return tsplus_module_2.foreachConcurrent(self, tsplus_module_1.identity, __tsplusTrace);\n}\n//# sourceMappingURL=collectAllConcurrent.js.map"],"mappings":";;;;;;AAKA,SAAgB,qBAAqB,MAAM,eAAe;AACtD,QAAO,gBAAgB,kBAAkB,MAAM,gBAAgB,UAAU,cAAc"}
|
package/_mjs/Query/api/defer.mjs
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
const fileName_1 = "(@fncts/query) src/Query/api/defer.ts";
|
|
2
1
|
import * as tsplus_module_1 from "@fncts/query/Query/api";
|
|
3
2
|
import * as tsplus_module_2 from "@fncts/query/Query/api/flatMap";
|
|
3
|
+
//#region build/esm/Query/api/defer.js
|
|
4
|
+
const fileName_1 = "(@fncts/query) src/Query/api/defer.ts";
|
|
4
5
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* @tsplus static fncts.query.QueryOps defer
|
|
7
|
+
*/
|
|
8
|
+
function defer(query) {
|
|
9
|
+
return tsplus_module_2.flatMap(() => query(), fileName_1 + ":5:28")(tsplus_module_1.unit);
|
|
9
10
|
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { defer };
|
|
13
|
+
|
|
10
14
|
//# sourceMappingURL=defer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defer.mjs","names":[
|
|
1
|
+
{"version":3,"file":"defer.mjs","names":[],"sources":["../../../esm/Query/api/defer.js"],"sourcesContent":["const fileName_1 = \"(@fncts/query) src/Query/api/defer.ts\";\nimport * as tsplus_module_1 from \"@fncts/query/Query/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api/flatMap\";\n/**\n * @tsplus static fncts.query.QueryOps defer\n */\nexport function defer(query) {\n return tsplus_module_2.flatMap(() => query(), fileName_1 + \":5:28\")(tsplus_module_1.unit);\n}\n//# sourceMappingURL=defer.js.map"],"mappings":";;;AAAA,MAAM,aAAa;;;;AAMnB,SAAgB,MAAM,OAAO;AACzB,QAAO,gBAAgB,cAAc,OAAO,EAAE,aAAa,QAAQ,CAAC,gBAAgB,KAAK"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/base/data/Cause/api";
|
|
2
2
|
import * as tsplus_module_2 from "@fncts/query/Query/api";
|
|
3
3
|
import * as tsplus_module_3 from "@fncts/query/Query/api/matchCauseQuery";
|
|
4
|
+
//#region build/esm/Query/api/ensuring.js
|
|
4
5
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
* @tsplus pipeable fncts.query.Query ensuring
|
|
7
|
+
*/
|
|
8
|
+
function ensuring(finalizer, __tsplusTrace) {
|
|
9
|
+
return (self) => {
|
|
10
|
+
return tsplus_module_3.matchCauseQuery((cause1) => tsplus_module_3.matchCauseQuery((cause2) => tsplus_module_2.failCauseNow(tsplus_module_1.sequential(cause1, cause2), __tsplusTrace), () => tsplus_module_2.failCauseNow(cause1, __tsplusTrace))(finalizer), (value) => tsplus_module_3.matchCauseQuery((cause) => tsplus_module_2.failCauseNow(cause, __tsplusTrace), () => tsplus_module_2.succeedNow(value))(finalizer))(self);
|
|
11
|
+
};
|
|
11
12
|
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ensuring };
|
|
15
|
+
|
|
12
16
|
//# sourceMappingURL=ensuring.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensuring.mjs","names":["ensuring","
|
|
1
|
+
{"version":3,"file":"ensuring.mjs","names":[],"sources":["../../../esm/Query/api/ensuring.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api\";\nimport * as tsplus_module_3 from \"@fncts/query/Query/api/matchCauseQuery\";\n/**\n * @tsplus pipeable fncts.query.Query ensuring\n */\nexport function ensuring(finalizer, __tsplusTrace) {\n return (self) => {\n return tsplus_module_3.matchCauseQuery((cause1) => tsplus_module_3.matchCauseQuery((cause2) => tsplus_module_2.failCauseNow(tsplus_module_1.sequential(cause1, cause2), __tsplusTrace), () => tsplus_module_2.failCauseNow(cause1, __tsplusTrace))(finalizer), (value) => tsplus_module_3.matchCauseQuery((cause) => tsplus_module_2.failCauseNow(cause, __tsplusTrace), () => tsplus_module_2.succeedNow(value))(finalizer))(self);\n };\n}\n//# sourceMappingURL=ensuring.js.map"],"mappings":";;;;;;;AAMA,SAAgB,SAAS,WAAW,eAAe;AAC/C,SAAQ,SAAS;AACb,SAAO,gBAAgB,iBAAiB,WAAW,gBAAgB,iBAAiB,WAAW,gBAAgB,aAAa,gBAAgB,WAAW,QAAQ,OAAO,EAAE,cAAc,QAAQ,gBAAgB,aAAa,QAAQ,cAAc,CAAC,CAAC,UAAU,GAAG,UAAU,gBAAgB,iBAAiB,UAAU,gBAAgB,aAAa,OAAO,cAAc,QAAQ,gBAAgB,WAAW,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK"}
|
|
@@ -1,77 +1,81 @@
|
|
|
1
|
-
const fileName_1 = "(@fncts/query) src/Query/api/environment.ts";
|
|
2
|
-
import * as tsplus_module_1 from "@fncts/io/IO/api/environment";
|
|
3
|
-
import * as tsplus_module_2 from "@fncts/query/Query/api";
|
|
4
|
-
import * as tsplus_module_3 from "@fncts/query/Query/api/map";
|
|
5
|
-
import * as tsplus_module_4 from "@fncts/query/Query/api/flatMap";
|
|
6
|
-
import * as tsplus_module_5 from "@fncts/query/Query/api/mapIO";
|
|
7
1
|
import * as tsplus_module_6 from "@fncts/query/Query/definition";
|
|
8
2
|
import * as tsplus_module_7 from "@fncts/query/internal/Result";
|
|
9
3
|
import * as tsplus_module_8 from "@fncts/io/IO/api";
|
|
4
|
+
import * as tsplus_module_2 from "@fncts/query/Query/api";
|
|
5
|
+
import * as tsplus_module_4 from "@fncts/query/Query/api/flatMap";
|
|
6
|
+
import * as tsplus_module_1 from "@fncts/io/IO/api/environment";
|
|
7
|
+
import * as tsplus_module_3 from "@fncts/query/Query/api/map";
|
|
8
|
+
import * as tsplus_module_5 from "@fncts/query/Query/api/mapIO";
|
|
10
9
|
import * as tsplus_module_9 from "@fncts/base/data/Environment/api";
|
|
11
10
|
import * as tsplus_module_10 from "@fncts/base/data/Exit/api";
|
|
12
11
|
import * as tsplus_module_11 from "@fncts/io/Layer/MemoMap";
|
|
13
12
|
import * as tsplus_module_12 from "@fncts/io/IO/api/scoped";
|
|
14
|
-
export const environment = environment_1;
|
|
15
|
-
export const contramapEnvironment = contramapEnvironment_1;
|
|
16
|
-
export const provideSomeEnvironment = provideSomeEnvironment_1;
|
|
17
13
|
import { Described } from "@fncts/query/Described";
|
|
14
|
+
//#region build/esm/Query/api/environment.js
|
|
15
|
+
const fileName_1 = "(@fncts/query) src/Query/api/environment.ts";
|
|
16
|
+
const environment = environment_1;
|
|
17
|
+
const contramapEnvironment = contramapEnvironment_1;
|
|
18
|
+
const provideSomeEnvironment = provideSomeEnvironment_1;
|
|
18
19
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
* @tsplus static fncts.query.QueryOps environment
|
|
21
|
+
*/
|
|
21
22
|
function environment_1() {
|
|
22
|
-
|
|
23
|
+
return tsplus_module_2.fromIO(() => tsplus_module_1.environment(fileName_1 + ":7:37"));
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
* @tsplus static fncts.query.QueryOps environmentWith
|
|
27
|
+
*/
|
|
28
|
+
function environmentWith(f) {
|
|
29
|
+
return tsplus_module_3.map(f)(environment_1());
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
* @tsplus static fncts.query.QueryOps environmentWithQuery
|
|
33
|
+
*/
|
|
34
|
+
function environmentWithQuery(f) {
|
|
35
|
+
return tsplus_module_4.flatMap(f, fileName_1 + ":23:41")(environment_1());
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
* @tsplus static fncts.query.QueryOps environmentWithIO
|
|
39
|
+
*/
|
|
40
|
+
function environmentWithIO(f) {
|
|
41
|
+
return tsplus_module_5.mapIO(f)(environment_1());
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
* @tsplus pipeable fncts.query.Query contramapEnvironment
|
|
45
|
+
*/
|
|
45
46
|
function contramapEnvironment_1(f, __tsplusTrace) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
return (self) => {
|
|
48
|
+
return new tsplus_module_6.Query(tsplus_module_1.contramapEnvironment((r) => f.value(r), __tsplusTrace)(tsplus_module_8.map((result) => tsplus_module_7.contramapEnvironment(f, __tsplusTrace)(result), __tsplusTrace)(self.step)));
|
|
49
|
+
};
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
* @tsplus pipeable fncts.query.Query provideEnvironment
|
|
53
|
+
*/
|
|
54
|
+
function provideEnvironment(environment, __tsplusTrace) {
|
|
55
|
+
return (self) => {
|
|
56
|
+
return contramapEnvironment_1(new Described(() => environment.value, `() => ${environment.description}`), __tsplusTrace)(self);
|
|
57
|
+
};
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
* @tsplus pipeable fncts.query.Query provideSomeEnvironment
|
|
61
|
+
*/
|
|
61
62
|
function provideSomeEnvironment_1(environment, __tsplusTrace) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
return (self) => {
|
|
64
|
+
return contramapEnvironment_1(new Described((r) => tsplus_module_9.union(environment.value)(r), "Environment<R> => Environment<R | R0>"), __tsplusTrace)(self);
|
|
65
|
+
};
|
|
65
66
|
}
|
|
66
67
|
/**
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
* @tsplus pipeable fncts.query.Query provideLayer
|
|
69
|
+
*/
|
|
70
|
+
function provideLayer(layer, __tsplusTrace) {
|
|
71
|
+
return (self) => {
|
|
72
|
+
return new tsplus_module_6.Query(tsplus_module_12.scoped_(() => {
|
|
73
|
+
const layer0 = layer();
|
|
74
|
+
return tsplus_module_8.flatMap((exit) => tsplus_module_10.match((cause) => tsplus_module_8.succeedNow(tsplus_module_7.fail(cause), __tsplusTrace), (r) => provideSomeEnvironment_1(new Described(r, layer0.description), __tsplusTrace)(self).step)(exit), __tsplusTrace)(tsplus_module_8.result(tsplus_module_11.build(layer0.value, __tsplusTrace), __tsplusTrace));
|
|
75
|
+
}, __tsplusTrace));
|
|
76
|
+
};
|
|
76
77
|
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { contramapEnvironment, environment, environmentWith, environmentWithIO, environmentWithQuery, provideEnvironment, provideLayer, provideSomeEnvironment };
|
|
80
|
+
|
|
77
81
|
//# sourceMappingURL=environment.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.mjs","names":["environment","
|
|
1
|
+
{"version":3,"file":"environment.mjs","names":[],"sources":["../../../esm/Query/api/environment.js"],"sourcesContent":["const fileName_1 = \"(@fncts/query) src/Query/api/environment.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api\";\nimport * as tsplus_module_3 from \"@fncts/query/Query/api/map\";\nimport * as tsplus_module_4 from \"@fncts/query/Query/api/flatMap\";\nimport * as tsplus_module_5 from \"@fncts/query/Query/api/mapIO\";\nimport * as tsplus_module_6 from \"@fncts/query/Query/definition\";\nimport * as tsplus_module_7 from \"@fncts/query/internal/Result\";\nimport * as tsplus_module_8 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_9 from \"@fncts/base/data/Environment/api\";\nimport * as tsplus_module_10 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_11 from \"@fncts/io/Layer/MemoMap\";\nimport * as tsplus_module_12 from \"@fncts/io/IO/api/scoped\";\nexport const environment = environment_1;\nexport const contramapEnvironment = contramapEnvironment_1;\nexport const provideSomeEnvironment = provideSomeEnvironment_1;\nimport { Described } from \"@fncts/query/Described\";\n/**\n * @tsplus static fncts.query.QueryOps environment\n */\nfunction environment_1() {\n return tsplus_module_2.fromIO(() => tsplus_module_1.environment(fileName_1 + \":7:37\"));\n}\n/**\n * @tsplus static fncts.query.QueryOps environmentWith\n */\nexport function environmentWith(f) {\n return tsplus_module_3.map(f)(environment_1());\n}\n/**\n * @tsplus static fncts.query.QueryOps environmentWithQuery\n */\nexport function environmentWithQuery(f) {\n return tsplus_module_4.flatMap(f, fileName_1 + \":23:41\")(environment_1());\n}\n/**\n * @tsplus static fncts.query.QueryOps environmentWithIO\n */\nexport function environmentWithIO(f) {\n return tsplus_module_5.mapIO(f)(environment_1());\n}\n/**\n * @tsplus pipeable fncts.query.Query contramapEnvironment\n */\nfunction contramapEnvironment_1(f, __tsplusTrace) {\n return (self) => {\n return new tsplus_module_6.Query(tsplus_module_1.contramapEnvironment((r) => f.value(r), __tsplusTrace)(tsplus_module_8.map((result) => tsplus_module_7.contramapEnvironment(f, __tsplusTrace)(result), __tsplusTrace)(self.step)));\n };\n}\n/**\n * @tsplus pipeable fncts.query.Query provideEnvironment\n */\nexport function provideEnvironment(environment, __tsplusTrace) {\n return (self) => {\n return contramapEnvironment_1(new Described(() => environment.value, `() => ${environment.description}`), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.query.Query provideSomeEnvironment\n */\nfunction provideSomeEnvironment_1(environment, __tsplusTrace) {\n return (self) => {\n return contramapEnvironment_1(new Described((r) => tsplus_module_9.union(environment.value)(r), \"Environment<R> => Environment<R | R0>\"), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.query.Query provideLayer\n */\nexport function provideLayer(layer, __tsplusTrace) {\n return (self) => {\n return new tsplus_module_6.Query(tsplus_module_12.scoped_(() => {\n const layer0 = layer();\n return tsplus_module_8.flatMap((exit) => tsplus_module_10.match((cause) => tsplus_module_8.succeedNow(tsplus_module_7.fail(cause), __tsplusTrace), (r) => provideSomeEnvironment_1(new Described(r, layer0.description), __tsplusTrace)(self).step)(exit), __tsplusTrace)(tsplus_module_8.result(tsplus_module_11.build(layer0.value, __tsplusTrace), __tsplusTrace));\n }, __tsplusTrace));\n };\n}\n//# sourceMappingURL=environment.js.map"],"mappings":";;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAanB,MAAa,cAAc;AAC3B,MAAa,uBAAuB;AACpC,MAAa,yBAAyB;;;;AAKtC,SAAS,gBAAgB;AACrB,QAAO,gBAAgB,aAAa,gBAAgB,YAAY,aAAa,QAAQ,CAAC;;;;;AAK1F,SAAgB,gBAAgB,GAAG;AAC/B,QAAO,gBAAgB,IAAI,EAAE,CAAC,eAAe,CAAC;;;;;AAKlD,SAAgB,qBAAqB,GAAG;AACpC,QAAO,gBAAgB,QAAQ,GAAG,aAAa,SAAS,CAAC,eAAe,CAAC;;;;;AAK7E,SAAgB,kBAAkB,GAAG;AACjC,QAAO,gBAAgB,MAAM,EAAE,CAAC,eAAe,CAAC;;;;;AAKpD,SAAS,uBAAuB,GAAG,eAAe;AAC9C,SAAQ,SAAS;AACb,SAAO,IAAI,gBAAgB,MAAM,gBAAgB,sBAAsB,MAAM,EAAE,MAAM,EAAE,EAAE,cAAc,CAAC,gBAAgB,KAAK,WAAW,gBAAgB,qBAAqB,GAAG,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC,KAAK,KAAK,CAAC,CAAC;;;;;;AAM3O,SAAgB,mBAAmB,aAAa,eAAe;AAC3D,SAAQ,SAAS;AACb,SAAO,uBAAuB,IAAI,gBAAgB,YAAY,OAAO,SAAS,YAAY,cAAc,EAAE,cAAc,CAAC,KAAK;;;;;;AAMtI,SAAS,yBAAyB,aAAa,eAAe;AAC1D,SAAQ,SAAS;AACb,SAAO,uBAAuB,IAAI,WAAW,MAAM,gBAAgB,MAAM,YAAY,MAAM,CAAC,EAAE,EAAE,wCAAwC,EAAE,cAAc,CAAC,KAAK;;;;;;AAMtK,SAAgB,aAAa,OAAO,eAAe;AAC/C,SAAQ,SAAS;AACb,SAAO,IAAI,gBAAgB,MAAM,iBAAiB,cAAc;GAC5D,MAAM,SAAS,OAAO;AACtB,UAAO,gBAAgB,SAAS,SAAS,iBAAiB,OAAO,UAAU,gBAAgB,WAAW,gBAAgB,KAAK,MAAM,EAAE,cAAc,GAAG,MAAM,yBAAyB,IAAI,UAAU,GAAG,OAAO,YAAY,EAAE,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,OAAO,iBAAiB,MAAM,OAAO,OAAO,cAAc,EAAE,cAAc,CAAC;KACtW,cAAc,CAAC"}
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/query/Query/definition";
|
|
2
|
-
import * as tsplus_module_2 from "@fncts/query/internal/Continue";
|
|
3
2
|
import * as tsplus_module_3 from "@fncts/query/internal/Result";
|
|
4
3
|
import * as tsplus_module_4 from "@fncts/io/IO/api";
|
|
5
4
|
import * as tsplus_module_5 from "@fncts/base/data/function/api";
|
|
6
|
-
|
|
5
|
+
import * as tsplus_module_2 from "@fncts/query/internal/Continue";
|
|
6
|
+
//#region build/esm/Query/api/flatMap.js
|
|
7
|
+
const flatMap = flatMap_1;
|
|
7
8
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
* @tsplus pipeable fncts.query.Query flatMap
|
|
10
|
+
*/
|
|
10
11
|
function flatMap_1(f, __tsplusTrace) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
return (self) => {
|
|
13
|
+
return new tsplus_module_1.Query(tsplus_module_4.flatMap((result) => tsplus_module_3.matchType({
|
|
14
|
+
Blocked: (br, c) => tsplus_module_4.succeedNow(tsplus_module_3.blocked(br, tsplus_module_2.mapQuery(f, __tsplusTrace)(c)), __tsplusTrace),
|
|
15
|
+
Done: (a) => f(a).step,
|
|
16
|
+
Fail: (e) => tsplus_module_4.succeedNow(tsplus_module_3.fail(e), __tsplusTrace)
|
|
17
|
+
})(result), __tsplusTrace)(self.step));
|
|
18
|
+
};
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* @tsplus getter fncts.query.Query flatten
|
|
22
|
+
*/
|
|
23
|
+
function flatten(self, __tsplusTrace) {
|
|
24
|
+
return flatMap_1(tsplus_module_5.identity, __tsplusTrace)(self);
|
|
24
25
|
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { flatMap, flatten };
|
|
28
|
+
|
|
25
29
|
//# sourceMappingURL=flatMap.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatMap.mjs","names":[
|
|
1
|
+
{"version":3,"file":"flatMap.mjs","names":[],"sources":["../../../esm/Query/api/flatMap.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/query/Query/definition\";\nimport * as tsplus_module_2 from \"@fncts/query/internal/Continue\";\nimport * as tsplus_module_3 from \"@fncts/query/internal/Result\";\nimport * as tsplus_module_4 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_5 from \"@fncts/base/data/function/api\";\nexport const flatMap = flatMap_1;\n/**\n * @tsplus pipeable fncts.query.Query flatMap\n */\nfunction flatMap_1(f, __tsplusTrace) {\n return (self) => {\n return new tsplus_module_1.Query(tsplus_module_4.flatMap((result) => tsplus_module_3.matchType({\n Blocked: (br, c) => tsplus_module_4.succeedNow(tsplus_module_3.blocked(br, tsplus_module_2.mapQuery(f, __tsplusTrace)(c)), __tsplusTrace),\n Done: (a) => f(a).step,\n Fail: (e) => tsplus_module_4.succeedNow(tsplus_module_3.fail(e), __tsplusTrace),\n })(result), __tsplusTrace)(self.step));\n };\n}\n/**\n * @tsplus getter fncts.query.Query flatten\n */\nexport function flatten(self, __tsplusTrace) {\n return flatMap_1(tsplus_module_5.identity, __tsplusTrace)(self);\n}\n//# sourceMappingURL=flatMap.js.map"],"mappings":";;;;;;AAKA,MAAa,UAAU;;;;AAIvB,SAAS,UAAU,GAAG,eAAe;AACjC,SAAQ,SAAS;AACb,SAAO,IAAI,gBAAgB,MAAM,gBAAgB,SAAS,WAAW,gBAAgB,UAAU;GAC3F,UAAU,IAAI,MAAM,gBAAgB,WAAW,gBAAgB,QAAQ,IAAI,gBAAgB,SAAS,GAAG,cAAc,CAAC,EAAE,CAAC,EAAE,cAAc;GACzI,OAAO,MAAM,EAAE,EAAE,CAAC;GAClB,OAAO,MAAM,gBAAgB,WAAW,gBAAgB,KAAK,EAAE,EAAE,cAAc;GAClF,CAAC,CAAC,OAAO,EAAE,cAAc,CAAC,KAAK,KAAK,CAAC;;;;;;AAM9C,SAAgB,QAAQ,MAAM,eAAe;AACzC,QAAO,UAAU,gBAAgB,UAAU,cAAc,CAAC,KAAK"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/query/Query/api";
|
|
2
|
+
import * as tsplus_module_4 from "@fncts/query/Query/api/map";
|
|
2
3
|
import * as tsplus_module_2 from "@fncts/query/Query/api/zipWith";
|
|
3
4
|
import * as tsplus_module_3 from "@fncts/base/collection/immutable/Conc/definition";
|
|
4
|
-
|
|
5
|
+
//#region build/esm/Query/api/foreach.js
|
|
5
6
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
return tsplus_module_4.map(() => tsplus_module_3.fromArray(out))(builder);
|
|
7
|
+
* @tsplus static fncts.query.QueryOps foreach
|
|
8
|
+
*/
|
|
9
|
+
function foreach(as, f, __tsplusTrace) {
|
|
10
|
+
const out = [];
|
|
11
|
+
let builder = tsplus_module_1.unit;
|
|
12
|
+
for (const a of as) builder = tsplus_module_2.zipWith(() => f(a), (_, b) => {
|
|
13
|
+
out.push(b);
|
|
14
|
+
}, __tsplusTrace)(builder);
|
|
15
|
+
return tsplus_module_4.map(() => tsplus_module_3.fromArray(out))(builder);
|
|
17
16
|
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { foreach };
|
|
19
|
+
|
|
18
20
|
//# sourceMappingURL=foreach.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foreach.mjs","names":["foreach","as"
|
|
1
|
+
{"version":3,"file":"foreach.mjs","names":[],"sources":["../../../esm/Query/api/foreach.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/query/Query/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api/zipWith\";\nimport * as tsplus_module_3 from \"@fncts/base/collection/immutable/Conc/definition\";\nimport * as tsplus_module_4 from \"@fncts/query/Query/api/map\";\n/**\n * @tsplus static fncts.query.QueryOps foreach\n */\nexport function foreach(as, f, __tsplusTrace) {\n const out = [];\n let builder = tsplus_module_1.unit;\n for (const a of as) {\n builder = tsplus_module_2.zipWith(() => f(a), (_, b) => {\n out.push(b);\n }, __tsplusTrace)(builder);\n }\n return tsplus_module_4.map(() => tsplus_module_3.fromArray(out))(builder);\n}\n//# sourceMappingURL=foreach.js.map"],"mappings":";;;;;;;;AAOA,SAAgB,QAAQ,IAAI,GAAG,eAAe;CAC1C,MAAM,MAAM,EAAE;CACd,IAAI,UAAU,gBAAgB;AAC9B,MAAK,MAAM,KAAK,GACZ,WAAU,gBAAgB,cAAc,EAAE,EAAE,GAAG,GAAG,MAAM;AACpD,MAAI,KAAK,EAAE;IACZ,cAAc,CAAC,QAAQ;AAE9B,QAAO,gBAAgB,UAAU,gBAAgB,UAAU,IAAI,CAAC,CAAC,QAAQ"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/query/Query/api";
|
|
2
|
-
import * as tsplus_module_2 from "@fncts/query/Query/api/zipWithBatched";
|
|
3
|
-
import * as tsplus_module_3 from "@fncts/base/collection/immutable/Conc/definition";
|
|
4
2
|
import * as tsplus_module_4 from "@fncts/query/Query/api/map";
|
|
3
|
+
import * as tsplus_module_3 from "@fncts/base/collection/immutable/Conc/definition";
|
|
4
|
+
import * as tsplus_module_2 from "@fncts/query/Query/api/zipWithBatched";
|
|
5
|
+
//#region build/esm/Query/api/foreachBatched.js
|
|
5
6
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
return tsplus_module_4.map(() => tsplus_module_3.fromArray(out))(builder);
|
|
7
|
+
* @tsplus static fncts.query.QueryOps foreachBatched
|
|
8
|
+
*/
|
|
9
|
+
function foreachBatched(as, f, __tsplusTrace) {
|
|
10
|
+
const out = [];
|
|
11
|
+
let builder = tsplus_module_1.unit;
|
|
12
|
+
for (const a of as) builder = tsplus_module_2.zipWithBatched(f(a), (_, b) => {
|
|
13
|
+
out.push(b);
|
|
14
|
+
}, __tsplusTrace)(builder);
|
|
15
|
+
return tsplus_module_4.map(() => tsplus_module_3.fromArray(out))(builder);
|
|
17
16
|
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { foreachBatched };
|
|
19
|
+
|
|
18
20
|
//# sourceMappingURL=foreachBatched.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foreachBatched.mjs","names":["foreachBatched","as"
|
|
1
|
+
{"version":3,"file":"foreachBatched.mjs","names":[],"sources":["../../../esm/Query/api/foreachBatched.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/query/Query/api\";\nimport * as tsplus_module_2 from \"@fncts/query/Query/api/zipWithBatched\";\nimport * as tsplus_module_3 from \"@fncts/base/collection/immutable/Conc/definition\";\nimport * as tsplus_module_4 from \"@fncts/query/Query/api/map\";\n/**\n * @tsplus static fncts.query.QueryOps foreachBatched\n */\nexport function foreachBatched(as, f, __tsplusTrace) {\n const out = [];\n let builder = tsplus_module_1.unit;\n for (const a of as) {\n builder = tsplus_module_2.zipWithBatched(f(a), (_, b) => {\n out.push(b);\n }, __tsplusTrace)(builder);\n }\n return tsplus_module_4.map(() => tsplus_module_3.fromArray(out))(builder);\n}\n//# sourceMappingURL=foreachBatched.js.map"],"mappings":";;;;;;;;AAOA,SAAgB,eAAe,IAAI,GAAG,eAAe;CACjD,MAAM,MAAM,EAAE;CACd,IAAI,UAAU,gBAAgB;AAC9B,MAAK,MAAM,KAAK,GACZ,WAAU,gBAAgB,eAAe,EAAE,EAAE,GAAG,GAAG,MAAM;AACrD,MAAI,KAAK,EAAE;IACZ,cAAc,CAAC,QAAQ;AAE9B,QAAO,gBAAgB,UAAU,gBAAgB,UAAU,IAAI,CAAC,CAAC,QAAQ"}
|