@live-change/user-service 0.9.216 → 0.9.220

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.
@@ -27,7 +27,7 @@ definition.processor(function(service, app) {
27
27
  }
28
28
 
29
29
  const config = model.contactOrUserItem
30
- const writeableProperties = modelProperties || config.writableProperties
30
+ const writeableProperties = config.writableProperties ?? modelProperties
31
31
  const objectType = service.name + '_' + modelName
32
32
 
33
33
  //console.log("USER ITEM", model)
@@ -33,7 +33,7 @@ definition.processor(function(service, app) {
33
33
  }
34
34
 
35
35
  const config = model.contactOrUserProperty
36
- const writeableProperties = modelProperties || config.writableProperties
36
+ const writeableProperties = config.writableProperties ?? modelProperties
37
37
  const objectType = service.name + '_' + modelName
38
38
 
39
39
  if(model.propertyOf) throw new Error("model " + modelName + " already have owner")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-service",
3
- "version": "0.9.216",
3
+ "version": "0.9.220",
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.9.216",
26
- "@live-change/relations-plugin": "^0.9.216",
25
+ "@live-change/framework": "^0.9.220",
26
+ "@live-change/relations-plugin": "^0.9.220",
27
27
  "pluralize": "^8.0.0"
28
28
  },
29
- "gitHead": "a4aab0fed8f73ef914870c83477488559b2ec3cd"
29
+ "gitHead": "e56ae1ce4b963f85cb0864ebfcc412b77461e4e9"
30
30
  }
@@ -26,7 +26,7 @@ definition.processor(function(service, app) {
26
26
  }
27
27
 
28
28
  const config = model.sessionOrUserItem
29
- const writeableProperties = modelProperties || config.writableProperties
29
+ const writeableProperties = config.writableProperties ?? modelProperties
30
30
  const objectType = service.name + '_' + modelName
31
31
 
32
32
  //console.log("USER ITEM", model)
@@ -34,7 +34,7 @@ definition.processor(function(service, app) {
34
34
  }
35
35
 
36
36
  const config = model.sessionOrUserProperty
37
- const writeableProperties = modelProperties || config.writeableProperties
37
+ const writeableProperties = config.writeableProperties ?? modelProperties
38
38
  const objectType = service.name + '_' + modelName
39
39
 
40
40
  if(model.propertyOf) throw new Error("model " + modelName + " already have owner")
@@ -74,7 +74,7 @@ definition.processor(function(service, app) {
74
74
  }
75
75
  const sessionProperties = await modelRuntime().rangeGet(range)
76
76
  for(const sessionProperty of sessionProperties) {
77
- console.log("SESSION PROPERTY FOUND!", sessionProperty, "MERGE =", config.merge)
77
+ //console.log("SESSION PROPERTY FOUND!", sessionProperty, "MERGE =", config.merge)
78
78
 
79
79
  const extendedIdentifiers = {}
80
80
  for(const key of extendedWith) {
package/userItem.js CHANGED
@@ -23,7 +23,7 @@ definition.processor(function(service, app) {
23
23
  }
24
24
 
25
25
  const config = model.userItem
26
- const writeableProperties = modelProperties || config.writableProperties
26
+ const writeableProperties = config.writableProperties ?? modelProperties
27
27
  const objectType = service.name + '_' + modelName
28
28
 
29
29
  //console.log("USER ITEM", model)
package/userProperty.js CHANGED
@@ -23,7 +23,7 @@ definition.processor(function(service, app) {
23
23
  }
24
24
 
25
25
  const config = model.userProperty
26
- const writeableProperties = modelProperties || config.writableProperties
26
+ const writeableProperties = config.writableProperties ?? modelProperties
27
27
  const objectType = service.name + '_' + modelName
28
28
 
29
29
  if(model.propertyOf) throw new Error("model " + modelName + " already have owner")