@live-change/relations-plugin 0.1.15 → 0.1.16
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/index.js +7 -0
- package/itemOfAny.js +1 -1
- package/package.json +1 -1
- package/propertyOfAny.js +2 -2
package/index.js
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
const propertyOf = require('./propertyOf.js')
|
|
2
2
|
const itemOf = require('./itemOf.js')
|
|
3
3
|
|
|
4
|
+
const propertyOfAny = require('./propertyOfAny.js')
|
|
5
|
+
const itemOfAny = require('./itemOfAny.js')
|
|
6
|
+
|
|
4
7
|
module.exports = function(app, services) {
|
|
5
8
|
|
|
6
9
|
app.defaultProcessors.push(propertyOf)
|
|
7
10
|
app.defaultProcessors.push(itemOf)
|
|
11
|
+
|
|
12
|
+
app.defaultProcessors.push(propertyOfAny)
|
|
13
|
+
app.defaultProcessors.push(itemOfAny)
|
|
14
|
+
|
|
8
15
|
}
|
|
9
16
|
|
|
10
17
|
module.exports.processors = [ propertyOf, itemOf ]
|
package/itemOfAny.js
CHANGED
|
@@ -50,7 +50,7 @@ function defineView(config, context) {
|
|
|
50
50
|
|
|
51
51
|
const {
|
|
52
52
|
defineCreatedEvent, defineUpdatedEvent, defineDeletedEvent, defineTransferredEvent,
|
|
53
|
-
} = require('itemEvents.js')
|
|
53
|
+
} = require('./itemEvents.js')
|
|
54
54
|
const {defineTransferEvent} = require("./itemEvents");
|
|
55
55
|
|
|
56
56
|
function defineCreateAction(config, context) {
|
package/package.json
CHANGED
package/propertyOfAny.js
CHANGED
|
@@ -2,7 +2,7 @@ const App = require("@live-change/framework")
|
|
|
2
2
|
const { PropertyDefinition, ViewDefinition, IndexDefinition, ActionDefinition, EventDefinition } = App
|
|
3
3
|
|
|
4
4
|
const {
|
|
5
|
-
extractObjectData
|
|
5
|
+
extractObjectData
|
|
6
6
|
} = require('./utils.js')
|
|
7
7
|
|
|
8
8
|
const {
|
|
@@ -160,7 +160,7 @@ module.exports = function(service, app) {
|
|
|
160
160
|
|
|
161
161
|
defineSetEvent(config, context, generateAnyId)
|
|
162
162
|
defineUpdatedEvent(config, context, generateAnyId)
|
|
163
|
-
|
|
163
|
+
defineTransferredEvent(config, context, generateAnyId)
|
|
164
164
|
defineResetEvent(config, context, generateAnyId)
|
|
165
165
|
|
|
166
166
|
if(config.setAccess || config.writeAccess) {
|