@arcote.tech/arc-adapter-db-sqlite 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
@@ -3210,7 +3210,11 @@ class ArcCommand extends ArcContextElement {
3210
3210
  if (!adapters.commandWire) {
3211
3211
  throw new Error(`Command "${this.data.name}" has no handler and no commandWire adapter available for remote execution`);
3212
3212
  }
3213
- return await adapters.commandWire.executeCommand(this.data.name, params);
3213
+ const wireAuth = adapters.scope ? {
3214
+ scope: adapters.scope.scopeName,
3215
+ token: adapters.scope.getToken()
3216
+ } : undefined;
3217
+ return await adapters.commandWire.executeCommand(this.data.name, params, wireAuth);
3214
3218
  };
3215
3219
  return Object.assign(executeFunc, { params: this.data.params });
3216
3220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcote.tech/arc-adapter-db-sqlite",
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",
@@ -20,7 +20,7 @@
20
20
  "test": "bun test"
21
21
  },
22
22
  "peerDependencies": {
23
- "@arcote.tech/arc": "^0.7.11"
23
+ "@arcote.tech/arc": "^0.7.12"
24
24
  },
25
25
  "devDependencies": {
26
26
  "typescript": "^5.0.0"