@jamashita/anden-object
Advanced tools
Comparing version 2.11.0 to 2.12.0
@@ -7,2 +7,3 @@ import { Nominative } from '@jamashita/anden-type'; | ||
abstract serialize(): string; | ||
[Symbol.toStringTag](): string; | ||
hashCode(): string; | ||
@@ -9,0 +10,0 @@ toString(): string; |
@@ -22,2 +22,5 @@ "use strict"; | ||
} | ||
[Symbol.toStringTag]() { | ||
return this.constructor.name; | ||
} | ||
hashCode() { | ||
@@ -24,0 +27,0 @@ return (0, object_hash_1.default)(this); |
export declare class Reference { | ||
static isCircular(value: unknown): boolean; | ||
private static isObject; | ||
private static isSerializable; | ||
@@ -5,0 +4,0 @@ private constructor(); |
@@ -9,7 +9,4 @@ "use strict"; | ||
} | ||
static isObject(value) { | ||
return anden_type_1.Kind.isObject(value); | ||
} | ||
static isSerializable(value, visitStack) { | ||
if (!Reference.isObject(value)) { | ||
if (!anden_type_1.Kind.isObject(value)) { | ||
return true; | ||
@@ -16,0 +13,0 @@ } |
@@ -7,2 +7,3 @@ import { Nominative } from '@jamashita/anden-type'; | ||
abstract serialize(): string; | ||
[Symbol.toStringTag](): string; | ||
hashCode(): string; | ||
@@ -9,0 +10,0 @@ toString(): string; |
@@ -16,2 +16,5 @@ import { Kind } from '@jamashita/anden-type'; | ||
} | ||
[Symbol.toStringTag]() { | ||
return this.constructor.name; | ||
} | ||
hashCode() { | ||
@@ -18,0 +21,0 @@ return hash(this); |
export declare class Reference { | ||
static isCircular(value: unknown): boolean; | ||
private static isObject; | ||
private static isSerializable; | ||
@@ -5,0 +4,0 @@ private constructor(); |
@@ -6,7 +6,4 @@ import { Kind } from '@jamashita/anden-type'; | ||
} | ||
static isObject(value) { | ||
return Kind.isObject(value); | ||
} | ||
static isSerializable(value, visitStack) { | ||
if (!Reference.isObject(value)) { | ||
if (!Kind.isObject(value)) { | ||
return true; | ||
@@ -13,0 +10,0 @@ } |
{ | ||
"name": "@jamashita/anden-object", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"private": false, | ||
@@ -28,8 +28,8 @@ "repository": { | ||
"dependencies": { | ||
"@jamashita/anden-error": "^2.6.0", | ||
"@jamashita/anden-type": "^2.5.0", | ||
"@jamashita/anden-error": "^2.7.0", | ||
"@jamashita/anden-type": "^2.6.1", | ||
"object-hash": "3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@jamashita/anden-helper": "^2.1.0" | ||
"@jamashita/anden-helper": "^2.2.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "engines": { |
@@ -25,2 +25,6 @@ import { Kind, Nominative } from '@jamashita/anden-type'; | ||
public [Symbol.toStringTag](): string { | ||
return this.constructor.name; | ||
} | ||
public hashCode(): string { | ||
@@ -27,0 +31,0 @@ return hash(this); |
@@ -8,8 +8,4 @@ import { Inconnu, Kind } from '@jamashita/anden-type'; | ||
private static isObject(value: unknown): value is Inconnu { | ||
return Kind.isObject(value); | ||
} | ||
private static isSerializable(value: unknown, visitStack: WeakSet<object>): boolean { | ||
if (!Reference.isObject(value)) { | ||
if (!Kind.isObject<Inconnu>(value)) { | ||
return true; | ||
@@ -16,0 +12,0 @@ } |
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
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
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
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
90923