effect 3.9.0 → 3.9.1
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/dist/cjs/BigDecimal.js +0 -3
- package/dist/cjs/BigDecimal.js.map +1 -1
- package/dist/cjs/Chunk.js +0 -3
- package/dist/cjs/Chunk.js.map +1 -1
- package/dist/cjs/Cron.js +0 -3
- package/dist/cjs/Cron.js.map +1 -1
- package/dist/cjs/DateTime.js +0 -6
- package/dist/cjs/DateTime.js.map +1 -1
- package/dist/cjs/Duration.js +0 -3
- package/dist/cjs/Duration.js.map +1 -1
- package/dist/cjs/FiberHandle.js +0 -3
- package/dist/cjs/FiberHandle.js.map +1 -1
- package/dist/cjs/FiberMap.js +0 -3
- package/dist/cjs/FiberMap.js.map +1 -1
- package/dist/cjs/FiberSet.js +0 -3
- package/dist/cjs/FiberSet.js.map +1 -1
- package/dist/cjs/Inspectable.js +1 -15
- package/dist/cjs/Inspectable.js.map +1 -1
- package/dist/cjs/List.js +0 -6
- package/dist/cjs/List.js.map +1 -1
- package/dist/cjs/Micro.js +0 -6
- package/dist/cjs/Micro.js.map +1 -1
- package/dist/cjs/MutableHashMap.js +0 -3
- package/dist/cjs/MutableHashMap.js.map +1 -1
- package/dist/cjs/MutableHashSet.js +0 -3
- package/dist/cjs/MutableHashSet.js.map +1 -1
- package/dist/cjs/MutableList.js +0 -3
- package/dist/cjs/MutableList.js.map +1 -1
- package/dist/cjs/MutableQueue.js +0 -3
- package/dist/cjs/MutableQueue.js.map +1 -1
- package/dist/cjs/MutableRef.js +0 -3
- package/dist/cjs/MutableRef.js.map +1 -1
- package/dist/cjs/SortedMap.js +0 -3
- package/dist/cjs/SortedMap.js.map +1 -1
- package/dist/cjs/SortedSet.js +0 -3
- package/dist/cjs/SortedSet.js.map +1 -1
- package/dist/cjs/internal/cause.js +0 -3
- package/dist/cjs/internal/cause.js.map +1 -1
- package/dist/cjs/internal/context.js +0 -6
- package/dist/cjs/internal/context.js.map +1 -1
- package/dist/cjs/internal/core.js +0 -12
- package/dist/cjs/internal/core.js.map +1 -1
- package/dist/cjs/internal/fiberId.js +0 -9
- package/dist/cjs/internal/fiberId.js.map +1 -1
- package/dist/cjs/internal/hashMap.js +0 -3
- package/dist/cjs/internal/hashMap.js.map +1 -1
- package/dist/cjs/internal/hashSet.js +0 -3
- package/dist/cjs/internal/hashSet.js.map +1 -1
- package/dist/cjs/internal/mailbox.js +0 -3
- package/dist/cjs/internal/mailbox.js.map +1 -1
- package/dist/cjs/internal/option.js +0 -3
- package/dist/cjs/internal/option.js.map +1 -1
- package/dist/cjs/internal/redBlackTree.js +0 -3
- package/dist/cjs/internal/redBlackTree.js.map +1 -1
- package/dist/cjs/internal/runtime.js +0 -3
- package/dist/cjs/internal/runtime.js.map +1 -1
- package/dist/cjs/internal/trie.js +0 -3
- package/dist/cjs/internal/trie.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/BigDecimal.d.ts.map +1 -1
- package/dist/dts/Chunk.d.ts.map +1 -1
- package/dist/dts/Cron.d.ts.map +1 -1
- package/dist/dts/DateTime.d.ts.map +1 -1
- package/dist/dts/Duration.d.ts.map +1 -1
- package/dist/dts/FiberHandle.d.ts.map +1 -1
- package/dist/dts/FiberMap.d.ts.map +1 -1
- package/dist/dts/FiberSet.d.ts.map +1 -1
- package/dist/dts/Inspectable.d.ts +0 -15
- package/dist/dts/Inspectable.d.ts.map +1 -1
- package/dist/dts/List.d.ts.map +1 -1
- package/dist/dts/Micro.d.ts.map +1 -1
- package/dist/dts/MutableHashMap.d.ts.map +1 -1
- package/dist/dts/MutableHashSet.d.ts.map +1 -1
- package/dist/dts/MutableList.d.ts.map +1 -1
- package/dist/dts/MutableQueue.d.ts.map +1 -1
- package/dist/dts/MutableRef.d.ts.map +1 -1
- package/dist/dts/SortedMap.d.ts.map +1 -1
- package/dist/dts/SortedSet.d.ts.map +1 -1
- package/dist/dts/internal/core.d.ts.map +1 -1
- package/dist/dts/internal/hashMap.d.ts.map +1 -1
- package/dist/esm/BigDecimal.js +1 -4
- package/dist/esm/BigDecimal.js.map +1 -1
- package/dist/esm/Chunk.js +1 -4
- package/dist/esm/Chunk.js.map +1 -1
- package/dist/esm/Cron.js +1 -4
- package/dist/esm/Cron.js.map +1 -1
- package/dist/esm/DateTime.js +0 -6
- package/dist/esm/DateTime.js.map +1 -1
- package/dist/esm/Duration.js +1 -4
- package/dist/esm/Duration.js.map +1 -1
- package/dist/esm/FiberHandle.js +0 -3
- package/dist/esm/FiberHandle.js.map +1 -1
- package/dist/esm/FiberMap.js +0 -3
- package/dist/esm/FiberMap.js.map +1 -1
- package/dist/esm/FiberSet.js +0 -3
- package/dist/esm/FiberSet.js.map +1 -1
- package/dist/esm/Inspectable.js +0 -14
- package/dist/esm/Inspectable.js.map +1 -1
- package/dist/esm/List.js +1 -7
- package/dist/esm/List.js.map +1 -1
- package/dist/esm/Micro.js +1 -7
- package/dist/esm/Micro.js.map +1 -1
- package/dist/esm/MutableHashMap.js +1 -4
- package/dist/esm/MutableHashMap.js.map +1 -1
- package/dist/esm/MutableHashSet.js +1 -4
- package/dist/esm/MutableHashSet.js.map +1 -1
- package/dist/esm/MutableList.js +1 -4
- package/dist/esm/MutableList.js.map +1 -1
- package/dist/esm/MutableQueue.js +1 -4
- package/dist/esm/MutableQueue.js.map +1 -1
- package/dist/esm/MutableRef.js +1 -4
- package/dist/esm/MutableRef.js.map +1 -1
- package/dist/esm/SortedMap.js +1 -4
- package/dist/esm/SortedMap.js.map +1 -1
- package/dist/esm/SortedSet.js +1 -4
- package/dist/esm/SortedSet.js.map +1 -1
- package/dist/esm/internal/cause.js +1 -4
- package/dist/esm/internal/cause.js.map +1 -1
- package/dist/esm/internal/context.js +1 -7
- package/dist/esm/internal/context.js.map +1 -1
- package/dist/esm/internal/core.js +1 -13
- package/dist/esm/internal/core.js.map +1 -1
- package/dist/esm/internal/fiberId.js +1 -10
- package/dist/esm/internal/fiberId.js.map +1 -1
- package/dist/esm/internal/hashMap.js +1 -4
- package/dist/esm/internal/hashMap.js.map +1 -1
- package/dist/esm/internal/hashSet.js +1 -4
- package/dist/esm/internal/hashSet.js.map +1 -1
- package/dist/esm/internal/mailbox.js +0 -3
- package/dist/esm/internal/mailbox.js.map +1 -1
- package/dist/esm/internal/option.js +1 -4
- package/dist/esm/internal/option.js.map +1 -1
- package/dist/esm/internal/redBlackTree.js +1 -4
- package/dist/esm/internal/redBlackTree.js.map +1 -1
- package/dist/esm/internal/runtime.js +0 -3
- package/dist/esm/internal/runtime.js.map +1 -1
- package/dist/esm/internal/trie.js +1 -4
- package/dist/esm/internal/trie.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/BigDecimal.ts +1 -4
- package/src/Chunk.ts +1 -4
- package/src/Cron.ts +1 -4
- package/src/DateTime.ts +0 -6
- package/src/Duration.ts +1 -4
- package/src/FiberHandle.ts +0 -3
- package/src/FiberMap.ts +0 -3
- package/src/FiberSet.ts +0 -3
- package/src/Inspectable.ts +0 -22
- package/src/List.ts +1 -7
- package/src/Micro.ts +1 -7
- package/src/MutableHashMap.ts +1 -4
- package/src/MutableHashSet.ts +1 -4
- package/src/MutableList.ts +1 -4
- package/src/MutableQueue.ts +1 -4
- package/src/MutableRef.ts +1 -4
- package/src/SortedMap.ts +1 -4
- package/src/SortedSet.ts +1 -4
- package/src/internal/cause.ts +1 -4
- package/src/internal/context.ts +1 -7
- package/src/internal/core.ts +1 -13
- package/src/internal/fiberId.ts +1 -10
- package/src/internal/hashMap.ts +1 -4
- package/src/internal/hashSet.ts +1 -4
- package/src/internal/mailbox.ts +0 -3
- package/src/internal/option.ts +1 -4
- package/src/internal/redBlackTree.ts +1 -4
- package/src/internal/runtime.ts +0 -3
- package/src/internal/trie.ts +1 -4
- package/src/internal/version.ts +1 -1
package/src/Cron.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as Equal from "./Equal.js"
|
|
|
7
7
|
import * as equivalence from "./Equivalence.js"
|
|
8
8
|
import { dual, pipe } from "./Function.js"
|
|
9
9
|
import * as Hash from "./Hash.js"
|
|
10
|
-
import {
|
|
10
|
+
import { format, type Inspectable, NodeInspectSymbol } from "./Inspectable.js"
|
|
11
11
|
import * as N from "./Number.js"
|
|
12
12
|
import { type Pipeable, pipeArguments } from "./Pipeable.js"
|
|
13
13
|
import { hasProperty } from "./Predicate.js"
|
|
@@ -67,9 +67,6 @@ const CronProto: Omit<Cron, "minutes" | "hours" | "days" | "months" | "weekdays"
|
|
|
67
67
|
weekdays: Arr.fromIterable(this.weekdays)
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
[DenoInspectSymbol](this: Cron) {
|
|
71
|
-
return this.toJSON()
|
|
72
|
-
},
|
|
73
70
|
[NodeInspectSymbol](this: Cron) {
|
|
74
71
|
return this.toJSON()
|
|
75
72
|
},
|
package/src/DateTime.ts
CHANGED
|
@@ -230,9 +230,6 @@ const Proto = {
|
|
|
230
230
|
pipe() {
|
|
231
231
|
return pipeArguments(this, arguments)
|
|
232
232
|
},
|
|
233
|
-
[Inspectable.DenoInspectSymbol](this: DateTime) {
|
|
234
|
-
return this.toString()
|
|
235
|
-
},
|
|
236
233
|
[Inspectable.NodeInspectSymbol](this: DateTime) {
|
|
237
234
|
return this.toString()
|
|
238
235
|
},
|
|
@@ -276,9 +273,6 @@ const ProtoZoned = {
|
|
|
276
273
|
|
|
277
274
|
const ProtoTimeZone = {
|
|
278
275
|
[TimeZoneTypeId]: TimeZoneTypeId,
|
|
279
|
-
[Inspectable.DenoInspectSymbol](this: TimeZone) {
|
|
280
|
-
return this.toString()
|
|
281
|
-
},
|
|
282
276
|
[Inspectable.NodeInspectSymbol](this: TimeZone) {
|
|
283
277
|
return this.toString()
|
|
284
278
|
}
|
package/src/Duration.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type * as equivalence from "./Equivalence.js"
|
|
|
6
6
|
import { dual } from "./Function.js"
|
|
7
7
|
import * as Hash from "./Hash.js"
|
|
8
8
|
import type { Inspectable } from "./Inspectable.js"
|
|
9
|
-
import {
|
|
9
|
+
import { NodeInspectSymbol } from "./Inspectable.js"
|
|
10
10
|
import * as Option from "./Option.js"
|
|
11
11
|
import * as order from "./Order.js"
|
|
12
12
|
import type { Pipeable } from "./Pipeable.js"
|
|
@@ -160,9 +160,6 @@ const DurationProto: Omit<Duration, "value"> = {
|
|
|
160
160
|
return { _id: "Duration", _tag: "Infinity" }
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
-
[DenoInspectSymbol]() {
|
|
164
|
-
return this.toJSON()
|
|
165
|
-
},
|
|
166
163
|
[NodeInspectSymbol]() {
|
|
167
164
|
return this.toJSON()
|
|
168
165
|
},
|
package/src/FiberHandle.ts
CHANGED
package/src/FiberMap.ts
CHANGED
package/src/FiberSet.ts
CHANGED
package/src/Inspectable.ts
CHANGED
|
@@ -16,18 +16,6 @@ export const NodeInspectSymbol = Symbol.for("nodejs.util.inspect.custom")
|
|
|
16
16
|
*/
|
|
17
17
|
export type NodeInspectSymbol = typeof NodeInspectSymbol
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* @since 3.9.0
|
|
21
|
-
* @category symbols
|
|
22
|
-
*/
|
|
23
|
-
export const DenoInspectSymbol = Symbol.for("Deno.customInspect")
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @since 3.9.0
|
|
27
|
-
* @category symbols
|
|
28
|
-
*/
|
|
29
|
-
export type DenoInspectSymbol = typeof DenoInspectSymbol
|
|
30
|
-
|
|
31
19
|
/**
|
|
32
20
|
* @since 2.0.0
|
|
33
21
|
* @category models
|
|
@@ -36,7 +24,6 @@ export interface Inspectable {
|
|
|
36
24
|
toString(): string
|
|
37
25
|
toJSON(): unknown
|
|
38
26
|
[NodeInspectSymbol](): unknown
|
|
39
|
-
[DenoInspectSymbol](): unknown
|
|
40
27
|
}
|
|
41
28
|
|
|
42
29
|
/**
|
|
@@ -69,9 +56,6 @@ export const BaseProto: Inspectable = {
|
|
|
69
56
|
[NodeInspectSymbol]() {
|
|
70
57
|
return this.toJSON()
|
|
71
58
|
},
|
|
72
|
-
[DenoInspectSymbol]() {
|
|
73
|
-
return this.toJSON()
|
|
74
|
-
},
|
|
75
59
|
toString() {
|
|
76
60
|
return format(this.toJSON())
|
|
77
61
|
}
|
|
@@ -91,12 +75,6 @@ export abstract class Class {
|
|
|
91
75
|
[NodeInspectSymbol]() {
|
|
92
76
|
return this.toJSON()
|
|
93
77
|
}
|
|
94
|
-
/**
|
|
95
|
-
* @since 3.9.0
|
|
96
|
-
*/
|
|
97
|
-
[DenoInspectSymbol]() {
|
|
98
|
-
return this.toJSON()
|
|
99
|
-
}
|
|
100
78
|
/**
|
|
101
79
|
* @since 2.0.0
|
|
102
80
|
*/
|
package/src/List.ts
CHANGED
|
@@ -28,7 +28,7 @@ import * as Equal from "./Equal.js"
|
|
|
28
28
|
import * as Equivalence from "./Equivalence.js"
|
|
29
29
|
import { dual, identity, unsafeCoerce } from "./Function.js"
|
|
30
30
|
import * as Hash from "./Hash.js"
|
|
31
|
-
import {
|
|
31
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
32
32
|
import type { nonEmpty, NonEmptyIterable } from "./NonEmptyIterable.js"
|
|
33
33
|
import * as Option from "./Option.js"
|
|
34
34
|
import type { Pipeable } from "./Pipeable.js"
|
|
@@ -110,9 +110,6 @@ const ConsProto: Omit<Cons<unknown>, "head" | "tail" | typeof nonEmpty> = {
|
|
|
110
110
|
values: toArray(this).map(toJSON)
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
[DenoInspectSymbol]() {
|
|
114
|
-
return this.toJSON()
|
|
115
|
-
},
|
|
116
113
|
[NodeInspectSymbol]() {
|
|
117
114
|
return this.toJSON()
|
|
118
115
|
},
|
|
@@ -179,9 +176,6 @@ const NilProto: Nil<unknown> = {
|
|
|
179
176
|
_tag: "Nil"
|
|
180
177
|
}
|
|
181
178
|
},
|
|
182
|
-
[DenoInspectSymbol]() {
|
|
183
|
-
return this.toJSON()
|
|
184
|
-
},
|
|
185
179
|
[NodeInspectSymbol]() {
|
|
186
180
|
return this.toJSON()
|
|
187
181
|
},
|
package/src/Micro.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { constTrue, constVoid, dual, identity, type LazyArg } from "./Function.j
|
|
|
13
13
|
import { globalValue } from "./GlobalValue.js"
|
|
14
14
|
import type { TypeLambda } from "./HKT.js"
|
|
15
15
|
import type { Inspectable } from "./Inspectable.js"
|
|
16
|
-
import {
|
|
16
|
+
import { NodeInspectSymbol, toStringUnknown } from "./Inspectable.js"
|
|
17
17
|
import * as doNotation from "./internal/doNotation.js"
|
|
18
18
|
import { StructuralPrototype } from "./internal/effectable.js"
|
|
19
19
|
import { SingleShotGen } from "./internal/singleShotGen.js"
|
|
@@ -323,9 +323,6 @@ abstract class MicroCauseImpl<Tag extends string, E> extends globalThis.Error im
|
|
|
323
323
|
toString() {
|
|
324
324
|
return this.stack
|
|
325
325
|
}
|
|
326
|
-
[DenoInspectSymbol]() {
|
|
327
|
-
return this.stack
|
|
328
|
-
}
|
|
329
326
|
[NodeInspectSymbol]() {
|
|
330
327
|
return this.stack
|
|
331
328
|
}
|
|
@@ -5256,9 +5253,6 @@ const YieldableError: new(message?: string) => YieldableError = (function() {
|
|
|
5256
5253
|
toJSON() {
|
|
5257
5254
|
return { ...this }
|
|
5258
5255
|
}
|
|
5259
|
-
[DenoInspectSymbol](): string {
|
|
5260
|
-
return this[NodeInspectSymbol]()
|
|
5261
|
-
}
|
|
5262
5256
|
[NodeInspectSymbol](): string {
|
|
5263
5257
|
const stack = this.stack
|
|
5264
5258
|
if (stack) {
|
package/src/MutableHashMap.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { NonEmptyArray } from "./Array.js"
|
|
|
5
5
|
import * as Equal from "./Equal.js"
|
|
6
6
|
import { dual } from "./Function.js"
|
|
7
7
|
import * as Hash from "./Hash.js"
|
|
8
|
-
import {
|
|
8
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
9
9
|
import * as Option from "./Option.js"
|
|
10
10
|
import type { Pipeable } from "./Pipeable.js"
|
|
11
11
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -46,9 +46,6 @@ const MutableHashMapProto: Omit<MutableHashMap<unknown, unknown>, "referential"
|
|
|
46
46
|
values: Array.from(this).map(toJSON)
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
[DenoInspectSymbol]() {
|
|
50
|
-
return this.toJSON()
|
|
51
|
-
},
|
|
52
49
|
[NodeInspectSymbol]() {
|
|
53
50
|
return this.toJSON()
|
|
54
51
|
},
|
package/src/MutableHashSet.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since 2.0.0
|
|
3
3
|
*/
|
|
4
4
|
import * as Dual from "./Function.js"
|
|
5
|
-
import {
|
|
5
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
6
6
|
import * as MutableHashMap from "./MutableHashMap.js"
|
|
7
7
|
import type { Pipeable } from "./Pipeable.js"
|
|
8
8
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -40,9 +40,6 @@ const MutableHashSetProto: Omit<MutableHashSet<unknown>, "keyMap"> = {
|
|
|
40
40
|
values: Array.from(this).map(toJSON)
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
[DenoInspectSymbol]() {
|
|
44
|
-
return this.toJSON()
|
|
45
|
-
},
|
|
46
43
|
[NodeInspectSymbol]() {
|
|
47
44
|
return this.toJSON()
|
|
48
45
|
},
|
package/src/MutableList.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since 2.0.0
|
|
3
3
|
*/
|
|
4
4
|
import * as Dual from "./Function.js"
|
|
5
|
-
import {
|
|
5
|
+
import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
6
6
|
import type { Inspectable } from "./Inspectable.js"
|
|
7
7
|
import type { Pipeable } from "./Pipeable.js"
|
|
8
8
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -63,9 +63,6 @@ const MutableListProto: Omit<MutableList<unknown>, "head" | "tail"> = {
|
|
|
63
63
|
values: Array.from(this).map(toJSON)
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
[DenoInspectSymbol]() {
|
|
67
|
-
return this.toJSON()
|
|
68
|
-
},
|
|
69
66
|
[NodeInspectSymbol]() {
|
|
70
67
|
return this.toJSON()
|
|
71
68
|
},
|
package/src/MutableQueue.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chunk from "./Chunk.js"
|
|
5
5
|
import * as Dual from "./Function.js"
|
|
6
|
-
import {
|
|
6
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
7
7
|
import * as MutableList from "./MutableList.js"
|
|
8
8
|
import type { Pipeable } from "./Pipeable.js"
|
|
9
9
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -59,9 +59,6 @@ const MutableQueueProto: Omit<MutableQueue<unknown>, "queue" | "capacity"> = {
|
|
|
59
59
|
values: Array.from(this).map(toJSON)
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
[DenoInspectSymbol]() {
|
|
63
|
-
return this.toJSON()
|
|
64
|
-
},
|
|
65
62
|
[NodeInspectSymbol]() {
|
|
66
63
|
return this.toJSON()
|
|
67
64
|
},
|
package/src/MutableRef.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Equal from "./Equal.js"
|
|
5
5
|
import * as Dual from "./Function.js"
|
|
6
|
-
import {
|
|
6
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
7
7
|
import type { Pipeable } from "./Pipeable.js"
|
|
8
8
|
import { pipeArguments } from "./Pipeable.js"
|
|
9
9
|
|
|
@@ -37,9 +37,6 @@ const MutableRefProto: Omit<MutableRef<unknown>, "current"> = {
|
|
|
37
37
|
current: toJSON(this.current)
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
[DenoInspectSymbol]() {
|
|
41
|
-
return this.toJSON()
|
|
42
|
-
},
|
|
43
40
|
[NodeInspectSymbol]() {
|
|
44
41
|
return this.toJSON()
|
|
45
42
|
},
|
package/src/SortedMap.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as Equal from "./Equal.js"
|
|
|
5
5
|
import * as Dual from "./Function.js"
|
|
6
6
|
import { pipe } from "./Function.js"
|
|
7
7
|
import * as Hash from "./Hash.js"
|
|
8
|
-
import {
|
|
8
|
+
import { format, type Inspectable, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
9
9
|
import * as Option from "./Option.js"
|
|
10
10
|
import type { Order } from "./Order.js"
|
|
11
11
|
import type { Pipeable } from "./Pipeable.js"
|
|
@@ -62,9 +62,6 @@ const SortedMapProto: Omit<SortedMap<unknown, unknown>, "tree"> = {
|
|
|
62
62
|
values: Array.from(this).map(toJSON)
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
[DenoInspectSymbol]() {
|
|
66
|
-
return this.toJSON()
|
|
67
|
-
},
|
|
68
65
|
[NodeInspectSymbol]() {
|
|
69
66
|
return this.toJSON()
|
|
70
67
|
},
|
package/src/SortedSet.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as Dual from "./Function.js"
|
|
|
7
7
|
import { pipe } from "./Function.js"
|
|
8
8
|
import * as Hash from "./Hash.js"
|
|
9
9
|
import type { Inspectable } from "./Inspectable.js"
|
|
10
|
-
import {
|
|
10
|
+
import { format, NodeInspectSymbol, toJSON } from "./Inspectable.js"
|
|
11
11
|
import type { Order } from "./Order.js"
|
|
12
12
|
import type { Pipeable } from "./Pipeable.js"
|
|
13
13
|
import { pipeArguments } from "./Pipeable.js"
|
|
@@ -62,9 +62,6 @@ const SortedSetProto: Omit<SortedSet<unknown>, "keyTree"> = {
|
|
|
62
62
|
values: Array.from(this).map(toJSON)
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
[DenoInspectSymbol]() {
|
|
66
|
-
return this.toJSON()
|
|
67
|
-
},
|
|
68
65
|
[NodeInspectSymbol]() {
|
|
69
66
|
return this.toJSON()
|
|
70
67
|
},
|
package/src/internal/cause.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { constFalse, constTrue, dual, identity, pipe } from "../Function.js"
|
|
|
8
8
|
import { globalValue } from "../GlobalValue.js"
|
|
9
9
|
import * as Hash from "../Hash.js"
|
|
10
10
|
import * as HashSet from "../HashSet.js"
|
|
11
|
-
import {
|
|
11
|
+
import { NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
12
12
|
import * as Option from "../Option.js"
|
|
13
13
|
import { pipeArguments } from "../Pipeable.js"
|
|
14
14
|
import type { Predicate, Refinement } from "../Predicate.js"
|
|
@@ -69,9 +69,6 @@ const proto = {
|
|
|
69
69
|
toString<E>(this: Cause.Cause<E>) {
|
|
70
70
|
return pretty(this)
|
|
71
71
|
},
|
|
72
|
-
[DenoInspectSymbol]<E>(this: Cause.Cause<E>) {
|
|
73
|
-
return this.toJSON()
|
|
74
|
-
},
|
|
75
72
|
[NodeInspectSymbol]<E>(this: Cause.Cause<E>) {
|
|
76
73
|
return this.toJSON()
|
|
77
74
|
}
|
package/src/internal/context.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as Equal from "../Equal.js"
|
|
|
3
3
|
import type { LazyArg } from "../Function.js"
|
|
4
4
|
import { dual } from "../Function.js"
|
|
5
5
|
import * as Hash from "../Hash.js"
|
|
6
|
-
import {
|
|
6
|
+
import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
7
7
|
import type * as O from "../Option.js"
|
|
8
8
|
import { pipeArguments } from "../Pipeable.js"
|
|
9
9
|
import { hasProperty } from "../Predicate.js"
|
|
@@ -41,9 +41,6 @@ export const TagProto: any = {
|
|
|
41
41
|
stack: this.stack
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
[DenoInspectSymbol]() {
|
|
45
|
-
return this.toJSON()
|
|
46
|
-
},
|
|
47
44
|
[NodeInspectSymbol]() {
|
|
48
45
|
return this.toJSON()
|
|
49
46
|
},
|
|
@@ -128,9 +125,6 @@ export const ContextProto: Omit<C.Context<unknown>, "unsafeMap"> = {
|
|
|
128
125
|
services: Array.from(this.unsafeMap).map(toJSON)
|
|
129
126
|
}
|
|
130
127
|
},
|
|
131
|
-
[DenoInspectSymbol]() {
|
|
132
|
-
return (this as any).toJSON()
|
|
133
|
-
},
|
|
134
128
|
[NodeInspectSymbol]() {
|
|
135
129
|
return (this as any).toJSON()
|
|
136
130
|
}
|
package/src/internal/core.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { globalValue } from "../GlobalValue.js"
|
|
|
21
21
|
import * as Hash from "../Hash.js"
|
|
22
22
|
import * as HashMap from "../HashMap.js"
|
|
23
23
|
import type * as HashSet from "../HashSet.js"
|
|
24
|
-
import {
|
|
24
|
+
import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
25
25
|
import * as List from "../List.js"
|
|
26
26
|
import type * as LogLevel from "../LogLevel.js"
|
|
27
27
|
import type * as LogSpan from "../LogSpan.js"
|
|
@@ -177,9 +177,6 @@ class EffectPrimitive {
|
|
|
177
177
|
toString() {
|
|
178
178
|
return format(this.toJSON())
|
|
179
179
|
}
|
|
180
|
-
[DenoInspectSymbol]() {
|
|
181
|
-
return this.toJSON()
|
|
182
|
-
}
|
|
183
180
|
[NodeInspectSymbol]() {
|
|
184
181
|
return this.toJSON()
|
|
185
182
|
}
|
|
@@ -229,9 +226,6 @@ class EffectPrimitiveFailure {
|
|
|
229
226
|
toString() {
|
|
230
227
|
return format(this.toJSON())
|
|
231
228
|
}
|
|
232
|
-
[DenoInspectSymbol]() {
|
|
233
|
-
return this.toJSON()
|
|
234
|
-
}
|
|
235
229
|
[NodeInspectSymbol]() {
|
|
236
230
|
return this.toJSON()
|
|
237
231
|
}
|
|
@@ -281,9 +275,6 @@ class EffectPrimitiveSuccess {
|
|
|
281
275
|
toString() {
|
|
282
276
|
return format(this.toJSON())
|
|
283
277
|
}
|
|
284
|
-
[DenoInspectSymbol]() {
|
|
285
|
-
return this.toJSON()
|
|
286
|
-
}
|
|
287
278
|
[NodeInspectSymbol]() {
|
|
288
279
|
return this.toJSON()
|
|
289
280
|
}
|
|
@@ -2203,9 +2194,6 @@ export const YieldableError: new(message?: string, options?: ErrorOptions) => Ca
|
|
|
2203
2194
|
toJSON() {
|
|
2204
2195
|
return { ...this }
|
|
2205
2196
|
}
|
|
2206
|
-
[DenoInspectSymbol]() {
|
|
2207
|
-
return this[NodeInspectSymbol]()
|
|
2208
|
-
}
|
|
2209
2197
|
[NodeInspectSymbol]() {
|
|
2210
2198
|
if (this.toString !== globalThis.Error.prototype.toString) {
|
|
2211
2199
|
return this.stack ? `${this.toString()}\n${this.stack.split("\n").slice(1).join("\n")}` : this.toString()
|
package/src/internal/fiberId.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { dual, pipe } from "../Function.js"
|
|
|
4
4
|
import { globalValue } from "../GlobalValue.js"
|
|
5
5
|
import * as Hash from "../Hash.js"
|
|
6
6
|
import * as HashSet from "../HashSet.js"
|
|
7
|
-
import {
|
|
7
|
+
import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
8
8
|
import * as MutableRef from "../MutableRef.js"
|
|
9
9
|
import * as Option from "../Option.js"
|
|
10
10
|
import { hasProperty } from "../Predicate.js"
|
|
@@ -58,9 +58,6 @@ class None implements FiberId.None {
|
|
|
58
58
|
_tag: this._tag
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
[DenoInspectSymbol]() {
|
|
62
|
-
return this.toJSON()
|
|
63
|
-
}
|
|
64
61
|
[NodeInspectSymbol]() {
|
|
65
62
|
return this.toJSON()
|
|
66
63
|
}
|
|
@@ -94,9 +91,6 @@ class Runtime implements FiberId.Runtime {
|
|
|
94
91
|
startTimeMillis: this.startTimeMillis
|
|
95
92
|
}
|
|
96
93
|
}
|
|
97
|
-
[DenoInspectSymbol]() {
|
|
98
|
-
return this.toJSON()
|
|
99
|
-
}
|
|
100
94
|
[NodeInspectSymbol]() {
|
|
101
95
|
return this.toJSON()
|
|
102
96
|
}
|
|
@@ -137,9 +131,6 @@ class Composite implements FiberId.Composite {
|
|
|
137
131
|
right: toJSON(this.right)
|
|
138
132
|
}
|
|
139
133
|
}
|
|
140
|
-
[DenoInspectSymbol]() {
|
|
141
|
-
return this.toJSON()
|
|
142
|
-
}
|
|
143
134
|
[NodeInspectSymbol]() {
|
|
144
135
|
return this.toJSON()
|
|
145
136
|
}
|
package/src/internal/hashMap.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as Dual from "../Function.js"
|
|
|
3
3
|
import { identity, pipe } from "../Function.js"
|
|
4
4
|
import * as Hash from "../Hash.js"
|
|
5
5
|
import type * as HM from "../HashMap.js"
|
|
6
|
-
import {
|
|
6
|
+
import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
7
7
|
import * as Option from "../Option.js"
|
|
8
8
|
import { pipeArguments } from "../Pipeable.js"
|
|
9
9
|
import { hasProperty } from "../Predicate.js"
|
|
@@ -85,9 +85,6 @@ const HashMapProto: HM.HashMap<unknown, unknown> = {
|
|
|
85
85
|
values: Array.from(this).map(toJSON)
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
[DenoInspectSymbol]() {
|
|
89
|
-
return this.toJSON()
|
|
90
|
-
},
|
|
91
88
|
[NodeInspectSymbol]() {
|
|
92
89
|
return this.toJSON()
|
|
93
90
|
},
|
package/src/internal/hashSet.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { dual } from "../Function.js"
|
|
|
3
3
|
import * as Hash from "../Hash.js"
|
|
4
4
|
import type { HashMap } from "../HashMap.js"
|
|
5
5
|
import type * as HS from "../HashSet.js"
|
|
6
|
-
import {
|
|
6
|
+
import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
7
7
|
import { pipeArguments } from "../Pipeable.js"
|
|
8
8
|
import type { Predicate, Refinement } from "../Predicate.js"
|
|
9
9
|
import { hasProperty } from "../Predicate.js"
|
|
@@ -49,9 +49,6 @@ const HashSetProto: Omit<HashSetImpl<unknown>, "_keyMap"> = {
|
|
|
49
49
|
values: Array.from(this).map(toJSON)
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
[DenoInspectSymbol]() {
|
|
53
|
-
return this.toJSON()
|
|
54
|
-
},
|
|
55
52
|
[NodeInspectSymbol]() {
|
|
56
53
|
return this.toJSON()
|
|
57
54
|
},
|
package/src/internal/mailbox.ts
CHANGED
|
@@ -287,9 +287,6 @@ class MailboxImpl<A, E> extends Effectable.Class<readonly [messages: Chunk.Chunk
|
|
|
287
287
|
toString(): string {
|
|
288
288
|
return Inspectable.format(this)
|
|
289
289
|
}
|
|
290
|
-
[Inspectable.DenoInspectSymbol]() {
|
|
291
|
-
return Inspectable.format(this)
|
|
292
|
-
}
|
|
293
290
|
[Inspectable.NodeInspectSymbol]() {
|
|
294
291
|
return Inspectable.format(this)
|
|
295
292
|
}
|
package/src/internal/option.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Equal from "../Equal.js"
|
|
6
6
|
import * as Hash from "../Hash.js"
|
|
7
|
-
import {
|
|
7
|
+
import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
8
8
|
import type * as Option from "../Option.js"
|
|
9
9
|
import { hasProperty } from "../Predicate.js"
|
|
10
10
|
import { EffectPrototype } from "./effectable.js"
|
|
@@ -16,9 +16,6 @@ const CommonProto = {
|
|
|
16
16
|
[TypeId]: {
|
|
17
17
|
_A: (_: never) => _
|
|
18
18
|
},
|
|
19
|
-
[DenoInspectSymbol]<A>(this: Option.Option<A>) {
|
|
20
|
-
return this.toJSON()
|
|
21
|
-
},
|
|
22
19
|
[NodeInspectSymbol]<A>(this: Option.Option<A>) {
|
|
23
20
|
return this.toJSON()
|
|
24
21
|
},
|
|
@@ -2,7 +2,7 @@ import * as Chunk from "../Chunk.js"
|
|
|
2
2
|
import * as Equal from "../Equal.js"
|
|
3
3
|
import { dual, pipe } from "../Function.js"
|
|
4
4
|
import * as Hash from "../Hash.js"
|
|
5
|
-
import {
|
|
5
|
+
import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
6
6
|
import * as Option from "../Option.js"
|
|
7
7
|
import type * as Order from "../Order.js"
|
|
8
8
|
import type * as Ordering from "../Ordering.js"
|
|
@@ -71,9 +71,6 @@ const RedBlackTreeProto: RBT.RedBlackTree<unknown, unknown> = {
|
|
|
71
71
|
values: Array.from(this).map(toJSON)
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
[DenoInspectSymbol]() {
|
|
75
|
-
return this.toJSON()
|
|
76
|
-
},
|
|
77
74
|
[NodeInspectSymbol]() {
|
|
78
75
|
return this.toJSON()
|
|
79
76
|
},
|
package/src/internal/runtime.ts
CHANGED
|
@@ -195,9 +195,6 @@ class FiberFailureImpl extends Error implements Runtime.FiberFailure {
|
|
|
195
195
|
toString(): string {
|
|
196
196
|
return "(FiberFailure) " + (this.stack ?? this.message)
|
|
197
197
|
}
|
|
198
|
-
[Inspectable.DenoInspectSymbol](): unknown {
|
|
199
|
-
return this.toString()
|
|
200
|
-
}
|
|
201
198
|
[Inspectable.NodeInspectSymbol](): unknown {
|
|
202
199
|
return this.toString()
|
|
203
200
|
}
|
package/src/internal/trie.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Equal from "../Equal.js"
|
|
2
2
|
import { dual, identity, pipe } from "../Function.js"
|
|
3
3
|
import * as Hash from "../Hash.js"
|
|
4
|
-
import {
|
|
4
|
+
import { format, NodeInspectSymbol, toJSON } from "../Inspectable.js"
|
|
5
5
|
import * as Option from "../Option.js"
|
|
6
6
|
import type * as Ordering from "../Ordering.js"
|
|
7
7
|
import { pipeArguments } from "../Pipeable.js"
|
|
@@ -60,9 +60,6 @@ const TrieProto: TR.Trie<unknown> = {
|
|
|
60
60
|
values: Array.from(this).map(toJSON)
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
[DenoInspectSymbol]() {
|
|
64
|
-
return this.toJSON()
|
|
65
|
-
},
|
|
66
63
|
[NodeInspectSymbol]() {
|
|
67
64
|
return this.toJSON()
|
|
68
65
|
},
|
package/src/internal/version.ts
CHANGED