hightjs 0.2.45 → 0.2.47
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/index.js +2 -0
- package/dist/renderer.js +2 -1
- package/package.json +5 -3
- package/src/index.ts +2 -0
- package/src/renderer.tsx +2 -1
package/dist/index.js
CHANGED
|
@@ -175,6 +175,8 @@ function hweb(options) {
|
|
|
175
175
|
* @returns Resposta do middleware ou handler final
|
|
176
176
|
*/
|
|
177
177
|
async function executeMiddlewareChain(middlewares, finalHandler, request, params) {
|
|
178
|
+
// @ts-ignore
|
|
179
|
+
process.hight = options;
|
|
178
180
|
if (!middlewares || middlewares.length === 0) {
|
|
179
181
|
// Não há middlewares, executa diretamente o handler final
|
|
180
182
|
return await finalHandler(request, params);
|
package/dist/renderer.js
CHANGED
|
@@ -87,7 +87,8 @@ function getJavaScriptFiles(req) {
|
|
|
87
87
|
return 1;
|
|
88
88
|
return a.localeCompare(b);
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
// @ts-ignore
|
|
91
|
+
if (jsFiles.length > 1 && !process.hight.dev) {
|
|
91
92
|
// Modo chunks sem manifesto
|
|
92
93
|
return jsFiles
|
|
93
94
|
.map(file => `<script src="/hweb-dist/${file}"></script>`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hightjs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.47",
|
|
4
4
|
"description": "HightJS is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -65,8 +65,10 @@
|
|
|
65
65
|
"express": "^4.0.0",
|
|
66
66
|
"fastify": "^5.6.1",
|
|
67
67
|
"framer-motion": "^12.23.22",
|
|
68
|
-
"react": "^19.2.0",
|
|
69
|
-
"react-dom": "^19.2.0",
|
|
70
68
|
"ws": "^8.18.1"
|
|
69
|
+
},
|
|
70
|
+
"peerDependency": {
|
|
71
|
+
"react": "^19.2.0",
|
|
72
|
+
"react-dom": "^19.2.0"
|
|
71
73
|
}
|
|
72
74
|
}
|
package/src/index.ts
CHANGED
|
@@ -185,6 +185,8 @@ export default function hweb(options: HightJSOptions) {
|
|
|
185
185
|
request: HightJSRequest,
|
|
186
186
|
params: { [key: string]: string }
|
|
187
187
|
): Promise<HightJSResponse> {
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
process.hight = options;
|
|
188
190
|
if (!middlewares || middlewares.length === 0) {
|
|
189
191
|
// Não há middlewares, executa diretamente o handler final
|
|
190
192
|
return await finalHandler(request, params);
|
package/src/renderer.tsx
CHANGED
|
@@ -105,7 +105,8 @@ function getJavaScriptFiles(req: GenericRequest): string {
|
|
|
105
105
|
return a.localeCompare(b);
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
// @ts-ignore
|
|
109
|
+
if (jsFiles.length > 1 && !process.hight.dev) {
|
|
109
110
|
// Modo chunks sem manifesto
|
|
110
111
|
return jsFiles
|
|
111
112
|
.map(file => `<script src="/hweb-dist/${file}"></script>`)
|