@live-change/relations-plugin 0.7.0 → 0.7.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/entity.js CHANGED
@@ -103,6 +103,7 @@ function defineCreateAction(config, context) {
103
103
  [modelPropertyName]: id,
104
104
  data
105
105
  })
106
+ return id
106
107
  }
107
108
  })
108
109
  const action = service.actions[actionName]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/relations-plugin",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,8 +21,8 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "^0.7.0",
24
+ "@live-change/framework": "^0.7.2",
25
25
  "pluralize": "8.0.0"
26
26
  },
27
- "gitHead": "008e06c10d65b00478c103d625c621805837264b"
27
+ "gitHead": "946630a9b716bf48c6b77aea43c79b200bc82f9e"
28
28
  }
@@ -79,6 +79,7 @@ function defineCreateAction(config, context) {
79
79
  [modelPropertyName]: id,
80
80
  identifiers, data
81
81
  })
82
+ return id
82
83
  }
83
84
  })
84
85
  const action = service.actions[actionName]
@@ -73,6 +73,7 @@ function defineCreateAction(config, context) {
73
73
  [modelPropertyName]: id,
74
74
  identifiers, data
75
75
  })
76
+ return id
76
77
  }
77
78
  })
78
79
  const action = service.actions[actionName]
package/utilsAny.js CHANGED
@@ -24,6 +24,12 @@ function extractIdentifiersWithTypes(otherPropertyNames, properties) {
24
24
  }
25
25
 
26
26
  function generateAnyId(otherPropertyNames, properties) {
27
+ console.log("GEN ID", otherPropertyNames, properties, '=>',
28
+ otherPropertyNames
29
+ .map(p => [p+'Type', p])
30
+ .flat()
31
+ .map(p => JSON.stringify(properties[p])).join(':'))
32
+
27
33
  return otherPropertyNames
28
34
  .map(p => [p+'Type', p])
29
35
  .flat()