@workglow/javascript 0.2.31 → 0.2.32

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.
Files changed (2) hide show
  1. package/README.md +37 -0
  2. package/package.json +5 -5
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @workglow/javascript
2
+
3
+ Sandboxed JavaScript task with vendored interpreter.
4
+
5
+ ## Features
6
+
7
+ - Sandboxed JavaScript execution task
8
+ - Vendored interpreter for secure execution
9
+ - Can be used within Workglow task graphs
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ npm install @workglow/javascript
15
+ # or
16
+ bun add @workglow/javascript
17
+ # or
18
+ yarn add @workglow/javascript
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ ```typescript
24
+ import { JavaScriptTask } from "@workglow/javascript/task";
25
+
26
+ const task = new JavaScriptTask({
27
+ code: "return input.a + input.b;",
28
+ input: { a: 1, b: 2 }
29
+ });
30
+
31
+ const result = await task.run();
32
+ console.log(result); // { result: 3 }
33
+ ```
34
+
35
+ ## License
36
+
37
+ Apache 2.0 - See [LICENSE](../../LICENSE) for details.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@workglow/javascript",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.2.31",
5
+ "version": "0.2.32",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/workglow-dev/workglow.git",
@@ -27,8 +27,8 @@
27
27
  }
28
28
  },
29
29
  "peerDependencies": {
30
- "@workglow/task-graph": "0.2.31",
31
- "@workglow/util": "0.2.31"
30
+ "@workglow/task-graph": "0.2.32",
31
+ "@workglow/util": "0.2.32"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "@workglow/task-graph": {
@@ -39,8 +39,8 @@
39
39
  }
40
40
  },
41
41
  "devDependencies": {
42
- "@workglow/task-graph": "0.2.31",
43
- "@workglow/util": "0.2.31"
42
+ "@workglow/task-graph": "0.2.32",
43
+ "@workglow/util": "0.2.32"
44
44
  },
45
45
  "files": [
46
46
  "dist",