@arcote.tech/arc 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.
- package/dist/index.js +5 -1
- 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
|
-
|
|
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