@livestore/utils 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/dist/.tsbuildinfo.json +0 -1
- package/dist/Deferred.d.ts +0 -10
- package/dist/Deferred.d.ts.map +0 -1
- package/dist/Deferred.js +0 -18
- package/dist/Deferred.js.map +0 -1
- package/dist/NoopTracer.d.ts +0 -10
- package/dist/NoopTracer.d.ts.map +0 -1
- package/dist/NoopTracer.js +0 -54
- package/dist/NoopTracer.js.map +0 -1
- package/dist/base64.d.ts +0 -12
- package/dist/base64.d.ts.map +0 -1
- package/dist/base64.js +0 -114
- package/dist/base64.js.map +0 -1
- package/dist/browser.d.ts +0 -3
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -28
- package/dist/browser.js.map +0 -1
- package/dist/effect/Effect.d.ts +0 -11
- package/dist/effect/Effect.d.ts.map +0 -1
- package/dist/effect/Effect.js +0 -25
- package/dist/effect/Effect.js.map +0 -1
- package/dist/effect/Error.d.ts +0 -12
- package/dist/effect/Error.d.ts.map +0 -1
- package/dist/effect/Error.js +0 -13
- package/dist/effect/Error.js.map +0 -1
- package/dist/effect/Layer.d.ts +0 -20
- package/dist/effect/Layer.d.ts.map +0 -1
- package/dist/effect/Layer.js +0 -12
- package/dist/effect/Layer.js.map +0 -1
- package/dist/effect/Schedule.d.ts +0 -5
- package/dist/effect/Schedule.d.ts.map +0 -1
- package/dist/effect/Schedule.js +0 -7
- package/dist/effect/Schedule.js.map +0 -1
- package/dist/effect/ServiceContext.d.ts +0 -39
- package/dist/effect/ServiceContext.d.ts.map +0 -1
- package/dist/effect/ServiceContext.js +0 -61
- package/dist/effect/ServiceContext.js.map +0 -1
- package/dist/effect/index.d.ts +0 -51
- package/dist/effect/index.d.ts.map +0 -1
- package/dist/effect/index.js +0 -58
- package/dist/effect/index.js.map +0 -1
- package/dist/global.d.ts +0 -5
- package/dist/global.d.ts.map +0 -1
- package/dist/global.js +0 -2
- package/dist/global.js.map +0 -1
- package/dist/guards.d.ts +0 -6
- package/dist/guards.d.ts.map +0 -1
- package/dist/guards.js +0 -6
- package/dist/guards.js.map +0 -1
- package/dist/index.d.ts +0 -69
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -162
- package/dist/index.js.map +0 -1
- package/dist/object/index.d.ts +0 -10
- package/dist/object/index.d.ts.map +0 -1
- package/dist/object/index.js +0 -10
- package/dist/object/index.js.map +0 -1
- package/dist/object/omit.d.ts +0 -3
- package/dist/object/omit.d.ts.map +0 -1
- package/dist/object/omit.js +0 -14
- package/dist/object/omit.js.map +0 -1
- package/dist/object/pick.d.ts +0 -14
- package/dist/object/pick.d.ts.map +0 -1
- package/dist/object/pick.js +0 -17
- package/dist/object/pick.js.map +0 -1
- package/dist/promise.d.ts +0 -6
- package/dist/promise.d.ts.map +0 -1
- package/dist/promise.js +0 -27
- package/dist/promise.js.map +0 -1
- package/dist/set.d.ts +0 -2
- package/dist/set.d.ts.map +0 -1
- package/dist/set.js +0 -10
- package/dist/set.js.map +0 -1
- package/dist/string.d.ts +0 -3
- package/dist/string.d.ts.map +0 -1
- package/dist/string.js +0 -3
- package/dist/string.js.map +0 -1
- package/dist/time.d.ts +0 -12
- package/dist/time.d.ts.map +0 -1
- package/dist/time.js +0 -22
- package/dist/time.js.map +0 -1
package/dist/NoopTracer.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export const makeNoopSpan = () => {
|
|
2
|
-
const performanceStartTime = performance.now();
|
|
3
|
-
const span = {
|
|
4
|
-
_performanceStartTime: performanceStartTime,
|
|
5
|
-
setAttribute: () => null,
|
|
6
|
-
setAttributes: () => null,
|
|
7
|
-
addEvent: () => null,
|
|
8
|
-
setStatus: () => null,
|
|
9
|
-
updateName: () => null,
|
|
10
|
-
recordException: () => null,
|
|
11
|
-
end: () => {
|
|
12
|
-
const endTime = performance.now();
|
|
13
|
-
const duration = endTime - performanceStartTime;
|
|
14
|
-
const durationSecs = duration / 1000;
|
|
15
|
-
const durationRestNs = (duration % 1000) * 1000000;
|
|
16
|
-
span._duration = [durationSecs, durationRestNs];
|
|
17
|
-
},
|
|
18
|
-
spanContext: () => {
|
|
19
|
-
return { traceId: 'noop-trace-id', spanId: 'noop-span-id' };
|
|
20
|
-
},
|
|
21
|
-
_duration: [0, 0],
|
|
22
|
-
};
|
|
23
|
-
return span;
|
|
24
|
-
};
|
|
25
|
-
export const makeNoopTracer = () => {
|
|
26
|
-
return new NoopTracer();
|
|
27
|
-
};
|
|
28
|
-
export class NoopTracer {
|
|
29
|
-
constructor() {
|
|
30
|
-
this.startSpan = () => makeNoopSpan();
|
|
31
|
-
}
|
|
32
|
-
startActiveSpan(name, arg2, arg3, arg4) {
|
|
33
|
-
let _opts;
|
|
34
|
-
let _ctx;
|
|
35
|
-
let fn;
|
|
36
|
-
if (arguments.length < 2) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
else if (arguments.length === 2) {
|
|
40
|
-
fn = arg2;
|
|
41
|
-
}
|
|
42
|
-
else if (arguments.length === 3) {
|
|
43
|
-
_opts = arg2;
|
|
44
|
-
fn = arg3;
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
_opts = arg2;
|
|
48
|
-
_ctx = arg3;
|
|
49
|
-
fn = arg4;
|
|
50
|
-
}
|
|
51
|
-
return fn(makeNoopSpan());
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=NoopTracer.js.map
|
package/dist/NoopTracer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoopTracer.js","sourceRoot":"","sources":["../src/NoopTracer.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,oBAAoB,GAAwB,WAAW,CAAC,GAAG,EAAE,CAAA;IAEnE,MAAM,IAAI,GAAG;QACX,qBAAqB,EAAE,oBAAoB;Q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,MAAM,KAAK,CAAC,EAAE;YACjC,EAAE,GAAG,IAAS,CAAA;SACf;aAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;YACjC,KAAK,GAAG,IAAoC,CAAA;YAC5C,EAAE,GAAG,IAAS,CAAA;SACf;aAAM;YACL,KAAK,GAAG,IAAoC,CAAA;YAC5C,IAAI,GAAG,IAAgC,CAAA;YACvC,EAAE,GAAG,IAAS,CAAA;SACf;QAED,OAAO,EAAE,CAAC,YAAY,EAAE,CAAC,CAAA;IAC3B,CAAC;CACF"}
|
package/dist/base64.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727
|
|
3
|
-
* Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation
|
|
4
|
-
* @param data
|
|
5
|
-
*/
|
|
6
|
-
export declare const encode: (data: ArrayBuffer | string) => string;
|
|
7
|
-
/**
|
|
8
|
-
* Decodes a given RFC4648 base64 encoded string
|
|
9
|
-
* @param b64
|
|
10
|
-
*/
|
|
11
|
-
export declare const decode: (b64: string) => Uint8Array;
|
|
12
|
-
//# sourceMappingURL=base64.d.ts.map
|
package/dist/base64.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../src/base64.ts"],"names":[],"mappings":"AAuEA;;;;GAIG;AACH,eAAO,MAAM,MAAM,SAAU,WAAW,GAAG,MAAM,KAAG,MA0BnD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,QAAS,MAAM,KAAG,UASpC,CAAA"}
|
package/dist/base64.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
// This module is browser compatible.
|
|
3
|
-
// https://deno.land/std/encoding/base64.ts
|
|
4
|
-
const base64abc = [
|
|
5
|
-
'A',
|
|
6
|
-
'B',
|
|
7
|
-
'C',
|
|
8
|
-
'D',
|
|
9
|
-
'E',
|
|
10
|
-
'F',
|
|
11
|
-
'G',
|
|
12
|
-
'H',
|
|
13
|
-
'I',
|
|
14
|
-
'J',
|
|
15
|
-
'K',
|
|
16
|
-
'L',
|
|
17
|
-
'M',
|
|
18
|
-
'N',
|
|
19
|
-
'O',
|
|
20
|
-
'P',
|
|
21
|
-
'Q',
|
|
22
|
-
'R',
|
|
23
|
-
'S',
|
|
24
|
-
'T',
|
|
25
|
-
'U',
|
|
26
|
-
'V',
|
|
27
|
-
'W',
|
|
28
|
-
'X',
|
|
29
|
-
'Y',
|
|
30
|
-
'Z',
|
|
31
|
-
'a',
|
|
32
|
-
'b',
|
|
33
|
-
'c',
|
|
34
|
-
'd',
|
|
35
|
-
'e',
|
|
36
|
-
'f',
|
|
37
|
-
'g',
|
|
38
|
-
'h',
|
|
39
|
-
'i',
|
|
40
|
-
'j',
|
|
41
|
-
'k',
|
|
42
|
-
'l',
|
|
43
|
-
'm',
|
|
44
|
-
'n',
|
|
45
|
-
'o',
|
|
46
|
-
'p',
|
|
47
|
-
'q',
|
|
48
|
-
'r',
|
|
49
|
-
's',
|
|
50
|
-
't',
|
|
51
|
-
'u',
|
|
52
|
-
'v',
|
|
53
|
-
'w',
|
|
54
|
-
'x',
|
|
55
|
-
'y',
|
|
56
|
-
'z',
|
|
57
|
-
'0',
|
|
58
|
-
'1',
|
|
59
|
-
'2',
|
|
60
|
-
'3',
|
|
61
|
-
'4',
|
|
62
|
-
'5',
|
|
63
|
-
'6',
|
|
64
|
-
'7',
|
|
65
|
-
'8',
|
|
66
|
-
'9',
|
|
67
|
-
'+',
|
|
68
|
-
'/',
|
|
69
|
-
];
|
|
70
|
-
/**
|
|
71
|
-
* CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727
|
|
72
|
-
* Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation
|
|
73
|
-
* @param data
|
|
74
|
-
*/
|
|
75
|
-
export const encode = (data) => {
|
|
76
|
-
const uint8 = typeof data === 'string' ? new TextEncoder().encode(data) : data instanceof Uint8Array ? data : new Uint8Array(data);
|
|
77
|
-
let result = '', i;
|
|
78
|
-
const l = uint8.length;
|
|
79
|
-
for (i = 2; i < l; i += 3) {
|
|
80
|
-
result += base64abc[uint8[i - 2] >> 2];
|
|
81
|
-
result += base64abc[((uint8[i - 2] & 0x03) << 4) | (uint8[i - 1] >> 4)];
|
|
82
|
-
result += base64abc[((uint8[i - 1] & 0x0f) << 2) | (uint8[i] >> 6)];
|
|
83
|
-
result += base64abc[uint8[i] & 0x3f];
|
|
84
|
-
}
|
|
85
|
-
if (i === l + 1) {
|
|
86
|
-
// 1 octet yet to write
|
|
87
|
-
result += base64abc[uint8[i - 2] >> 2];
|
|
88
|
-
result += base64abc[(uint8[i - 2] & 0x03) << 4];
|
|
89
|
-
result += '==';
|
|
90
|
-
}
|
|
91
|
-
if (i === l) {
|
|
92
|
-
// 2 octets yet to write
|
|
93
|
-
result += base64abc[uint8[i - 2] >> 2];
|
|
94
|
-
result += base64abc[((uint8[i - 2] & 0x03) << 4) | (uint8[i - 1] >> 4)];
|
|
95
|
-
result += base64abc[(uint8[i - 1] & 0x0f) << 2];
|
|
96
|
-
result += '=';
|
|
97
|
-
}
|
|
98
|
-
return result;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Decodes a given RFC4648 base64 encoded string
|
|
102
|
-
* @param b64
|
|
103
|
-
*/
|
|
104
|
-
export const decode = (b64) => {
|
|
105
|
-
const binString = atob(b64);
|
|
106
|
-
const size = binString.length;
|
|
107
|
-
const bytes = new Uint8Array(size);
|
|
108
|
-
for (let i = 0; i < size; i++) {
|
|
109
|
-
// eslint-disable-next-line unicorn/prefer-code-point
|
|
110
|
-
bytes[i] = binString.charCodeAt(i);
|
|
111
|
-
}
|
|
112
|
-
return bytes;
|
|
113
|
-
};
|
|
114
|
-
//# sourceMappingURL=base64.js.map
|
package/dist/base64.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base64.js","sourceRoot":"","sources":["../src/base64.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qCAAqC;AACrC,2CAA2C;AAE3C,MAAM,SAAS,GAAG;IAChB,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;CACJ,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,IAA0B,EAAU,EAAE;IAC3D,MAAM,KAAK,GACT,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,YAAY,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IACtH,IAAI,MAAM,GAAG,E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C,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAE,IAAI,CAAC,CAAC,CAAC,CAAA;QACzE,MAAM,IAAI,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QAChD,MAAM,IAAI,GAAG,CAAA;KACd;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAAW,EAAc,EAAE;IAChD,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;IAC3B,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,CAAA;IAC7B,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;QAC7B,qDAAqD;QACrD,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;KACnC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
|
package/dist/browser.d.ts
DELETED
package/dist/browser.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;AAE1G,eAAO,MAAM,iBAAiB,EAAE,MAAM,eA6BrC,CAAA"}
|
package/dist/browser.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export const detectBrowserName = () => {
|
|
2
|
-
if (!navigator.userAgent) {
|
|
3
|
-
return 'Something';
|
|
4
|
-
}
|
|
5
|
-
const isOpera = navigator.userAgent.includes('OP');
|
|
6
|
-
const isChrome = navigator.userAgent.includes('Chrome') && !isOpera;
|
|
7
|
-
const isSafari = navigator.userAgent.includes('Safari') && !isChrome;
|
|
8
|
-
const isFirefox = navigator.userAgent.includes('Firefox');
|
|
9
|
-
const isEdge = navigator.userAgent.includes('Edg') || navigator.userAgent.includes('Trident');
|
|
10
|
-
// TODO: also parse out version
|
|
11
|
-
if (isOpera) {
|
|
12
|
-
return 'Opera';
|
|
13
|
-
}
|
|
14
|
-
if (isChrome) {
|
|
15
|
-
return 'Chrome';
|
|
16
|
-
}
|
|
17
|
-
if (isSafari) {
|
|
18
|
-
return 'Safari';
|
|
19
|
-
}
|
|
20
|
-
if (isFirefox) {
|
|
21
|
-
return 'Firefox';
|
|
22
|
-
}
|
|
23
|
-
if (isEdge) {
|
|
24
|
-
return 'Edge';
|
|
25
|
-
}
|
|
26
|
-
return 'Browser';
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=browser.js.map
|
package/dist/browser.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAA0B,GAAG,EAAE;IAC3D,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;QACxB,OAAO,WAAW,CAAA;KACnB;IAED,MAAM,OAAO,GAAG,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IAClD,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;IACnE,MAAM,QAAQ,GAAG,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAA;IACpE,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;IACzD,MAAM,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;IAE7F,+BAA+B;IAE/B,IAAI,OAAO,EAAE;QACX,OAAO,OAAO,CAAA;KACf;IACD,IAAI,QAAQ,EAAE;QACZ,OAAO,QAAQ,CAAA;KAChB;IACD,IAAI,QAAQ,EAAE;QACZ,OAAO,QAAQ,CAAA;KAChB;IACD,IAAI,SAAS,EAAE;QACb,OAAO,SAAS,CAAA;KACjB;IACD,IAAI,MAAM,EAAE;QACV,OAAO,MAAM,CAAA;KACd;IACD,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA"}
|
package/dist/effect/Effect.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type * as Context from '@effect/data/Context';
|
|
2
|
-
import * as Effect from '@effect/io/Effect';
|
|
3
|
-
export * from '@effect/io/Effect';
|
|
4
|
-
export declare const log: <A>(message: A, ...rest: any[]) => Effect.Effect<never, never, void>;
|
|
5
|
-
export declare const logWarn: <A>(message: A, ...rest: any[]) => Effect.Effect<never, never, void>;
|
|
6
|
-
export declare const logError: <A>(message: A, ...rest: any[]) => Effect.Effect<never, never, void>;
|
|
7
|
-
/** Logs both on errors and defects */
|
|
8
|
-
export declare const tapCauseLogPretty: <R, E, A>(eff: Effect.Effect<R, E, A>) => Effect.Effect<R, E, A>;
|
|
9
|
-
export declare const tapSync: <A>(tapFn: (a: A) => unknown) => <R, E>(eff: Effect.Effect<R, E, A>) => Effect.Effect<R, E, A>;
|
|
10
|
-
export declare const debugLogEnv: (msg?: string) => Effect.Effect<never, never, Context.Context<never>>;
|
|
11
|
-
//# sourceMappingURL=Effect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Effect.d.ts","sourceRoot":"","sources":["../../src/effect/Effect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAE3C,cAAc,mBAAmB,CAAA;AAEjC,eAAO,MAAM,GAAG,2BAA4B,GAAG,EAAE,KAAG,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAGhF,CAAA;AAEJ,eAAO,MAAM,OAAO,2BAA4B,GAAG,EAAE,KAAG,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAGpF,CAAA;AAEJ,eAAO,MAAM,QAAQ,2BAA4B,GAAG,EAAE,KAAG,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAGrF,CAAA;AAEJ,sCAAsC;AACtC,eAAO,MAAM,iBAAiB,kEAU1B,CAAA;AAEJ,eAAO,MAAM,OAAO,uBACG,OAAO,kEAEyB,CAAA;AAEvD,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,CAI1F,CAAA"}
|
package/dist/effect/Effect.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { pipe } from '@effect/data/Function';
|
|
2
|
-
import * as Cause from '@effect/io/Cause';
|
|
3
|
-
import * as Effect from '@effect/io/Effect';
|
|
4
|
-
export * from '@effect/io/Effect';
|
|
5
|
-
export const log = (message, ...rest) => Effect.sync(() => {
|
|
6
|
-
console.log(message, ...rest);
|
|
7
|
-
});
|
|
8
|
-
export const logWarn = (message, ...rest) => Effect.sync(() => {
|
|
9
|
-
console.warn(message, ...rest);
|
|
10
|
-
});
|
|
11
|
-
export const logError = (message, ...rest) => Effect.sync(() => {
|
|
12
|
-
console.error(message, ...rest);
|
|
13
|
-
});
|
|
14
|
-
/** Logs both on errors and defects */
|
|
15
|
-
export const tapCauseLogPretty = (eff) => Effect.tapErrorCause(eff, (err) => {
|
|
16
|
-
if (Cause.isInterruptedOnly(err)) {
|
|
17
|
-
return Effect.unit;
|
|
18
|
-
}
|
|
19
|
-
// @ts-expect-error TODO get proper worker name https://github.com/vitejs/vite/issues/12992
|
|
20
|
-
const threadName = window.__tmpWorkerName ? `Worker ${window.__tmpWorkerName}` : 'Main Thread';
|
|
21
|
-
return logError(`Error on ${threadName}`, Cause.pretty(err));
|
|
22
|
-
});
|
|
23
|
-
export const tapSync = (tapFn) => (eff) => Effect.tap(eff, (a) => Effect.sync(() => tapFn(a)));
|
|
24
|
-
export const debugLogEnv = (msg) => pipe(Effect.context(), Effect.tap((env) => log(msg ?? 'debugLogEnv', env)));
|
|
25
|
-
//# sourceMappingURL=Effect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Effect.js","sourceRoot":"","sources":["../../src/effect/Effect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAE3C,cAAc,mBAAmB,CAAA;AAEjC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAI,OAAU,EAAE,GAAG,IAAW,EAAqC,EAAE,CACtF,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;IACf,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;AAC/B,CAAC,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,OAAO,GAAG,CAAI,OAAU,EAAE,GAAG,IAAW,EAAqC,EAAE,CAC1F,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;IACf,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;AAChC,CAAC,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAI,OAAU,EAAE,GAAG,IAAW,EAAqC,EAAE,CAC3F,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;IACf,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;AACjC,CAAC,CAAC,CAAA;AAEJ,sCAAsC;AACtC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAU,GAA2B,EAA0B,EAAE,CAChG,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;IAChC,IAAI,KAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE;QAChC,OAAO,MAAM,CAAC,IAAI,CAAA;KACnB;IAED,2FAA2F;IAC3F,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,UAAU,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,aAAa,CAAA;IAE9F,OAAO,QAAQ,CAAC,YAAY,UAAU,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;AAC9D,CAAC,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,OAAO,GAClB,CAAI,KAAwB,EAAE,EAAE,CAChC,CAAO,GAA2B,EAA0B,EAAE,CAC5D,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAEvD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAY,EAAuD,EAAE,CAC/F,IAAI,CACF,MAAM,CAAC,OAAO,EAAS,EACvB,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,aAAa,EAAE,GAAG,CAAC,CAAC,CACpD,CAAA"}
|
package/dist/effect/Error.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const UnknownError_base: new <A extends Record<string, any>>(args: import("@effect/data/Types.js").Equals<Omit<A, keyof import("@effect/data/Equal.js").Equal>, {}> extends true ? void : Omit<A, keyof import("@effect/data/Equal.js").Equal>) => import("@effect/data/Data").Data<A & {
|
|
2
|
-
_tag: "UnknownError";
|
|
3
|
-
}>;
|
|
4
|
-
export declare class UnknownError extends UnknownError_base<{
|
|
5
|
-
readonly error: any;
|
|
6
|
-
readonly payload?: any;
|
|
7
|
-
}> {
|
|
8
|
-
toString: () => string;
|
|
9
|
-
static from: (error: any, payload?: any) => UnknownError;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=Error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../src/effect/Error.ts"],"names":[],"mappings":";;;AAIA,qBAAa,YAAa,SAAQ,kBAA4B;IAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;IAC5G,QAAQ,eAGP;IAED,MAAM,CAAC,IAAI,UAAW,GAAG,YAAY,GAAG,kBAAyC;CAClF"}
|
package/dist/effect/Error.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TaggedClass } from '@effect/data/Data';
|
|
2
|
-
import { errorToString, objectToString } from '../index.js';
|
|
3
|
-
export class UnknownError extends TaggedClass('UnknownError') {
|
|
4
|
-
constructor() {
|
|
5
|
-
super(...arguments);
|
|
6
|
-
this.toString = () => {
|
|
7
|
-
const payloadStr = this.payload ? ` with payload ${objectToString(this.payload)}` : '';
|
|
8
|
-
return `UnknownError: ${errorToString(this.error)}${payloadStr}`;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
UnknownError.from = (error, payload) => new UnknownError({ error, payload });
|
|
13
|
-
//# sourceMappingURL=Error.js.map
|
package/dist/effect/Error.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../src/effect/Error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE3D,MAAM,OAAO,YAAa,SAAQ,WAAW,CAAC,cAAc,CAAkD;IAA9G;;QACE,aAAQ,GAAG,GAAG,EAAE;YACd,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;YACtF,OAAO,iBAAiB,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,UAAU,EAAE,CAAA;QAClE,CAAC,CAAA;IAGH,CAAC;;AADQ,iBAAI,GAAG,CAAC,KAAU,EAAE,OAAa,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,AAAtE,CAAsE"}
|
package/dist/effect/Layer.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from '@effect/io/Layer';
|
|
2
|
-
import type * as Context from '@effect/data/Context';
|
|
3
|
-
import * as Effect from '@effect/io/Effect';
|
|
4
|
-
import * as Layer from '@effect/io/Layer';
|
|
5
|
-
import type * as Tracer from '@effect/io/Tracer';
|
|
6
|
-
export declare const span: (name: string, options?: {
|
|
7
|
-
readonly attributes?: Record<string, Tracer.AttributeValue>;
|
|
8
|
-
readonly links?: ReadonlyArray<Tracer.SpanLink>;
|
|
9
|
-
readonly parent?: Tracer.ParentSpan;
|
|
10
|
-
readonly root?: boolean;
|
|
11
|
-
readonly context?: Context.Context<never>;
|
|
12
|
-
}, onEnd?: ((span: Tracer.Span) => Effect.Effect<never, never, void>) | undefined) => Layer.Layer<never, never, never>;
|
|
13
|
-
export declare const withSpan: (name: string, options?: {
|
|
14
|
-
readonly attributes?: Record<string, Tracer.AttributeValue>;
|
|
15
|
-
readonly links?: ReadonlyArray<Tracer.SpanLink>;
|
|
16
|
-
readonly parent?: Tracer.ParentSpan;
|
|
17
|
-
readonly root?: boolean;
|
|
18
|
-
readonly context?: Context.Context<never>;
|
|
19
|
-
}, onEnd?: ((span: Tracer.Span) => Effect.Effect<never, never, void>) | undefined) => <C, E, A>(layer: Layer.Layer<C, E, A>) => Layer.Layer<C, E, A>;
|
|
20
|
-
//# sourceMappingURL=Layer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["../../src/effect/Layer.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,OAAO,KAAK,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAEpD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAEhD,eAAO,MAAM,IAAI,SACT,MAAM,YACF;IACR,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,MAAM,EAAE,OAAO,cAAc,CAAC,CAAA;IAC3D,QAAQ,CAAC,KAAK,CAAC,EAAE,cAAc,OAAO,QAAQ,CAAC,CAAA;IAC/C,QAAQ,OAAO,CAAC,EAAE,OAAO,UAAU,CAAA;IACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;CAC1C,kBACc,OAAO,IAAI,KAAK,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,kBAC/D,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CASjC,CAAA;AAED,eAAO,MAAM,QAAQ,SAEX,MAAM,YACF;IACR,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,MAAM,EAAE,OAAO,cAAc,CAAC,CAAA;IAC3D,QAAQ,CAAC,KAAK,CAAC,EAAE,cAAc,OAAO,QAAQ,CAAC,CAAA;IAC/C,QAAQ,OAAO,CAAC,EAAE,OAAO,UAAU,CAAA;IACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAA;CAC1C,kBACc,OAAO,IAAI,KAAK,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,gFAGX,CAAA"}
|
package/dist/effect/Layer.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from '@effect/io/Layer';
|
|
2
|
-
import { pipe } from '@effect/data/Function';
|
|
3
|
-
import * as Effect from '@effect/io/Effect';
|
|
4
|
-
import * as Layer from '@effect/io/Layer';
|
|
5
|
-
export const span = (name, options, onEnd) => {
|
|
6
|
-
const scopedEffect = pipe(
|
|
7
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8
|
-
Effect.useSpanScoped(name, options), Effect.tap((span) => Effect.withParentSpanScoped(span)), Effect.tap((span) => (onEnd ? Effect.addFinalizer(() => onEnd(span)) : Effect.unit)));
|
|
9
|
-
return Layer.scopedDiscard(scopedEffect);
|
|
10
|
-
};
|
|
11
|
-
export const withSpan = (name, options, onEnd) => (layer) => Layer.provideMerge(span(name, options, onEnd), layer);
|
|
12
|
-
//# sourceMappingURL=Layer.js.map
|
package/dist/effect/Layer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Layer.js","sourceRoot":"","sources":["../../src/effect/Layer.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAGzC,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,IAAY,EACZ,OAMC,EACD,KAAgE,EAC9B,EAAE;IACpC,MAAM,YAAY,GAAG,IAAI;IACvB,sDAAsD;IACtD,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,EACnC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,EACvD,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CACrF,CAAA;IAED,OAAO,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAA;AAC1C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GACnB,CACE,IAAY,EACZ,OAMC,EACD,KAAgE,EAChE,EAAE,CACJ,CAAU,KAA2B,EAAwB,EAAE,CAC7D,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as Duration from '@effect/data/Duration';
|
|
2
|
-
import * as Schedule from '@effect/io/Schedule';
|
|
3
|
-
export * from '@effect/io/Schedule';
|
|
4
|
-
export declare const exponentialBackoff10Sec: Schedule.Schedule<never, unknown, Duration.DurationInput>;
|
|
5
|
-
//# sourceMappingURL=Schedule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schedule.d.ts","sourceRoot":"","sources":["../../src/effect/Schedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,uBAAuB,CAAA;AAEjD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAE/C,cAAc,qBAAqB,CAAA;AAEnC,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,aAAa,CAK7F,CAAA"}
|
package/dist/effect/Schedule.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as Duration from '@effect/data/Duration';
|
|
2
|
-
import { pipe } from '@effect/data/Function';
|
|
3
|
-
import * as Schedule from '@effect/io/Schedule';
|
|
4
|
-
export * from '@effect/io/Schedule';
|
|
5
|
-
export const exponentialBackoff10Sec = pipe(Schedule.exponential(Duration.millis(10), 4), // 10ms, 40ms, 160ms, 640ms, 2560ms, ...
|
|
6
|
-
Schedule.andThenEither(Schedule.spaced(Duration.seconds(1))), Schedule.compose(Schedule.elapsed), Schedule.whileOutput(Duration.lessThanOrEqualTo(Duration.seconds(10))));
|
|
7
|
-
//# sourceMappingURL=Schedule.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schedule.js","sourceRoot":"","sources":["../../src/effect/Schedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAE/C,cAAc,qBAAqB,CAAA;AAEnC,MAAM,CAAC,MAAM,uBAAuB,GAA8D,IAAI,CACpG,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,wCAAwC;AACtF,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAC5D,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAClC,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CACvE,CAAA"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as Effect from '@effect/io/Effect';
|
|
2
|
-
import * as Exit from '@effect/io/Exit';
|
|
3
|
-
import * as Layer from '@effect/io/Layer';
|
|
4
|
-
import type * as Runtime from '@effect/io/Runtime';
|
|
5
|
-
export interface MainLayer<Ctx> {
|
|
6
|
-
layer: Layer.Layer<never, never, Ctx>;
|
|
7
|
-
close: Effect.Effect<never, never, void>;
|
|
8
|
-
}
|
|
9
|
-
export declare const unsafeMainLayer: <Ctx>(original: Layer.Layer<never, never, Ctx>) => MainLayer<Ctx>;
|
|
10
|
-
export declare const make: <TStaticData, Ctx>(staticData: TStaticData, runtime: Runtime.Runtime<Ctx>, close?: Effect.Effect<never, never, void>) => ServiceContext<Ctx, TStaticData>;
|
|
11
|
-
export interface ServiceContext<Ctx, TStaticData> {
|
|
12
|
-
readonly provide: <E, A>(self: Effect.Effect<Ctx, E, A>) => Effect.Effect<never, E, A>;
|
|
13
|
-
/**
|
|
14
|
-
* Fire and Forget. Errors are logged however.
|
|
15
|
-
*/
|
|
16
|
-
readonly runWithErrorLog: <E, A>(self: Effect.Effect<Ctx, E, A>) => AbortCallback;
|
|
17
|
-
readonly runSync: <E, A>(self: Effect.Effect<Ctx, E, A>) => A;
|
|
18
|
-
/**
|
|
19
|
-
* Fire and Forget. A promise that never fails nor returns any value.
|
|
20
|
-
* Errors are logged however.
|
|
21
|
-
*/
|
|
22
|
-
readonly runPromiseWithErrorLog: <E, A>(self: Effect.Effect<Ctx, E, A>) => Promise<A | undefined>;
|
|
23
|
-
/**
|
|
24
|
-
* A Promise that never fails, the Resolved value is an Exit result that can be either Success or Failed
|
|
25
|
-
*/
|
|
26
|
-
readonly runPromiseExit: <E, A>(self: Effect.Effect<Ctx, E, A>) => Promise<Exit.Exit<E, A>>;
|
|
27
|
-
readonly runPromise: <E, A>(self: Effect.Effect<Ctx, E, A>) => Promise<A>;
|
|
28
|
-
readonly withRuntime: (fn: (runtime: Runtime.Runtime<Ctx>) => void) => void;
|
|
29
|
-
/** Closes the ServiceContext and closing all its layers */
|
|
30
|
-
readonly close: Effect.Effect<never, never, void>;
|
|
31
|
-
readonly closePromise: () => Promise<void>;
|
|
32
|
-
readonly staticData: TStaticData;
|
|
33
|
-
}
|
|
34
|
-
export type AbortCallback = () => void;
|
|
35
|
-
export declare const runWithErrorLog: <E, A>(self: Effect.Effect<never, E, A>) => () => void;
|
|
36
|
-
export declare const runPromiseWithErrorLog: <E, A>(self: Effect.Effect<never, E, A>) => Promise<A | undefined>;
|
|
37
|
-
export declare const MissingContext: Effect.Effect<never, never, never>;
|
|
38
|
-
export declare const empty: <Ctx, TStaticData>() => ServiceContext<Ctx, TStaticData>;
|
|
39
|
-
//# sourceMappingURL=ServiceContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceContext.d.ts","sourceRoot":"","sources":["../../src/effect/ServiceContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA;AAEvC,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAGlD,MAAM,WAAW,SAAS,CAAC,GAAG;IAC5B,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,CAAA;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;CACzC;AAED,eAAO,MAAM,eAAe,mEAU3B,CAAA;AAED,eAAO,MAAM,IAAI,qFAGR,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,qCAezC,CAAA;AAED,MAAM,WAAW,cAAc,CAAC,GAAG,EAAE,WAAW;IAC9C,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,G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EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;IACjD,QAAQ,CAAC,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1C,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAA;CACjC;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,IAAI,CAAA;AAEtC,eAAO,MAAM,eAAe,wDAU3B,CAAA;AAED,eAAO,MAAM,sBAAsB,oEAQ/B,CAAA;AAEJ,eAAO,MAAM,cAAc,oCAAkF,CAAA;AAE7G,eAAO,MAAM,KAAK,0DAWhB,CAAA"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { pipe } from '@effect/data/Function';
|
|
2
|
-
import * as Cause from '@effect/io/Cause';
|
|
3
|
-
import * as Effect from '@effect/io/Effect';
|
|
4
|
-
import * as Exit from '@effect/io/Exit';
|
|
5
|
-
import * as Fiber from '@effect/io/Fiber';
|
|
6
|
-
import * as Layer from '@effect/io/Layer';
|
|
7
|
-
import * as Scope from '@effect/io/Scope';
|
|
8
|
-
export const unsafeMainLayer = (original) => {
|
|
9
|
-
const scope = Effect.runSync(Scope.make());
|
|
10
|
-
const layer = pipe(original, Layer.memoize, Effect.parallelFinalizers, // NOTE this runs the layer teardown in parallel
|
|
11
|
-
Effect.provideService(Scope.Scope, scope), Effect.runSync);
|
|
12
|
-
return { layer, close: Scope.close(scope, Exit.unit) };
|
|
13
|
-
};
|
|
14
|
-
export const make = (staticData, runtime, close = Effect.dieMessage('close not implemented')) => {
|
|
15
|
-
return {
|
|
16
|
-
provide: (self) => Effect.provide(runtime)(self),
|
|
17
|
-
runWithErrorLog: (self) => runWithErrorLog(Effect.provide(runtime)(self)),
|
|
18
|
-
runSync: (self) => Effect.runSync(Effect.provide(runtime)(self)),
|
|
19
|
-
runPromiseWithErrorLog: (self) => runPromiseWithErrorLog(Effect.provide(runtime)(self)),
|
|
20
|
-
runPromiseExit: (self) => Effect.runPromiseExit(Effect.provide(runtime)(self)),
|
|
21
|
-
runPromise: (self) => Effect.runPromise(Effect.provide(runtime)(self)),
|
|
22
|
-
withRuntime: (fn) => fn(runtime),
|
|
23
|
-
close: close,
|
|
24
|
-
closePromise: () => Effect.runPromise(close),
|
|
25
|
-
staticData,
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export const runWithErrorLog = (self) => {
|
|
29
|
-
const fiber = Effect.runFork(self);
|
|
30
|
-
fiber.addObserver((ex) => {
|
|
31
|
-
if (ex._tag === 'Failure' && Cause.isInterruptedOnly(ex.cause) === false) {
|
|
32
|
-
console.error(Cause.pretty(ex.cause));
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
return () => {
|
|
36
|
-
Effect.runFork(Fiber.interrupt(fiber));
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export const runPromiseWithErrorLog = (self) => Effect.runPromiseExit(self).then((ex) => {
|
|
40
|
-
if (ex._tag === 'Failure') {
|
|
41
|
-
console.error(Cause.pretty(ex.cause));
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return ex.value;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export const MissingContext = Effect.die('service context not provided, wrap your app in LiveServiceContext');
|
|
49
|
-
export const empty = () => ({
|
|
50
|
-
provide: () => MissingContext,
|
|
51
|
-
runWithErrorLog: () => runWithErrorLog(MissingContext),
|
|
52
|
-
runSync: () => Effect.runSync(MissingContext),
|
|
53
|
-
runPromiseWithErrorLog: () => runPromiseWithErrorLog(MissingContext),
|
|
54
|
-
runPromiseExit: () => Effect.runPromiseExit(MissingContext),
|
|
55
|
-
runPromise: () => Effect.runPromise(MissingContext),
|
|
56
|
-
withRuntime: () => Effect.runSync(MissingContext),
|
|
57
|
-
close: Effect.dieMessage('Empty ServiceContext cannot be closed'),
|
|
58
|
-
closePromise: () => Promise.reject('Empty ServiceContext cannot be closed'),
|
|
59
|
-
staticData: {},
|
|
60
|
-
});
|
|
61
|
-
//# sourceMapping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C,uCAAuC,CAAC;IAC3E,UAAU,EAAE,EAAiB;CAC9B,CAAC,CAAA"}
|
package/dist/effect/index.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import '../global.js';
|
|
2
|
-
export * as Effect from './Effect.js';
|
|
3
|
-
export * as Scope from '@effect/io/Scope';
|
|
4
|
-
export * as Schedule from './Schedule.js';
|
|
5
|
-
export * as Layer from './Layer.js';
|
|
6
|
-
export * as Ref from '@effect/io/Ref';
|
|
7
|
-
export * as SynchronizedRef from '@effect/io/SynchronizedRef';
|
|
8
|
-
export * as Queue from '@effect/io/Queue';
|
|
9
|
-
export * as Fiber from '@effect/io/Fiber';
|
|
10
|
-
export * as FiberId from '@effect/io/FiberId';
|
|
11
|
-
export * as RuntimeFlags from '@effect/io/RuntimeFlags';
|
|
12
|
-
export * as Hub from '@effect/io/Hub';
|
|
13
|
-
export * as Exit from '@effect/io/Exit';
|
|
14
|
-
export * as Cause from '@effect/io/Cause';
|
|
15
|
-
export * as Runtime from '@effect/io/Runtime';
|
|
16
|
-
export * as Scheduler from '@effect/io/Scheduler';
|
|
17
|
-
export * as FiberRef from '@effect/io/FiberRef';
|
|
18
|
-
export * as FiberRefs from '@effect/io/FiberRefs';
|
|
19
|
-
export * as FiberRefsPatch from '@effect/io/FiberRefsPatch';
|
|
20
|
-
export * as Deferred from '@effect/io/Deferred';
|
|
21
|
-
export * as Metric from '@effect/io/Metric';
|
|
22
|
-
export * as MetricState from '@effect/io/MetricState';
|
|
23
|
-
export * as Request from '@effect/io/Request';
|
|
24
|
-
export * as Tracer from '@effect/io/Tracer';
|
|
25
|
-
export * as Context from '@effect/data/Context';
|
|
26
|
-
export * as Data from '@effect/data/Data';
|
|
27
|
-
export { TaggedClass as Tagged } from '@effect/data/Data';
|
|
28
|
-
export * as Either from '@effect/data/Either';
|
|
29
|
-
export * as Brand from '@effect/data/Brand';
|
|
30
|
-
export * as Hash from '@effect/data/Hash';
|
|
31
|
-
export * as Equal from '@effect/data/Equal';
|
|
32
|
-
export * as Ord from '@effect/data/Order';
|
|
33
|
-
export * as Chunk from '@effect/data/Chunk';
|
|
34
|
-
export * as Duration from '@effect/data/Duration';
|
|
35
|
-
export * as ReadonlyArray from '@effect/data/ReadonlyArray';
|
|
36
|
-
export * as ReadonlyRecord from '@effect/data/ReadonlyRecord';
|
|
37
|
-
export * as SortedMap from '@effect/data/SortedMap';
|
|
38
|
-
export * as HashMap from '@effect/data/HashMap';
|
|
39
|
-
export * as HashSet from '@effect/data/HashSet';
|
|
40
|
-
export * as MutableHashSet from '@effect/data/MutableHashSet';
|
|
41
|
-
export * as Option from '@effect/data/Option';
|
|
42
|
-
export { pipe, identity } from '@effect/data/Function';
|
|
43
|
-
export * as Stream from '@effect/stream/Stream';
|
|
44
|
-
export * as Channel from '@effect/stream/Channel';
|
|
45
|
-
export * as SubscriptionRef from '@effect/stream/SubscriptionRef';
|
|
46
|
-
export * as Schema from '@effect/schema/Schema';
|
|
47
|
-
export * as Match from '@effect/match';
|
|
48
|
-
export * from './Error.js';
|
|
49
|
-
export * as ServiceContext from './ServiceContext.js';
|
|
50
|
-
export * as OtelTracer from '@effect/opentelemetry/Tracer';
|
|
51
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effect/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;AAGrB,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,k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,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,KAAK,cAAc,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAGtD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAA;AAC/C,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AACjD,OAAO,KAAK,eAAe,MAAM,gCAAgC,CAAA;AAGjE,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAA;AAG/C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAGtC,cAAc,YAAY,CAAA;AAG1B,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AAErD,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAA"}
|
package/dist/effect/index.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import '../global.js';
|
|
2
|
-
// io
|
|
3
|
-
export * as Effect from './Effect.js';
|
|
4
|
-
export * as Scope from '@effect/io/Scope';
|
|
5
|
-
export * as Schedule from './Schedule.js';
|
|
6
|
-
export * as Layer from './Layer.js';
|
|
7
|
-
export * as Ref from '@effect/io/Ref';
|
|
8
|
-
export * as SynchronizedRef from '@effect/io/SynchronizedRef';
|
|
9
|
-
export * as Queue from '@effect/io/Queue';
|
|
10
|
-
export * as Fiber from '@effect/io/Fiber';
|
|
11
|
-
export * as FiberId from '@effect/io/FiberId';
|
|
12
|
-
export * as RuntimeFlags from '@effect/io/RuntimeFlags';
|
|
13
|
-
export * as Hub from '@effect/io/Hub';
|
|
14
|
-
export * as Exit from '@effect/io/Exit';
|
|
15
|
-
export * as Cause from '@effect/io/Cause';
|
|
16
|
-
export * as Runtime from '@effect/io/Runtime';
|
|
17
|
-
export * as Scheduler from '@effect/io/Scheduler';
|
|
18
|
-
export * as FiberRef from '@effect/io/FiberRef';
|
|
19
|
-
export * as FiberRefs from '@effect/io/FiberRefs';
|
|
20
|
-
export * as FiberRefsPatch from '@effect/io/FiberRefsPatch';
|
|
21
|
-
export * as Deferred from '@effect/io/Deferred';
|
|
22
|
-
export * as Metric from '@effect/io/Metric';
|
|
23
|
-
export * as MetricState from '@effect/io/MetricState';
|
|
24
|
-
export * as Request from '@effect/io/Request';
|
|
25
|
-
export * as Tracer from '@effect/io/Tracer';
|
|
26
|
-
// data
|
|
27
|
-
export * as Context from '@effect/data/Context';
|
|
28
|
-
export * as Data from '@effect/data/Data';
|
|
29
|
-
export { TaggedClass as Tagged } from '@effect/data/Data';
|
|
30
|
-
export * as Either from '@effect/data/Either';
|
|
31
|
-
export * as Brand from '@effect/data/Brand';
|
|
32
|
-
export * as Hash from '@effect/data/Hash';
|
|
33
|
-
export * as Equal from '@effect/data/Equal';
|
|
34
|
-
export * as Ord from '@effect/data/Order';
|
|
35
|
-
export * as Chunk from '@effect/data/Chunk';
|
|
36
|
-
export * as Duration from '@effect/data/Duration';
|
|
37
|
-
export * as ReadonlyArray from '@effect/data/ReadonlyArray';
|
|
38
|
-
export * as ReadonlyRecord from '@effect/data/ReadonlyRecord';
|
|
39
|
-
export * as SortedMap from '@effect/data/SortedMap';
|
|
40
|
-
export * as HashMap from '@effect/data/HashMap';
|
|
41
|
-
export * as HashSet from '@effect/data/HashSet';
|
|
42
|
-
export * as MutableHashSet from '@effect/data/MutableHashSet';
|
|
43
|
-
export * as Option from '@effect/data/Option';
|
|
44
|
-
export { pipe, identity } from '@effect/data/Function';
|
|
45
|
-
// stream
|
|
46
|
-
export * as Stream from '@effect/stream/Stream';
|
|
47
|
-
export * as Channel from '@effect/stream/Channel';
|
|
48
|
-
export * as SubscriptionRef from '@effect/stream/SubscriptionRef';
|
|
49
|
-
// schema
|
|
50
|
-
export * as Schema from '@effect/schema/Schema';
|
|
51
|
-
// match
|
|
52
|
-
export * as Match from '@effect/match';
|
|
53
|
-
// error
|
|
54
|
-
export * from './Error.js';
|
|
55
|
-
// ServiceContext
|
|
56
|
-
export * as ServiceContext from './ServiceContext.js';
|
|
57
|
-
export * as OtelTracer from '@effect/opentelemetry/Tracer';
|
|
58
|
-
//# sourceMappingURL=index.js.map
|