@stll/anonymize 2.7.5 → 2.7.8
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/dist/native.d.mts
CHANGED
|
@@ -170,6 +170,17 @@ type NativeLegalFormData = {
|
|
|
170
170
|
institutional_complement_connectors: string[];
|
|
171
171
|
institutional_generic_words: string[];
|
|
172
172
|
institutional_prefix_generic_words: string[];
|
|
173
|
+
lowercase_bridge: NativeLowercaseBridge;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Whether the legal-form name walk may cross arbitrary lowercase words once a
|
|
177
|
+
* capitalized word is in the span (`open`), or only a closed connector set
|
|
178
|
+
* (`closed`).
|
|
179
|
+
*/
|
|
180
|
+
type NativeLowercaseBridge = {
|
|
181
|
+
policy: "open" | "closed";
|
|
182
|
+
/** Connector words admitted between capitalized name words (`closed`). */
|
|
183
|
+
words: string[];
|
|
173
184
|
};
|
|
174
185
|
type NativeDateMonthData = Record<string, string[]>;
|
|
175
186
|
type NativeYearWordData = Record<string, string[]>;
|
|
@@ -188,10 +199,15 @@ type NativeMonetaryData = {
|
|
|
188
199
|
written_amount_patterns: Array<{
|
|
189
200
|
keywords: string[];
|
|
190
201
|
}>;
|
|
202
|
+
number_words: Array<{
|
|
203
|
+
words: string[];
|
|
204
|
+
joiners: string[];
|
|
205
|
+
}>;
|
|
191
206
|
magnitude_suffixes: Array<{
|
|
192
207
|
words: string[];
|
|
193
208
|
abbreviations_case_insensitive: string[];
|
|
194
209
|
abbreviations_case_sensitive: string[];
|
|
210
|
+
abbreviations_attached: string[];
|
|
195
211
|
}>;
|
|
196
212
|
share_quantity_terms: Array<{
|
|
197
213
|
modifiers: string[];
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/anonymize",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.8",
|
|
4
4
|
"description": "Deterministic PII detection and anonymization with regex, deny lists, and coreference resolution",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anonymization",
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"smoke:wasm": "node scripts/smoke-wasm.mjs",
|
|
93
93
|
"smoke:wasm-package": "node scripts/smoke-wasm-package.mjs",
|
|
94
94
|
"smoke:wasm-runtimes": "node scripts/smoke-wasm-runtimes.mjs",
|
|
95
|
+
"smoke:wasm-compiled": "node scripts/smoke-wasm-compiled.mjs",
|
|
95
96
|
"smoke:wasm-browser": "node scripts/smoke-wasm-browser.mjs",
|
|
96
97
|
"format": "oxfmt ."
|
|
97
98
|
},
|
|
@@ -104,22 +105,22 @@
|
|
|
104
105
|
}
|
|
105
106
|
},
|
|
106
107
|
"optionalDependencies": {
|
|
107
|
-
"@stll/anonymize-wasm": "2.7.
|
|
108
|
-
"@stll/anonymize-darwin-arm64": "2.7.
|
|
109
|
-
"@stll/anonymize-darwin-x64": "2.7.
|
|
110
|
-
"@stll/anonymize-linux-arm64-gnu": "2.7.
|
|
111
|
-
"@stll/anonymize-linux-x64-gnu": "2.7.
|
|
112
|
-
"@stll/anonymize-win32-x64-msvc": "2.7.
|
|
108
|
+
"@stll/anonymize-wasm": "2.7.8",
|
|
109
|
+
"@stll/anonymize-darwin-arm64": "2.7.8",
|
|
110
|
+
"@stll/anonymize-darwin-x64": "2.7.8",
|
|
111
|
+
"@stll/anonymize-linux-arm64-gnu": "2.7.8",
|
|
112
|
+
"@stll/anonymize-linux-x64-gnu": "2.7.8",
|
|
113
|
+
"@stll/anonymize-win32-x64-msvc": "2.7.8"
|
|
113
114
|
},
|
|
114
115
|
"devDependencies": {
|
|
115
|
-
"@napi-rs/cli": "^3.
|
|
116
|
+
"@napi-rs/cli": "^3.8.5",
|
|
116
117
|
"@stll/anonymize-data": "workspace:*",
|
|
117
118
|
"bun-types": "^1.3.14",
|
|
118
119
|
"fast-check": "^4.9.0",
|
|
119
120
|
"fflate": "^0.8.3",
|
|
120
|
-
"puppeteer-core": "25.
|
|
121
|
-
"tsdown": "0.22.
|
|
121
|
+
"puppeteer-core": "25.5.0",
|
|
122
|
+
"tsdown": "0.22.14",
|
|
122
123
|
"typescript": "7.0.2",
|
|
123
|
-
"vite": "^8.1
|
|
124
|
+
"vite": "^8.2.1"
|
|
124
125
|
}
|
|
125
126
|
}
|