embedded-react 0.5.2 → 0.5.3
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/package.json +1 -1
- package/sim/embedded-react.wasm +0 -0
- package/sim-server.mjs +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "embedded-react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native-style component package + reconciler that drives the embedded-react C engine through the QuickJS NativeUI bridge (Flow A).",
|
|
6
6
|
"license": "Apache-2.0",
|
package/sim/embedded-react.wasm
CHANGED
|
Binary file
|
package/sim-server.mjs
CHANGED
|
@@ -293,12 +293,13 @@ export async function runDevServer({
|
|
|
293
293
|
// outDir. The page references ./public/<name>. window.__erHot is injected so the page connects to /reload.
|
|
294
294
|
const send = async (res, file) => {
|
|
295
295
|
try {
|
|
296
|
+
const body = await readFile(file);
|
|
296
297
|
res
|
|
297
298
|
.writeHead(200, {
|
|
298
299
|
'content-type': MIME[extname(file)] || 'application/octet-stream',
|
|
299
300
|
'cache-control': 'no-store',
|
|
300
301
|
})
|
|
301
|
-
.end(
|
|
302
|
+
.end(body);
|
|
302
303
|
} catch {
|
|
303
304
|
res.writeHead(404).end('not found');
|
|
304
305
|
}
|