pakdatakit 2.2.0 → 2.2.1
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/DATA.md +5 -4
- package/README.md +15 -12
- package/dist/address.cjs +4 -4
- package/dist/address.d.cts +2 -1
- package/dist/address.d.ts +2 -1
- package/dist/address.js +2 -2
- package/dist/{chunk-SBS2GHM3.cjs → chunk-34CJGJ67.cjs} +7 -5
- package/dist/{chunk-CLL6VDPO.cjs → chunk-47P7HILD.cjs} +4 -4
- package/dist/{chunk-J272OMDL.js → chunk-E6DT2DWQ.js} +7 -5
- package/dist/{chunk-I664KOWP.js → chunk-QKH7W2CC.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/cnic.d.cts +2 -1
- package/dist/cnic.d.ts +2 -1
- package/dist/geo.cjs +6 -6
- package/dist/geo.js +1 -1
- package/dist/hijri.d.cts +2 -1
- package/dist/hijri.d.ts +2 -1
- package/dist/holidays.d.cts +2 -1
- package/dist/holidays.d.ts +2 -1
- package/dist/iban.d.cts +2 -1
- package/dist/iban.d.ts +2 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/input.d.cts +2 -1
- package/dist/input.d.ts +2 -1
- package/dist/networks.d.cts +2 -1
- package/dist/networks.d.ts +2 -1
- package/dist/numbers.d.cts +2 -1
- package/dist/numbers.d.ts +2 -1
- package/dist/phone.d.cts +2 -1
- package/dist/phone.d.ts +2 -1
- package/dist/raast.d.cts +2 -1
- package/dist/raast.d.ts +2 -1
- package/dist/tax.d.cts +2 -1
- package/dist/tax.d.ts +2 -1
- package/dist/words.d.cts +2 -1
- package/dist/words.d.ts +2 -1
- package/package.json +9 -9
package/DATA.md
CHANGED
|
@@ -5,7 +5,7 @@ PakDataKit's datasets live in `data/` and are generated by
|
|
|
5
5
|
`holidays.json`, which are edited directly). The exported `dataVersion` is the
|
|
6
6
|
date the data was last checked.
|
|
7
7
|
|
|
8
|
-
**Data version: 2026-
|
|
8
|
+
**Data version: 2026-11-07**
|
|
9
9
|
|
|
10
10
|
Official bodies (PTA, NADRA, SBP, Pakistan Post) publish few machine-readable
|
|
11
11
|
lists, so some entries rest on secondary sources. Each section says how sure we
|
|
@@ -64,7 +64,8 @@ Balochistan 41, Gilgit-Baltistan 14, Azad Jammu and Kashmir 10, Islamabad 1.
|
|
|
64
64
|
|
|
65
65
|
- **Khyber Pakhtunkhwa** (APP, January 2026: "increased to 40"): Lower and Upper
|
|
66
66
|
South Waziristan (2022), Central Dir and Allai (January 2023), Paharpur
|
|
67
|
-
(November 2025),
|
|
67
|
+
(November 2025), Bar Swat (January 2026; reported as "Upper Swat" before
|
|
68
|
+
the Board of Revenue notification of 27 January 2026).
|
|
68
69
|
- **Balochistan** (Revenue Department notification, 8 July 2026; Dawn,
|
|
69
70
|
ProPakistani): Quetta split into Quetta East and Quetta West; Dera Bugti
|
|
70
71
|
became South Dera Bugti and Upper Dera Bugti became North Dera Bugti; new
|
|
@@ -75,8 +76,8 @@ Balochistan 41, Gilgit-Baltistan 14, Azad Jammu and Kashmir 10, Islamabad 1.
|
|
|
75
76
|
notification of four more districts was confirmed fake.
|
|
76
77
|
- **Sindh:** proposed Karachi district renames (2024) were not found notified,
|
|
77
78
|
so current names are kept.
|
|
78
|
-
- Former names (Quetta, Dera Bugti, Upper Dera Bugti, South Waziristan
|
|
79
|
-
resolve in `getDistrictProvince`.
|
|
79
|
+
- Former names (Quetta, Dera Bugti, Upper Dera Bugti, South Waziristan, Upper
|
|
80
|
+
Swat) still resolve in `getDistrictProvince`.
|
|
80
81
|
|
|
81
82
|
## Cities (`cities.json`)
|
|
82
83
|
|
package/README.md
CHANGED
|
@@ -43,13 +43,16 @@ Validate CNICs, analyze phone numbers, detect networks, build WhatsApp links, ch
|
|
|
43
43
|
|
|
44
44
|
## 📦 Packages
|
|
45
45
|
|
|
46
|
-
| Package | Install
|
|
47
|
-
| --------------------------------------------------------------------------------- |
|
|
48
|
-
| [`pakdatakit`](https://www.npmjs.com/package/pakdatakit) | `npm install pakdatakit`
|
|
49
|
-
| [`pakdatakit` (Python)](https://github.com/chmuzamil/pakdatakit/tree/main/python) | `pip install pakdatakit`
|
|
50
|
-
| [`pakdatakit-react`](https://github.com/chmuzamil/pakdatakit/tree/main/react) | `npm install pakdatakit-react`
|
|
46
|
+
| Package | Install | For |
|
|
47
|
+
| --------------------------------------------------------------------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------- |
|
|
48
|
+
| [`pakdatakit`](https://www.npmjs.com/package/pakdatakit) | `npm install pakdatakit` | JavaScript and TypeScript (Node, browsers, Bun, Deno) |
|
|
49
|
+
| [`pakdatakit` (Python)](https://github.com/chmuzamil/pakdatakit/tree/main/python) | `pip install pakdatakit` | Python 3.9+, same functions in snake_case, same data |
|
|
50
|
+
| [`pakdatakit-react`](https://github.com/chmuzamil/pakdatakit/tree/main/react) | `npm install pakdatakit-react` | React inputs that format as you type, and a Raast QR component |
|
|
51
|
+
| [`pakdatakit-faker`](https://github.com/chmuzamil/pakdatakit/tree/main/faker) | `npm install -D pakdatakit-faker` | Seeded mock data: CNICs, phones, IBANs, addresses and whole personas that pass every validator |
|
|
52
|
+
| [`pakdatakit` (Dart)](https://github.com/chmuzamil/pakdatakit/tree/main/dart) | `dart pub add pakdatakit` | Dart and Flutter (including web), same functions and data |
|
|
53
|
+
| [`pakdatakit_flutter`](https://github.com/chmuzamil/pakdatakit/tree/main/flutter) | `flutter pub add pakdatakit_flutter` | Flutter input formatters, form fields and a Raast QR widget |
|
|
51
54
|
|
|
52
|
-
The Python
|
|
55
|
+
The Python and Dart packages are checked against the TypeScript library with over 12,000 shared test cases, so all three give the same results.
|
|
53
56
|
|
|
54
57
|
---
|
|
55
58
|
|
|
@@ -739,9 +742,7 @@ parseRaastQr(payload);
|
|
|
739
742
|
createMerchantQr({
|
|
740
743
|
merchantAccount: {
|
|
741
744
|
tag: '28',
|
|
742
|
-
fields: {
|
|
743
|
-
/* sub-fields from your bank */
|
|
744
|
-
},
|
|
745
|
+
fields: {/* sub-fields from your bank */},
|
|
745
746
|
},
|
|
746
747
|
merchantName: 'Aziz General Store',
|
|
747
748
|
city: 'Karachi',
|
|
@@ -963,10 +964,12 @@ const budget = formatLakh(2500000);
|
|
|
963
964
|
- Raast QR codes
|
|
964
965
|
- Public holidays with observed moon-sighting dates
|
|
965
966
|
|
|
966
|
-
###
|
|
967
|
+
### v2.2 ✅
|
|
967
968
|
|
|
968
|
-
-
|
|
969
|
-
-
|
|
969
|
+
- Python package on PyPI, Dart package on pub.dev
|
|
970
|
+
- `pakdatakit-react` form inputs, `pakdatakit-faker` test data and
|
|
971
|
+
`pakdatakit_flutter` widgets
|
|
972
|
+
- Bank details (`getBankInfo`, `getBanks`), API docs and `llms.txt`
|
|
970
973
|
|
|
971
974
|
---
|
|
972
975
|
|
package/dist/address.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk47P7HILD_cjs = require('./chunk-47P7HILD.cjs');
|
|
4
4
|
require('./chunk-4VVFS6FN.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-34CJGJ67.cjs');
|
|
6
6
|
require('./chunk-VPBMIYO2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "formatAddress", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunk47P7HILD_cjs.formatAddress; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "parseAddress", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk47P7HILD_cjs.parseAddress; }
|
|
17
17
|
});
|
package/dist/address.d.cts
CHANGED
package/dist/address.d.ts
CHANGED
package/dist/address.js
CHANGED
|
@@ -956,6 +956,10 @@ var districts_default = [
|
|
|
956
956
|
district: "Bannu",
|
|
957
957
|
province: "Khyber Pakhtunkhwa"
|
|
958
958
|
},
|
|
959
|
+
{
|
|
960
|
+
district: "Bar Swat",
|
|
961
|
+
province: "Khyber Pakhtunkhwa"
|
|
962
|
+
},
|
|
959
963
|
{
|
|
960
964
|
district: "Barkhan",
|
|
961
965
|
province: "Balochistan"
|
|
@@ -1588,10 +1592,6 @@ var districts_default = [
|
|
|
1588
1592
|
district: "Upper South Waziristan",
|
|
1589
1593
|
province: "Khyber Pakhtunkhwa"
|
|
1590
1594
|
},
|
|
1591
|
-
{
|
|
1592
|
-
district: "Upper Swat",
|
|
1593
|
-
province: "Khyber Pakhtunkhwa"
|
|
1594
|
-
},
|
|
1595
1595
|
{
|
|
1596
1596
|
district: "Usta Muhammad",
|
|
1597
1597
|
province: "Balochistan"
|
|
@@ -1666,7 +1666,9 @@ var FORMER_DISTRICTS = {
|
|
|
1666
1666
|
quetta: "Balochistan",
|
|
1667
1667
|
// Became South Dera Bugti; Upper Dera Bugti became North Dera Bugti (2026).
|
|
1668
1668
|
"dera bugti": "Balochistan",
|
|
1669
|
-
"upper dera bugti": "Balochistan"
|
|
1669
|
+
"upper dera bugti": "Balochistan",
|
|
1670
|
+
// Notified as Bar Swat (2026); reported as Upper Swat before that.
|
|
1671
|
+
"upper swat": "Khyber Pakhtunkhwa"
|
|
1670
1672
|
};
|
|
1671
1673
|
function searchDistricts(query) {
|
|
1672
1674
|
const normalizedQuery = chunkVPBMIYO2_cjs.normalizeKey(query);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk4VVFS6FN_cjs = require('./chunk-4VVFS6FN.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk34CJGJ67_cjs = require('./chunk-34CJGJ67.cjs');
|
|
5
5
|
var chunkVPBMIYO2_cjs = require('./chunk-VPBMIYO2.cjs');
|
|
6
6
|
|
|
7
7
|
// src/address.ts
|
|
@@ -9,10 +9,10 @@ function byLengthDesc(a, b) {
|
|
|
9
9
|
return b.length - a.length;
|
|
10
10
|
}
|
|
11
11
|
var cityNames = chunkVPBMIYO2_cjs.lazy(
|
|
12
|
-
() =>
|
|
12
|
+
() => chunk34CJGJ67_cjs.cities_default.map((entry) => entry.city).sort(byLengthDesc)
|
|
13
13
|
);
|
|
14
14
|
var districtNames = chunkVPBMIYO2_cjs.lazy(
|
|
15
|
-
() =>
|
|
15
|
+
() => chunk34CJGJ67_cjs.districts_default.map((entry) => entry.district).sort(byLengthDesc)
|
|
16
16
|
);
|
|
17
17
|
var PROVINCES = [
|
|
18
18
|
"Islamabad Capital Territory",
|
|
@@ -82,7 +82,7 @@ function parseAddress(address) {
|
|
|
82
82
|
if (postalCode !== null && city === null) {
|
|
83
83
|
city = chunk4VVFS6FN_cjs.getCityByPostalCode(postalCode);
|
|
84
84
|
}
|
|
85
|
-
const inferredProvince = city !== null ?
|
|
85
|
+
const inferredProvince = city !== null ? chunk34CJGJ67_cjs.getProvince(city) ?? chunk34CJGJ67_cjs.getDistrictProvince(city) : district !== null ? chunk34CJGJ67_cjs.getDistrictProvince(district) : null;
|
|
86
86
|
if (province === null) {
|
|
87
87
|
province = inferredProvince;
|
|
88
88
|
} else if (inferredProvince !== null && inferredProvince !== province) {
|
|
@@ -954,6 +954,10 @@ var districts_default = [
|
|
|
954
954
|
district: "Bannu",
|
|
955
955
|
province: "Khyber Pakhtunkhwa"
|
|
956
956
|
},
|
|
957
|
+
{
|
|
958
|
+
district: "Bar Swat",
|
|
959
|
+
province: "Khyber Pakhtunkhwa"
|
|
960
|
+
},
|
|
957
961
|
{
|
|
958
962
|
district: "Barkhan",
|
|
959
963
|
province: "Balochistan"
|
|
@@ -1586,10 +1590,6 @@ var districts_default = [
|
|
|
1586
1590
|
district: "Upper South Waziristan",
|
|
1587
1591
|
province: "Khyber Pakhtunkhwa"
|
|
1588
1592
|
},
|
|
1589
|
-
{
|
|
1590
|
-
district: "Upper Swat",
|
|
1591
|
-
province: "Khyber Pakhtunkhwa"
|
|
1592
|
-
},
|
|
1593
1593
|
{
|
|
1594
1594
|
district: "Usta Muhammad",
|
|
1595
1595
|
province: "Balochistan"
|
|
@@ -1664,7 +1664,9 @@ var FORMER_DISTRICTS = {
|
|
|
1664
1664
|
quetta: "Balochistan",
|
|
1665
1665
|
// Became South Dera Bugti; Upper Dera Bugti became North Dera Bugti (2026).
|
|
1666
1666
|
"dera bugti": "Balochistan",
|
|
1667
|
-
"upper dera bugti": "Balochistan"
|
|
1667
|
+
"upper dera bugti": "Balochistan",
|
|
1668
|
+
// Notified as Bar Swat (2026); reported as Upper Swat before that.
|
|
1669
|
+
"upper swat": "Khyber Pakhtunkhwa"
|
|
1668
1670
|
};
|
|
1669
1671
|
function searchDistricts(query) {
|
|
1670
1672
|
const normalizedQuery = normalizeKey(query);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCityByPostalCode } from './chunk-LIYNKIKS.js';
|
|
2
|
-
import { cities_default, districts_default, getProvince, getDistrictProvince } from './chunk-
|
|
2
|
+
import { cities_default, districts_default, getProvince, getDistrictProvince } from './chunk-E6DT2DWQ.js';
|
|
3
3
|
import { lazy, normalizeWhitespace, normalizeKey } from './chunk-ENQ7O7VW.js';
|
|
4
4
|
|
|
5
5
|
// src/address.ts
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { normalizeRomanUrdu, formatHijri, toHijri, formatPKR, formatLakh, parseAddress, getCityByPostalCode, getPostalCode, getProvince, getBankFromIBAN, validateIBAN, analyzePhone, validatePhone, validateCNIC } from 'pakdatakit';
|
|
3
3
|
|
|
4
4
|
// package.json
|
|
5
|
-
var version = "2.2.
|
|
5
|
+
var version = "2.2.1";
|
|
6
6
|
var EXIT_OK = 0;
|
|
7
7
|
var EXIT_NEGATIVE = 1;
|
|
8
8
|
var EXIT_USAGE = 2;
|
package/dist/cnic.d.cts
CHANGED
package/dist/cnic.d.ts
CHANGED
package/dist/geo.cjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk34CJGJ67_cjs = require('./chunk-34CJGJ67.cjs');
|
|
4
4
|
require('./chunk-VPBMIYO2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "getDistrictProvince", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk34CJGJ67_cjs.getDistrictProvince; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "getDistrictsByProvince", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk34CJGJ67_cjs.getDistrictsByProvince; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "getProvince", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk34CJGJ67_cjs.getProvince; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "searchCities", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk34CJGJ67_cjs.searchCities; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "searchDistricts", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk34CJGJ67_cjs.searchDistricts; }
|
|
27
27
|
});
|
package/dist/geo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './chunk-
|
|
1
|
+
export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './chunk-E6DT2DWQ.js';
|
|
2
2
|
import './chunk-ENQ7O7VW.js';
|
package/dist/hijri.d.cts
CHANGED
|
@@ -59,4 +59,5 @@ declare function getHijriMonthName(month: number): string | null;
|
|
|
59
59
|
*/
|
|
60
60
|
declare function isRamadan(date: Date, options?: HijriOptions): boolean;
|
|
61
61
|
|
|
62
|
-
export {
|
|
62
|
+
export { formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri };
|
|
63
|
+
export type { HijriDate, HijriOptions };
|
package/dist/hijri.d.ts
CHANGED
|
@@ -59,4 +59,5 @@ declare function getHijriMonthName(month: number): string | null;
|
|
|
59
59
|
*/
|
|
60
60
|
declare function isRamadan(date: Date, options?: HijriOptions): boolean;
|
|
61
61
|
|
|
62
|
-
export {
|
|
62
|
+
export { formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri };
|
|
63
|
+
export type { HijriDate, HijriOptions };
|
package/dist/holidays.d.cts
CHANGED
|
@@ -70,4 +70,5 @@ declare function getHolidaysOn(date: Date | string, options?: HolidayOptions): H
|
|
|
70
70
|
*/
|
|
71
71
|
declare function isPakistanHoliday(date: Date | string, options?: HolidayOptions): boolean;
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { getHolidaysOn, getPakistanHolidays, isPakistanHoliday };
|
|
74
|
+
export type { Holiday, HolidayId, HolidayOptions, IslamicHolidayId };
|
package/dist/holidays.d.ts
CHANGED
|
@@ -70,4 +70,5 @@ declare function getHolidaysOn(date: Date | string, options?: HolidayOptions): H
|
|
|
70
70
|
*/
|
|
71
71
|
declare function isPakistanHoliday(date: Date | string, options?: HolidayOptions): boolean;
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { getHolidaysOn, getPakistanHolidays, isPakistanHoliday };
|
|
74
|
+
export type { Holiday, HolidayId, HolidayOptions, IslamicHolidayId };
|
package/dist/iban.d.cts
CHANGED
|
@@ -62,4 +62,5 @@ declare function getBankInfo(ibanOrCode: string): BankInfo | null;
|
|
|
62
62
|
*/
|
|
63
63
|
declare function getBanks(): BankInfo[];
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { getBankFromIBAN, getBankInfo, getBanks, validateIBAN };
|
|
66
|
+
export type { BankInfo, BankType };
|
package/dist/iban.d.ts
CHANGED
|
@@ -62,4 +62,5 @@ declare function getBankInfo(ibanOrCode: string): BankInfo | null;
|
|
|
62
62
|
*/
|
|
63
63
|
declare function getBanks(): BankInfo[];
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { getBankFromIBAN, getBankInfo, getBanks, validateIBAN };
|
|
66
|
+
export type { BankInfo, BankType };
|
package/dist/index.cjs
CHANGED
|
@@ -10,18 +10,18 @@ require('./chunk-NTD4JLDW.cjs');
|
|
|
10
10
|
var chunk4VSGCQ6K_cjs = require('./chunk-4VSGCQ6K.cjs');
|
|
11
11
|
var chunkH6M6L26S_cjs = require('./chunk-H6M6L26S.cjs');
|
|
12
12
|
var chunkKEHCTYLO_cjs = require('./chunk-KEHCTYLO.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunk47P7HILD_cjs = require('./chunk-47P7HILD.cjs');
|
|
14
14
|
var chunk4VVFS6FN_cjs = require('./chunk-4VVFS6FN.cjs');
|
|
15
15
|
var chunkHTCSHHOR_cjs = require('./chunk-HTCSHHOR.cjs');
|
|
16
16
|
var chunkLVHTH4P7_cjs = require('./chunk-LVHTH4P7.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunk34CJGJ67_cjs = require('./chunk-34CJGJ67.cjs');
|
|
18
18
|
var chunkXCXFGTHW_cjs = require('./chunk-XCXFGTHW.cjs');
|
|
19
19
|
var chunkCYJJ7KGC_cjs = require('./chunk-CYJJ7KGC.cjs');
|
|
20
20
|
var chunk3IARSCO6_cjs = require('./chunk-3IARSCO6.cjs');
|
|
21
21
|
require('./chunk-VPBMIYO2.cjs');
|
|
22
22
|
|
|
23
23
|
// src/data-version.ts
|
|
24
|
-
var dataVersion = "2026-
|
|
24
|
+
var dataVersion = "2026-11-07";
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "createWhatsAppLink", {
|
|
27
27
|
enumerable: true,
|
|
@@ -137,11 +137,11 @@ Object.defineProperty(exports, "toUrduDigits", {
|
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "formatAddress", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk47P7HILD_cjs.formatAddress; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "parseAddress", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk47P7HILD_cjs.parseAddress; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "getCityByPostalCode", {
|
|
147
147
|
enumerable: true,
|
|
@@ -181,23 +181,23 @@ Object.defineProperty(exports, "formatPKR", {
|
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "getDistrictProvince", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunk34CJGJ67_cjs.getDistrictProvince; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "getDistrictsByProvince", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunk34CJGJ67_cjs.getDistrictsByProvince; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "getProvince", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk34CJGJ67_cjs.getProvince; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "searchCities", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunk34CJGJ67_cjs.searchCities; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "searchDistricts", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunk34CJGJ67_cjs.searchDistricts; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "getHolidaysOn", {
|
|
203
203
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -20,6 +20,6 @@ export { InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNIC
|
|
|
20
20
|
* Date (YYYY-MM-DD) the bundled datasets were last checked against their
|
|
21
21
|
* sources. See DATA.md for what each dataset is based on.
|
|
22
22
|
*/
|
|
23
|
-
declare const dataVersion = "2026-
|
|
23
|
+
declare const dataVersion = "2026-11-07";
|
|
24
24
|
|
|
25
25
|
export { dataVersion };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,6 @@ export { InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNIC
|
|
|
20
20
|
* Date (YYYY-MM-DD) the bundled datasets were last checked against their
|
|
21
21
|
* sources. See DATA.md for what each dataset is based on.
|
|
22
22
|
*/
|
|
23
|
-
declare const dataVersion = "2026-
|
|
23
|
+
declare const dataVersion = "2026-11-07";
|
|
24
24
|
|
|
25
25
|
export { dataVersion };
|
package/dist/index.js
CHANGED
|
@@ -8,17 +8,17 @@ import './chunk-6IPPANNX.js';
|
|
|
8
8
|
export { createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr } from './chunk-NZQ47NWD.js';
|
|
9
9
|
export { analyzeNTN, validateNTN, validateSTRN } from './chunk-CEPNSHIC.js';
|
|
10
10
|
export { normalizeRomanUrdu, normalizeText, toEnglishDigits, toUrduDigits } from './chunk-JKE4AMSZ.js';
|
|
11
|
-
export { formatAddress, parseAddress } from './chunk-
|
|
11
|
+
export { formatAddress, parseAddress } from './chunk-QKH7W2CC.js';
|
|
12
12
|
export { getCityByPostalCode, getPostalAreas, getPostalCode, getPostalCodes, searchPostalCodes } from './chunk-LIYNKIKS.js';
|
|
13
13
|
export { getCNICInfo, validateCNIC } from './chunk-EEVNLTB4.js';
|
|
14
14
|
export { formatLakh, formatPKR } from './chunk-6TSKA2PH.js';
|
|
15
|
-
export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './chunk-
|
|
15
|
+
export { getDistrictProvince, getDistrictsByProvince, getProvince, searchCities, searchDistricts } from './chunk-E6DT2DWQ.js';
|
|
16
16
|
export { getHolidaysOn, getPakistanHolidays, isPakistanHoliday } from './chunk-HBOZIITD.js';
|
|
17
17
|
export { formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri } from './chunk-Z5JEIQVW.js';
|
|
18
18
|
export { getBankFromIBAN, getBankInfo, getBanks, validateIBAN } from './chunk-YPPKY5XZ.js';
|
|
19
19
|
import './chunk-ENQ7O7VW.js';
|
|
20
20
|
|
|
21
21
|
// src/data-version.ts
|
|
22
|
-
var dataVersion = "2026-
|
|
22
|
+
var dataVersion = "2026-11-07";
|
|
23
23
|
|
|
24
24
|
export { dataVersion };
|
package/dist/input.d.cts
CHANGED
|
@@ -64,4 +64,5 @@ declare function formatIBANInput(value: string): string;
|
|
|
64
64
|
*/
|
|
65
65
|
declare function checkIBANInput(value: string): InputState;
|
|
66
66
|
|
|
67
|
-
export {
|
|
67
|
+
export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
|
|
68
|
+
export type { InputState };
|
package/dist/input.d.ts
CHANGED
|
@@ -64,4 +64,5 @@ declare function formatIBANInput(value: string): string;
|
|
|
64
64
|
*/
|
|
65
65
|
declare function checkIBANInput(value: string): InputState;
|
|
66
66
|
|
|
67
|
-
export {
|
|
67
|
+
export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
|
|
68
|
+
export type { InputState };
|
package/dist/networks.d.cts
CHANGED
package/dist/networks.d.ts
CHANGED
package/dist/numbers.d.cts
CHANGED
|
@@ -50,4 +50,5 @@ declare function validateLandline(phone: string): boolean;
|
|
|
50
50
|
*/
|
|
51
51
|
declare function getAreaCode(city: string): string | null;
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { analyzeNumber, getAreaCode, getNumberType, validateLandline };
|
|
54
|
+
export type { NumberInfo, NumberType };
|
package/dist/numbers.d.ts
CHANGED
|
@@ -50,4 +50,5 @@ declare function validateLandline(phone: string): boolean;
|
|
|
50
50
|
*/
|
|
51
51
|
declare function getAreaCode(city: string): string | null;
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { analyzeNumber, getAreaCode, getNumberType, validateLandline };
|
|
54
|
+
export type { NumberInfo, NumberType };
|
package/dist/phone.d.cts
CHANGED
|
@@ -53,4 +53,5 @@ declare function formatPhone(phone: string): string | null;
|
|
|
53
53
|
*/
|
|
54
54
|
declare function analyzePhone(phone: string): PhoneAnalysis;
|
|
55
55
|
|
|
56
|
-
export { NetworkName,
|
|
56
|
+
export { NetworkName, analyzePhone, formatPhone, getPhonePrefix, normalizePhoneDigits, validatePhone };
|
|
57
|
+
export type { PhoneAnalysis };
|
package/dist/phone.d.ts
CHANGED
|
@@ -53,4 +53,5 @@ declare function formatPhone(phone: string): string | null;
|
|
|
53
53
|
*/
|
|
54
54
|
declare function analyzePhone(phone: string): PhoneAnalysis;
|
|
55
55
|
|
|
56
|
-
export { NetworkName,
|
|
56
|
+
export { NetworkName, analyzePhone, formatPhone, getPhonePrefix, normalizePhoneDigits, validatePhone };
|
|
57
|
+
export type { PhoneAnalysis };
|
package/dist/raast.d.cts
CHANGED
|
@@ -185,4 +185,5 @@ interface ValidateRaastQrOptions {
|
|
|
185
185
|
*/
|
|
186
186
|
declare function validateRaastQr(payload: string, options?: ValidateRaastQrOptions): RaastQrValidation;
|
|
187
187
|
|
|
188
|
-
export {
|
|
188
|
+
export { createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr };
|
|
189
|
+
export type { EmvField, MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastDuration, RaastP2PQrOptions, RaastQrError, RaastQrValidation, RaastQrWarning, ValidateRaastQrOptions };
|
package/dist/raast.d.ts
CHANGED
|
@@ -185,4 +185,5 @@ interface ValidateRaastQrOptions {
|
|
|
185
185
|
*/
|
|
186
186
|
declare function validateRaastQr(payload: string, options?: ValidateRaastQrOptions): RaastQrValidation;
|
|
187
187
|
|
|
188
|
-
export {
|
|
188
|
+
export { createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr };
|
|
189
|
+
export type { EmvField, MerchantAccountInfo, MerchantQrOptions, ParsedRaastQr, RaastDuration, RaastP2PQrOptions, RaastQrError, RaastQrValidation, RaastQrWarning, ValidateRaastQrOptions };
|
package/dist/tax.d.cts
CHANGED
|
@@ -44,4 +44,5 @@ declare function validateNTN(ntn: string): boolean;
|
|
|
44
44
|
*/
|
|
45
45
|
declare function validateSTRN(strn: string): boolean;
|
|
46
46
|
|
|
47
|
-
export {
|
|
47
|
+
export { analyzeNTN, validateNTN, validateSTRN };
|
|
48
|
+
export type { NTNInfo, NTNType };
|
package/dist/tax.d.ts
CHANGED
|
@@ -44,4 +44,5 @@ declare function validateNTN(ntn: string): boolean;
|
|
|
44
44
|
*/
|
|
45
45
|
declare function validateSTRN(strn: string): boolean;
|
|
46
46
|
|
|
47
|
-
export {
|
|
47
|
+
export { analyzeNTN, validateNTN, validateSTRN };
|
|
48
|
+
export type { NTNInfo, NTNType };
|
package/dist/words.d.cts
CHANGED
|
@@ -46,4 +46,5 @@ declare function numberToWords(n: number, options?: NumberToWordsOptions): strin
|
|
|
46
46
|
*/
|
|
47
47
|
declare function amountInWords(amount: number, options?: AmountInWordsOptions): string;
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { amountInWords, numberToWords };
|
|
50
|
+
export type { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage };
|
package/dist/words.d.ts
CHANGED
|
@@ -46,4 +46,5 @@ declare function numberToWords(n: number, options?: NumberToWordsOptions): strin
|
|
|
46
46
|
*/
|
|
47
47
|
declare function amountInWords(amount: number, options?: AmountInWordsOptions): string;
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { amountInWords, numberToWords };
|
|
50
|
+
export type { AmountInWordsOptions, NumberToWordsOptions, WordsLanguage };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pakdatakit",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Production-ready utility toolkit for Pakistani developers — CNIC, phone, WhatsApp, IBAN, postal codes, address parsing, Hijri dates, Roman Urdu, networks, geography, and formatting",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -286,20 +286,20 @@
|
|
|
286
286
|
"node": ">=20"
|
|
287
287
|
},
|
|
288
288
|
"devDependencies": {
|
|
289
|
-
"@eslint/js": "^
|
|
290
|
-
"@types/node": "^
|
|
291
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
292
|
-
"@typescript-eslint/parser": "^8.
|
|
293
|
-
"eslint": "^
|
|
289
|
+
"@eslint/js": "^10.0.1",
|
|
290
|
+
"@types/node": "^26.6.5",
|
|
291
|
+
"@typescript-eslint/eslint-plugin": "^8.72.0",
|
|
292
|
+
"@typescript-eslint/parser": "^8.72.0",
|
|
293
|
+
"eslint": "^10.13.0",
|
|
294
294
|
"eslint-config-prettier": "^10.1.5",
|
|
295
295
|
"globals": "^17.6.0",
|
|
296
296
|
"libphonenumber-js": "^1.13.15",
|
|
297
|
-
"prettier": "^3.
|
|
298
|
-
"tsup": "^
|
|
297
|
+
"prettier": "^3.9.10",
|
|
298
|
+
"tsup": "^9.0.0",
|
|
299
299
|
"typedoc": "^0.28.20",
|
|
300
300
|
"typescript": "^5.8.3",
|
|
301
301
|
"valibot": "^1.5.0",
|
|
302
|
-
"vitest": "^
|
|
302
|
+
"vitest": "^5.0.5",
|
|
303
303
|
"yup": "^1.7.1",
|
|
304
304
|
"zod": "^4.6.7"
|
|
305
305
|
},
|