@stll/anonymize-wasm 2.7.6 → 2.8.0

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.
Binary file
package/dist/wasm.d.mts CHANGED
@@ -171,6 +171,17 @@ type NativeLegalFormData = {
171
171
  institutional_complement_connectors: string[];
172
172
  institutional_generic_words: string[];
173
173
  institutional_prefix_generic_words: string[];
174
+ lowercase_bridge: NativeLowercaseBridge;
175
+ };
176
+ /**
177
+ * Whether the legal-form name walk may cross arbitrary lowercase words once a
178
+ * capitalized word is in the span (`open`), or only a closed connector set
179
+ * (`closed`).
180
+ */
181
+ type NativeLowercaseBridge = {
182
+ policy: "open" | "closed";
183
+ /** Connector words admitted between capitalized name words (`closed`). */
184
+ words: string[];
174
185
  };
175
186
  type NativeDateMonthData = Record<string, string[]>;
176
187
  type NativeYearWordData = Record<string, string[]>;
@@ -189,10 +200,15 @@ type NativeMonetaryData = {
189
200
  written_amount_patterns: Array<{
190
201
  keywords: string[];
191
202
  }>;
203
+ number_words: Array<{
204
+ words: string[];
205
+ joiners: string[];
206
+ }>;
192
207
  magnitude_suffixes: Array<{
193
208
  words: string[];
194
209
  abbreviations_case_insensitive: string[];
195
210
  abbreviations_case_sensitive: string[];
211
+ abbreviations_attached: string[];
196
212
  }>;
197
213
  share_quantity_terms: Array<{
198
214
  modifiers: string[];
@@ -281,11 +297,13 @@ type NativeHotwordRuleData = {
281
297
  };
282
298
  type NativeSignatureData = {
283
299
  labels: string[];
300
+ person_list_labels: string[];
284
301
  witness_phrases: string[];
285
302
  name_particles: string[];
286
303
  post_nominal_suffixes: string[];
287
304
  organization_suffixes: string[];
288
305
  form_field_labels: string[];
306
+ contact_field_labels: string[];
289
307
  signature_stamp_phrases: string[];
290
308
  image_stub_prefixes: string[];
291
309
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/anonymize-wasm",
3
- "version": "2.7.6",
3
+ "version": "2.8.0",
4
4
  "description": "PII detection and anonymization for browsers via WebAssembly. Same native SDK API as @stll/anonymize.",
5
5
  "keywords": [
6
6
  "anonymization",