@stll/anonymize-wasm 2.7.6 → 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.
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/anonymize-wasm",
3
- "version": "2.7.6",
3
+ "version": "2.7.8",
4
4
  "description": "PII detection and anonymization for browsers via WebAssembly. Same native SDK API as @stll/anonymize.",
5
5
  "keywords": [
6
6
  "anonymization",