@live-change/access-control-service 0.8.32 → 0.8.34
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/access.js +3 -3
- package/package.json +3 -3
package/access.js
CHANGED
|
@@ -267,9 +267,9 @@ export default (definition) => {
|
|
|
267
267
|
id: outputObjectId,
|
|
268
268
|
roles: Array.from(new Set([...nodeRoles, ...client.roles]))
|
|
269
269
|
}
|
|
270
|
-
const existingAccessIndex = accesses.findIndex(acc => acc.id
|
|
271
|
-
if(existingAccessIndex
|
|
272
|
-
if(JSON.stringify(outputObject)
|
|
270
|
+
const existingAccessIndex = accesses.findIndex(acc => acc.id === outputObjectId)
|
|
271
|
+
if(existingAccessIndex !== -1) {
|
|
272
|
+
if(JSON.stringify(outputObject) !== JSON.stringify(accesses[existingAccessIndex])) {
|
|
273
273
|
output.change(outputObject, accesses[existingAccessIndex])
|
|
274
274
|
accesses[existingAccessIndex] = outputObject
|
|
275
275
|
} /// else ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-service",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.34",
|
|
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.8.
|
|
24
|
+
"@live-change/framework": "^0.8.34"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "40e61928bf43b35352c76fc135f36a2d8bd76c4a",
|
|
27
27
|
"type": "module"
|
|
28
28
|
}
|