@telorun/starlark 0.1.2 → 0.1.4
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @telorun/starlark
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @telorun/sdk@0.2.5
|
|
9
|
+
|
|
10
|
+
## 0.1.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Automated release.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @telorun/sdk@0.2.4
|
|
17
|
+
|
|
3
18
|
## 0.1.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telorun/starlark",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "./src/index.ts",
|
|
6
|
-
"module": "./src/index.ts",
|
|
7
5
|
"exports": {
|
|
8
|
-
"
|
|
6
|
+
"./script": {
|
|
7
|
+
"bun": "./src/script.ts",
|
|
8
|
+
"import": "./dist/script.js",
|
|
9
|
+
"require": "./dist/script.js"
|
|
10
|
+
}
|
|
9
11
|
},
|
|
10
12
|
"dependencies": {
|
|
11
13
|
"ajv": "^8.17.1",
|
|
12
14
|
"starlark-webasm": "^1.0.3",
|
|
13
|
-
"@telorun/sdk": "0.2.
|
|
15
|
+
"@telorun/sdk": "0.2.5"
|
|
14
16
|
},
|
|
15
17
|
"devDependencies": {
|
|
16
18
|
"@types/node": "^20.0.0"
|
|
@@ -83,7 +83,7 @@ export async function create(
|
|
|
83
83
|
async function executeStarlark(code: string, input: any): Promise<any> {
|
|
84
84
|
try {
|
|
85
85
|
const result = globalThis.run_starlark_code(
|
|
86
|
-
`${code}\ndef main():\n
|
|
86
|
+
`${code}\ndef main():\n print(str(run(${JSON.stringify(input)})))`,
|
|
87
87
|
);
|
|
88
88
|
if (result.error) {
|
|
89
89
|
throw new Error(result.error);
|
|
File without changes
|