@jini-ai/diagnostics 0.6.22 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @jini-ai/diagnostics
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [873f10c]
8
+ - @jini-ai/core@0.7.1
9
+
10
+ ## 0.7.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [8fe045b]
15
+ - Updated dependencies [41ff2ff]
16
+ - Updated dependencies [a266ba8]
17
+ - Updated dependencies [27063ef]
18
+ - Updated dependencies [6ab1d81]
19
+ - Updated dependencies [699b478]
20
+ - Updated dependencies [39cf677]
21
+ - @jini-ai/core@0.7.0
22
+
3
23
  ## 0.6.22
4
24
 
5
25
  - Secret scrubbing: scheme names with no value are no longer treated as credentials; multi-word and prefixed labels are covered, Markdown code boundaries are kept.
@@ -73,8 +73,11 @@ const REDACTION_RULES = [
73
73
  // review): a password that was never percent-encoded — `postgres://u:p@ss4@host/db` — otherwise
74
74
  // matched only up to its FIRST `@`, leaving the tail (`ss4`) of the password in the output.
75
75
  // `?` is excluded so a query string's own `@` cannot drag the match past the authority.
76
- pattern: /\b([a-z][a-z0-9+.-]*:\/\/)(?!\[REDACTED)[^\s/@:]+:[^\s/?]+@/gi,
77
- replacement: ({ match: m }) => `${m[1]}[REDACTED:url_credentials]@`,
76
+ // Find the delimiter before checking the original scheme grammar. Starting at each word
77
+ // boundary rescans long dashed runs quadratically; delimiter-first checks disjoint runs once.
78
+ // The scheme stays outside the replacement, including suffixes after malformed prefixes.
79
+ pattern: /:\/\/(?<=\b[a-z][a-z0-9+.-]*:\/\/)(?!\[REDACTED)[^\s/@:]+:[^\s/?]+@/gi,
80
+ replacement: () => "://[REDACTED:url_credentials]@",
78
81
  },
79
82
  ...REUSED_CREDENTIAL_RULES,
80
83
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/diagnostics",
3
- "version": "0.6.22",
3
+ "version": "0.7.1",
4
4
  "description": "Diagnostics-bundle tooling: JSON/text secret redaction, log-source collection, manifest building, and zip packaging for support exports.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -82,13 +82,13 @@
82
82
  "devDependencies": {
83
83
  "@vitest/coverage-v8": "^2.1.9",
84
84
  "jszip": "^3.10.1",
85
- "@jini-ai/core": "^0.6.22",
86
- "@jini-ai/analytics": "^0.6.22"
85
+ "@jini-ai/analytics": "^0.7.1",
86
+ "@jini-ai/core": "^0.7.1"
87
87
  },
88
88
  "dependencies": {
89
89
  "js-tokens": "^9.0.1",
90
90
  "jszip": "^3.10.1",
91
- "@jini-ai/core": "^0.6.22"
91
+ "@jini-ai/core": "^0.7.1"
92
92
  },
93
93
  "scripts": {
94
94
  "build": "tsc -p tsconfig.json",