@live-change/user-service 0.8.114 → 0.8.116
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 +4 -4
- package/userItem.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/user-service",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.116",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.8.
|
|
26
|
-
"@live-change/relations-plugin": "^0.8.
|
|
25
|
+
"@live-change/framework": "^0.8.116",
|
|
26
|
+
"@live-change/relations-plugin": "^0.8.116",
|
|
27
27
|
"pluralize": "^8.0.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "32131af3707ec744c9d314035676d09512483799"
|
|
30
30
|
}
|
package/userItem.js
CHANGED
|
@@ -12,7 +12,7 @@ definition.processor(function(service, app) {
|
|
|
12
12
|
const model = service.models[modelName]
|
|
13
13
|
if(model.userItem) {
|
|
14
14
|
if (model.properties.user) throw new Error('user property already exists!!!')
|
|
15
|
-
const originalModelProperties = {...model.properties}
|
|
15
|
+
const originalModelProperties = { ...model.properties }
|
|
16
16
|
const modelProperties = Object.keys(model.properties)
|
|
17
17
|
const modelPropertyName = modelName.slice(0, 1).toLowerCase() + modelName.slice(1)
|
|
18
18
|
|