hightjs 1.0.2 → 1.0.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/dist/helpers.js +2 -5
- package/package.json +1 -1
- package/src/helpers.ts +2 -5
package/dist/helpers.js
CHANGED
|
@@ -344,11 +344,8 @@ async function initNativeServer(hwebApp, options, port, hostname) {
|
|
|
344
344
|
if (hightConfig.security?.permissionsPolicy) {
|
|
345
345
|
res.setHeader('Permissions-Policy', hightConfig.security.permissionsPolicy);
|
|
346
346
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
const hstsValue = hightConfig.security?.strictTransportSecurity || 'max-age=31536000; includeSubDomains';
|
|
350
|
-
res.setHeader('Strict-Transport-Security', hstsValue);
|
|
351
|
-
}
|
|
347
|
+
const hstsValue = hightConfig.security?.strictTransportSecurity || 'max-age=31536000; includeSubDomains';
|
|
348
|
+
res.setHeader('Strict-Transport-Security', hstsValue);
|
|
352
349
|
// Aplica headers personalizados
|
|
353
350
|
if (hightConfig.customHeaders) {
|
|
354
351
|
for (const [headerName, headerValue] of Object.entries(hightConfig.customHeaders)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hightjs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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",
|
package/src/helpers.ts
CHANGED
|
@@ -374,11 +374,8 @@ async function initNativeServer(hwebApp: HWebApp, options: HightJSOptions, port:
|
|
|
374
374
|
res.setHeader('Permissions-Policy', hightConfig.security.permissionsPolicy);
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
const hstsValue = hightConfig.security?.strictTransportSecurity || 'max-age=31536000; includeSubDomains';
|
|
380
|
-
res.setHeader('Strict-Transport-Security', hstsValue);
|
|
381
|
-
}
|
|
377
|
+
const hstsValue = hightConfig.security?.strictTransportSecurity || 'max-age=31536000; includeSubDomains';
|
|
378
|
+
res.setHeader('Strict-Transport-Security', hstsValue);
|
|
382
379
|
|
|
383
380
|
// Aplica headers personalizados
|
|
384
381
|
if (hightConfig.customHeaders) {
|