@networkpro/web 1.7.6 → 1.7.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/_redirects CHANGED
@@ -1,2 +1,5 @@
1
1
  https://www.netwk.pro/* https://netwk.pro/:splat 301
2
2
  /privacy-policy /privacy 301
3
+
4
+ # New redirect for Netlify function proxy
5
+ /api/* /.netlify/functions/:splat 200
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "sideEffects": [
5
5
  "./.netlify/shims.js"
6
6
  ],
7
- "version": "1.7.6",
7
+ "version": "1.7.9",
8
8
  "description": "Locking Down Networks, Unlocking Confidence | Security, Networking, Privacy — Network Pro Strategies",
9
9
  "keywords": [
10
10
  "advisory",
@@ -21,14 +21,11 @@ export async function handle({ event, resolve }) {
21
21
  const isProdEnvironment =
22
22
  process.env.NODE_ENV === "production" || process.env.ENV_MODE === "prod";
23
23
 
24
- if (!isProdEnvironment) {
25
- console.log("ENV_MODE:", process.env.ENV_MODE);
26
- }
24
+ console.log("[CSP Debug] NODE_ENV:", process.env.NODE_ENV);
25
+ console.log("[CSP Debug] ENV_MODE:", process.env.ENV_MODE);
27
26
 
28
27
  // Determine report URI
29
- const reportUri = isProdEnvironment
30
- ? "/.netlify/functions/cspReport"
31
- : "/api/mock-csp";
28
+ const reportUri = isProdEnvironment ? "/api/cspReport" : "/api/mock-csp";
32
29
 
33
30
  // Construct base policy
34
31
  const cspDirectives = [
@@ -46,7 +46,7 @@ This file is part of Network Pro.
46
46
  */
47
47
  const pageInfo = {
48
48
  title: "FOSS Spotlight",
49
- lastUpdated: "May 26, 2025",
49
+ lastUpdated: "May 30, 2025",
50
50
  };
51
51
 
52
52
  /** @type {any} */