@toa.io/norm 1.0.2-dev.10 → 1.0.2-dev.12

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/norm",
3
- "version": "1.0.2-dev.10",
3
+ "version": "1.0.2-dev.12",
4
4
  "description": "Toa declarations normalization and validation",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -19,14 +19,14 @@
19
19
  "test": "echo \"Error: run tests from root\" && exit 1"
20
20
  },
21
21
  "devDependencies": {
22
- "@toa.io/mock": "0.7.9-dev.10"
22
+ "@toa.io/mock": "0.7.9-dev.12"
23
23
  },
24
24
  "dependencies": {
25
- "@toa.io/core": "1.1.0-dev.10",
26
- "@toa.io/generic": "0.11.0-dev.10",
27
- "@toa.io/schema": "0.7.6-dev.10",
28
- "@toa.io/schemas": "0.8.4-dev.10",
29
- "@toa.io/yaml": "0.7.6-dev.10"
25
+ "@toa.io/core": "1.1.0-dev.12",
26
+ "@toa.io/generic": "0.11.0-dev.12",
27
+ "@toa.io/schema": "0.7.6-dev.12",
28
+ "@toa.io/schemas": "0.8.4-dev.12",
29
+ "@toa.io/yaml": "0.7.6-dev.12"
30
30
  },
31
- "gitHead": "df6df35ff3e9f2d9416118a979d3885a8a1cd897"
31
+ "gitHead": "e80500549e76c0e35407a4b3af5a5a38a4e33686"
32
32
  }
@@ -3,15 +3,7 @@
3
3
  // these defaults are required before validation
4
4
  const defaults = (manifest) => {
5
5
  if (manifest.prototype === undefined) manifest.prototype = '@toa.io/prototype'
6
-
7
- if (manifest.bindings === undefined) {
8
- const local = process.env.TOA_DEV === '1'
9
-
10
- manifest.bindings = local
11
- ? ['@toa.io/bindings.amqp']
12
- : ['@toa.io/bindings.http', '@toa.io/bindings.amqp']
13
- }
14
-
6
+ if (manifest.bindings === undefined) manifest.bindings = ['@toa.io/bindings.amqp']
15
7
  if (manifest.bridge === undefined) manifest.bridge = '@toa.io/bridges.node'
16
8
 
17
9
  if (manifest.entity === null || manifest.entity === undefined) manifest.entity = { storage: null }