greybel-interpreter 3.4.4 → 3.5.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/types/map.d.ts +1 -2
- package/dist/types/map.js +1 -5
- package/package.json +1 -1
package/dist/types/map.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { Path } from '../utils/path';
|
|
|
4
4
|
import { CustomValue } from './base';
|
|
5
5
|
import { CustomString } from './string';
|
|
6
6
|
import { CustomObject, CustomValueWithIntrinsicsResult } from './with-intrinsics';
|
|
7
|
-
export declare const CLASS_ID_PROPERTY: CustomString;
|
|
8
7
|
export declare const ISA_PROPERTY: CustomString;
|
|
9
8
|
export declare const CUSTOM_MAP_MAX_DEPTH = 2;
|
|
10
9
|
export declare const CUSTOM_MAP_MAX_DEPTH_VALUE = "{...}";
|
|
@@ -18,7 +17,7 @@ export declare class CustomMap extends CustomObject {
|
|
|
18
17
|
static readonly intrinsics: ObjectValue;
|
|
19
18
|
readonly id: string;
|
|
20
19
|
value: ObjectValue;
|
|
21
|
-
|
|
20
|
+
isInstance: boolean;
|
|
22
21
|
static createWithInitialValue(value: ObjectValue): CustomMap;
|
|
23
22
|
constructor(value?: ObjectValue);
|
|
24
23
|
getCustomType(): string;
|
package/dist/types/map.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomMap = exports.CustomMapIterator = exports.CUSTOM_MAP_MAX_DEPTH_VALUE = exports.CUSTOM_MAP_MAX_DEPTH = exports.ISA_PROPERTY =
|
|
3
|
+
exports.CustomMap = exports.CustomMapIterator = exports.CUSTOM_MAP_MAX_DEPTH_VALUE = exports.CUSTOM_MAP_MAX_DEPTH = exports.ISA_PROPERTY = void 0;
|
|
4
4
|
const hash_1 = require("../utils/hash");
|
|
5
5
|
const object_value_1 = require("../utils/object-value");
|
|
6
6
|
const path_1 = require("../utils/path");
|
|
@@ -9,7 +9,6 @@ const base_1 = require("./base");
|
|
|
9
9
|
const nil_1 = require("./nil");
|
|
10
10
|
const string_1 = require("./string");
|
|
11
11
|
const with_intrinsics_1 = require("./with-intrinsics");
|
|
12
|
-
exports.CLASS_ID_PROPERTY = new string_1.CustomString('classID');
|
|
13
12
|
exports.ISA_PROPERTY = new string_1.CustomString('__isa');
|
|
14
13
|
exports.CUSTOM_MAP_MAX_DEPTH = 2;
|
|
15
14
|
exports.CUSTOM_MAP_MAX_DEPTH_VALUE = '{...}';
|
|
@@ -52,9 +51,6 @@ class CustomMap extends with_intrinsics_1.CustomObject {
|
|
|
52
51
|
this.value = new object_value_1.ObjectValue(value);
|
|
53
52
|
}
|
|
54
53
|
getCustomType() {
|
|
55
|
-
if (this.value.has(exports.CLASS_ID_PROPERTY)) {
|
|
56
|
-
return this.value.get(exports.CLASS_ID_PROPERTY).toString();
|
|
57
|
-
}
|
|
58
54
|
return 'map';
|
|
59
55
|
}
|
|
60
56
|
toJSON(depth = 0) {
|