@live-change/access-control-service 0.9.102 → 0.9.103

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 (2) hide show
  1. package/access.js +8 -2
  2. package/package.json +3 -3
package/access.js CHANGED
@@ -206,8 +206,14 @@ export default (definition) => {
206
206
 
207
207
  function accessPath(client, objects) {
208
208
  for(const obj of objects) {
209
- if(!obj.objectType) throw new Error('No objectType for accessControl accessPath')
210
- if(!obj.object) throw new Error('No object for accessControl accessPath')
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
+ }
211
217
  }
212
218
  return ['database', 'queryObject', app.databaseName, `(${
213
219
  async (input, output, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/access-control-service",
3
- "version": "0.9.102",
3
+ "version": "0.9.103",
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.102"
24
+ "@live-change/framework": "^0.9.103"
25
25
  },
26
- "gitHead": "f6ae0458039c44025c609e2427e9c61bc4c4c7ec",
26
+ "gitHead": "665bfa896fe92865a97556c86953f6d515ffc9ab",
27
27
  "type": "module"
28
28
  }