@budiauktioner/buildi-primitives 0.1.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.
- package/CHANGELOG.md +51 -0
- package/LICENSE +21 -0
- package/README.md +253 -0
- package/THIRD_PARTY_NOTICES.md +52 -0
- package/dist/banking/index.cjs +6491 -0
- package/dist/banking/index.cjs.map +1 -0
- package/dist/banking/index.d.cts +58 -0
- package/dist/banking/index.d.ts +58 -0
- package/dist/banking/index.js +6464 -0
- package/dist/banking/index.js.map +1 -0
- package/dist/contact/index.cjs +6678 -0
- package/dist/contact/index.cjs.map +1 -0
- package/dist/contact/index.d.cts +709 -0
- package/dist/contact/index.d.ts +709 -0
- package/dist/contact/index.js +6586 -0
- package/dist/contact/index.js.map +1 -0
- package/dist/country-BhD51LDL.d.cts +433 -0
- package/dist/country-p0n0EVQ9.d.ts +433 -0
- package/dist/finance/index.cjs +3592 -0
- package/dist/finance/index.cjs.map +1 -0
- package/dist/finance/index.d.cts +83 -0
- package/dist/finance/index.d.ts +83 -0
- package/dist/finance/index.js +3584 -0
- package/dist/finance/index.js.map +1 -0
- package/dist/geography/index.cjs +4227 -0
- package/dist/geography/index.cjs.map +1 -0
- package/dist/geography/index.d.cts +34 -0
- package/dist/geography/index.d.ts +34 -0
- package/dist/geography/index.js +4202 -0
- package/dist/geography/index.js.map +1 -0
- package/dist/index.cjs +14087 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +75 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +13868 -0
- package/dist/index.js.map +1 -0
- package/dist/isin-EeVPpNWu.d.ts +39 -0
- package/dist/isin-ZlQLBVm8.d.cts +39 -0
- package/dist/organization/index.cjs +2376 -0
- package/dist/organization/index.cjs.map +1 -0
- package/dist/organization/index.d.cts +117 -0
- package/dist/organization/index.d.ts +117 -0
- package/dist/organization/index.js +2346 -0
- package/dist/organization/index.js.map +1 -0
- package/dist/person/index.cjs +1144 -0
- package/dist/person/index.cjs.map +1 -0
- package/dist/person/index.d.cts +60 -0
- package/dist/person/index.d.ts +60 -0
- package/dist/person/index.js +1125 -0
- package/dist/person/index.js.map +1 -0
- package/dist/person-full-name-Cmc9Ynuc.d.cts +82 -0
- package/dist/person-full-name-D6Hbsab6.d.ts +82 -0
- package/dist/phone-number-C24--ggy.d.ts +139 -0
- package/dist/phone-number-DZ-YxCQQ.d.cts +139 -0
- package/dist/property/index.cjs +487 -0
- package/dist/property/index.cjs.map +1 -0
- package/dist/property/index.d.cts +56 -0
- package/dist/property/index.d.ts +56 -0
- package/dist/property/index.js +480 -0
- package/dist/property/index.js.map +1 -0
- package/dist/sample-data/index.cjs +12310 -0
- package/dist/sample-data/index.cjs.map +1 -0
- package/dist/sample-data/index.d.cts +260 -0
- package/dist/sample-data/index.d.ts +260 -0
- package/dist/sample-data/index.js +12302 -0
- package/dist/sample-data/index.js.map +1 -0
- package/dist/swedish-address-DNC3ftRF.d.cts +297 -0
- package/dist/swedish-address-GMzjqgxb.d.ts +297 -0
- package/dist/swedish-bank-account-holder-name-BFJ8h1aO.d.cts +45 -0
- package/dist/swedish-bank-account-holder-name-CAAru07F.d.ts +45 -0
- package/dist/swedish-municipality-DlUS7g7h.d.cts +87 -0
- package/dist/swedish-municipality-nDRHYRAd.d.ts +87 -0
- package/dist/swedish-organization-name-D7NvERxA.d.cts +33 -0
- package/dist/swedish-organization-name-rR0Q836C.d.ts +33 -0
- package/dist/swedish-organization-number-Bcj7V_lh.d.cts +130 -0
- package/dist/swedish-organization-number-DM8dpXwR.d.ts +130 -0
- package/dist/swedish-organization-type-CZOdETwG.d.cts +29 -0
- package/dist/swedish-organization-type-CZOdETwG.d.ts +29 -0
- package/dist/swedish-personal-identity-number-BiIg4io3.d.ts +149 -0
- package/dist/swedish-personal-identity-number-Cp9Coz55.d.cts +149 -0
- package/dist/swedish-property-designation-BM-gdd9x.d.ts +46 -0
- package/dist/swedish-property-designation-BaHXufqV.d.cts +46 -0
- package/dist/swedish-sni-code-Ccsswpni.d.ts +53 -0
- package/dist/swedish-sni-code-CuJFyM6l.d.cts +53 -0
- package/dist/swedish-swish-number-CL6Gx_h3.d.cts +397 -0
- package/dist/swedish-swish-number-DDG3mNDg.d.ts +397 -0
- package/dist/text-candidate-qg2bD9PY.d.cts +110 -0
- package/dist/text-candidate-qg2bD9PY.d.ts +110 -0
- package/dist/text-scanning/index.cjs +10414 -0
- package/dist/text-scanning/index.cjs.map +1 -0
- package/dist/text-scanning/index.d.cts +153 -0
- package/dist/text-scanning/index.d.ts +153 -0
- package/dist/text-scanning/index.js +10406 -0
- package/dist/text-scanning/index.js.map +1 -0
- package/dist/validation/index.cjs +83 -0
- package/dist/validation/index.cjs.map +1 -0
- package/dist/validation/index.d.cts +63 -0
- package/dist/validation/index.d.ts +63 -0
- package/dist/validation/index.js +79 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/web/index.cjs +3994 -0
- package/dist/web/index.cjs.map +1 -0
- package/dist/web/index.d.cts +203 -0
- package/dist/web/index.d.ts +203 -0
- package/dist/web/index.js +3987 -0
- package/dist/web/index.js.map +1 -0
- package/package.json +211 -0
package/package.json
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@budiauktioner/buildi-primitives",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Swedish, EU and international value-object primitives — validation, normalization, masking, and text scanning. TypeScript port of Buildi.Primitives (.NET).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Budi Auktioner",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"./dist/index.js",
|
|
10
|
+
"./dist/index.cjs",
|
|
11
|
+
"./dist/contact/index.js",
|
|
12
|
+
"./dist/contact/index.cjs",
|
|
13
|
+
"./dist/sample-data/index.js",
|
|
14
|
+
"./dist/sample-data/index.cjs",
|
|
15
|
+
"./dist/text-scanning/index.js",
|
|
16
|
+
"./dist/text-scanning/index.cjs"
|
|
17
|
+
],
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"main": "./dist/index.cjs",
|
|
20
|
+
"module": "./dist/index.js",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"THIRD_PARTY_NOTICES.md",
|
|
26
|
+
"CHANGELOG.md"
|
|
27
|
+
],
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=20.10"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"packageManager": "pnpm@9.15.0",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/BudiAuktioner/buildi-primitives.git"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/BudiAuktioner/buildi-primitives#readme",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/BudiAuktioner/buildi-primitives/issues"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"swedish",
|
|
45
|
+
"sweden",
|
|
46
|
+
"eu",
|
|
47
|
+
"iso",
|
|
48
|
+
"validation",
|
|
49
|
+
"normalization",
|
|
50
|
+
"primitives",
|
|
51
|
+
"value-object",
|
|
52
|
+
"personnummer",
|
|
53
|
+
"organisationsnummer",
|
|
54
|
+
"iban",
|
|
55
|
+
"vat",
|
|
56
|
+
"address",
|
|
57
|
+
"phone",
|
|
58
|
+
"country",
|
|
59
|
+
"language"
|
|
60
|
+
],
|
|
61
|
+
"exports": {
|
|
62
|
+
".": {
|
|
63
|
+
"import": {
|
|
64
|
+
"types": "./dist/index.d.ts",
|
|
65
|
+
"default": "./dist/index.js"
|
|
66
|
+
},
|
|
67
|
+
"require": {
|
|
68
|
+
"types": "./dist/index.d.cts",
|
|
69
|
+
"default": "./dist/index.cjs"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"./contact": {
|
|
73
|
+
"import": {
|
|
74
|
+
"types": "./dist/contact/index.d.ts",
|
|
75
|
+
"default": "./dist/contact/index.js"
|
|
76
|
+
},
|
|
77
|
+
"require": {
|
|
78
|
+
"types": "./dist/contact/index.d.cts",
|
|
79
|
+
"default": "./dist/contact/index.cjs"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"./person": {
|
|
83
|
+
"import": {
|
|
84
|
+
"types": "./dist/person/index.d.ts",
|
|
85
|
+
"default": "./dist/person/index.js"
|
|
86
|
+
},
|
|
87
|
+
"require": {
|
|
88
|
+
"types": "./dist/person/index.d.cts",
|
|
89
|
+
"default": "./dist/person/index.cjs"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"./organization": {
|
|
93
|
+
"import": {
|
|
94
|
+
"types": "./dist/organization/index.d.ts",
|
|
95
|
+
"default": "./dist/organization/index.js"
|
|
96
|
+
},
|
|
97
|
+
"require": {
|
|
98
|
+
"types": "./dist/organization/index.d.cts",
|
|
99
|
+
"default": "./dist/organization/index.cjs"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"./geography": {
|
|
103
|
+
"import": {
|
|
104
|
+
"types": "./dist/geography/index.d.ts",
|
|
105
|
+
"default": "./dist/geography/index.js"
|
|
106
|
+
},
|
|
107
|
+
"require": {
|
|
108
|
+
"types": "./dist/geography/index.d.cts",
|
|
109
|
+
"default": "./dist/geography/index.cjs"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"./validation": {
|
|
113
|
+
"import": {
|
|
114
|
+
"types": "./dist/validation/index.d.ts",
|
|
115
|
+
"default": "./dist/validation/index.js"
|
|
116
|
+
},
|
|
117
|
+
"require": {
|
|
118
|
+
"types": "./dist/validation/index.d.cts",
|
|
119
|
+
"default": "./dist/validation/index.cjs"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"./text-scanning": {
|
|
123
|
+
"import": {
|
|
124
|
+
"types": "./dist/text-scanning/index.d.ts",
|
|
125
|
+
"default": "./dist/text-scanning/index.js"
|
|
126
|
+
},
|
|
127
|
+
"require": {
|
|
128
|
+
"types": "./dist/text-scanning/index.d.cts",
|
|
129
|
+
"default": "./dist/text-scanning/index.cjs"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"./sample-data": {
|
|
133
|
+
"import": {
|
|
134
|
+
"types": "./dist/sample-data/index.d.ts",
|
|
135
|
+
"default": "./dist/sample-data/index.js"
|
|
136
|
+
},
|
|
137
|
+
"require": {
|
|
138
|
+
"types": "./dist/sample-data/index.d.cts",
|
|
139
|
+
"default": "./dist/sample-data/index.cjs"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"./web": {
|
|
143
|
+
"import": {
|
|
144
|
+
"types": "./dist/web/index.d.ts",
|
|
145
|
+
"default": "./dist/web/index.js"
|
|
146
|
+
},
|
|
147
|
+
"require": {
|
|
148
|
+
"types": "./dist/web/index.d.cts",
|
|
149
|
+
"default": "./dist/web/index.cjs"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"./finance": {
|
|
153
|
+
"import": {
|
|
154
|
+
"types": "./dist/finance/index.d.ts",
|
|
155
|
+
"default": "./dist/finance/index.js"
|
|
156
|
+
},
|
|
157
|
+
"require": {
|
|
158
|
+
"types": "./dist/finance/index.d.cts",
|
|
159
|
+
"default": "./dist/finance/index.cjs"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"./property": {
|
|
163
|
+
"import": {
|
|
164
|
+
"types": "./dist/property/index.d.ts",
|
|
165
|
+
"default": "./dist/property/index.js"
|
|
166
|
+
},
|
|
167
|
+
"require": {
|
|
168
|
+
"types": "./dist/property/index.d.cts",
|
|
169
|
+
"default": "./dist/property/index.cjs"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"./banking": {
|
|
173
|
+
"import": {
|
|
174
|
+
"types": "./dist/banking/index.d.ts",
|
|
175
|
+
"default": "./dist/banking/index.js"
|
|
176
|
+
},
|
|
177
|
+
"require": {
|
|
178
|
+
"types": "./dist/banking/index.d.cts",
|
|
179
|
+
"default": "./dist/banking/index.cjs"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"./package.json": "./package.json"
|
|
183
|
+
},
|
|
184
|
+
"scripts": {
|
|
185
|
+
"build": "tsup",
|
|
186
|
+
"typecheck": "tsc --noEmit",
|
|
187
|
+
"lint": "eslint .",
|
|
188
|
+
"format": "prettier --write .",
|
|
189
|
+
"format:check": "prettier --check .",
|
|
190
|
+
"test": "vitest run",
|
|
191
|
+
"test:watch": "vitest",
|
|
192
|
+
"test:coverage": "vitest run --coverage",
|
|
193
|
+
"release": "pnpm build && pnpm publish --access public",
|
|
194
|
+
"publint": "publint",
|
|
195
|
+
"attw": "attw --pack . --profile node16"
|
|
196
|
+
},
|
|
197
|
+
"devDependencies": {
|
|
198
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
199
|
+
"@eslint/js": "^9.18.0",
|
|
200
|
+
"@types/node": "^22.10.7",
|
|
201
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
202
|
+
"eslint": "^9.18.0",
|
|
203
|
+
"prettier": "^3.4.2",
|
|
204
|
+
"publint": "^0.3.2",
|
|
205
|
+
"tsup": "^8.3.5",
|
|
206
|
+
"tsx": "^4.19.2",
|
|
207
|
+
"typescript": "^5.7.3",
|
|
208
|
+
"typescript-eslint": "^8.21.0",
|
|
209
|
+
"vitest": "^2.1.8"
|
|
210
|
+
}
|
|
211
|
+
}
|