@live-change/access-control-service 0.9.105 → 0.9.107
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 +2 -8
- package/indexes.js +1 -1
- package/package.json +3 -3
package/access.js
CHANGED
|
@@ -206,14 +206,8 @@ export default (definition) => {
|
|
|
206
206
|
|
|
207
207
|
function accessPath(client, objects) {
|
|
208
208
|
for(const obj of objects) {
|
|
209
|
-
if(!obj.objectType)
|
|
210
|
-
|
|
211
|
-
throw new Error('No objectType for accessControl accessPath')
|
|
212
|
-
}
|
|
213
|
-
if(!obj.object) {
|
|
214
|
-
console.error("NO OBJECT FOR ACCESS CONTROL ACCESS PATH", obj, 'IN', objects)
|
|
215
|
-
throw new Error('No object for accessControl accessPath')
|
|
216
|
-
}
|
|
209
|
+
if(!obj.objectType) throw new Error('No objectType for accessControl accessPath')
|
|
210
|
+
if(!obj.object) throw new Error('No object for accessControl accessPath')
|
|
217
211
|
}
|
|
218
212
|
return ['database', 'queryObject', app.databaseName, `(${
|
|
219
213
|
async (input, output, {
|
package/indexes.js
CHANGED
|
@@ -214,7 +214,7 @@ if(config.indexed) {
|
|
|
214
214
|
async function iterate(index, prefix, cb) {
|
|
215
215
|
let position = prefix + ':'
|
|
216
216
|
while(true) {
|
|
217
|
-
const bucket = await index.
|
|
217
|
+
const bucket = await index.rangeGet({
|
|
218
218
|
gt: position,
|
|
219
219
|
lte: prefix + '_\xFF\xFF\xFF\xFF',
|
|
220
220
|
limit: bucketSize
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.107",
|
|
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.9.
|
|
24
|
+
"@live-change/framework": "^0.9.107"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "c546be0c12841aa8eca060d4c53d6d89bac2d088",
|
|
27
27
|
"type": "module"
|
|
28
28
|
}
|