@stll/anonymize 1.4.7 → 1.4.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/index.d.mts +1 -1
- package/dist/index.mjs +37 -4
- package/dist/index.mjs.map +1 -1
- package/dist/triggers.global.mjs +73 -28
- package/package.json +4 -4
package/dist/triggers.global.mjs
CHANGED
|
@@ -1,33 +1,78 @@
|
|
|
1
1
|
//#region src/data/triggers.global.json
|
|
2
|
-
var triggers_global_default = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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.
|
|
3
|
+
"version": "1.4.8",
|
|
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": "^
|
|
42
|
-
"@stll/text-search": "^1.0.
|
|
41
|
+
"@stll/stdnum": "^2.0.1",
|
|
42
|
+
"@stll/text-search": "^1.0.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@stll/anonymize-data": "^0.0.6"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@stll/anonymize-data": "workspace:*",
|
|
54
|
-
"@stll/text-search-wasm": "^1.0.
|
|
54
|
+
"@stll/text-search-wasm": "^1.0.5",
|
|
55
55
|
"bun-types": "^1.3.14",
|
|
56
56
|
"tsdown": "^0.22.0",
|
|
57
57
|
"typescript": "^6.0.3",
|