@networkpro/web 1.21.0 → 1.21.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/.editorconfig CHANGED
@@ -1,4 +1,3 @@
1
- # ==========================================================================
2
1
  # .editorconfig
3
2
  #
4
3
  # Copyright © 2025 Network Pro Strategies (Network Pro™)
@@ -8,7 +7,6 @@
8
7
  # EditorConfig helps developers define and maintain consistent
9
8
  # coding styles between different editors and IDEs
10
9
  # See http://editorconfig.org/ for full details
11
- # ==========================================================================
12
10
 
13
11
  ; top-most EditorConfig file
14
12
  root = true
@@ -36,7 +34,7 @@ indent_size = 2
36
34
  indent_size = 2
37
35
 
38
36
  ; JavaScript files -
39
- [*.{mjs,js,ts}]
37
+ [*.{mjs,cjs,js,ts}]
40
38
  curly_bracket_next_line = true
41
39
  quote_type = single
42
40
 
package/.env.template CHANGED
@@ -1,10 +1,8 @@
1
- # ==========================================================================
2
1
  # .env.template
3
2
  #
4
3
  # Copyright © 2025 Network Pro Strategies (Network Pro™)
5
4
  # Environment template for Network Pro
6
5
  # Rename to `.env` (or `.env.local`) and customize as needed
7
- # ==========================================================================
8
6
 
9
7
  # Custom environment mode for scripts and tooling
10
8
  # One of: dev, test, ci, preview, prod
package/.gitattributes CHANGED
@@ -1,4 +1,3 @@
1
- # ==========================================================================
2
1
  # .gitattributes
3
2
  #
4
3
  # Copyright © 2025 Network Pro Strategies (Network Pro™)
@@ -14,7 +13,6 @@
14
13
  # binary These files are binary and should be left untouched.
15
14
  #
16
15
  # Note that binary is a macro for -text -diff.
17
- # ==========================================================================
18
16
 
19
17
  ## AUTO-DETECT
20
18
  ## Handle line endings automatically for files detected as
package/.markdownlint.mjs CHANGED
@@ -6,7 +6,7 @@ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
6
6
  This file is part of Network Pro.
7
7
  ========================================================================== */
8
8
 
9
- import noSmartQuotes from './.md-smart-quotes.js'; // adjust path as needed
9
+ import noSmartQuotes from './.md-smart-quotes.js';
10
10
 
