@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.
Files changed (3) hide show
  1. package/access.js +2 -8
  2. package/indexes.js +1 -1
  3. 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
- console.error("NO OBJECT TYPE FOR ACCESS CONTROL ACCESS PATH", obj, 'IN', objects)
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.get({
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.105",
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.105"
24
+ "@live-change/framework": "^0.9.107"
25
25
  },
26
- "gitHead": "e96d52126ea0b5af39ecf6d4ea5120c0ec58346d",
26
+ "gitHead": "c546be0c12841aa8eca060d4c53d6d89bac2d088",
27
27
  "type": "module"
28
28
  }