@fncts/query 0.0.5 → 0.0.7
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/_cjs/DataSourceAspect.cjs.map +1 -1
- package/_cjs/Query/api/collectAllConcurrent.cjs.map +1 -1
- package/_cjs/Query/api/mapIO.cjs.map +1 -1
- package/_cjs/internal/Continue.cjs +2 -2
- package/_mjs/Query/api/collectAllConcurrent.mjs.map +1 -1
- package/_mjs/Query/api/mapIO.mjs.map +1 -1
- package/_mjs/internal/Continue.mjs +2 -2
- package/_src/DataSourceAspect.ts +4 -4
- package/_src/Query/api/collectAllConcurrent.ts +4 -1
- package/_src/Query/api/defer.ts +1 -1
- package/_src/Query/api/mapDataSources.ts +2 -2
- package/_src/Query/api/mapIO.ts +3 -3
- package/_src/index.ts +8 -0
- package/_src/internal/Continue.ts +2 -2
- package/index.d.ts +8 -0
- package/internal/Continue.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSourceAspect.cjs","mappings":";;;;;;;AAAO,MAAMA,sBAAsB,gBAAGC,MAAM,CAACC,GAAG,CAAC,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSourceAspect.cjs","mappings":";;;;;;;AAAO,MAAMA,sBAAsB,gBAAGC,MAAM,CAACC,GAAG,CAAC,8BAA8B,CAAC;AAAC;AAG3E,MAAgBC,gBAAgB;EAAtCC;IACW,QAAwB,GAA2BJ,sBAAsB;EAEpF;;AAAC;KAFWA,sBAAsB","names":["DataSourceAspectTypeId","Symbol","for","DataSourceAspect","constructor"],"sourceRoot":"","sources":["../_src/DataSourceAspect.ts"],"sourcesContent":[null]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectAllConcurrent.cjs","mappings":";;;;;;;;;;AAAA;;;AAGM,SAAUA,oBAAoB,
|
|
1
|
+
{"version":3,"file":"collectAllConcurrent.cjs","mappings":";;;;;;;;;;AAAA;;;AAGM,SAAUA,oBAAoB,CAClCC,IAA8B,EAC9BC,aAAsB;EAEtB,OAAOC,kCAAwBF,IAAI,4BAFnCC,cAEuD;AACzD","names":["collectAllConcurrent","self","__tsplusTrace","tsplus_module_2"],"sourceRoot":"","sources":["../../../_src/Query/api/collectAllConcurrent.ts"],"sourcesContent":[null]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapIO.cjs","mappings":";;;;;;;;;;;AAAA;;;AAGM,SAAUA,KAAK,CAAeC,CAA0B;EAC5D,OAAcC,IAAoB,IAA8B;IAC9D,OAAOC,
|
|
1
|
+
{"version":3,"file":"mapIO.cjs","mappings":";;;;;;;;;;;AAAA;;;AAGM,SAAUA,KAAK,CAAeC,CAA0B;EAC5D,OAAcC,IAAoB,IAA8B;IAC9D,OAAOC,wBAAcC,CAAC,IAAKC,6BAAaJ,CAAC,CAACG,CAAC,CAAC,CAAC,wBAAtCF,IAAI,CAAmC;EAChD,CAAC;AACH","names":["mapIO","f","self","tsplus_module_2","a","tsplus_module_1"],"sourceRoot":"","sources":["../../../_src/Query/api/mapIO.ts"],"sourcesContent":[null]}
|
|
@@ -92,14 +92,14 @@ function concrete(_) {
|
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* @tsplus static fncts.query.Continue.EffectOps __call
|
|
95
|
-
* @tsplus static fncts.query.
|
|
95
|
+
* @tsplus static fncts.query.ContinueOps effect
|
|
96
96
|
*/
|
|
97
97
|
function effect_1(query) {
|
|
98
98
|
return new Effect(query);
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* @tsplus static fncts.query.Continue.GetOps __call
|
|
102
|
-
* @tsplus static fncts.query.
|
|
102
|
+
* @tsplus static fncts.query.ContinueOps get
|
|
103
103
|
*/
|
|
104
104
|
function get_1(io) {
|
|
105
105
|
return new Get(io);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collectAllConcurrent.mjs","mappings":";;AAAA;;;AAGA,OAAM,SAAUA,oBAAoB,
|
|
1
|
+
{"version":3,"file":"collectAllConcurrent.mjs","mappings":";;AAAA;;;AAGA,OAAM,SAAUA,oBAAoB,CAClCC,IAA8B,EAC9BC,aAAsB;EAEtB,OAAOC,kCAAwBF,IAAI,4BAFnCC,cAEuD;AACzD","names":["collectAllConcurrent","self","__tsplusTrace","tsplus_module_2"],"sourceRoot":"","sources":["../../../_src/Query/api/collectAllConcurrent.ts"],"sourcesContent":[null]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapIO.mjs","mappings":";;;AAAA;;;AAGA,OAAM,SAAUA,KAAK,CAAeC,CAA0B;EAC5D,OAAcC,IAAoB,IAA8B;IAC9D,OAAOC,
|
|
1
|
+
{"version":3,"file":"mapIO.mjs","mappings":";;;AAAA;;;AAGA,OAAM,SAAUA,KAAK,CAAeC,CAA0B;EAC5D,OAAcC,IAAoB,IAA8B;IAC9D,OAAOC,wBAAcC,CAAC,IAAKC,6BAAaJ,CAAC,CAACG,CAAC,CAAC,CAAC,wBAAtCF,IAAI,CAAmC;EAChD,CAAC;AACH","names":["mapIO","f","self","tsplus_module_2","a","tsplus_module_1"],"sourceRoot":"","sources":["../../../_src/Query/api/mapIO.ts"],"sourcesContent":[null]}
|
|
@@ -62,14 +62,14 @@ function concrete(_) {
|
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* @tsplus static fncts.query.Continue.EffectOps __call
|
|
65
|
-
* @tsplus static fncts.query.
|
|
65
|
+
* @tsplus static fncts.query.ContinueOps effect
|
|
66
66
|
*/
|
|
67
67
|
function effect_1(query) {
|
|
68
68
|
return new Effect(query);
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* @tsplus static fncts.query.Continue.GetOps __call
|
|
72
|
-
* @tsplus static fncts.query.
|
|
72
|
+
* @tsplus static fncts.query.ContinueOps get
|
|
73
73
|
*/
|
|
74
74
|
function get_1(io) {
|
|
75
75
|
return new Get(io);
|
package/_src/DataSourceAspect.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const DataSourceAspectTypeId = Symbol.for("fncts.query.DataSourceAspect")
|
|
2
|
-
|
|
1
|
+
export const DataSourceAspectTypeId = Symbol.for("fncts.query.DataSourceAspect");
|
|
2
|
+
export type DataSourceAspectTypeId = typeof DataSourceAspectTypeId;
|
|
3
3
|
|
|
4
4
|
export abstract class DataSourceAspect<R> {
|
|
5
|
-
readonly [DataSourceAspectTypeId]: DataSourceAspectTypeId = DataSourceAspectTypeId
|
|
6
|
-
abstract apply<R1, A>(dataSource: DataSource<R1, A>): DataSource<R | R1, A
|
|
5
|
+
readonly [DataSourceAspectTypeId]: DataSourceAspectTypeId = DataSourceAspectTypeId;
|
|
6
|
+
abstract apply<R1, A>(dataSource: DataSource<R1, A>): DataSource<R | R1, A>;
|
|
7
7
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @tsplus static fncts.query.QueryOps collectAllConcurrent
|
|
3
3
|
*/
|
|
4
|
-
export function collectAllConcurrent<R, E, A>(
|
|
4
|
+
export function collectAllConcurrent<R, E, A>(
|
|
5
|
+
self: Iterable<Query<R, E, A>>,
|
|
6
|
+
__tsplusTrace?: string,
|
|
7
|
+
): Query<R, E, Conc<A>> {
|
|
5
8
|
return Query.foreachConcurrent(self, Function.identity);
|
|
6
9
|
}
|
package/_src/Query/api/defer.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export function mapDataSources<R1>(f: DataSourceAspect<R1>) {
|
|
5
5
|
return <R, E, A>(self: Query<R, E, A>): Query<R | R1, E, A> => {
|
|
6
|
-
return new Query(self.step.map((result) => result.mapDataSources(f)))
|
|
7
|
-
}
|
|
6
|
+
return new Query(self.step.map((result) => result.mapDataSources(f)));
|
|
7
|
+
};
|
|
8
8
|
}
|
package/_src/Query/api/mapIO.ts
CHANGED
package/_src/index.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
// codegen:start { preset: type-barrel, include: ./*.ts }
|
|
2
|
+
export type {} from "./Cache.js";
|
|
3
|
+
export type {} from "./CompletedRequestMap.js";
|
|
4
|
+
export type {} from "./DataSource.js";
|
|
5
|
+
export type {} from "./DataSourceAspect.js";
|
|
6
|
+
export type {} from "./Described.js";
|
|
2
7
|
export type {} from "./global.js";
|
|
8
|
+
export type {} from "./Query.js";
|
|
9
|
+
export type {} from "./QueryFailure.js";
|
|
10
|
+
export type {} from "./Request.js";
|
|
3
11
|
// codegen:end
|
|
@@ -54,7 +54,7 @@ function concrete<R, E, A>(_: Continue<R, E, A>): asserts _ is Concrete<R, E, A>
|
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* @tsplus static fncts.query.Continue.EffectOps __call
|
|
57
|
-
* @tsplus static fncts.query.
|
|
57
|
+
* @tsplus static fncts.query.ContinueOps effect
|
|
58
58
|
*/
|
|
59
59
|
export function effect<R, E, A>(query: Query<R, E, A>): Continue<R, E, A> {
|
|
60
60
|
return new Effect(query);
|
|
@@ -62,7 +62,7 @@ export function effect<R, E, A>(query: Query<R, E, A>): Continue<R, E, A> {
|
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* @tsplus static fncts.query.Continue.GetOps __call
|
|
65
|
-
* @tsplus static fncts.query.
|
|
65
|
+
* @tsplus static fncts.query.ContinueOps get
|
|
66
66
|
*/
|
|
67
67
|
export function get<E, A>(io: FIO<E, A>): Continue<never, E, A> {
|
|
68
68
|
return new Get(io);
|
package/index.d.ts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
+
export type {} from "./Cache.js";
|
|
2
|
+
export type {} from "./CompletedRequestMap.js";
|
|
3
|
+
export type {} from "./DataSource.js";
|
|
4
|
+
export type {} from "./DataSourceAspect.js";
|
|
5
|
+
export type {} from "./Described.js";
|
|
1
6
|
export type {} from "./global.js";
|
|
7
|
+
export type {} from "./Query.js";
|
|
8
|
+
export type {} from "./QueryFailure.js";
|
|
9
|
+
export type {} from "./Request.js";
|
package/internal/Continue.d.ts
CHANGED
|
@@ -48,13 +48,13 @@ export declare class Get<E, A> extends Continue<never, E, A> {
|
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* @tsplus static fncts.query.Continue.EffectOps __call
|
|
51
|
-
* @tsplus static fncts.query.
|
|
51
|
+
* @tsplus static fncts.query.ContinueOps effect
|
|
52
52
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
53
53
|
*/
|
|
54
54
|
export declare function effect<R, E, A>(query: Query<R, E, A>): Continue<R, E, A>;
|
|
55
55
|
/**
|
|
56
56
|
* @tsplus static fncts.query.Continue.GetOps __call
|
|
57
|
-
* @tsplus static fncts.query.
|
|
57
|
+
* @tsplus static fncts.query.ContinueOps get
|
|
58
58
|
* @tsplus location "@fncts/query/internal/Continue"
|
|
59
59
|
*/
|
|
60
60
|
export declare function get<E, A>(io: FIO<E, A>): Continue<never, E, A>;
|
package/package.json
CHANGED