@arcote.tech/arc 0.7.11 → 0.7.13

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 +1 -1
package/dist/index.js CHANGED
@@ -2491,7 +2491,11 @@ class ArcCommand extends ArcContextElement {
2491
2491
  if (!adapters.commandWire) {
2492
2492
  throw new Error(`Command "${this.data.name}" has no handler and no commandWire adapter available for remote execution`);
2493
2493
  }
2494
- return await adapters.commandWire.executeCommand(this.data.name, params);
2494
+ const wireAuth = adapters.scope ? {
2495
+ scope: adapters.scope.scopeName,
2496
+ token: adapters.scope.getToken()
2497
+ } : undefined;
2498
+ return await adapters.commandWire.executeCommand(this.data.name, params, wireAuth);
2495
2499
  };
2496
2500
  return Object.assign(executeFunc, { params: this.data.params });
2497
2501
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcote.tech/arc",
3
3
  "type": "module",
4
- "version": "0.7.11",
4
+ "version": "0.7.13",
5
5
  "private": false,
6
6
  "author": "Przemysław Krasiński [arcote.tech]",
7
7
  "description": "Arc framework core rewrite with improved event emission and type safety",