@stll/anonymize 1.4.7 → 1.4.9

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.
@@ -1,33 +1,78 @@
1
1
  //#region src/data/triggers.global.json
2
- var triggers_global_default = [{
3
- "id": "swift-bic",
4
- "triggers": ["SWIFT", "BIC"],
5
- "label": "bank account number",
6
- "strategy": {
7
- "type": "n-words",
8
- "count": 1
2
+ var triggers_global_default = [
3
+ {
4
+ "id": "swift-bic",
5
+ "triggers": ["SWIFT", "BIC"],
6
+ "label": "bank account number",
7
+ "strategy": {
8
+ "type": "n-words",
9
+ "count": 1
10
+ },
11
+ "extensions": ["add-colon"],
12
+ "validations": [{
13
+ "type": "matches-pattern",
14
+ "pattern": "^[A-Za-z]{4}[A-Za-z]{2}[A-Za-z0-9]{2}(?:[A-Za-z0-9]{3})?$"
15
+ }]
9
16
  },
10
- "extensions": ["add-colon"],
11
- "validations": [{
12
- "type": "matches-pattern",
13
- "pattern": "^[A-Za-z]{4}[A-Za-z]{2}[A-Za-z0-9]{2}(?:[A-Za-z0-9]{3})?$"
14
- }]
15
- }, {
16
- "id": "amount-prefix",
17
- "triggers": [
18
- "ve výši",
19
- "in the amount of",
20
- "in Höhe von",
21
- "d'un montant de",
22
- "w wysokości",
23
- "nell'importo di",
24
- "por un importe de"
25
- ],
26
- "label": "monetary amount",
27
- "strategy": { "type": "to-next-comma" },
28
- "extensions": ["add-colon"],
29
- "validations": [{ "type": "has-digits" }]
30
- }];
17
+ {
18
+ "id": "us-aba-routing",
19
+ "triggers": [
20
+ "ABA",
21
+ "ABA Number",
22
+ "RTN",
23
+ "Routing Number",
24
+ "Routing No.",
25
+ "Routing Transit Number"
26
+ ],
27
+ "label": "bank account number",
28
+ "strategy": {
29
+ "type": "n-words",
30
+ "count": 1
31
+ },
32
+ "extensions": ["add-colon"],
33
+ "validations": [{ "type": "has-digits" }, {
34
+ "type": "valid-id",
35
+ "validator": "us.rtn"
36
+ }]
37
+ },
38
+ {
39
+ "id": "intl-labeled-phone",
40
+ "triggers": [
41
+ "fax",
42
+ "telecopy",
43
+ "telecopier",
44
+ "facsimile",
45
+ "telephone",
46
+ "phone number",
47
+ "contact phone number"
48
+ ],
49
+ "label": "phone number",
50
+ "strategy": {
51
+ "type": "match-pattern",
52
+ "pattern": "(?:\\+\\d{1,3}[\\s.\\-]?)?\\(?\\d{1,4}\\)?(?:[\\s.\\-]\\d{1,4}){2,4}"
53
+ },
54
+ "validations": [{
55
+ "type": "matches-pattern",
56
+ "pattern": "(?:\\d[^\\d]*){6,}"
57
+ }]
58
+ },
59
+ {
60
+ "id": "amount-prefix",
61
+ "triggers": [
62
+ "ve výši",
63
+ "in the amount of",
64
+ "in Höhe von",
65
+ "d'un montant de",
66
+ "w wysokości",
67
+ "nell'importo di",
68
+ "por un importe de"
69
+ ],
70
+ "label": "monetary amount",
71
+ "strategy": { "type": "to-next-comma" },
72
+ "extensions": ["add-colon"],
73
+ "validations": [{ "type": "has-digits" }]
74
+ }
75
+ ];
31
76
  //#endregion
32
77
  export { triggers_global_default as default };
33
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/anonymize",
3
- "version": "1.4.7",
3
+ "version": "1.4.9",
4
4
  "description": "Multi-layer PII detection and anonymization pipeline with regex, NER, deny lists, and coreference resolution",
5
5
  "type": "module",
6
6
  "exports": {
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@huggingface/tokenizers": "^0.1.3",
41
- "@stll/stdnum": "^1.0.0",
42
- "@stll/text-search": "^1.0.4"
41
+ "@stll/stdnum": "^2.0.1",
42
+ "@stll/text-search": "^1.0.6"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@stll/anonymize-data": "^0.0.6"
@@ -51,10 +51,10 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@stll/anonymize-data": "workspace:*",
54
- "@stll/text-search-wasm": "^1.0.4",
54
+ "@stll/text-search-wasm": "^1.0.6",
55
55
  "bun-types": "^1.3.14",
56
56
  "tsdown": "^0.22.0",
57
57
  "typescript": "^6.0.3",
58
- "vite": "^8.0.14"
58
+ "vite": "^8.0.15"
59
59
  }
60
60
  }