@live-change/user-service 0.2.21 → 0.2.24

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/README.md CHANGED
@@ -1 +1 @@
1
- # session-service
1
+ # user-service
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-service",
3
- "version": "0.2.21",
3
+ "version": "0.2.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,9 +21,9 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "^0.5.10",
25
- "@live-change/relations-plugin": "^0.1.10",
24
+ "@live-change/framework": "0.5.27",
25
+ "@live-change/relations-plugin": "^0.5.20",
26
26
  "pluralize": "8.0.0"
27
27
  },
28
- "gitHead": "1b2e03434af1766f4056fdd0ecf7ae55c9a26dd7"
28
+ "gitHead": "2ccfeae4613bf874d5bfc215a71c98e57b3eb0e5"
29
29
  }
@@ -25,6 +25,7 @@ definition.processor(function(service, app) {
25
25
 
26
26
  //console.log("USER ITEM", model)
27
27
 
28
+ if(model.itemOfAny) throw new Error("model " + modelName + " already have owner")
28
29
  model.itemOfAny = {
29
30
  ...config
30
31
  }
@@ -23,6 +23,7 @@ definition.processor(function(service, app) {
23
23
  const config = model.sessionOrUserProperty
24
24
  const writeableProperties = modelProperties || config.writableProperties
25
25
 
26
+ if(model.propertyOfAny) throw new Error("model " + modelName + " already have owner")
26
27
  model.propertyOfAny = {
27
28
  ...config
28
29
  }
package/userItem.js CHANGED
@@ -24,7 +24,7 @@ definition.processor(function(service, app) {
24
24
  const writeableProperties = modelProperties || config.writableProperties
25
25
 
26
26
  //console.log("USER ITEM", model)
27
-
27
+ if(model.itemOf) throw new Error("model " + modelName + " already have owner")
28
28
  model.itemOf = {
29
29
  what: User,
30
30
  ...config
package/userProperty.js CHANGED
@@ -23,6 +23,7 @@ definition.processor(function(service, app) {
23
23
  const config = model.userProperty
24
24
  const writeableProperties = modelProperties || config.writableProperties
25
25
 
26
+ if(model.propertyOf) throw new Error("model " + modelName + " already have owner")
26
27
  model.propertyOf = {
27
28
  what: User,
28
29
  ...config