@effect/data
Advanced tools
Comparing version 0.12.3 to 0.12.4
@@ -40,3 +40,3 @@ "use strict"; | ||
} | ||
constructor(id) { | ||
constructor(identifier) { | ||
this._tag = "Tag"; | ||
@@ -48,6 +48,19 @@ this.i0 = undefined; | ||
this[_a] = effectVariance; | ||
if (typeof id !== "undefined") { | ||
return G.globalValue(id, () => this); | ||
if (typeof identifier !== "undefined") { | ||
this.i0 = identifier; | ||
return G.globalValue(identifier, () => this); | ||
} | ||
} | ||
toString() { | ||
return JSON.stringify(this); | ||
} | ||
toJSON() { | ||
return { | ||
_tag: "Tag", | ||
identifier: this.i0 | ||
}; | ||
} | ||
[Symbol.for("nodejs.util.inspect.custom")]() { | ||
return this.toJSON(); | ||
} | ||
traced(trace) { | ||
@@ -54,0 +67,0 @@ if (trace) { |
{ | ||
"name": "@effect/data", | ||
"version": "0.12.3", | ||
"version": "0.12.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -26,3 +26,3 @@ import type * as C from "@effect/data/Context" | ||
readonly _tag = "Tag" | ||
public i0 = undefined | ||
public i0: any | undefined = undefined | ||
public i1 = undefined | ||
@@ -44,7 +44,20 @@ public i2 = undefined | ||
} | ||
constructor(id?: unknown) { | ||
if (typeof id !== "undefined") { | ||
return G.globalValue(id, () => this) | ||
constructor(identifier?: unknown) { | ||
if (typeof identifier !== "undefined") { | ||
this.i0 = identifier | ||
return G.globalValue(identifier, () => this) | ||
} | ||
} | ||
toString() { | ||
return JSON.stringify(this) | ||
} | ||
toJSON() { | ||
return { | ||
_tag: "Tag", | ||
identifier: this.i0 | ||
} | ||
} | ||
[Symbol.for("nodejs.util.inspect.custom")]() { | ||
return this.toJSON() | ||
} | ||
traced(this: this, trace: Trace): C.TracedTag<Identifier, Service> | this { | ||
@@ -51,0 +64,0 @@ if (trace) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3693464
78521