thebird 1.2.42 → 1.2.43
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/docs/terminal.js +7 -7
- package/docs/vendor/winterjs.wasm +0 -0
- package/package.json +1 -1
- package/docs/vendor/bash.wasm +0 -0
package/docs/terminal.js
CHANGED
|
@@ -63,7 +63,7 @@ async function boot() {
|
|
|
63
63
|
|
|
64
64
|
try {
|
|
65
65
|
const [wasmResp] = await Promise.all([
|
|
66
|
-
fetch('./vendor/
|
|
66
|
+
fetch('./vendor/winterjs.wasm'),
|
|
67
67
|
init({
|
|
68
68
|
module: fetch('./vendor/wasmer_js_bg.wasm'),
|
|
69
69
|
workerUrl: absUrl('./vendor/wasmer-worker.js'),
|
|
@@ -71,14 +71,14 @@ async function boot() {
|
|
|
71
71
|
}),
|
|
72
72
|
]);
|
|
73
73
|
|
|
74
|
-
const
|
|
74
|
+
const winterModule = await WebAssembly.compileStreaming(wasmResp);
|
|
75
75
|
|
|
76
|
-
term.write('Starting
|
|
76
|
+
term.write('Starting WinterJS...\r\n');
|
|
77
77
|
|
|
78
|
-
const instance = await runWasix(
|
|
79
|
-
program: '
|
|
80
|
-
args: ['
|
|
81
|
-
env: { TERM: 'xterm-256color'
|
|
78
|
+
const instance = await runWasix(winterModule, {
|
|
79
|
+
program: 'winterjs',
|
|
80
|
+
args: ['--repl'],
|
|
81
|
+
env: { TERM: 'xterm-256color' },
|
|
82
82
|
stdin: new ReadableStream({
|
|
83
83
|
start(ctrl) { window.__debug.stdinCtrl = ctrl; }
|
|
84
84
|
}),
|
|
Binary file
|
package/package.json
CHANGED
package/docs/vendor/bash.wasm
DELETED
|
Binary file
|