honox 0.1.19 → 0.1.20
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/dist/client/client.js +1 -1
- package/dist/server/server.js +4 -3
- package/dist/vite/island-components.js +14 -14
- package/package.json +2 -2
package/dist/client/client.js
CHANGED
package/dist/server/server.js
CHANGED
|
@@ -65,9 +65,10 @@ const createApp = (options) => {
|
|
|
65
65
|
subApp.all("*", rendererDefault);
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
const middlewareFile = Object.keys(MIDDLEWARE_FILE).find(
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
const middlewareFile = Object.keys(MIDDLEWARE_FILE).find((x) => {
|
|
69
|
+
const replacedDir = dir.replace("[", "\\[").replace("]", "\\]");
|
|
70
|
+
return new RegExp(replacedDir + "/_middleware.tsx?").test(x);
|
|
71
|
+
});
|
|
71
72
|
if (middlewareFile) {
|
|
72
73
|
const middleware = MIDDLEWARE_FILE[middlewareFile];
|
|
73
74
|
if (middleware.default) {
|
|
@@ -6,30 +6,30 @@ import { parse } from "@babel/parser";
|
|
|
6
6
|
import _traverse from "@babel/traverse";
|
|
7
7
|
const traverse = _traverse.default ?? _traverse;
|
|
8
8
|
import {
|
|
9
|
+
blockStatement,
|
|
10
|
+
conditionalExpression,
|
|
11
|
+
exportDefaultDeclaration,
|
|
12
|
+
exportNamedDeclaration,
|
|
13
|
+
exportSpecifier,
|
|
14
|
+
functionExpression,
|
|
9
15
|
identifier,
|
|
16
|
+
importDeclaration,
|
|
17
|
+
importSpecifier,
|
|
10
18
|
jsxAttribute,
|
|
11
19
|
jsxClosingElement,
|
|
12
20
|
jsxElement,
|
|
21
|
+
jsxExpressionContainer,
|
|
13
22
|
jsxIdentifier,
|
|
14
23
|
jsxOpeningElement,
|
|
15
|
-
stringLiteral,
|
|
16
|
-
variableDeclarator,
|
|
17
|
-
variableDeclaration,
|
|
18
|
-
functionExpression,
|
|
19
|
-
blockStatement,
|
|
20
|
-
returnStatement,
|
|
21
24
|
jsxSpreadAttribute,
|
|
22
|
-
jsxExpressionContainer,
|
|
23
|
-
exportDefaultDeclaration,
|
|
24
|
-
conditionalExpression,
|
|
25
25
|
memberExpression,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
returnStatement,
|
|
27
|
+
stringLiteral,
|
|
28
|
+
variableDeclaration,
|
|
29
|
+
variableDeclarator
|
|
30
30
|
} from "@babel/types";
|
|
31
31
|
import { parse as parseJsonc } from "jsonc-parser";
|
|
32
|
-
import {
|
|
32
|
+
import { isComponentName, matchIslandComponentId } from "./utils/path.js";
|
|
33
33
|
function addSSRCheck(funcName, componentName, componentExport) {
|
|
34
34
|
const isSSR = memberExpression(
|
|
35
35
|
memberExpression(identifier("import"), identifier("meta")),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "honox",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"hono": ">=4.*"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@hono/eslint-config": "^0.0.
|
|
123
|
+
"@hono/eslint-config": "^0.0.6",
|
|
124
124
|
"@mdx-js/rollup": "^3.0.0",
|
|
125
125
|
"@playwright/test": "^1.42.0",
|
|
126
126
|
"@types/babel__generator": "^7",
|