@live-change/session-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/session-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
  }
package/sessionItem.js CHANGED
@@ -26,6 +26,7 @@ definition.processor(function(service, app) {
26
26
 
27
27
  console.log("SESSION ITEM", model)
28
28
 
29
+ if(model.itemOf) throw new Error("model " + modelName + " already have owner")
29
30
  model.itemOf = {
30
31
  what: Session,
31
32
  ...config
@@ -23,6 +23,7 @@ definition.processor(function(service, app) {
23
23
  const config = model.sessionProperty
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: Session,
28
29
  ...config