scordi-extension 1.15.2 → 1.15.3

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.
@@ -2,17 +2,17 @@ import z from "/vendor/.vite-deps-zod.js__v--e041f26d.js";
2
2
  import __vite__cjsImport1_jsonata from "/vendor/.vite-deps-jsonata.js__v--e041f26d.js"; const jsonata = __vite__cjsImport1_jsonata.__esModule ? __vite__cjsImport1_jsonata.default : __vite__cjsImport1_jsonata;
3
3
  export const DataExtractBlockSchema = z.object({
4
4
  name: z.literal("data-extract"),
5
- code: z.string(),
6
- inputData: z.any().optional()
5
+ code: z.string()
7
6
  });
8
7
  export function validateDataExtractBlock(data) {
9
8
  return DataExtractBlockSchema.parse(data);
10
9
  }
11
- export async function handlerDataExtract(data) {
10
+ export async function handlerDataExtract(data, context) {
12
11
  try {
13
12
  console.log("[DataExtractBlock] Executing JSONata query:", data.code);
13
+ console.log("[DataExtractBlock] Context:", context);
14
14
  const expression = jsonata(data.code);
15
- const result = await expression.evaluate(data.inputData);
15
+ const result = await expression.evaluate(context);
16
16
  console.log("[DataExtractBlock] Data extraction successful");
17
17
  return {
18
18
  data: result
@@ -795,7 +795,7 @@ const socketHost = `${"localhost" || importMetaUrl.hostname}:${hmrPort || import
795
795
  const directSocketHost = "localhost:5173/";
796
796
  const base = "/" || "/";
797
797
  const hmrTimeout = 30000;
798
- const wsToken = "n8tdzrIn9dUy";
798
+ const wsToken = "XJuw0VMLu7PG";
799
799
  const transport = normalizeModuleRunnerTransport(
800
800
  (() => {
801
801
  let wsTransport = createWebSocketModuleRunnerTransport({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "scordi-extension",
3
3
  "type": "module",
4
- "version": "1.15.2",
4
+ "version": "1.15.3",
5
5
  "private": false,
6
6
  "main": "./dist/sdk/index.cjs",
7
7
  "module": "./dist/sdk/index.js",