@networkpro/web 1.6.0 → 1.6.2

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/README.md CHANGED
@@ -33,7 +33,7 @@ All infrastructure and data flows are designed with **maximum transparency, self
33
33
  ├── .github/workflows # CI workflows and automation
34
34
  ├── .vscode/ # Recommended VS Code settings, extensions
35
35
  ├── netlify-functions/
36
- │ └── cspReport.js # Serverless function to receive and log CSP violation reports
36
+ │ └── cspReport.js # Serverless function to receive and log CSP violation reports
37
37
  ├── scripts/ # Utility scripts
38
38
  ├── src/
39
39
  │ ├── lib/ # Reusable components, styles, utilities
package/netlify.toml CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  [build.environment]
6
6
  NODE_VERSION = "22"
7
+ ENV_MODE = "prod"
7
8
 
8
9
  [dev]
9
10
  command = "npm run dev"
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "sideEffects": [
5
5
  "./.netlify/shims.js"
6
6
  ],
7
- "version": "1.6.0",
7
+ "version": "1.6.2",
8
8
  "description": "Locking Down Networks, Unlocking Confidence | Security, Networking, Privacy — Network Pro Strategies",
9
9
  "keywords": [
10
10
  "advisory",
@@ -78,9 +78,8 @@
78
78
  },
79
79
  "dependencies": {
80
80
  "nodemailer": "^7.0.3",
81
- "playwright": "^1.52.0",
82
81
  "semver": "^7.7.2",
83
- "svelte": "5.33.1"
82
+ "svelte": "5.33.2"
84
83
  },
85
84
  "devDependencies": {
86
85
  "@eslint/compat": "^1.2.9",
@@ -99,13 +98,14 @@
99
98
  "eslint-config-prettier": "^10.1.5",
100
99
  "eslint-plugin-jsdoc": "^50.6.17",
101
100
  "eslint-plugin-svelte": "^3.9.0",
102
- "globals": "^16.1.0",
101
+ "globals": "^16.2.0",
103
102
  "jsdom": "^26.1.0",
104
103
  "lightningcss": "^1.30.1",
105
104
  "markdownlint": "^0.38.0",
106
105
  "markdownlint-cli2": "^0.18.1",
107
106
  "mdsvex": "^0.12.6",
108
107
  "normalize.css": "^8.0.1",
108
+ "playwright": "^1.52.0",
109
109
  "postcss": "^8.5.3",
110
110
  "prettier": "^3.5.3",
111
111
  "prettier-plugin-svelte": "^3.4.0",
@@ -14,6 +14,8 @@ export async function handle({ event, resolve }) {
14
14
  // Create the response
15
15
  const response = await resolve(event);
16
16
 
17
+ console.log("ENV_MODE:", process.env.ENV_MODE);
18
+
17
19
  // Check if the environment is for testing
18
20
  const isTestEnvironment =
19
21
  process.env.NODE_ENV === "test" || process.env.ENV_MODE === "ci";
@@ -85,6 +87,13 @@ export async function handle({ event, resolve }) {
85
87
  response.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
86
88
  response.headers.set("X-Frame-Options", "DENY");
87
89
 
90
+ if (process.env.ENV_MODE !== "test" && process.env.ENV_MODE !== "ci") {
91
+ response.headers.set(
92
+ "Strict-Transport-Security",
93
+ "max-age=2592000; includeSubDomains;", // Use max-age of 30 days
94
+ );
95
+ }
96
+
88
97
  return response;
89
98
  }
90
99
 
@@ -57,7 +57,7 @@ This file is part of Network Pro.
57
57
  },
58
58
  {
59
59
  label: "Markdown",
60
- href: "https://netwk.pro/docs",
60
+ href: "https://docs.netwk.pro",
61
61
  target: "_self",
62
62
  },
63
63
  ];