@live-change/relations-plugin 0.8.113 → 0.8.114
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 +3 -3
- package/utils.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/relations-plugin",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.114",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.8.
|
|
25
|
+
"@live-change/framework": "^0.8.114",
|
|
26
26
|
"pluralize": "^8.0.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "1a5a437aae382d766c2806a11f805370ee8cc40a"
|
|
29
29
|
}
|
package/utils.js
CHANGED
|
@@ -55,7 +55,7 @@ export function defineIndexes(model, props, types) {
|
|
|
55
55
|
const prop = props[id]
|
|
56
56
|
return prop[0].toUpperCase() + prop.slice(1)
|
|
57
57
|
})
|
|
58
|
-
defineIndex(model, upperCaseProps.join('And'),
|
|
58
|
+
defineIndex(model, upperCaseProps.join('And'), propCombination)
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -106,7 +106,8 @@ export function processModelsAnnotation(service, app, annotation, multiple, cb)
|
|
|
106
106
|
|
|
107
107
|
const writeableProperties = modelProperties || config.writeableProperties
|
|
108
108
|
const otherNames = what.map(other => other.name ? other.name : other)
|
|
109
|
-
const otherPropertyNames =
|
|
109
|
+
const otherPropertyNames = config.propertyNames
|
|
110
|
+
?? otherNames.map(name => name[0].toLowerCase() + name.slice(1))
|
|
110
111
|
|
|
111
112
|
const joinedOthersPropertyName = (otherNames[0][0].toLowerCase() + otherNames[0].slice(1)) +
|
|
112
113
|
(otherNames.length > 1 ? ('And' + otherNames.slice(1).join('And')) : '')
|