@live-change/relations-plugin 0.9.78 → 0.9.79
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/src/entityUtils.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/relations-plugin",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.79",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.9.
|
|
25
|
+
"@live-change/framework": "^0.9.79",
|
|
26
26
|
"pluralize": "^8.0.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "68d2965e5a3b780063a5d0f9ce71d911fd1fb6be"
|
|
29
29
|
}
|
package/src/entityUtils.ts
CHANGED
|
@@ -159,7 +159,7 @@ export function defineCreateAction(config, context) {
|
|
|
159
159
|
waitForEvents: true,
|
|
160
160
|
execute: () => { throw new Error("not generated yet") }
|
|
161
161
|
})
|
|
162
|
-
const validators = App.validation.getValidators(action, service
|
|
162
|
+
const validators = App.validation.getValidators(action, service)
|
|
163
163
|
const validationContext = { source: action, action }
|
|
164
164
|
action.execute = getCreateFunction( validators, validationContext, config, context)
|
|
165
165
|
service.actions[actionName] = action
|
|
@@ -179,7 +179,7 @@ export function defineCreateTrigger(config, context) {
|
|
|
179
179
|
waitForEvents: true,
|
|
180
180
|
execute: () => { throw new Error("not generated yet") }
|
|
181
181
|
})
|
|
182
|
-
const validators = App.validation.getValidators(trigger, service
|
|
182
|
+
const validators = App.validation.getValidators(trigger, service)
|
|
183
183
|
const validationContext = { source: trigger, trigger }
|
|
184
184
|
trigger.execute = getCreateFunction( validators, validationContext, config, context)
|
|
185
185
|
}
|
|
@@ -233,7 +233,7 @@ export function defineUpdateAction(config, context) {
|
|
|
233
233
|
waitForEvents: true,
|
|
234
234
|
execute: () => { throw new Error("not generated yet") }
|
|
235
235
|
})
|
|
236
|
-
const validators = App.validation.getValidators(action, service
|
|
236
|
+
const validators = App.validation.getValidators(action, service)
|
|
237
237
|
const validationContext = { source: action, action }
|
|
238
238
|
action.execute = getUpdateFunction( validators, validationContext, config, context)
|
|
239
239
|
service.actions[actionName] = action
|
|
@@ -258,7 +258,7 @@ export function defineUpdateTrigger(config, context) {
|
|
|
258
258
|
waitForEvents: true,
|
|
259
259
|
execute: () => { throw new Error("not generated yet") }
|
|
260
260
|
})
|
|
261
|
-
const validators = App.validation.getValidators(trigger, service
|
|
261
|
+
const validators = App.validation.getValidators(trigger, service)
|
|
262
262
|
const validationContext = { source: trigger, trigger }
|
|
263
263
|
trigger.execute = getUpdateFunction( validators, validationContext, config, context)
|
|
264
264
|
service.triggers[triggerName] = [trigger]
|