@networkpro/web 1.9.0 → 1.9.1

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
@@ -62,11 +62,10 @@ All infrastructure and data flows are designed with **maximum transparency, self
62
62
  ├── netlify/
63
63
  │ ├── edge-functions/
64
64
  │ │ └── csp-report.js # Receives CSP violation reports
65
- │ └── netlify.toml # Netlify configuration
66
65
  ├── scripts/ # General-purpose utility scripts
67
66
  ├── src/
68
67
  │ ├── app.html # Entry HTML (CSP meta, bootstrapping)
69
- │ ├── hooks.client.ts # PWA install prompt & client-side logging
68
+ │ ├── hooks.client.ts # Client-side error handling
70
69
  │ ├── hooks.server.js # Injects CSP headers and permissions policy
71
70
  │ ├── lib/ # Components, utilities, types, styles
72
71
  │ │ ├── components/ # Svelte components
@@ -85,7 +84,9 @@ All infrastructure and data flows are designed with **maximum transparency, self
85
84
  │ │ └── auditCoverage.test.js # Warns about untested source modules
86
85
  │ └── unit/ # Vitest unit tests
87
86
  ├── _redirects # Netlify redirect rules
88
- └── package.json # Project manifest (scripts, deps, etc.)
87
+ ├── netlify.toml # Netlify configuration
88
+ ├── package.json # Project manifest (scripts, deps, etc.)
89
+ └── ...
89
90
  ```
90
91
 
91
92
   
@@ -340,7 +341,7 @@ You can optionally import unregisterServiceWorker() in a debug menu or settings
340
341
 
341
342
  ## 📣 CSP Report Handler
342
343
 
343
- To receive and inspect CSP violation reports in development or production, the repo includes a Netlify-compatible function at:
344
+ To receive and inspect CSP violation reports in development or production, the repo includes a Netlify-compatible [Edge Function](https://docs.netlify.com/edge-functions/overview/) at:
344
345
 
345
346
  ```bash
346
347
  netlify/edge-functions/csp-report.js
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "sideEffects": [
5
5
  "./.netlify/shims.js"
6
6
  ],
7
- "version": "1.9.0",
7
+ "version": "1.9.1",
8
8
  "description": "Locking Down Networks, Unlocking Confidence | Security, Networking, Privacy — Network Pro Strategies",
9
9
  "keywords": [
10
10
  "advisory",
@@ -33,7 +33,7 @@ describe("sanitizeHtml", () => {
33
33
  it("removes dangerous attributes like onerror", async () => {
34
34
  const dirty = `<img src="x" onerror="alert(1)">`;
35
35
  const clean = await sanitizeHtml(dirty);
36
- expect(clean).toBe('<img src="x">');
36
+ expect(clean).toBe("<img>");
37
37
  });
38
38
 
39
39
  it("keeps valid external links", async () => {