@stll/anonymize 1.3.0 → 1.4.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.
@@ -64,6 +64,38 @@ var triggers_en_default = [
64
64
  "tax identification number",
65
65
  "tax id"
66
66
  ]
67
+ },
68
+ {
69
+ "id": "en-uk-companies-house",
70
+ "label": "registration number",
71
+ "strategy": { "type": "company-id-value" },
72
+ "triggers": [
73
+ "Companies House",
74
+ "Company No.",
75
+ "Company No",
76
+ "CRN"
77
+ ],
78
+ "extensions": ["add-colon", "add-colon-space"],
79
+ "validations": [{
80
+ "type": "matches-pattern",
81
+ "pattern": "^(?:SC|NI|OC|SO|R|FC|GE|GS|IC|IP|LP|NC|NF|NL|NO|NP|NR|NZ|RC|SA|SF|SI|SL|SP|SR|SZ)?\\d{6,8}$"
82
+ }]
83
+ },
84
+ {
85
+ "id": "en-uk-utr",
86
+ "label": "tax identification number",
87
+ "strategy": { "type": "company-id-value" },
88
+ "triggers": [
89
+ "UTR",
90
+ "Unique Tax Reference",
91
+ "Unique Taxpayer Reference",
92
+ "Self Assessment UTR"
93
+ ],
94
+ "extensions": ["add-colon", "add-colon-space"],
95
+ "validations": [{
96
+ "type": "matches-pattern",
97
+ "pattern": "^\\d{10}$"
98
+ }]
67
99
  }
68
100
  ];
69
101
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stll/anonymize",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
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": {
@@ -8,6 +8,11 @@
8
8
  "types": "./dist/index.d.mts",
9
9
  "import": "./dist/index.mjs",
10
10
  "default": "./dist/index.mjs"
11
+ },
12
+ "./constants": {
13
+ "types": "./dist/constants.d.mts",
14
+ "import": "./dist/constants.mjs",
15
+ "default": "./dist/constants.mjs"
11
16
  }
12
17
  },
13
18
  "types": "dist/index.d.mts",