@quatrain/core 0.5.4 → 0.5.6
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.
|
@@ -11,6 +11,7 @@ const NumberProperty_1 = require("./NumberProperty");
|
|
|
11
11
|
const ObjectProperty_1 = require("./ObjectProperty");
|
|
12
12
|
const CollectionProperty_1 = require("./CollectionProperty");
|
|
13
13
|
const ArrayProperty_1 = require("./ArrayProperty");
|
|
14
|
+
const MapProperty_1 = require("./MapProperty");
|
|
14
15
|
class Property {
|
|
15
16
|
static factory(params, parent) {
|
|
16
17
|
params.parent = parent;
|
|
@@ -38,6 +39,8 @@ class Property {
|
|
|
38
39
|
return new CollectionProperty_1.CollectionProperty(params);
|
|
39
40
|
case ArrayProperty_1.ArrayProperty.TYPE:
|
|
40
41
|
return new ArrayProperty_1.ArrayProperty(params);
|
|
42
|
+
case MapProperty_1.MapProperty.TYPE:
|
|
43
|
+
return new MapProperty_1.MapProperty(params);
|
|
41
44
|
default:
|
|
42
45
|
throw new Error(`Unknown property type ${params.type}`);
|
|
43
46
|
}
|
|
@@ -53,3 +56,4 @@ Property.TYPE_BOOLEAN = 'boolean';
|
|
|
53
56
|
Property.TYPE_HASH = 'hash';
|
|
54
57
|
Property.TYPE_DATETIME = 'datetime';
|
|
55
58
|
Property.TYPE_ARRAY = 'array';
|
|
59
|
+
Property.TYPE_MAP = 'map';
|