lldlab-yaegi-runtime 0.2.0 → 0.2.2
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/LICENSE-go +0 -0
- package/README.md +3 -3
- package/package.json +20 -4
- package/wasm_exec.js +0 -0
- package/yaegi.wasm +2 -2
package/LICENSE-go
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
```js
|
|
6
6
|
// In a (Web) Worker:
|
|
7
|
-
await import('https://cdn.jsdelivr.net/npm/lldlab-yaegi-runtime@0.2.
|
|
7
|
+
await import('https://cdn.jsdelivr.net/npm/lldlab-yaegi-runtime@0.2.2/wasm_exec.js');
|
|
8
8
|
const go = new Go();
|
|
9
9
|
const { instance } = await WebAssembly.instantiateStreaming(
|
|
10
|
-
fetch('https://cdn.jsdelivr.net/npm/lldlab-yaegi-runtime@0.2.
|
|
10
|
+
fetch('https://cdn.jsdelivr.net/npm/lldlab-yaegi-runtime@0.2.2/yaegi.wasm'), go.importObject);
|
|
11
11
|
go.run(instance);
|
|
12
12
|
const { stdout, results, error } = globalThis.yaegiRun(JSON.stringify({ helper, workspace, tests }));
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
- `workspace`: `{ path: source }`. Root-level `.go` files are `package main`; files in folders are packages imported as `app/<folder>`.
|
|
16
16
|
- `tests`: `[{ stage, file, src }]`, each a `package main` file defining `func lldlabTests()`.
|
|
17
|
-
- `net
|
|
17
|
+
- `net` (except the parsing-only `net/url` and `net/netip`), `os/exec`, `os/signal`, `plugin`, `syscall` and `unsafe` can't be imported.
|
|
18
18
|
|
|
19
19
|
0.1.0 (single-file `yaegiRun(files, entry)`) stays published for older clients.
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lldlab-yaegi-runtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Yaegi Go interpreter compiled to WebAssembly for the LLDLab in-browser test runner (exposes globalThis.yaegiRun).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"repository": {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/UtkarshNigam1221/lldlab-problems.git",
|
|
9
|
+
"directory": "packages/yaegi-runtime"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"yaegi.wasm",
|
|
13
|
+
"wasm_exec.js",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE-yaegi",
|
|
16
|
+
"LICENSE-go"
|
|
17
|
+
],
|
|
18
|
+
"keywords": [
|
|
19
|
+
"go",
|
|
20
|
+
"yaegi",
|
|
21
|
+
"wasm",
|
|
22
|
+
"interpreter",
|
|
23
|
+
"lldlab"
|
|
24
|
+
]
|
|
9
25
|
}
|
package/wasm_exec.js
CHANGED
|
File without changes
|
package/yaegi.wasm
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/yaegi.wasm
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 39514368 bytes
|
|
4
|
+
sha256: c04af9cdb007188280d80330a16f82214f7aa77a61b7153bac1193e4b151bdc9
|