@toa.io/norm 1.0.0-alpha.61 → 1.0.0-alpha.63

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.0-alpha.61",
3
+ "version": "1.0.0-alpha.63",
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",
@@ -20,10 +20,10 @@
20
20
  "test": "echo \"Error: run tests from root\" && exit 1"
21
21
  },
22
22
  "dependencies": {
23
- "@toa.io/core": "1.0.0-alpha.59",
24
- "@toa.io/generic": "1.0.0-alpha.59",
25
- "@toa.io/schemas": "1.0.0-alpha.61",
26
- "@toa.io/yaml": "1.0.0-alpha.59"
23
+ "@toa.io/core": "1.0.0-alpha.63",
24
+ "@toa.io/generic": "1.0.0-alpha.63",
25
+ "@toa.io/schemas": "1.0.0-alpha.63",
26
+ "@toa.io/yaml": "1.0.0-alpha.63"
27
27
  },
28
- "gitHead": "25e32ccba495a1f7197e378a5208cfc1a6b3b8a1"
28
+ "gitHead": "9acf69d3135ea69bb9080c4f2f654d119f7b8a82"
29
29
  }
@@ -4,7 +4,10 @@ const { directory: { find } } = require('@toa.io/filesystem')
4
4
  const { resolve } = require('../shortcuts')
5
5
 
6
6
  const extensions = (manifest) => {
7
- if (manifest.extensions === undefined) return
7
+ if (manifest.extensions === undefined)
8
+ manifest.extensions = PREDEFINED
9
+ else
10
+ Object.assign({}, PREDEFINED, manifest.extensions)
8
11
 
9
12
  const extensions = manifest.extensions
10
13
 
@@ -29,4 +32,8 @@ const extensions = (manifest) => {
29
32
  }
30
33
  }
31
34
 
35
+ const PREDEFINED = {
36
+ '@toa.io/extensions.telemetry': null
37
+ }
38
+
32
39
  exports.extensions = extensions
package/src/shortcuts.js CHANGED
@@ -50,7 +50,8 @@ const SHORTCUTS = {
50
50
  configuration: '@toa.io/extensions.configuration',
51
51
  origins: '@toa.io/extensions.origins',
52
52
  stash: '@toa.io/extensions.stash',
53
- storages: '@toa.io/extensions.storages'
53
+ storages: '@toa.io/extensions.storages',
54
+ telemetry: '@toa.io/extensions.telemetry'
54
55
  }
55
56
 
56
57
  exports.recognize = recognize