@link-foundation/sensitive-data-sanitizer 0.17.0 → 0.17.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 +6 -0
- package/package.json +28 -22
- package/src/index.d.ts +1 -5
- package/src/log-bytes.js +1 -1
- package/src/structured.js +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@link-foundation/sensitive-data-sanitizer",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Offline sensitive-text sanitization with credential, multilingual personal-data and scanner union detection",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -77,7 +77,9 @@
|
|
|
77
77
|
"license": "Unlicense",
|
|
78
78
|
"devEngines": {
|
|
79
79
|
"packageManager": {
|
|
80
|
-
"name": "npm"
|
|
80
|
+
"name": "npm",
|
|
81
|
+
"version": ">=12.2.2",
|
|
82
|
+
"onFail": "error"
|
|
81
83
|
}
|
|
82
84
|
},
|
|
83
85
|
"publishConfig": {
|
|
@@ -92,19 +94,23 @@
|
|
|
92
94
|
},
|
|
93
95
|
"devDependencies": {
|
|
94
96
|
"@changesets/cli": "^3.0.3",
|
|
95
|
-
"eslint": "^10.
|
|
97
|
+
"@eslint/js": "^10.0.1",
|
|
98
|
+
"browser-commander": "0.34.1",
|
|
99
|
+
"cmd-shim": "^9.0.2",
|
|
100
|
+
"command-stream": "2.6.0",
|
|
101
|
+
"eslint": "^10.14.0",
|
|
96
102
|
"eslint-config-prettier": "^10.1.8",
|
|
97
|
-
"eslint-plugin-prettier": "^5.5.
|
|
103
|
+
"eslint-plugin-prettier": "^5.5.7",
|
|
98
104
|
"husky": "^9.1.7",
|
|
99
|
-
"jscpd": "^5.4.
|
|
100
|
-
"
|
|
105
|
+
"jscpd": "^5.4.2",
|
|
106
|
+
"lino-arguments": "0.4.0",
|
|
107
|
+
"lint-staged": "^17.6.0",
|
|
101
108
|
"mrz": "^5.0.2",
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"lino-arguments": "0.4.0"
|
|
109
|
+
"playwright": "1.65.0",
|
|
110
|
+
"prettier": "^3.9.10",
|
|
111
|
+
"secretlint": "13.1.0",
|
|
112
|
+
"semver": "^7.8.6",
|
|
113
|
+
"test-anywhere": "^0.9.1"
|
|
108
114
|
},
|
|
109
115
|
"lint-staged": {
|
|
110
116
|
"*.{js,mjs,cjs}": [
|
|
@@ -120,9 +126,9 @@
|
|
|
120
126
|
"pipx run --spec shellcheck-py==0.11.0.1 shellcheck"
|
|
121
127
|
],
|
|
122
128
|
"*.py": [
|
|
123
|
-
"pipx run --spec ruff==0.17.
|
|
124
|
-
"pipx run --spec ruff==0.17.
|
|
125
|
-
"pipx run --spec ruff==0.17.
|
|
129
|
+
"pipx run --spec ruff==0.17.4 ruff check --fix --force-exclude",
|
|
130
|
+
"pipx run --spec ruff==0.17.4 ruff format --force-exclude",
|
|
131
|
+
"pipx run --spec ruff==0.17.4 ruff format --check --force-exclude"
|
|
126
132
|
],
|
|
127
133
|
".husky/*": [
|
|
128
134
|
"pipx run --spec shellcheck-py==0.11.0.1 shellcheck"
|
|
@@ -130,19 +136,19 @@
|
|
|
130
136
|
},
|
|
131
137
|
"dependencies": {
|
|
132
138
|
"@faker-js/faker": "^10.6.0",
|
|
133
|
-
"@secretlint/core": "13.0
|
|
134
|
-
"@secretlint/profiler": "13.0
|
|
135
|
-
"@secretlint/secretlint-rule-preset-recommend": "13.0
|
|
136
|
-
"libphonenumber-js": "1.13.
|
|
137
|
-
"links-notation": "0.
|
|
139
|
+
"@secretlint/core": "13.1.0",
|
|
140
|
+
"@secretlint/profiler": "13.1.0",
|
|
141
|
+
"@secretlint/secretlint-rule-preset-recommend": "13.1.0",
|
|
142
|
+
"libphonenumber-js": "1.13.15",
|
|
143
|
+
"links-notation": "0.31.0",
|
|
138
144
|
"re2-wasm": "1.0.2",
|
|
139
|
-
"re2js": "^2.9.
|
|
145
|
+
"re2js": "^2.9.1",
|
|
140
146
|
"yaml": "^2.9.1"
|
|
141
147
|
},
|
|
142
148
|
"allowScripts": {
|
|
143
149
|
"node-pty": false
|
|
144
150
|
},
|
|
145
151
|
"overrides": {
|
|
146
|
-
"minimatch@>=7 <11": "^11.0.
|
|
152
|
+
"minimatch@>=7 <11": "^11.0.5"
|
|
147
153
|
}
|
|
148
154
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -9,11 +9,7 @@ export interface Finding {
|
|
|
9
9
|
/** Detector confidence, not a cross-engine probability calibration. */
|
|
10
10
|
confidence?: number;
|
|
11
11
|
likelihood?:
|
|
12
|
-
| '
|
|
13
|
-
| 'UNLIKELY'
|
|
14
|
-
| 'POSSIBLE'
|
|
15
|
-
| 'LIKELY'
|
|
16
|
-
| 'VERY_LIKELY';
|
|
12
|
+
'VERY_UNLIKELY' | 'UNLIKELY' | 'POSSIBLE' | 'LIKELY' | 'VERY_LIKELY';
|
|
17
13
|
/** One-based line and UTF-16 column, populated by inspect. */
|
|
18
14
|
line?: number;
|
|
19
15
|
column?: number;
|
package/src/log-bytes.js
CHANGED
|
@@ -13,7 +13,7 @@ export function decodeLogBytes(input) {
|
|
|
13
13
|
} catch {
|
|
14
14
|
const parts = [];
|
|
15
15
|
let start = 0;
|
|
16
|
-
for (let i = 0; i < bytes.length;
|
|
16
|
+
for (let i = 0; i < bytes.length;) {
|
|
17
17
|
const width = sequenceWidth(bytes[i]);
|
|
18
18
|
if (validSequence(bytes, i, width)) {
|
|
19
19
|
i += width;
|
package/src/structured.js
CHANGED
|
@@ -384,7 +384,7 @@ function stringOffsets(raw) {
|
|
|
384
384
|
}
|
|
385
385
|
const starts = [],
|
|
386
386
|
ends = [];
|
|
387
|
-
for (let i = 1; i < raw.length - 1;
|
|
387
|
+
for (let i = 1; i < raw.length - 1;) {
|
|
388
388
|
const start = i;
|
|
389
389
|
i += raw[i] === '\\' ? (raw[i + 1] === 'u' ? 6 : 2) : 1;
|
|
390
390
|
starts.push(start);
|