@stackone/connect-sdk 1.5.0 → 1.7.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/dist/index.es.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{StepFunctionsFactory as
|
|
1
|
+
import{StepFunctionName as s,StepFunctionsFactory as t}from"@stackone/core";const o=async({block:o,stepFunctionName:c,params:r,buildStepFunction:e=t.build})=>{const n=e({functionName:c}).fn,u=await n({block:o,params:r}),a=c===s.MAP_FIELDS?{[s.MAP_FIELDS.toString()]:{output:{data:u.block.result},errors:u.errors,successful:u.successful}}:{};return{...u.block,steps:{...u?.block?.steps??{},...a}}};export{o as executeStepFunction};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("@stackone/core");exports.executeStepFunction=async({block:e,stepFunctionName:c,params:
|
|
1
|
+
"use strict";var t=require("@stackone/core");exports.executeStepFunction=async({block:e,stepFunctionName:c,params:s,buildStepFunction:o=t.StepFunctionsFactory.build})=>{const n=o({functionName:c}).fn,u=await n({block:e,params:s}),r=c===t.StepFunctionName.MAP_FIELDS?{[t.StepFunctionName.MAP_FIELDS.toString()]:{output:{data:u.block.result},errors:u.errors,successful:u.successful}}:{};return{...u.block,steps:{...u?.block?.steps??{},...r}}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Block,
|
|
1
|
+
import { type Block, StepFunctionName, type StepFunctionParams, StepFunctionsFactory } from '@stackone/core';
|
|
2
2
|
export declare const executeStepFunction: ({ block, stepFunctionName, params, buildStepFunction, }: {
|
|
3
3
|
block: Block;
|
|
4
4
|
stepFunctionName: StepFunctionName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackone/connect-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.mjs",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"code:check:fix": "biome check --write ./src ./*.mjs",
|
|
26
26
|
"lint": "npm run code:check",
|
|
27
27
|
"lint:fix": "npm run code:check:fix",
|
|
28
|
-
"test": "vitest run",
|
|
29
|
-
"test:watch": "vitest watch",
|
|
28
|
+
"test": "FORCE_COLOR=1 vitest run --silent",
|
|
29
|
+
"test:watch": "FORCE_COLOR=1 vitest watch --silent",
|
|
30
30
|
"publish-release": "npm publish --access=public"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [],
|