weifuwu 0.19.7 → 0.19.9
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/cli/template/.weifuwu/ssr/96f5704e.js +481 -0
- package/cli/template/.weifuwu/ssr/fae6ecbe.js +14 -0
- package/cli.ts +3 -3
- package/dist/cli.js +3 -3
- package/dist/cms/admin.d.ts +3 -0
- package/dist/cms/api.d.ts +3 -0
- package/dist/cms/client.d.ts +2 -0
- package/dist/cms/content.d.ts +36 -0
- package/dist/cms/index.d.ts +2 -0
- package/dist/cms/media.d.ts +17 -0
- package/dist/cms/types.d.ts +93 -0
- package/dist/compile.d.ts +2 -0
- package/dist/env.d.ts +2 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1318 -56
- package/dist/react.js +1 -1
- package/dist/ssr-entries.d.ts +4 -0
- package/package.json +3 -1
package/dist/react.js
CHANGED
|
@@ -192,7 +192,7 @@ async function navigate(href) {
|
|
|
192
192
|
location.href = href;
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
const bundleMatch = html.match(/src="(\/
|
|
195
|
+
const bundleMatch = html.match(/src="(\/__ssr\/[^"]+\.js)"/);
|
|
196
196
|
const bundleUrl = bundleMatch ? bundleMatch[1] : null;
|
|
197
197
|
applyHead(html);
|
|
198
198
|
const currentRoot = document.getElementById("__weifuwu_root");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weifuwu",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.9",
|
|
4
4
|
"description": "Web-standard HTTP framework for Node.js — (req, ctx) => Response",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"LICENSE"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
+
"dev": "node --watch ./cli/template/index.ts",
|
|
24
|
+
"start": "NODE_ENV=production node ./cli/template/index.ts",
|
|
23
25
|
"build": "esbuild index.ts --bundle --format=esm --platform=node --outfile=dist/index.js --packages=external && esbuild cli.ts --bundle --format=esm --platform=node --outfile=dist/cli.js --packages=external && esbuild react.ts --bundle --format=esm --outfile=dist/react.js --external:react --external:react-dom",
|
|
24
26
|
"prepublishOnly": "npm run build && tsc --emitDeclarationOnly --outdir dist",
|
|
25
27
|
"test": "node --test 'test/**/*.test.ts'"
|