@toa.io/extensions.configuration 1.1.0-dev.0 → 1.1.0-dev.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/extensions.configuration",
|
|
3
|
-
"version": "1.1.0-dev.
|
|
3
|
+
"version": "1.1.0-dev.1",
|
|
4
4
|
"description": "Toa Configuration",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@toa.io/core": "1.1.0-dev.
|
|
20
|
-
"@toa.io/generic": "0.11.0-dev.
|
|
21
|
-
"@toa.io/schema": "0.7.6-dev.
|
|
22
|
-
"@toa.io/yaml": "0.7.6-dev.
|
|
19
|
+
"@toa.io/core": "1.1.0-dev.1",
|
|
20
|
+
"@toa.io/generic": "0.11.0-dev.1",
|
|
21
|
+
"@toa.io/schema": "0.7.6-dev.1",
|
|
22
|
+
"@toa.io/yaml": "0.7.6-dev.1",
|
|
23
23
|
"clone-deep": "4.0.1"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "ef65d2f42f13aac397c14f8c47eb026a191cda66"
|
|
26
26
|
}
|
|
@@ -21,7 +21,8 @@ const convert = (node) => {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
function property (node) {
|
|
24
|
-
if (node === null) throw new Error('Configuration: cannot resolve type of null, use JSONSchema declaration.')
|
|
24
|
+
// if (node === null) throw new Error('Configuration: cannot resolve type of null, use JSONSchema declaration.')
|
|
25
|
+
if (node === null) return { type: 'null', default: null }
|
|
25
26
|
|
|
26
27
|
const type = Array.isArray(node) ? 'array' : typeof node
|
|
27
28
|
|