@toa.io/extensions.configuration 1.1.0-dev.0 → 1.1.0-dev.2

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.0",
3
+ "version": "1.1.0-dev.2",
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.0",
20
- "@toa.io/generic": "0.11.0-dev.0",
21
- "@toa.io/schema": "0.7.6-dev.0",
22
- "@toa.io/yaml": "0.7.6-dev.0",
19
+ "@toa.io/core": "1.1.0-dev.2",
20
+ "@toa.io/generic": "0.11.0-dev.2",
21
+ "@toa.io/schema": "0.7.6-dev.2",
22
+ "@toa.io/yaml": "0.7.6-dev.2",
23
23
  "clone-deep": "4.0.1"
24
24
  },
25
- "gitHead": "44a59b3ec335a1be8655b543891767bae799dba1"
25
+ "gitHead": "416e6aa02364a347b47adaaeb3f944b7b39fbf68"
26
26
  }
@@ -21,7 +21,7 @@ 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) return { type: 'null', default: null }
25
25
 
26
26
  const type = Array.isArray(node) ? 'array' : typeof node
27
27
 
@@ -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
  })