mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-19 09:55:15 +02:00
Adds packages/plugin-sandbox: QuickJS-ng compiled to wasm, running in a dedicated worker, with a runtime shell inside it that loads a plugin bundle and answers the same InternalEventPayload events the Node runtime answers. Plugins are unmodified. Wires the browser host's template function, authentication, cURL import and template render commands to it, and relaxes TemplateCallback's Send bound on wasm32 so the engine's renderer can call back out to a plugin.
18 lines
382 B
JSON
18 lines
382 B
JSON
{
|
|
"name": "@yaakapp-internal/plugin-sandbox",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"bootstrap": "npm run build",
|
|
"build": "node build-guest.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@jitl/quickjs-ng-wasmfile-release-sync": "^0.32.0",
|
|
"quickjs-emscripten-core": "^0.32.0"
|
|
},
|
|
"devDependencies": {
|
|
"esbuild": "^0.28.0"
|
|
}
|
|
}
|