11
11
  export default {
12
12
  // Enable all default rules, then override below
package/.prettierignore CHANGED
@@ -1,10 +1,8 @@
1
- # ==========================================================================
2
1
  # .prettierignore
3
2
  #
4
3
  # Copyright © 2025 Network Pro Strategies (Network Pro™)
5
4
  # SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
6
5
  # This file is part of Network Pro.
7
- # ==========================================================================
8
6
 
9
7
  # Custom ignores
10
8
  .markdownlint.jsonc
package/.stylelintignore CHANGED
@@ -1,10 +1,8 @@
1
- # ==========================================================================
2
1
  # .stylelintignore
3
2
  #
4
3
  # Copyright © 2025 Network Pro Strategies (Network Pro™)
5
4
  # SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
6
5
  # This file is part of Network Pro.
7
- # ==========================================================================
8
6
 
9
7
  # Report files and test results
10
8
  playwright-report
package/CHANGELOG.md CHANGED
@@ -22,6 +22,30 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
22
22
 
23
23
  ---
24
24
 
25
+ ## [1.21.1] - 2025-10-17
26
+
27
+ ### Added
28
+
29
+ - Introduced universal relay mock handler at `src/routes/relay-[slug]/[...catchall]/+server.js` to consolidate test-only endpoints such as `flags`, `config`, and `config.js`.
30
+ - Added fallback support for `GET`, `HEAD`, and `OPTIONS` methods within the catchall relay handler.
31
+
32
+ ### Changed
33
+
34
+ - Bumped project version to `v1.21.1`.
35
+ - Standardized header in various files:
36
+ - `.editorconfig`
37
+ - `.env.template`
38
+ - `.gitattributes`
39
+ - `.gitignore`
40
+ - `.prettierignore`
41
+ - `.stylelintignore`
42
+
43
+ ### Removed
44
+
45
+ - Deleted unneeded comments in `stylelint.config.js` and `.markdownlint.mjs`.
46
+
47
+ ---
48
+
25
49
  ## [1.21.0] - 2025-10-17
26
50
 
27
51
  ### Added
@@ -1145,7 +1169,8 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
1145
1169
 
1146
1170
  <!-- Link references -->
1147
1171
 
1148
- [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.21.0...HEAD
1172
+ [Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.21.1...HEAD
1173
+ [1.21.1]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.21.1
1149
1174
  [1.21.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.21.0
1150
1175
  [1.20.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.20.0
1151
1176
  [1.19.0]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.19.0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@networkpro/web",
3
3
  "private": false,
4
- "version": "1.21.0",
4
+ "version": "1.21.1",
5
5
  "description": "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies",
6
6
  "keywords": [
7
7
  "advisory",
@@ -0,0 +1,68 @@
1
+ /* ==========================================================================
2
+ src/routes/relay-[slug]/[...catchall]/+server.js
3
+
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
5
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
6
+ This file is part of Network Pro.
7
+ ========================================================================== */
8
+
9
+ /**
10
+ * Universal mock for PostHog Proxy Handler
11
+ *
12
+ * @file +server.js
13
+ * @description Mocks GET, HEAD, and OPTIONS
14
+ * @module src/routes/relay-[slug]/[...catchall]
15
+ * @author Scott Lopez
16
+ * @updated 2025-10-17
17
+ */
18
+
19
+ /** @typedef {import('@sveltejs/kit').RequestHandler} Handler */
20
+
21
+ /** @type {Handler} */
22
+ export function GET({ url }) {
23
+ const path = url.pathname;
24
+
25
+ // Match known mock paths
26
+ if (path.includes('/flags')) {
27
+ return new Response(
28
+ JSON.stringify({
29
+ feature_flags: [],
30
+ groups: {},
31
+ distinct_id: 'mock-user',
32
+ }),
33
+ {
34
+ status: 200,
35
+ headers: { 'Content-Type': 'application/json', 'X-Mock': 'true' },
36
+ },
37
+ );
38
+ }
39
+
40
+ if (path.includes('/config') || path.includes('/config.js')) {
41
+ return new Response('{}', {
42
+ status: 200,
43
+ headers: { 'Content-Type': 'application/json', 'X-Mock': 'true' },
44
+ });
45
+ }
46
+
47
+ // Log unexpected paths during tests
48
+ console.warn('[RELAY MOCK] Unhandled path:', path);
49
+
50
+ // Default 404 response
51
+ return new Response('Not Found', { status: 404 });
52
+ }
53
+
54
+ /** @type {Handler} */
55
+ export function HEAD() {
56
+ return new Response(null, { status: 200 });
57
+ }
58
+
59
+ /** @type {Handler} */
60
+ export function OPTIONS() {
61
+ return new Response(null, {
62
+ status: 204,
63
+ headers: {
64
+ Allow: 'GET, HEAD, OPTIONS',
65
+ 'Access-Control-Allow-Origin': '*',
66
+ },
67
+ });
68
+ }
@@ -56,12 +56,6 @@ export default {
56
56
  "Class names must not start with 'fa-' (FontAwesome classes are ignored)",
57
57
  },
58
58
  ],
59
- // Disable unnecessarily strict rules
60
- //'media-type-no-deprecated': null,
61
- //'property-no-deprecated': null,
62
- //'nesting-selector-no-missing-scoping-root': null,
63
- //'no-invalid-position-at-import-rule': null,
64
- //'no-invalid-position-declaration': null,
65
59
  'order/properties-order': [
66
60
  [
67
61
  {