@live-change/relations-plugin 0.5.22 → 0.5.23

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/itemOfAny.js CHANGED
@@ -9,7 +9,7 @@ const {
9
9
 
10
10
  const {
11
11
  defineView, defineCreateAction, defineUpdateAction, defineDeleteAction, defineSortIndex
12
- } = require('./pluralRelationUtils.js')
12
+ } = require('./pluralRelationAnyUtils.js')
13
13
 
14
14
  module.exports = function(service, app) {
15
15
  processModelsAnyAnnotation(service, app, 'itemOfAny',false, (config, context) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/relations-plugin",
3
- "version": "0.5.22",
3
+ "version": "0.5.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,8 +21,8 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "^0.5.21",
24
+ "@live-change/framework": "^0.5.23",
25
25
  "pluralize": "8.0.0"
26
26
  },
27
- "gitHead": "1f71e9b116b669699994424c4cf38dd17b5109a8"
27
+ "gitHead": "ddd822ce5b366e93309073e8f92a87d1e52fc751"
28
28
  }
@@ -49,7 +49,7 @@ function defineCreateAction(config, context) {
49
49
  otherPropertyNames, joinedOthersPropertyName, modelName, writeableProperties, joinedOthersClassName
50
50
  } = context
51
51
  const eventName = joinedOthersPropertyName + context.reverseRelationWord + modelName + 'Created'
52
- const actionName = 'set' + joinedOthersClassName + context.reverseRelationWord + modelName
52
+ const actionName = 'create' + joinedOthersClassName + context.reverseRelationWord + modelName
53
53
  service.actions[actionName] = new ActionDefinition({
54
54
  name: actionName,
55
55
  properties: {
package/propertyOfAny.js CHANGED
@@ -3,9 +3,13 @@ const {
3
3
  processModelsAnyAnnotation, generateAnyId
4
4
  } = require('./utilsAny.js')
5
5
 
6
- const { defineSetEvent, defineUpdatedEvent, defineTransferredEvent, defineResetEvent } = require('./propertyEvents.js')
6
+ const {
7
+ defineSetEvent, defineUpdatedEvent, defineTransferredEvent, defineResetEvent
8
+ } = require('./propertyEvents.js')
7
9
 
8
- const { defineView, defineSetAction, defineUpdateAction, defineResetAction } = require('./singularRelationUtils.js')
10
+ const {
11
+ defineView, defineSetAction, defineUpdateAction, defineResetAction
12
+ } = require('./singularRelationAnyUtils.js')
9
13
 
10
14
  module.exports = function(service, app) {
11
15
  processModelsAnyAnnotation(service, app, 'propertyOfAny', false, (config, context) => {
package/utilsAny.js CHANGED
@@ -67,8 +67,6 @@ function processModelsAnyAnnotation(service, app, annotation, multiple, cb) {
67
67
  return service._runtime.models[modelName]
68
68
  }
69
69
 
70
- if (!model.indexes) model.indexes = {}
71
-
72
70
  if (!model.indexes) {
73
71
  model.indexes = {}
74
72
  }