@adobe-commerce/aio-toolkit 1.0.11 → 1.0.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/CHANGELOG.md +34 -0
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +6 -19
package/dist/index.mjs
CHANGED
|
@@ -1855,14 +1855,19 @@ var _Openwhisk = class _Openwhisk {
|
|
|
1855
1855
|
this.openwhiskClient = openwhisk({ apihost: host, api_key: apiKey });
|
|
1856
1856
|
}
|
|
1857
1857
|
/**
|
|
1858
|
-
*
|
|
1859
|
-
*
|
|
1860
|
-
* @
|
|
1858
|
+
* Execute an OpenWhisk action
|
|
1859
|
+
*
|
|
1860
|
+
* @param action - Name of the action to execute
|
|
1861
|
+
* @param params - Parameters to pass to the action
|
|
1862
|
+
* @param config - Configuration options for execution
|
|
1863
|
+
* @param config.blocking - Whether to wait for action completion (default: true)
|
|
1864
|
+
* @returns {Promise<Activation<Dict>>} Action activation result
|
|
1861
1865
|
*/
|
|
1862
|
-
async execute(action, params) {
|
|
1866
|
+
async execute(action, params, config = {}) {
|
|
1867
|
+
const { blocking = true } = config;
|
|
1863
1868
|
return await this.openwhiskClient.actions.invoke({
|
|
1864
1869
|
name: action,
|
|
1865
|
-
blocking
|
|
1870
|
+
blocking,
|
|
1866
1871
|
params
|
|
1867
1872
|
});
|
|
1868
1873
|
}
|