@fncts/io 0.0.4 → 0.0.5
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/Channel/UpstreamPullRequest/api.d.ts +1 -1
- package/FiberRef/constructors.d.ts +0 -53
- package/FiberRef/unsafe.d.ts +53 -0
- package/FiberRef.d.ts +1 -0
- package/Future/constructors.d.ts +3 -3
- package/InterruptStatus/constructors.d.ts +3 -3
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +3 -3
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Fiber/FiberContext.cjs +1 -1
- package/_cjs/Fiber/constructors.cjs +2 -2
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +3 -84
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +94 -0
- package/_cjs/FiberRef/unsafe.cjs.map +1 -0
- package/_cjs/FiberRef.cjs +13 -0
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +2 -4
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +1 -1
- package/_cjs/IO/api/environment.cjs +1 -1
- package/_cjs/IO/runtime.cjs +1 -1
- package/_cjs/IOEnv/services.cjs +1 -1
- package/_cjs/InterruptStatus/constructors.cjs +3 -7
- package/_cjs/InterruptStatus/constructors.cjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +1 -2
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Fiber/FiberContext.mjs +1 -1
- package/_mjs/Fiber/constructors.mjs +1 -1
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +3 -66
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +66 -0
- package/_mjs/FiberRef/unsafe.mjs.map +1 -0
- package/_mjs/FiberRef.mjs +2 -1
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +3 -4
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +1 -1
- package/_mjs/IO/api/environment.mjs +1 -1
- package/_mjs/IO/runtime.mjs +1 -1
- package/_mjs/IOEnv/services.mjs +1 -1
- package/_mjs/InterruptStatus/constructors.mjs +3 -3
- package/_mjs/InterruptStatus/constructors.mjs.map +1 -1
- package/_src/Channel/UpstreamPullRequest/api.ts +2 -3
- package/_src/Fiber/constructors.ts +1 -1
- package/_src/FiberRef/constructors.ts +1 -78
- package/_src/FiberRef/unsafe.ts +79 -0
- package/_src/FiberRef.ts +1 -0
- package/_src/Future/constructors.ts +1 -1
- package/_src/InterruptStatus/constructors.ts +2 -0
- package/package.json +3 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { UpstreamPullRequest } from "@fncts/io/Channel/UpstreamPullRequest";
|
1
|
+
import type { UpstreamPullRequest } from "@fncts/io/Channel/UpstreamPullRequest/definition";
|
2
2
|
/**
|
3
3
|
* @tsplus fluent fncts.io.Channel.UpstreamPullRequest match
|
4
4
|
* @tsplus location "@fncts/io/Channel/UpstreamPullRequest/api"
|
@@ -2,62 +2,9 @@ import { Lazy } from "@fncts/base/data/function";
|
|
2
2
|
import { IO } from "@fncts/io/IO/definition";
|
3
3
|
import { Has } from "@fncts/base/typeclass/Has";
|
4
4
|
import { Scope } from "@fncts/io/Scope/definition";
|
5
|
-
import { Environment } from "@fncts/base/data/Environment";
|
6
5
|
import { FiberRef } from "@fncts/io/FiberRef/definition";
|
7
|
-
import { Maybe } from "@fncts/base/data/Maybe";
|
8
|
-
import { FiberScope } from "@fncts/io/FiberScope/definition";
|
9
|
-
import { LogLevel } from "@fncts/io/LogLevel";
|
10
|
-
import { List } from "@fncts/base/collection/immutable/List";
|
11
|
-
import { HashMap } from "@fncts/base/collection/immutable/HashMap";
|
12
|
-
import type { LogSpan } from "@fncts/io/LogSpan";
|
13
|
-
import { Patch } from "@fncts/base/data/Patch";
|
14
|
-
/**
|
15
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
16
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
17
|
-
*/
|
18
|
-
export declare function unsafeMakePatch<Value, Patch>(initial: Value, diff: (oldValue: Value, newValue: Value) => Patch, combine: (first: Patch, second: Patch) => Patch, patch: (patch: Patch) => (oldValue: Value) => Value, fork: Patch): FiberRef.WithPatch<Value, Patch>;
|
19
|
-
/**
|
20
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
21
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
22
|
-
*/
|
23
|
-
export declare function unsafeMakeEnvironment<A>(initial: Environment<A>): FiberRef.WithPatch<Environment<A>, Patch<A, A>>;
|
24
|
-
/**
|
25
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
26
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
27
|
-
*/
|
28
|
-
export declare function unsafeMake<A>(initial: A, fork?: (a: A) => A, join?: (a0: A, a1: A) => A): FiberRef.WithPatch<A, (_: A) => A>;
|
29
6
|
/**
|
30
7
|
* @tsplus static fncts.io.FiberRefOps make
|
31
8
|
* @tsplus location "@fncts/io/FiberRef/constructors"
|
32
9
|
*/
|
33
10
|
export declare function make<A>(initial: A, fork?: (a: A) => A, join?: (a: A, a1: A) => A): IO<Has<Scope>, never, FiberRef<A>>;
|
34
|
-
/**
|
35
|
-
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
36
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
37
|
-
*/
|
38
|
-
export declare const forkScopeOverride: import("@fncts/io/FiberRef/definition").FiberRef.WithPatch<import("@fncts/base/data/Maybe").Maybe<import("../FiberScope").FiberScope>, (_: import("@fncts/base/data/Maybe").Maybe<import("../FiberScope").FiberScope>) => import("@fncts/base/data/Maybe").Maybe<import("../FiberScope").FiberScope>>;
|
39
|
-
/**
|
40
|
-
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
41
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
42
|
-
*/
|
43
|
-
export declare const currentEnvironment: import("@fncts/io/FiberRef/definition").FiberRef.WithPatch<import("@fncts/base/data/Environment").Environment<unknown>, Patch<unknown, unknown>>;
|
44
|
-
/**
|
45
|
-
* @tsplus static fncts.io.FiberRefOps fiberName
|
46
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
47
|
-
*/
|
48
|
-
export declare const fiberName: import("@fncts/io/FiberRef/definition").FiberRef.WithPatch<import("@fncts/base/data/Maybe").Maybe<string>, (_: import("@fncts/base/data/Maybe").Maybe<string>) => import("@fncts/base/data/Maybe").Maybe<string>>;
|
49
|
-
/**
|
50
|
-
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
51
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
52
|
-
*/
|
53
|
-
export declare const currentLogLevel: import("@fncts/io/FiberRef/definition").FiberRef.WithPatch<import("../LogLevel").LogLevel, (_: import("../LogLevel").LogLevel) => import("../LogLevel").LogLevel>;
|
54
|
-
/**
|
55
|
-
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
56
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
57
|
-
*/
|
58
|
-
export declare const currentLogSpan: import("@fncts/io/FiberRef/definition").FiberRef.WithPatch<import("@fncts/base/collection/immutable/List").List<LogSpan>, (_: import("@fncts/base/collection/immutable/List").List<LogSpan>) => import("@fncts/base/collection/immutable/List").List<LogSpan>>;
|
59
|
-
/**
|
60
|
-
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
61
|
-
* @tsplus location "@fncts/io/FiberRef/constructors"
|
62
|
-
*/
|
63
|
-
export declare const currentLogAnnotations: import("@fncts/io/FiberRef/definition").FiberRef.WithPatch<import("@fncts/base/collection/immutable/HashMap").HashMap<string, string>, (_: import("@fncts/base/collection/immutable/HashMap").HashMap<string, string>) => import("@fncts/base/collection/immutable/HashMap").HashMap<string, string>>;
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { Environment } from "@fncts/base/data/Environment";
|
2
|
+
import { Maybe } from "@fncts/base/data/Maybe";
|
3
|
+
import { FiberScope } from "@fncts/io/FiberScope/definition";
|
4
|
+
import { LogLevel } from "@fncts/io/LogLevel";
|
5
|
+
import { List } from "@fncts/base/collection/immutable/List";
|
6
|
+
import { HashMap } from "@fncts/base/collection/immutable/HashMap";
|
7
|
+
import type { LogSpan } from "../LogSpan.js";
|
8
|
+
import { Patch } from "@fncts/base/data/Patch";
|
9
|
+
/**
|
10
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
11
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
12
|
+
*/
|
13
|
+
export declare function unsafeMakePatch<Value, Patch>(initial: Value, diff: (oldValue: Value, newValue: Value) => Patch, combine: (first: Patch, second: Patch) => Patch, patch: (patch: Patch) => (oldValue: Value) => Value, fork: Patch): FiberRef.WithPatch<Value, Patch>;
|
14
|
+
/**
|
15
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
16
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
17
|
+
*/
|
18
|
+
export declare function unsafeMakeEnvironment<A>(initial: Environment<A>): FiberRef.WithPatch<Environment<A>, Patch<A, A>>;
|
19
|
+
/**
|
20
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
21
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
22
|
+
*/
|
23
|
+
export declare function unsafeMake<A>(initial: A, fork?: (a: A) => A, join?: (a0: A, a1: A) => A): FiberRef.WithPatch<A, (_: A) => A>;
|
24
|
+
/**
|
25
|
+
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
26
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
27
|
+
*/
|
28
|
+
export declare const forkScopeOverride: import("./definition.js").FiberRef.WithPatch<import("@fncts/base/data/Maybe.js").Maybe<import("../FiberScope.js").FiberScope>, (_: import("@fncts/base/data/Maybe.js").Maybe<import("../FiberScope.js").FiberScope>) => import("@fncts/base/data/Maybe.js").Maybe<import("../FiberScope.js").FiberScope>>;
|
29
|
+
/**
|
30
|
+
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
31
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
32
|
+
*/
|
33
|
+
export declare const currentEnvironment: import("./definition.js").FiberRef.WithPatch<import("@fncts/base/data/Environment.js").Environment<unknown>, Patch<unknown, unknown>>;
|
34
|
+
/**
|
35
|
+
* @tsplus static fncts.io.FiberRefOps fiberName
|
36
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
37
|
+
*/
|
38
|
+
export declare const fiberName: import("./definition.js").FiberRef.WithPatch<import("@fncts/base/data/Maybe.js").Maybe<string>, (_: import("@fncts/base/data/Maybe.js").Maybe<string>) => import("@fncts/base/data/Maybe.js").Maybe<string>>;
|
39
|
+
/**
|
40
|
+
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
41
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
42
|
+
*/
|
43
|
+
export declare const currentLogLevel: import("./definition.js").FiberRef.WithPatch<import("../LogLevel.js").LogLevel, (_: import("../LogLevel.js").LogLevel) => import("../LogLevel.js").LogLevel>;
|
44
|
+
/**
|
45
|
+
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
46
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
47
|
+
*/
|
48
|
+
export declare const currentLogSpan: import("./definition.js").FiberRef.WithPatch<import("@fncts/base/collection/immutable/List.js").List<LogSpan>, (_: import("@fncts/base/collection/immutable/List.js").List<LogSpan>) => import("@fncts/base/collection/immutable/List.js").List<LogSpan>>;
|
49
|
+
/**
|
50
|
+
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
51
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
52
|
+
*/
|
53
|
+
export declare const currentLogAnnotations: import("./definition.js").FiberRef.WithPatch<import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>, (_: import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>) => import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>>;
|
package/FiberRef.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export * from "./FiberRef/api.js";
|
2
2
|
export * from "./FiberRef/constructors.js";
|
3
3
|
export * from "./FiberRef/definition.js";
|
4
|
+
export * from "./FiberRef/unsafe.js";
|
4
5
|
export * from "./FiberRef/api/locallyScoped.js";
|
5
6
|
export * from "./FiberRef/api/locallyScopedWith.js";
|
package/Future/constructors.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { IO } from "@fncts/io/IO/definition";
|
2
|
-
import { Future } from "@fncts/io/Future";
|
3
2
|
import { FiberId } from "@fncts/base/data/FiberId";
|
3
|
+
import { Future } from "@fncts/io/Future/definition";
|
4
4
|
/**
|
5
5
|
* Makes a new future to be completed by the fiber creating the future.
|
6
6
|
* @tsplus static fncts.io.FutureOps make
|
@@ -12,10 +12,10 @@ export declare function make<E, A>(): IO<unknown, never, Future<E, A>>;
|
|
12
12
|
* @tsplus static fncts.io.FutureOps makeAs
|
13
13
|
* @tsplus location "@fncts/io/Future/constructors"
|
14
14
|
*/
|
15
|
-
export declare function makeAs<E, A>(fiberId: FiberId): import("../IO").UIO<
|
15
|
+
export declare function makeAs<E, A>(fiberId: FiberId): import("../IO").UIO<Future<E, A>>;
|
16
16
|
/**
|
17
17
|
* Makes a new future to be completed by the fiber with the specified id.
|
18
18
|
* @tsplus static fncts.io.FutureOps unsafeMake
|
19
19
|
* @tsplus location "@fncts/io/Future/constructors"
|
20
20
|
*/
|
21
|
-
export declare function unsafeMake<E, A>(fiberId: FiberId):
|
21
|
+
export declare function unsafeMake<E, A>(fiberId: FiberId): Future<E, A>;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { InterruptStatus } from "
|
1
|
+
import { InterruptStatus } from "./definition.js";
|
2
2
|
/**
|
3
3
|
* @tsplus static fncts.InterruptStatusOps interruptible
|
4
4
|
* @tsplus location "@fncts/io/InterruptStatus/constructors"
|
5
5
|
*/
|
6
|
-
export declare const interruptible:
|
6
|
+
export declare const interruptible: InterruptStatus;
|
7
7
|
/**
|
8
8
|
* @tsplus static fncts.InterruptStatusOps uninterruptible
|
9
9
|
* @tsplus location "@fncts/io/InterruptStatus/constructors"
|
10
10
|
*/
|
11
|
-
export declare const uninterruptible:
|
11
|
+
export declare const uninterruptible: InterruptStatus;
|
12
12
|
/**
|
13
13
|
* @tsplus static fncts.InterruptStatusOps fromBoolean
|
14
14
|
* @tsplus location "@fncts/io/InterruptStatus/constructors"
|
@@ -7,7 +7,7 @@ exports.match_ = match_;
|
|
7
7
|
exports.noUpstream = noUpstream;
|
8
8
|
exports.pulled = pulled;
|
9
9
|
|
10
|
-
var
|
10
|
+
var _definition = /*#__PURE__*/require("@fncts/io/Channel/UpstreamPullRequest/definition");
|
11
11
|
|
12
12
|
/**
|
13
13
|
* @tsplus fluent fncts.io.Channel.UpstreamPullRequest match
|
@@ -31,7 +31,7 @@ function match_(upr, pulled, noUpstream) {
|
|
31
31
|
|
32
32
|
|
33
33
|
function pulled(value) {
|
34
|
-
return new
|
34
|
+
return new _definition.Pulled(value);
|
35
35
|
}
|
36
36
|
/**
|
37
37
|
* @tsplus static fncts.io.Channel.UpstreamPullRequestOps NoUpstream
|
@@ -39,6 +39,6 @@ function pulled(value) {
|
|
39
39
|
|
40
40
|
|
41
41
|
function noUpstream(activeDownstreamCount) {
|
42
|
-
return new
|
42
|
+
return new _definition.NoUpstream(activeDownstreamCount);
|
43
43
|
}
|
44
44
|
//# sourceMappingURL=api.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.cjs","mappings":";;;;;;;;;AAEA;;
|
1
|
+
{"version":3,"file":"api.cjs","mappings":";;;;;;;;;AAEA;;AAEA;;;AAGM,SAAUA,MAAV,CACJC,GADI,EAEJC,MAFI,EAGJC,UAHI,EAG4C;EAEhD,QAAQF,GAAG,CAACG,IAAZ;IACE,KAAK,QAAL;MAAe;QACb,OAAOF,MAAM,CAACD,GAAG,CAACI,KAAL,CAAb;MACD;;IACD,KAAK,YAAL;MAAmB;QACjB,OAAOF,UAAU,CAACF,GAAG,CAACK,qBAAL,CAAjB;MACD;EANH;AAQD;AAED;;;;;AAGM,SAAUJ,MAAV,CAAoBG,KAApB,EAA4B;EAChC,OAAO,IAAIE,kBAAJ,CAAWF,KAAX,CAAP;AACD;AAED;;;;;AAGM,SAAUF,UAAV,CAAgCG,qBAAhC,EAA6D;EACjE,OAAO,IAAIE,sBAAJ,CAAeF,qBAAf,CAAP;AACD","names":["match_","upr","pulled","noUpstream","_tag","value","activeDownstreamCount","Pulled","NoUpstream"],"sourceRoot":"","sources":["../../../_src/Channel/UpstreamPullRequest/api.ts"],"sourcesContent":[null]}
|
@@ -64,7 +64,7 @@ var tsplus_module_28 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/requir
|
|
64
64
|
|
65
65
|
var tsplus_module_29 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Supervisor/api"));
|
66
66
|
|
67
|
-
var tsplus_module_30 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/
|
67
|
+
var tsplus_module_30 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/unsafe"));
|
68
68
|
|
69
69
|
var tsplus_module_31 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/api"));
|
70
70
|
|
@@ -19,7 +19,7 @@ var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require
|
|
19
19
|
|
20
20
|
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/constructors"));
|
21
21
|
|
22
|
-
var
|
22
|
+
var _definition = /*#__PURE__*/require("@fncts/io/Fiber/definition");
|
23
23
|
|
24
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
25
25
|
|
@@ -33,7 +33,7 @@ exports.done = done;
|
|
33
33
|
* @tsplus static fncts.io.FiberOps done
|
34
34
|
*/
|
35
35
|
function done_1(exit) {
|
36
|
-
return new
|
36
|
+
return new _definition.SyntheticFiber(tsplus_module_1.none, tsplus_module_2.succeedNow(exit, fileName_1 + ":9:18"), tsplus_module_2.succeedNow(tsplus_module_3.make(), fileName_1 + ":10:18"), tsplus_module_2.unit, tsplus_module_2.succeedNow(tsplus_module_4.just(exit), fileName_1 + ":12:18"), () => tsplus_module_2.succeedNow(exit, fileName_1 + ":13:24"));
|
37
37
|
}
|
38
38
|
/**
|
39
39
|
* @tsplus static fncts.io.FiberOps fail
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructors.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;MAKgBA,IAAI;;;AAHpB;;;AAGA,gBAA2BC,IAA3B,EAA2C;EACzC,OAAO,IAAIC,
|
1
|
+
{"version":3,"file":"constructors.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;MAKgBA,IAAI;;;AAHpB;;;AAGA,gBAA2BC,IAA3B,EAA2C;EACzC,OAAO,IAAIC,0BAAJ,CAAkBC,oBAAlB,EAELC,2BAAcH,IAAd,EAAkBI,oBAAlB,CAFK,EAGLD,2BAAcE,sBAAd,EAAoBD,qBAApB,CAHK,EAGgBD,oBAHhB,EAKLA,2BAAcG,qBAAKN,IAAL,CAAd,EAAwBI,qBAAxB,CALK,EAML,MAAMD,2BAAcH,IAAd,EAAkBI,qBAAlB,CAND,CAAP;AAQD;AAED;;;;;AAGM,SAAUG,IAAV,CAAkBC,CAAlB,EAAsB;EAC1B,OAAOC,OAAKC,qBAAUF,CAAV,CAAL,CAAP;AACD;AAED;;;;;AAGM,SAAUG,SAAV,CAAuBC,KAAvB,EAAsC;EAC1C,OAAOH,OAAKC,0BAAeE,KAAf,CAAL,CAAP;AACD;AAED;;;;;AAGM,SAAUC,WAAV,CAAsBC,EAAtB,EAAiC;EACrC,OAAOL,OAAKC,0BAAeI,EAAf,CAAL,CAAP;AACD;AAED;;;;;AAGM,SAAUC,OAAV,CAAqBC,CAArB,EAAyB;EAC7B,OAAOP,OAAKC,wBAAaM,CAAb,CAAL,CAAP;AACD","names":["done","exit","SyntheticFiber","tsplus_module_1","tsplus_module_2","fileName_1","tsplus_module_3","tsplus_module_4","fail","e","done_1","tsplus_module_5","failCause","cause","interrupted","id","succeed","a"],"sourceRoot":"","sources":["../../_src/Fiber/constructors.ts"],"sourcesContent":[null]}
|
@@ -3,9 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.forkScopeOverride = exports.fiberName = exports.currentLogSpan = exports.currentLogLevel = exports.currentLogAnnotations = exports.currentEnvironment = void 0;
|
7
6
|
exports.make = make;
|
8
|
-
exports.unsafeMakePatch = exports.unsafeMakeEnvironment = exports.unsafeMake = void 0;
|
9
7
|
|
10
8
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/api"));
|
11
9
|
|
@@ -13,60 +11,18 @@ var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require
|
|
13
11
|
|
14
12
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/acquireRelease"));
|
15
13
|
|
16
|
-
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/
|
17
|
-
|
18
|
-
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
19
|
-
|
20
|
-
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Environment/api"));
|
21
|
-
|
22
|
-
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/LogLevel"));
|
23
|
-
|
24
|
-
var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/constructors"));
|
25
|
-
|
26
|
-
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/HashMap/api"));
|
14
|
+
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/unsafe"));
|
27
15
|
|
28
16
|
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
29
17
|
|
30
|
-
var _definition = /*#__PURE__*/require("@fncts/io/FiberRef/definition");
|
31
|
-
|
32
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
33
19
|
|
34
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
35
21
|
|
36
22
|
const fileName_1 = "(@fncts/io) src/FiberRef/constructors.ts";
|
37
|
-
const unsafeMakePatch = unsafeMakePatch_1;
|
38
|
-
exports.unsafeMakePatch = unsafeMakePatch;
|
39
|
-
const unsafeMakeEnvironment = unsafeMakeEnvironment_1;
|
40
|
-
exports.unsafeMakeEnvironment = unsafeMakeEnvironment;
|
41
|
-
const unsafeMake = unsafeMake_1;
|
42
|
-
exports.unsafeMake = unsafeMake;
|
43
23
|
|
44
24
|
function makeWith(ref) {
|
45
|
-
return tsplus_module_3.acquireRelease(() => tsplus_module_2.tap_(tsplus_module_2.succeed(ref, fileName_1 + ":
|
46
|
-
}
|
47
|
-
/**
|
48
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
49
|
-
*/
|
50
|
-
|
51
|
-
|
52
|
-
function unsafeMakePatch_1(initial, diff, combine, patch, fork) {
|
53
|
-
return new _definition.FiberRefInternal(initial, diff, combine, patch, fork);
|
54
|
-
}
|
55
|
-
/**
|
56
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
57
|
-
*/
|
58
|
-
|
59
|
-
|
60
|
-
function unsafeMakeEnvironment_1(initial) {
|
61
|
-
return unsafeMakePatch_1(initial, tsplus_module_4.diff, (first, second) => tsplus_module_4.compose(first, second), patch => value => tsplus_module_4.apply(patch, value), tsplus_module_4.empty());
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
65
|
-
*/
|
66
|
-
|
67
|
-
|
68
|
-
function unsafeMake_1(initial, fork = _function.identity, join = (_, a) => a) {
|
69
|
-
return unsafeMakePatch_1(initial, (_, newValue) => () => newValue, (first, second) => value => second(first(value)), patch => value => join(value, patch(value)), fork);
|
25
|
+
return tsplus_module_3.acquireRelease(() => tsplus_module_2.tap_(tsplus_module_2.succeed(ref, fileName_1 + ":7:15"), ref => tsplus_module_1.update_(ref, _function.identity, fileName_1 + ":7:44"), fileName_1 + ":7:24"), ref => tsplus_module_1.remove(ref));
|
70
26
|
}
|
71
27
|
/**
|
72
28
|
* @tsplus static fncts.io.FiberRefOps make
|
@@ -74,43 +30,6 @@ function unsafeMake_1(initial, fork = _function.identity, join = (_, a) => a) {
|
|
74
30
|
|
75
31
|
|
76
32
|
function make(initial, fork = _function.identity, join = (_, a) => a) {
|
77
|
-
return makeWith(() =>
|
33
|
+
return makeWith(() => tsplus_module_4.unsafeMake(initial, fork, join));
|
78
34
|
}
|
79
|
-
/**
|
80
|
-
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
81
|
-
*/
|
82
|
-
|
83
|
-
|
84
|
-
const forkScopeOverride = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_5.nothing(), () => tsplus_module_5.nothing());
|
85
|
-
/**
|
86
|
-
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
87
|
-
*/
|
88
|
-
|
89
|
-
exports.forkScopeOverride = forkScopeOverride;
|
90
|
-
const currentEnvironment = /*#__PURE__*/unsafeMakeEnvironment_1(tsplus_module_6.empty);
|
91
|
-
/**
|
92
|
-
* @tsplus static fncts.io.FiberRefOps fiberName
|
93
|
-
*/
|
94
|
-
|
95
|
-
exports.currentEnvironment = currentEnvironment;
|
96
|
-
const fiberName = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_5.nothing());
|
97
|
-
/**
|
98
|
-
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
99
|
-
*/
|
100
|
-
|
101
|
-
exports.fiberName = fiberName;
|
102
|
-
const currentLogLevel = /*#__PURE__*/unsafeMake_1(tsplus_module_7.Info);
|
103
|
-
/**
|
104
|
-
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
105
|
-
*/
|
106
|
-
|
107
|
-
exports.currentLogLevel = currentLogLevel;
|
108
|
-
const currentLogSpan = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_8.nil());
|
109
|
-
/**
|
110
|
-
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
111
|
-
*/
|
112
|
-
|
113
|
-
exports.currentLogSpan = currentLogSpan;
|
114
|
-
const currentLogAnnotations = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_9.makeDefault());
|
115
|
-
exports.currentLogAnnotations = currentLogAnnotations;
|
116
35
|
//# sourceMappingURL=constructors.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructors.cjs","mappings":"
|
1
|
+
{"version":3,"file":"constructors.cjs","mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;AAEA,SAASA,QAAT,CACEC,GADF,EAC6C;EAE3C,OAAOC,qCACLC,6CAAWF,GAAX,EAAcG,oBAAd,GAAqBH,GAAD,IAASI,6BAAWC,kBAAX,EAAmBF,oBAAnB,CAA7B,EAAiDA,oBAAjD,CADK,EAEJH,GAAD,IAAQI,uBAACJ,GAAD,CAFH,CAAP;AAID;AAED;;;;;AAGM,SAAUM,IAAV,CACJC,OADI,EAEJC,OAAoBH,kBAFhB,EAGJI,OAA2B,CAACC,CAAD,EAAIC,CAAJ,KAAUA,CAHjC,EAGkC;EAEtC,OAAOZ,QAAQ,OAACa,2BAAoBL,OAApB,EAA6BC,IAA7B,EAAmCC,IAAnC,CAAD,CAAf;AACD","names":["makeWith","ref","tsplus_module_3","tsplus_module_2","fileName_1","tsplus_module_1","identity","make","initial","fork","join","_","a","tsplus_module_4"],"sourceRoot":"","sources":["../../_src/FiberRef/constructors.ts"],"sourcesContent":[null]}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.unsafeMakePatch = exports.unsafeMakeEnvironment = exports.unsafeMake = exports.forkScopeOverride = exports.fiberName = exports.currentLogSpan = exports.currentLogLevel = exports.currentLogAnnotations = exports.currentEnvironment = void 0;
|
7
|
+
|
8
|
+
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Patch/api"));
|
9
|
+
|
10
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
11
|
+
|
12
|
+
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Environment/api"));
|
13
|
+
|
14
|
+
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/LogLevel"));
|
15
|
+
|
16
|
+
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/constructors"));
|
17
|
+
|
18
|
+
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/HashMap/api"));
|
19
|
+
|
20
|
+
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
21
|
+
|
22
|
+
var _definition = /*#__PURE__*/require("./definition.cjs");
|
23
|
+
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
25
|
+
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
27
|
+
|
28
|
+
const unsafeMakePatch = unsafeMakePatch_1;
|
29
|
+
exports.unsafeMakePatch = unsafeMakePatch;
|
30
|
+
const unsafeMakeEnvironment = unsafeMakeEnvironment_1;
|
31
|
+
exports.unsafeMakeEnvironment = unsafeMakeEnvironment;
|
32
|
+
const unsafeMake = unsafeMake_1;
|
33
|
+
exports.unsafeMake = unsafeMake;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
37
|
+
*/
|
38
|
+
function unsafeMakePatch_1(initial, diff, combine, patch, fork) {
|
39
|
+
return new _definition.FiberRefInternal(initial, diff, combine, patch, fork);
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
43
|
+
*/
|
44
|
+
|
45
|
+
|
46
|
+
function unsafeMakeEnvironment_1(initial) {
|
47
|
+
return unsafeMakePatch_1(initial, tsplus_module_1.diff, (first, second) => tsplus_module_1.compose(first, second), patch => value => tsplus_module_1.apply(patch, value), tsplus_module_1.empty());
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
51
|
+
*/
|
52
|
+
|
53
|
+
|
54
|
+
function unsafeMake_1(initial, fork = _function.identity, join = (_, a) => a) {
|
55
|
+
return unsafeMakePatch_1(initial, (_, newValue) => () => newValue, (first, second) => value => second(first(value)), patch => value => join(value, patch(value)), fork);
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
59
|
+
*/
|
60
|
+
|
61
|
+
|
62
|
+
const forkScopeOverride = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_2.nothing(), () => tsplus_module_2.nothing());
|
63
|
+
/**
|
64
|
+
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
65
|
+
*/
|
66
|
+
|
67
|
+
exports.forkScopeOverride = forkScopeOverride;
|
68
|
+
const currentEnvironment = /*#__PURE__*/unsafeMakeEnvironment_1(tsplus_module_3.empty);
|
69
|
+
/**
|
70
|
+
* @tsplus static fncts.io.FiberRefOps fiberName
|
71
|
+
*/
|
72
|
+
|
73
|
+
exports.currentEnvironment = currentEnvironment;
|
74
|
+
const fiberName = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_2.nothing());
|
75
|
+
/**
|
76
|
+
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
77
|
+
*/
|
78
|
+
|
79
|
+
exports.fiberName = fiberName;
|
80
|
+
const currentLogLevel = /*#__PURE__*/unsafeMake_1(tsplus_module_4.Info);
|
81
|
+
/**
|
82
|
+
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
83
|
+
*/
|
84
|
+
|
85
|
+
exports.currentLogLevel = currentLogLevel;
|
86
|
+
const currentLogSpan = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_5.nil());
|
87
|
+
/**
|
88
|
+
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
89
|
+
*/
|
90
|
+
|
91
|
+
exports.currentLogSpan = currentLogSpan;
|
92
|
+
const currentLogAnnotations = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_6.makeDefault());
|
93
|
+
exports.currentLogAnnotations = currentLogAnnotations;
|
94
|
+
//# sourceMappingURL=unsafe.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unsafe.cjs","mappings":";;;;;;;;;;;;;;;;;;;AAEA;;AAGA;;;;;;MAKgBA,eAAe;;MAafC,qBAAqB;;MAarBC,UAAU;;;AA7B1B;;;AAGA,2BACEC,OADF,EAEEC,IAFF,EAGEC,OAHF,EAIEC,KAJF,EAKEC,IALF,EAKa;EAEX,OAAO,IAAIC,4BAAJ,CAAqBL,OAArB,EAA8BC,IAA9B,EAAoCC,OAApC,EAA6CC,KAA7C,EAAoDC,IAApD,CAAP;AACD;AAED;;;;;AAGA,iCAAyCJ,OAAzC,EAAgE;EAC9D,OAAOM,kBACLN,OADK,EACEO,oBADF,EAGL,CAACC,KAAD,EAAQC,MAAR,KAAmBF,+BAAcE,MAAd,CAHd,EAIJN,KAAD,IAAYO,KAAD,IAAWH,6BAAMG,KAAN,CAJjB,EAKLH,uBALK,CAAP;AAOD;AAED;;;;;AAGA,sBACEP,OADF,EAEEI,OAAoBO,kBAFtB,EAGEC,OAA4B,CAACC,CAAD,EAAIC,CAAJ,KAAUA,CAHxC,EAGyC;EAEvC,OAAOR,kBACLN,OADK,EAEL,CAACa,CAAD,EAAIE,QAAJ,KAAiB,MAAMA,QAFlB,EAGL,CAACP,KAAD,EAAQC,MAAR,KAAoBC,KAAD,IAAWD,MAAM,CAACD,KAAK,CAACE,KAAD,CAAN,CAH/B,EAIJP,KAAD,IAAYO,KAAD,IAAWE,IAAI,CAACF,KAAD,EAAQP,KAAK,CAACO,KAAD,CAAb,CAJrB,EAKLN,IALK,CAAP;AAOD;AAED;;;;;AAGO,MAAMY,iBAAiB,gBAAGC,2BAAuCC,yBAAvC,EAAkD,MAAMA,yBAAxD,CAA1B;AAEP;;;;;AAGO,MAAMC,kBAAkB,gBAAGC,8CAA3B;AAEP;;;;;AAGO,MAAMC,SAAS,gBAAGJ,2BAAmCC,yBAAnC,CAAlB;AAEP;;;;;AAGO,MAAMI,eAAe,gBAAGL,kCAAxB;AAEP;;;;;AAGO,MAAMM,cAAc,gBAAGN,2BAAmCO,qBAAnC,CAAvB;AAEP;;;;;AAGO,MAAMC,qBAAqB,gBAAGR,2BAA6CS,6BAA7C,CAA9B","names":["unsafeMakePatch","unsafeMakeEnvironment","unsafeMake","initial","diff","combine","patch","fork","FiberRefInternal","unsafeMakePatch_1","tsplus_module_1","first","second","value","identity","join","_","a","newValue","forkScopeOverride","unsafeMake_1","tsplus_module_2","currentEnvironment","unsafeMakeEnvironment_1","fiberName","currentLogLevel","currentLogSpan","tsplus_module_5","currentLogAnnotations","tsplus_module_6"],"sourceRoot":"","sources":["../../_src/FiberRef/unsafe.ts"],"sourcesContent":[null]}
|
package/_cjs/FiberRef.cjs
CHANGED
@@ -43,6 +43,19 @@ Object.keys(_definition).forEach(function (key) {
|
|
43
43
|
});
|
44
44
|
});
|
45
45
|
|
46
|
+
var _unsafe = /*#__PURE__*/require("./FiberRef/unsafe.cjs");
|
47
|
+
|
48
|
+
Object.keys(_unsafe).forEach(function (key) {
|
49
|
+
if (key === "default" || key === "__esModule") return;
|
50
|
+
if (key in exports && exports[key] === _unsafe[key]) return;
|
51
|
+
Object.defineProperty(exports, key, {
|
52
|
+
enumerable: true,
|
53
|
+
get: function () {
|
54
|
+
return _unsafe[key];
|
55
|
+
}
|
56
|
+
});
|
57
|
+
});
|
58
|
+
|
46
59
|
var _locallyScoped = /*#__PURE__*/require("./FiberRef/api/locallyScoped.cjs");
|
47
60
|
|
48
61
|
Object.keys(_locallyScoped).forEach(function (key) {
|
package/_cjs/FiberRef.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FiberRef.cjs","mappings":";;;;;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAIA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA","names":[],"sourceRoot":"","sources":["../_src/FiberRef.ts"],"sourcesContent":[null]}
|
1
|
+
{"version":3,"file":"FiberRef.cjs","mappings":";;;;;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAIA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA","names":[],"sourceRoot":"","sources":["../_src/FiberRef.ts"],"sourcesContent":[null]}
|
@@ -8,9 +8,7 @@ exports.unsafeMake = exports.makeAs = void 0;
|
|
8
8
|
|
9
9
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
|
10
10
|
|
11
|
-
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/
|
12
|
-
|
13
|
-
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/constructors"));
|
11
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/constructors"));
|
14
12
|
|
15
13
|
var _definition = /*#__PURE__*/require("@fncts/io/Future/definition");
|
16
14
|
|
@@ -50,6 +48,6 @@ function makeAs_1(fiberId) {
|
|
50
48
|
|
51
49
|
|
52
50
|
function unsafeMake_1(fiberId) {
|
53
|
-
return new
|
51
|
+
return new _definition.Future(new _definition.Pending(tsplus_module_2.empty()), fiberId);
|
54
52
|
}
|
55
53
|
//# sourceMappingURL=constructors.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructors.cjs","mappings":"
|
1
|
+
{"version":3,"file":"constructors.cjs","mappings":";;;;;;;;;;;;AAAA;;;;;;;MAgBgBA,MAAM;;MASNC,UAAU;;;AAvB1B;;;;;AAKM,SAAUC,IAAV,GAAc;EAClB,OAAOC,kDAAoBC,EAAD,IAAQC,SAAoBD,EAApB,CAA3B,EAAkDE,oBAAlD,CAAP;AACD;AAED;;;;;;;AAKA,kBAA6BC,OAA7B,EAA6C;EAC3C,OAAOJ,8BAAWK,aAAiBD,OAAjB,CAAX,EAAoCD,qBAApC,CAAP;AACD;AAED;;;;;;;AAKA,sBAAiCC,OAAjC,EAAiD;EAC/C,OAAO,IAAIE,kBAAJ,CAAiB,IAAIC,mBAAJ,CAAYC,uBAAZ,CAAjB,EAA4CJ,OAA5C,CAAP;AACD","names":["makeAs","unsafeMake","make","tsplus_module_1","id","makeAs_1","fileName_1","fiberId","unsafeMake_1","Future","Pending","tsplus_module_2"],"sourceRoot":"","sources":["../../_src/Future/constructors.ts"],"sourcesContent":[null]}
|
@@ -10,7 +10,7 @@ exports.withConcurrency_ = withConcurrency_;
|
|
10
10
|
|
11
11
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
12
12
|
|
13
|
-
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/
|
13
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/unsafe"));
|
14
14
|
|
15
15
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/api"));
|
16
16
|
|
@@ -16,7 +16,7 @@ exports.serviceWithIO = void 0;
|
|
16
16
|
|
17
17
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/api"));
|
18
18
|
|
19
|
-
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/
|
19
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/unsafe"));
|
20
20
|
|
21
21
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
|
22
22
|
|
package/_cjs/IO/runtime.cjs
CHANGED
@@ -15,7 +15,7 @@ var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require
|
|
15
15
|
|
16
16
|
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/internal/Stack"));
|
17
17
|
|
18
|
-
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/
|
18
|
+
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/unsafe"));
|
19
19
|
|
20
20
|
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/constructors"));
|
21
21
|
|
package/_cjs/IOEnv/services.cjs
CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.services = void 0;
|
7
7
|
|
8
|
-
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/
|
8
|
+
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/unsafe"));
|
9
9
|
|
10
10
|
var _definition = /*#__PURE__*/require("@fncts/io/IOEnv/definition");
|
11
11
|
|
@@ -6,23 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.fromBoolean = fromBoolean;
|
7
7
|
exports.uninterruptible = exports.interruptible = void 0;
|
8
8
|
|
9
|
-
var
|
10
|
-
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
12
|
-
|
13
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
9
|
+
var _definition = /*#__PURE__*/require("./definition.cjs");
|
14
10
|
|
15
11
|
/**
|
16
12
|
* @tsplus static fncts.InterruptStatusOps interruptible
|
17
13
|
*/
|
18
|
-
const interruptible_1 = /*#__PURE__*/new
|
14
|
+
const interruptible_1 = /*#__PURE__*/new _definition.InterruptStatus(true);
|
19
15
|
const interruptible = interruptible_1;
|
20
16
|
/**
|
21
17
|
* @tsplus static fncts.InterruptStatusOps uninterruptible
|
22
18
|
*/
|
23
19
|
|
24
20
|
exports.interruptible = interruptible;
|
25
|
-
const uninterruptible_1 = /*#__PURE__*/new
|
21
|
+
const uninterruptible_1 = /*#__PURE__*/new _definition.InterruptStatus(false);
|
26
22
|
const uninterruptible = uninterruptible_1;
|
27
23
|
/**
|
28
24
|
* @tsplus static fncts.InterruptStatusOps fromBoolean
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructors.cjs","mappings":"
|
1
|
+
{"version":3,"file":"constructors.cjs","mappings":";;;;;;;;AAAA;;AAEA;;;AAGO,MAAMA,+BAAgB,IAAIC,2BAAJ,CAAoB,IAApB,CAAtB;MAAMC,aAAa;AAE1B;;;;;AAGO,MAAMC,iCAAkB,IAAIF,2BAAJ,CAAoB,KAApB,CAAxB;MAAMG,eAAe;AAE5B;;;;;;AAGM,SAAUC,WAAV,CAAsBC,CAAtB,EAAgC;EACpC,OAAOA,CAAC,GAAEN,eAAF,GAAkCG,iBAA1C;AACD","names":["interruptible_1","InterruptStatus","interruptible","uninterruptible_1","uninterruptible","fromBoolean","b"],"sourceRoot":"","sources":["../../_src/InterruptStatus/constructors.ts"],"sourcesContent":[null]}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import { NoUpstream } from "@fncts/io/Channel/UpstreamPullRequest";
|
2
|
-
import { Pulled } from "@fncts/io/Channel/UpstreamPullRequest";
|
1
|
+
import { NoUpstream, Pulled } from "@fncts/io/Channel/UpstreamPullRequest/definition";
|
3
2
|
/**
|
4
3
|
* @tsplus fluent fncts.io.Channel.UpstreamPullRequest match
|
5
4
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.mjs","mappings":"AAEA,SAASA,UAAT,
|
1
|
+
{"version":3,"file":"api.mjs","mappings":"AAEA,SAASA,UAAT,EAAqBC,MAArB,QAAmC,kDAAnC;AAEA;;;;AAGA,OAAM,SAAUC,MAAV,CACJC,GADI,EAEJC,MAFI,EAGJC,UAHI,EAG4C;EAEhD,QAAQF,GAAG,CAACG,IAAZ;IACE,KAAK,QAAL;MAAe;QACb,OAAOF,MAAM,CAACD,GAAG,CAACI,KAAL,CAAb;MACD;;IACD,KAAK,YAAL;MAAmB;QACjB,OAAOF,UAAU,CAACF,GAAG,CAACK,qBAAL,CAAjB;MACD;EANH;AAQD;AAED;;;;AAGA,OAAM,SAAUJ,MAAV,CAAoBG,KAApB,EAA4B;EAChC,OAAO,IAAIN,MAAJ,CAAWM,KAAX,CAAP;AACD;AAED;;;;AAGA,OAAM,SAAUF,UAAV,CAAgCG,qBAAhC,EAA6D;EACjE,OAAO,IAAIR,UAAJ,CAAeQ,qBAAf,CAAP;AACD","names":["NoUpstream","Pulled","match_","upr","pulled","noUpstream","_tag","value","activeDownstreamCount"],"sourceRoot":"","sources":["../../../_src/Channel/UpstreamPullRequest/api.ts"],"sourcesContent":[null]}
|
@@ -28,7 +28,7 @@ import * as tsplus_module_26 from "@fncts/base/data/Cause/api";
|
|
28
28
|
import * as tsplus_module_27 from "@fncts/base/data/Exit/constructors";
|
29
29
|
import * as tsplus_module_28 from "@fncts/io/InterruptStatus/constructors";
|
30
30
|
import * as tsplus_module_29 from "@fncts/io/Supervisor/api";
|
31
|
-
import * as tsplus_module_30 from "@fncts/io/FiberRef/
|
31
|
+
import * as tsplus_module_30 from "@fncts/io/FiberRef/unsafe";
|
32
32
|
import * as tsplus_module_31 from "@fncts/base/data/Maybe/api";
|
33
33
|
import * as tsplus_module_32 from "@fncts/base/data/exceptions";
|
34
34
|
import * as tsplus_module_33 from "@fncts/base/data/FiberId/constructors";
|
@@ -5,7 +5,7 @@ import * as tsplus_module_3 from "@fncts/base/collection/immutable/Conc/construc
|
|
5
5
|
import * as tsplus_module_4 from "@fncts/base/data/Maybe/constructors";
|
6
6
|
import * as tsplus_module_5 from "@fncts/base/data/Exit/constructors";
|
7
7
|
export const done = done_1;
|
8
|
-
import { SyntheticFiber } from "@fncts/io/Fiber";
|
8
|
+
import { SyntheticFiber } from "@fncts/io/Fiber/definition";
|
9
9
|
/**
|
10
10
|
* @tsplus static fncts.io.FiberOps done
|
11
11
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructors.mjs","mappings":";;;;;;aAKgBA,IAAI;AALpB,SAASC,cAAT,QAA+B,
|
1
|
+
{"version":3,"file":"constructors.mjs","mappings":";;;;;;aAKgBA,IAAI;AALpB,SAASC,cAAT,QAA+B,4BAA/B;AAEA;;;;AAGA,gBAA2BC,IAA3B,EAA2C;EACzC,OAAO,IAAID,cAAJ,CAAkBE,oBAAlB,EAELC,2BAAcF,IAAd,EAAkBG,oBAAlB,CAFK,EAGLD,2BAAcE,sBAAd,EAAoBD,qBAApB,CAHK,EAGgBD,oBAHhB,EAKLA,2BAAcG,qBAAKL,IAAL,CAAd,EAAwBG,qBAAxB,CALK,EAML,MAAMD,2BAAcF,IAAd,EAAkBG,qBAAlB,CAND,CAAP;AAQD;AAED;;;;;AAGA,OAAM,SAAUG,IAAV,CAAkBC,CAAlB,EAAsB;EAC1B,OAAOC,OAAKC,qBAAUF,CAAV,CAAL,CAAP;AACD;AAED;;;;AAGA,OAAM,SAAUG,SAAV,CAAuBC,KAAvB,EAAsC;EAC1C,OAAOH,OAAKC,0BAAeE,KAAf,CAAL,CAAP;AACD;AAED;;;;AAGA,OAAM,SAAUC,WAAV,CAAsBC,EAAtB,EAAiC;EACrC,OAAOL,OAAKC,0BAAeI,EAAf,CAAL,CAAP;AACD;AAED;;;;AAGA,OAAM,SAAUC,OAAV,CAAqBC,CAArB,EAAyB;EAC7B,OAAOP,OAAKC,wBAAaM,CAAb,CAAL,CAAP;AACD","names":["done","SyntheticFiber","exit","tsplus_module_1","tsplus_module_2","fileName_1","tsplus_module_3","tsplus_module_4","fail","e","done_1","tsplus_module_5","failCause","cause","interrupted","id","succeed","a"],"sourceRoot":"","sources":["../../_src/Fiber/constructors.ts"],"sourcesContent":[null]}
|
@@ -2,44 +2,11 @@ const fileName_1 = "(@fncts/io) src/FiberRef/constructors.ts";
|
|
2
2
|
import * as tsplus_module_1 from "@fncts/io/FiberRef/api";
|
3
3
|
import * as tsplus_module_2 from "@fncts/io/IO/api";
|
4
4
|
import * as tsplus_module_3 from "@fncts/io/IO/api/acquireRelease";
|
5
|
-
import * as tsplus_module_4 from "@fncts/
|
6
|
-
import * as tsplus_module_5 from "@fncts/base/data/Maybe/constructors";
|
7
|
-
import * as tsplus_module_6 from "@fncts/base/data/Environment/api";
|
8
|
-
import * as tsplus_module_7 from "@fncts/io/LogLevel";
|
9
|
-
import * as tsplus_module_8 from "@fncts/base/collection/immutable/List/constructors";
|
10
|
-
import * as tsplus_module_9 from "@fncts/base/collection/immutable/HashMap/api";
|
11
|
-
export const unsafeMakePatch = unsafeMakePatch_1;
|
12
|
-
export const unsafeMakeEnvironment = unsafeMakeEnvironment_1;
|
13
|
-
export const unsafeMake = unsafeMake_1;
|
5
|
+
import * as tsplus_module_4 from "@fncts/io/FiberRef/unsafe";
|
14
6
|
import { identity } from "@fncts/base/data/function";
|
15
|
-
import { FiberRefInternal } from "@fncts/io/FiberRef/definition";
|
16
7
|
|
17
8
|
function makeWith(ref) {
|
18
|
-
return tsplus_module_3.acquireRelease(() => tsplus_module_2.tap_(tsplus_module_2.succeed(ref, fileName_1 + ":
|
19
|
-
}
|
20
|
-
/**
|
21
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
22
|
-
*/
|
23
|
-
|
24
|
-
|
25
|
-
function unsafeMakePatch_1(initial, diff, combine, patch, fork) {
|
26
|
-
return new FiberRefInternal(initial, diff, combine, patch, fork);
|
27
|
-
}
|
28
|
-
/**
|
29
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
30
|
-
*/
|
31
|
-
|
32
|
-
|
33
|
-
function unsafeMakeEnvironment_1(initial) {
|
34
|
-
return unsafeMakePatch_1(initial, tsplus_module_4.diff, (first, second) => tsplus_module_4.compose(first, second), patch => value => tsplus_module_4.apply(patch, value), tsplus_module_4.empty());
|
35
|
-
}
|
36
|
-
/**
|
37
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
38
|
-
*/
|
39
|
-
|
40
|
-
|
41
|
-
function unsafeMake_1(initial, fork = identity, join = (_, a) => a) {
|
42
|
-
return unsafeMakePatch_1(initial, (_, newValue) => () => newValue, (first, second) => value => second(first(value)), patch => value => join(value, patch(value)), fork);
|
9
|
+
return tsplus_module_3.acquireRelease(() => tsplus_module_2.tap_(tsplus_module_2.succeed(ref, fileName_1 + ":7:15"), ref => tsplus_module_1.update_(ref, identity, fileName_1 + ":7:44"), fileName_1 + ":7:24"), ref => tsplus_module_1.remove(ref));
|
43
10
|
}
|
44
11
|
/**
|
45
12
|
* @tsplus static fncts.io.FiberRefOps make
|
@@ -47,36 +14,6 @@ function unsafeMake_1(initial, fork = identity, join = (_, a) => a) {
|
|
47
14
|
|
48
15
|
|
49
16
|
export function make(initial, fork = identity, join = (_, a) => a) {
|
50
|
-
return makeWith(() =>
|
17
|
+
return makeWith(() => tsplus_module_4.unsafeMake(initial, fork, join));
|
51
18
|
}
|
52
|
-
/**
|
53
|
-
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
54
|
-
*/
|
55
|
-
|
56
|
-
export const forkScopeOverride = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_5.nothing(), () => tsplus_module_5.nothing());
|
57
|
-
/**
|
58
|
-
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
59
|
-
*/
|
60
|
-
|
61
|
-
export const currentEnvironment = /*#__PURE__*/unsafeMakeEnvironment_1(tsplus_module_6.empty);
|
62
|
-
/**
|
63
|
-
* @tsplus static fncts.io.FiberRefOps fiberName
|
64
|
-
*/
|
65
|
-
|
66
|
-
export const fiberName = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_5.nothing());
|
67
|
-
/**
|
68
|
-
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
69
|
-
*/
|
70
|
-
|
71
|
-
export const currentLogLevel = /*#__PURE__*/unsafeMake_1(tsplus_module_7.Info);
|
72
|
-
/**
|
73
|
-
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
74
|
-
*/
|
75
|
-
|
76
|
-
export const currentLogSpan = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_8.nil());
|
77
|
-
/**
|
78
|
-
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
79
|
-
*/
|
80
|
-
|
81
|
-
export const currentLogAnnotations = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_9.makeDefault());
|
82
19
|
//# sourceMappingURL=constructors.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructors.mjs","mappings":"
|
1
|
+
{"version":3,"file":"constructors.mjs","mappings":";;;;;AAAA,SAASA,QAAT,QAAyB,2BAAzB;;AAEA,SAASC,QAAT,CACEC,GADF,EAC6C;EAE3C,OAAOC,qCACLC,6CAAWF,GAAX,EAAcG,oBAAd,GAAqBH,GAAD,IAASI,6BAAWN,QAAX,EAAmBK,oBAAnB,CAA7B,EAAiDA,oBAAjD,CADK,EAEJH,GAAD,IAAQI,uBAACJ,GAAD,CAFH,CAAP;AAID;AAED;;;;;AAGA,OAAM,SAAUK,IAAV,CACJC,OADI,EAEJC,OAAoBT,QAFhB,EAGJU,OAA2B,CAACC,CAAD,EAAIC,CAAJ,KAAUA,CAHjC,EAGkC;EAEtC,OAAOX,QAAQ,OAACY,2BAAoBL,OAApB,EAA6BC,IAA7B,EAAmCC,IAAnC,CAAD,CAAf;AACD","names":["identity","makeWith","ref","tsplus_module_3","tsplus_module_2","fileName_1","tsplus_module_1","make","initial","fork","join","_","a","tsplus_module_4"],"sourceRoot":"","sources":["../../_src/FiberRef/constructors.ts"],"sourcesContent":[null]}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import * as tsplus_module_1 from "@fncts/base/data/Patch/api";
|
2
|
+
import * as tsplus_module_2 from "@fncts/base/data/Maybe/constructors";
|
3
|
+
import * as tsplus_module_3 from "@fncts/base/data/Environment/api";
|
4
|
+
import * as tsplus_module_4 from "@fncts/io/LogLevel";
|
5
|
+
import * as tsplus_module_5 from "@fncts/base/collection/immutable/List/constructors";
|
6
|
+
import * as tsplus_module_6 from "@fncts/base/collection/immutable/HashMap/api";
|
7
|
+
export const unsafeMakePatch = unsafeMakePatch_1;
|
8
|
+
export const unsafeMakeEnvironment = unsafeMakeEnvironment_1;
|
9
|
+
export const unsafeMake = unsafeMake_1;
|
10
|
+
import { identity } from "@fncts/base/data/function";
|
11
|
+
import { FiberRefInternal } from "./definition.mjs";
|
12
|
+
/**
|
13
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
14
|
+
*/
|
15
|
+
|
16
|
+
function unsafeMakePatch_1(initial, diff, combine, patch, fork) {
|
17
|
+
return new FiberRefInternal(initial, diff, combine, patch, fork);
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
21
|
+
*/
|
22
|
+
|
23
|
+
|
24
|
+
function unsafeMakeEnvironment_1(initial) {
|
25
|
+
return unsafeMakePatch_1(initial, tsplus_module_1.diff, (first, second) => tsplus_module_1.compose(first, second), patch => value => tsplus_module_1.apply(patch, value), tsplus_module_1.empty());
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
29
|
+
*/
|
30
|
+
|
31
|
+
|
32
|
+
function unsafeMake_1(initial, fork = identity, join = (_, a) => a) {
|
33
|
+
return unsafeMakePatch_1(initial, (_, newValue) => () => newValue, (first, second) => value => second(first(value)), patch => value => join(value, patch(value)), fork);
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
37
|
+
*/
|
38
|
+
|
39
|
+
|
40
|
+
export const forkScopeOverride = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_2.nothing(), () => tsplus_module_2.nothing());
|
41
|
+
/**
|
42
|
+
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
43
|
+
*/
|
44
|
+
|
45
|
+
export const currentEnvironment = /*#__PURE__*/unsafeMakeEnvironment_1(tsplus_module_3.empty);
|
46
|
+
/**
|
47
|
+
* @tsplus static fncts.io.FiberRefOps fiberName
|
48
|
+
*/
|
49
|
+
|
50
|
+
export const fiberName = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_2.nothing());
|
51
|
+
/**
|
52
|
+
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
53
|
+
*/
|
54
|
+
|
55
|
+
export const currentLogLevel = /*#__PURE__*/unsafeMake_1(tsplus_module_4.Info);
|
56
|
+
/**
|
57
|
+
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
58
|
+
*/
|
59
|
+
|
60
|
+
export const currentLogSpan = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_5.nil());
|
61
|
+
/**
|
62
|
+
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
63
|
+
*/
|
64
|
+
|
65
|
+
export const currentLogAnnotations = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_6.makeDefault());
|
66
|
+
//# sourceMappingURL=unsafe.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unsafe.mjs","mappings":";;;;;;aAUgBA,eAAe;aAafC,qBAAqB;aAarBC,UAAU;AAlC1B,SAASC,QAAT,QAAyB,2BAAzB;AAGA,SAASC,gBAAT,QAAiC,kBAAjC;AAEA;;;;AAGA,2BACEC,OADF,EAEEC,IAFF,EAGEC,OAHF,EAIEC,KAJF,EAKEC,IALF,EAKa;EAEX,OAAO,IAAIL,gBAAJ,CAAqBC,OAArB,EAA8BC,IAA9B,EAAoCC,OAApC,EAA6CC,KAA7C,EAAoDC,IAApD,CAAP;AACD;AAED;;;;;AAGA,iCAAyCJ,OAAzC,EAAgE;EAC9D,OAAOK,kBACLL,OADK,EACEM,oBADF,EAGL,CAACC,KAAD,EAAQC,MAAR,KAAmBF,+BAAcE,MAAd,CAHd,EAIJL,KAAD,IAAYM,KAAD,IAAWH,6BAAMG,KAAN,CAJjB,EAKLH,uBALK,CAAP;AAOD;AAED;;;;;AAGA,sBACEN,OADF,EAEEI,OAAoBN,QAFtB,EAGEY,OAA4B,CAACC,CAAD,EAAIC,CAAJ,KAAUA,CAHxC,EAGyC;EAEvC,OAAOP,kBACLL,OADK,EAEL,CAACW,CAAD,EAAIE,QAAJ,KAAiB,MAAMA,QAFlB,EAGL,CAACN,KAAD,EAAQC,MAAR,KAAoBC,KAAD,IAAWD,MAAM,CAACD,KAAK,CAACE,KAAD,CAAN,CAH/B,EAIJN,KAAD,IAAYM,KAAD,IAAWC,IAAI,CAACD,KAAD,EAAQN,KAAK,CAACM,KAAD,CAAb,CAJrB,EAKLL,IALK,CAAP;AAOD;AAED;;;;;AAGA,OAAO,MAAMU,iBAAiB,gBAAGC,2BAAuCC,yBAAvC,EAAkD,MAAMA,yBAAxD,CAA1B;AAEP;;;;AAGA,OAAO,MAAMC,kBAAkB,gBAAGC,8CAA3B;AAEP;;;;AAGA,OAAO,MAAMC,SAAS,gBAAGJ,2BAAmCC,yBAAnC,CAAlB;AAEP;;;;AAGA,OAAO,MAAMI,eAAe,gBAAGL,kCAAxB;AAEP;;;;AAGA,OAAO,MAAMM,cAAc,gBAAGN,2BAAmCO,qBAAnC,CAAvB;AAEP;;;;AAGA,OAAO,MAAMC,qBAAqB,gBAAGR,2BAA6CS,6BAA7C,CAA9B","names":["unsafeMakePatch","unsafeMakeEnvironment","unsafeMake","identity","FiberRefInternal","initial","diff","combine","patch","fork","unsafeMakePatch_1","tsplus_module_1","first","second","value","join","_","a","newValue","forkScopeOverride","unsafeMake_1","tsplus_module_2","currentEnvironment","unsafeMakeEnvironment_1","fiberName","currentLogLevel","currentLogSpan","tsplus_module_5","currentLogAnnotations","tsplus_module_6"],"sourceRoot":"","sources":["../../_src/FiberRef/unsafe.ts"],"sourcesContent":[null]}
|
package/_mjs/FiberRef.mjs
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
// codegen:start { preset: barrel, include: FiberRef/*.ts }
|
2
2
|
export * from "./FiberRef/api.mjs";
|
3
3
|
export * from "./FiberRef/constructors.mjs";
|
4
|
-
export * from "./FiberRef/definition.mjs";
|
4
|
+
export * from "./FiberRef/definition.mjs";
|
5
|
+
export * from "./FiberRef/unsafe.mjs"; // codegen:end
|
5
6
|
// codegen:start { preset: barrel, include: ./FiberRef/api/*.ts }
|
6
7
|
|
7
8
|
export * from "./FiberRef/api/locallyScoped.mjs";
|
package/_mjs/FiberRef.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FiberRef.mjs","mappings":"AAAA;AACA,cAAc,oBAAd;AACA,cAAc,6BAAd;AACA,cAAc,2BAAd,C,CACA;AAEA;;AACA,cAAc,kCAAd;AACA,cAAc,sCAAd","names":[],"sourceRoot":"","sources":["../_src/FiberRef.ts"],"sourcesContent":[null]}
|
1
|
+
{"version":3,"file":"FiberRef.mjs","mappings":"AAAA;AACA,cAAc,oBAAd;AACA,cAAc,6BAAd;AACA,cAAc,2BAAd;AACA,cAAc,uBAAd,C,CACA;AAEA;;AACA,cAAc,kCAAd;AACA,cAAc,sCAAd","names":[],"sourceRoot":"","sources":["../_src/FiberRef.ts"],"sourcesContent":[null]}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
const fileName_1 = "(@fncts/io) src/Future/constructors.ts";
|
2
2
|
import * as tsplus_module_1 from "@fncts/io/IO/api";
|
3
|
-
import * as tsplus_module_2 from "@fncts/
|
4
|
-
import * as tsplus_module_3 from "@fncts/base/collection/immutable/List/constructors";
|
3
|
+
import * as tsplus_module_2 from "@fncts/base/collection/immutable/List/constructors";
|
5
4
|
export const makeAs = makeAs_1;
|
6
5
|
export const unsafeMake = unsafeMake_1;
|
7
|
-
import { Pending } from "@fncts/io/Future/definition";
|
6
|
+
import { Future, Pending } from "@fncts/io/Future/definition";
|
8
7
|
/**
|
9
8
|
* Makes a new future to be completed by the fiber creating the future.
|
10
9
|
*
|
@@ -31,6 +30,6 @@ function makeAs_1(fiberId) {
|
|
31
30
|
|
32
31
|
|
33
32
|
function unsafeMake_1(fiberId) {
|
34
|
-
return new
|
33
|
+
return new Future(new Pending(tsplus_module_2.empty()), fiberId);
|
35
34
|
}
|
36
35
|
//# sourceMappingURL=constructors.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructors.mjs","mappings":"
|
1
|
+
{"version":3,"file":"constructors.mjs","mappings":";;;aAgBgBA,MAAM;aASNC,UAAU;AAzB1B,SAASC,MAAT,EAAiBC,OAAjB,QAAgC,6BAAhC;AAEA;;;;;;AAKA,OAAM,SAAUC,IAAV,GAAc;EAClB,OAAOC,kDAAoBC,EAAD,IAAQC,SAAoBD,EAApB,CAA3B,EAAkDE,oBAAlD,CAAP;AACD;AAED;;;;;;AAKA,kBAA6BC,OAA7B,EAA6C;EAC3C,OAAOJ,8BAAWK,aAAiBD,OAAjB,CAAX,EAAoCD,qBAApC,CAAP;AACD;AAED;;;;;;;AAKA,sBAAiCC,OAAjC,EAAiD;EAC/C,OAAO,IAAIP,MAAJ,CAAiB,IAAIC,OAAJ,CAAYQ,uBAAZ,CAAjB,EAA4CF,OAA5C,CAAP;AACD","names":["makeAs","unsafeMake","Future","Pending","make","tsplus_module_1","id","makeAs_1","fileName_1","fiberId","unsafeMake_1","tsplus_module_2"],"sourceRoot":"","sources":["../../_src/Future/constructors.ts"],"sourcesContent":[null]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
const fileName_1 = "(@fncts/io) src/IO/api/concurrency.ts";
|
2
2
|
import * as tsplus_module_1 from "@fncts/base/data/Maybe/constructors";
|
3
|
-
import * as tsplus_module_2 from "@fncts/io/FiberRef/
|
3
|
+
import * as tsplus_module_2 from "@fncts/io/FiberRef/unsafe";
|
4
4
|
import * as tsplus_module_3 from "@fncts/io/FiberRef/api";
|
5
5
|
import * as tsplus_module_4 from "@fncts/io/IO/api";
|
6
6
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
const fileName_1 = "(@fncts/io) src/IO/api/environment.ts";
|
2
2
|
import * as tsplus_module_1 from "@fncts/io/FiberRef/api";
|
3
|
-
import * as tsplus_module_2 from "@fncts/io/FiberRef/
|
3
|
+
import * as tsplus_module_2 from "@fncts/io/FiberRef/unsafe";
|
4
4
|
import * as tsplus_module_3 from "@fncts/io/IO/api";
|
5
5
|
import * as tsplus_module_4 from "@fncts/base/data/Environment/api";
|
6
6
|
export const contramapEnvironment_ = contramapEnvironment_1;
|
package/_mjs/IO/runtime.mjs
CHANGED
@@ -3,7 +3,7 @@ import * as tsplus_module_1 from "@fncts/base/data/TraceElement/definition";
|
|
3
3
|
import * as tsplus_module_2 from "@fncts/base/data/FiberId/constructors";
|
4
4
|
import * as tsplus_module_3 from "@fncts/io/InterruptStatus/constructors";
|
5
5
|
import * as tsplus_module_4 from "@fncts/base/internal/Stack";
|
6
|
-
import * as tsplus_module_5 from "@fncts/io/FiberRef/
|
6
|
+
import * as tsplus_module_5 from "@fncts/io/FiberRef/unsafe";
|
7
7
|
import * as tsplus_module_6 from "@fncts/base/collection/immutable/List/constructors";
|
8
8
|
import * as tsplus_module_7 from "@fncts/io/IOEnv/services";
|
9
9
|
import * as tsplus_module_8 from "@fncts/io/IOEnv/definition";
|
package/_mjs/IOEnv/services.mjs
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import
|
1
|
+
import { InterruptStatus } from "./definition.mjs";
|
2
2
|
/**
|
3
3
|
* @tsplus static fncts.InterruptStatusOps interruptible
|
4
4
|
*/
|
5
5
|
|
6
|
-
const interruptible_1 = /*#__PURE__*/new
|
6
|
+
const interruptible_1 = /*#__PURE__*/new InterruptStatus(true);
|
7
7
|
export const interruptible = interruptible_1;
|
8
8
|
/**
|
9
9
|
* @tsplus static fncts.InterruptStatusOps uninterruptible
|
10
10
|
*/
|
11
11
|
|
12
|
-
const uninterruptible_1 = /*#__PURE__*/new
|
12
|
+
const uninterruptible_1 = /*#__PURE__*/new InterruptStatus(false);
|
13
13
|
export const uninterruptible = uninterruptible_1;
|
14
14
|
/**
|
15
15
|
* @tsplus static fncts.InterruptStatusOps fromBoolean
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constructors.mjs","mappings":";
|
1
|
+
{"version":3,"file":"constructors.mjs","mappings":"AAAA,SAASA,eAAT,QAAgC,kBAAhC;AAEA;;;;AAGO,MAAMC,+BAAgB,IAAID,eAAJ,CAAoB,IAApB,CAAtB;aAAME,aAAa;AAE1B;;;;AAGO,MAAMC,iCAAkB,IAAIH,eAAJ,CAAoB,KAApB,CAAxB;aAAMI,eAAe;AAE5B;;;;AAGA,OAAM,SAAUC,WAAV,CAAsBC,CAAtB,EAAgC;EACpC,OAAOA,CAAC,GAAEL,eAAF,GAAkCE,iBAA1C;AACD","names":["InterruptStatus","interruptible_1","interruptible","uninterruptible_1","uninterruptible","fromBoolean","b"],"sourceRoot":"","sources":["../../_src/InterruptStatus/constructors.ts"],"sourcesContent":[null]}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import type { UpstreamPullRequest } from "@fncts/io/Channel/UpstreamPullRequest";
|
1
|
+
import type { UpstreamPullRequest } from "@fncts/io/Channel/UpstreamPullRequest/definition";
|
2
2
|
|
3
|
-
import { NoUpstream } from "@fncts/io/Channel/UpstreamPullRequest";
|
4
|
-
import { Pulled } from "@fncts/io/Channel/UpstreamPullRequest";
|
3
|
+
import { NoUpstream, Pulled } from "@fncts/io/Channel/UpstreamPullRequest/definition";
|
5
4
|
|
6
5
|
/**
|
7
6
|
* @tsplus fluent fncts.io.Channel.UpstreamPullRequest match
|
@@ -1,8 +1,4 @@
|
|
1
|
-
import type { LogSpan } from "@fncts/io/LogSpan";
|
2
|
-
|
3
1
|
import { identity } from "@fncts/base/data/function";
|
4
|
-
import { Patch } from "@fncts/base/data/Patch";
|
5
|
-
import { FiberRefInternal } from "@fncts/io/FiberRef/definition";
|
6
2
|
|
7
3
|
function makeWith<Value, Patch>(
|
8
4
|
ref: Lazy<FiberRef.WithPatch<Value, Patch>>,
|
@@ -13,49 +9,6 @@ function makeWith<Value, Patch>(
|
|
13
9
|
);
|
14
10
|
}
|
15
11
|
|
16
|
-
/**
|
17
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
18
|
-
*/
|
19
|
-
export function unsafeMakePatch<Value, Patch>(
|
20
|
-
initial: Value,
|
21
|
-
diff: (oldValue: Value, newValue: Value) => Patch,
|
22
|
-
combine: (first: Patch, second: Patch) => Patch,
|
23
|
-
patch: (patch: Patch) => (oldValue: Value) => Value,
|
24
|
-
fork: Patch,
|
25
|
-
): FiberRef.WithPatch<Value, Patch> {
|
26
|
-
return new FiberRefInternal(initial, diff, combine, patch, fork);
|
27
|
-
}
|
28
|
-
|
29
|
-
/**
|
30
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
31
|
-
*/
|
32
|
-
export function unsafeMakeEnvironment<A>(initial: Environment<A>): FiberRef.WithPatch<Environment<A>, Patch<A, A>> {
|
33
|
-
return FiberRef.unsafeMakePatch(
|
34
|
-
initial,
|
35
|
-
Patch.diff,
|
36
|
-
(first, second) => first.compose(second),
|
37
|
-
(patch) => (value) => patch(value),
|
38
|
-
Patch.empty(),
|
39
|
-
);
|
40
|
-
}
|
41
|
-
|
42
|
-
/**
|
43
|
-
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
44
|
-
*/
|
45
|
-
export function unsafeMake<A>(
|
46
|
-
initial: A,
|
47
|
-
fork: (a: A) => A = identity,
|
48
|
-
join: (a0: A, a1: A) => A = (_, a) => a,
|
49
|
-
): FiberRef.WithPatch<A, (_: A) => A> {
|
50
|
-
return FiberRef.unsafeMakePatch(
|
51
|
-
initial,
|
52
|
-
(_, newValue) => () => newValue,
|
53
|
-
(first, second) => (value) => second(first(value)),
|
54
|
-
(patch) => (value) => join(value, patch(value)),
|
55
|
-
fork,
|
56
|
-
);
|
57
|
-
}
|
58
|
-
|
59
12
|
/**
|
60
13
|
* @tsplus static fncts.io.FiberRefOps make
|
61
14
|
*/
|
@@ -64,35 +17,5 @@ export function make<A>(
|
|
64
17
|
fork: (a: A) => A = identity,
|
65
18
|
join: (a: A, a1: A) => A = (_, a) => a,
|
66
19
|
): IO<Has<Scope>, never, FiberRef<A>> {
|
67
|
-
return makeWith(unsafeMake(initial, fork, join));
|
20
|
+
return makeWith(FiberRef.unsafeMake(initial, fork, join));
|
68
21
|
}
|
69
|
-
|
70
|
-
/**
|
71
|
-
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
72
|
-
*/
|
73
|
-
export const forkScopeOverride = FiberRef.unsafeMake<Maybe<FiberScope>>(Nothing(), () => Nothing());
|
74
|
-
|
75
|
-
/**
|
76
|
-
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
77
|
-
*/
|
78
|
-
export const currentEnvironment = FiberRef.unsafeMakeEnvironment<unknown>(Environment.empty);
|
79
|
-
|
80
|
-
/**
|
81
|
-
* @tsplus static fncts.io.FiberRefOps fiberName
|
82
|
-
*/
|
83
|
-
export const fiberName = FiberRef.unsafeMake<Maybe<string>>(Nothing());
|
84
|
-
|
85
|
-
/**
|
86
|
-
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
87
|
-
*/
|
88
|
-
export const currentLogLevel = FiberRef.unsafeMake<LogLevel>(LogLevel.Info);
|
89
|
-
|
90
|
-
/**
|
91
|
-
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
92
|
-
*/
|
93
|
-
export const currentLogSpan = FiberRef.unsafeMake<List<LogSpan>>(Nil());
|
94
|
-
|
95
|
-
/**
|
96
|
-
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
97
|
-
*/
|
98
|
-
export const currentLogAnnotations = FiberRef.unsafeMake<HashMap<string, string>>(HashMap.makeDefault());
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import type { LogSpan } from "../LogSpan.js";
|
2
|
+
|
3
|
+
import { identity } from "@fncts/base/data/function";
|
4
|
+
import { Patch } from "@fncts/base/data/Patch";
|
5
|
+
|
6
|
+
import { FiberRefInternal } from "./definition.js";
|
7
|
+
|
8
|
+
/**
|
9
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
10
|
+
*/
|
11
|
+
export function unsafeMakePatch<Value, Patch>(
|
12
|
+
initial: Value,
|
13
|
+
diff: (oldValue: Value, newValue: Value) => Patch,
|
14
|
+
combine: (first: Patch, second: Patch) => Patch,
|
15
|
+
patch: (patch: Patch) => (oldValue: Value) => Value,
|
16
|
+
fork: Patch,
|
17
|
+
): FiberRef.WithPatch<Value, Patch> {
|
18
|
+
return new FiberRefInternal(initial, diff, combine, patch, fork);
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
23
|
+
*/
|
24
|
+
export function unsafeMakeEnvironment<A>(initial: Environment<A>): FiberRef.WithPatch<Environment<A>, Patch<A, A>> {
|
25
|
+
return FiberRef.unsafeMakePatch(
|
26
|
+
initial,
|
27
|
+
Patch.diff,
|
28
|
+
(first, second) => first.compose(second),
|
29
|
+
(patch) => (value) => patch(value),
|
30
|
+
Patch.empty(),
|
31
|
+
);
|
32
|
+
}
|
33
|
+
|
34
|
+
/**
|
35
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
36
|
+
*/
|
37
|
+
export function unsafeMake<A>(
|
38
|
+
initial: A,
|
39
|
+
fork: (a: A) => A = identity,
|
40
|
+
join: (a0: A, a1: A) => A = (_, a) => a,
|
41
|
+
): FiberRef.WithPatch<A, (_: A) => A> {
|
42
|
+
return FiberRef.unsafeMakePatch(
|
43
|
+
initial,
|
44
|
+
(_, newValue) => () => newValue,
|
45
|
+
(first, second) => (value) => second(first(value)),
|
46
|
+
(patch) => (value) => join(value, patch(value)),
|
47
|
+
fork,
|
48
|
+
);
|
49
|
+
}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
53
|
+
*/
|
54
|
+
export const forkScopeOverride = FiberRef.unsafeMake<Maybe<FiberScope>>(Nothing(), () => Nothing());
|
55
|
+
|
56
|
+
/**
|
57
|
+
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
58
|
+
*/
|
59
|
+
export const currentEnvironment = FiberRef.unsafeMakeEnvironment<unknown>(Environment.empty);
|
60
|
+
|
61
|
+
/**
|
62
|
+
* @tsplus static fncts.io.FiberRefOps fiberName
|
63
|
+
*/
|
64
|
+
export const fiberName = FiberRef.unsafeMake<Maybe<string>>(Nothing());
|
65
|
+
|
66
|
+
/**
|
67
|
+
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
68
|
+
*/
|
69
|
+
export const currentLogLevel = FiberRef.unsafeMake<LogLevel>(LogLevel.Info);
|
70
|
+
|
71
|
+
/**
|
72
|
+
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
73
|
+
*/
|
74
|
+
export const currentLogSpan = FiberRef.unsafeMake<List<LogSpan>>(Nil());
|
75
|
+
|
76
|
+
/**
|
77
|
+
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
78
|
+
*/
|
79
|
+
export const currentLogAnnotations = FiberRef.unsafeMake<HashMap<string, string>>(HashMap.makeDefault());
|
package/_src/FiberRef.ts
CHANGED
package/package.json
CHANGED