@toa.io/norm 1.0.0-alpha.82 → 1.0.0-alpha.86

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.82",
3
+ "version": "1.0.0-alpha.86",
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.81",
23
+ "@toa.io/core": "1.0.0-alpha.86",
24
24
  "@toa.io/generic": "1.0.0-alpha.63",
25
25
  "@toa.io/schemas": "1.0.0-alpha.63",
26
26
  "@toa.io/yaml": "1.0.0-alpha.63"
27
27
  },
28
- "gitHead": "4ada56b4f1cf97445e3cbc88e552e3819f8da3ed"
28
+ "gitHead": "9379190c388da1327a70f23e0b6f3ae47f0724fb"
29
29
  }
@@ -34,6 +34,8 @@ const collapse = (manifest, prototype) => {
34
34
  }
35
35
  }
36
36
 
37
+ const { entity, events, extensions } = prototype
38
+
37
39
  if (manifest.entity?.schema?.properties.id !== undefined && entity?.schema?.properties.id !== undefined) {
38
40
  manifest.entity.custom = true
39
41
 
@@ -45,8 +47,6 @@ const collapse = (manifest, prototype) => {
45
47
  if (event in manifest.events)
46
48
  delete prototype.events[event]
47
49
 
48
- const { entity, events, extensions } = prototype
49
-
50
50
  merge(manifest, { entity, events, extensions })
51
51
  }
52
52