@arcote.tech/arc-adapter-db-postgres 0.7.11 → 0.7.12

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/dist/index.js +5 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3207,7 +3207,11 @@ class ArcCommand extends ArcContextElement {
3207
3207
  if (!adapters.commandWire) {
3208
3208
  throw new Error(`Command "${this.data.name}" has no handler and no commandWire adapter available for remote execution`);
3209
3209
  }
3210
- return await adapters.commandWire.executeCommand(this.data.name, params);
3210
+ const wireAuth = adapters.scope ? {
3211
+ scope: adapters.scope.scopeName,
3212
+ token: adapters.scope.getToken()
3213
+ } : undefined;
3214
+ return await adapters.commandWire.executeCommand(this.data.name, params, wireAuth);
3211
3215
  };
3212
3216
  return Object.assign(executeFunc, { params: this.data.params });
3213
3217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcote.tech/arc-adapter-db-postgres",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "postgres": "^3.4.4"
24
24
  },
25
25
  "peerDependencies": {
26
- "@arcote.tech/arc": "^0.7.11"
26
+ "@arcote.tech/arc": "^0.7.12"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/pg": "^8.11.0",