@alienplatform/testing 1.14.1 → 2.0.0
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/README.md +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ interface DeployOptions {
|
|
|
86
86
|
The returned `Deployment` supports:
|
|
87
87
|
|
|
88
88
|
- `deployment.url`
|
|
89
|
-
- `deployment.invokeCommand(name, params)`
|
|
89
|
+
- `deployment.invokeCommand(name, params, { target? })` — optional `target` routes to a specific resource by id
|
|
90
90
|
- `deployment.setExternalSecret(vault, key, value)`
|
|
91
91
|
- `deployment.upgrade(options)` for cloud mode
|
|
92
92
|
- `deployment.destroy()`
|
package/dist/index.d.ts
CHANGED
|
@@ -92,9 +92,17 @@ declare class Deployment {
|
|
|
92
92
|
private apiKey?;
|
|
93
93
|
constructor(params: DeploymentInit);
|
|
94
94
|
/**
|
|
95
|
-
* Invoke a command on the deployment
|
|
95
|
+
* Invoke a command on the deployment.
|
|
96
|
+
*
|
|
97
|
+
* Pass `options.target` to route the command to a specific command-capable
|
|
98
|
+
* resource by id. This is required when more than one resource (e.g. a Worker
|
|
99
|
+
* and a Daemon) registers a handler under the same command name — the target
|
|
100
|
+
* disambiguates which one runs. When omitted, the server routes by its default
|
|
101
|
+
* rules.
|
|
96
102
|
*/
|
|
97
|
-
invokeCommand(name: string, params:
|
|
103
|
+
invokeCommand<T = unknown>(name: string, params: unknown, options?: {
|
|
104
|
+
target?: string;
|
|
105
|
+
}): Promise<T>;
|
|
98
106
|
/**
|
|
99
107
|
* Set an external secret using platform-native tools
|
|
100
108
|
*/
|