@toa.io/extensions.configuration 1.1.0-dev.1 → 1.1.0-dev.3
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.3",
|
|
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.3",
|
|
20
|
+
"@toa.io/generic": "0.11.0-dev.3",
|
|
21
|
+
"@toa.io/schema": "0.7.6-dev.3",
|
|
22
|
+
"@toa.io/yaml": "0.7.6-dev.3",
|
|
23
23
|
"clone-deep": "4.0.1"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "7883a684c43fdcfd0f1b231fb395ac2901a6a616"
|
|
26
26
|
}
|
|
@@ -21,7 +21,6 @@ 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.')
|
|
25
24
|
if (node === null) return { type: 'null', default: null }
|
|
26
25
|
|
|
27
26
|
const type = Array.isArray(node) ? 'array' : typeof node
|
package/source/manifest.test.js
CHANGED
|
@@ -120,10 +120,4 @@ describe('normalization', () => {
|
|
|
120
120
|
|
|
121
121
|
expect(() => manifest(concise)).toThrow(/array items type because it's empty/)
|
|
122
122
|
})
|
|
123
|
-
|
|
124
|
-
it('should throw on null', () => {
|
|
125
|
-
const concise = { foo: null }
|
|
126
|
-
|
|
127
|
-
expect(() => manifest(concise)).toThrow(/type of null/)
|
|
128
|
-
})
|
|
129
123
|
})
|