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 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-10-14**
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), Upper Swat (January 2026).
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) still
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 | 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 |
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 package is checked against the TypeScript library with over 12,000 shared test cases, so both give the same results.
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
- ### Planned
967
+ ### v2.2 ✅
967
968
 
968
- - CNIC check-digit validation (pending a publicly documented NADRA algorithm)
969
- - Mobile Number Portability lookup API
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 chunkCLL6VDPO_cjs = require('./chunk-CLL6VDPO.cjs');
3
+ var chunk47P7HILD_cjs = require('./chunk-47P7HILD.cjs');
4
4
  require('./chunk-4VVFS6FN.cjs');
5
- require('./chunk-SBS2GHM3.cjs');
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 chunkCLL6VDPO_cjs.formatAddress; }
12
+ get: function () { return chunk47P7HILD_cjs.formatAddress; }
13
13
  });
14
14
  Object.defineProperty(exports, "parseAddress", {
15
15
  enumerable: true,
16
- get: function () { return chunkCLL6VDPO_cjs.parseAddress; }
16
+ get: function () { return chunk47P7HILD_cjs.parseAddress; }
17
17
  });
@@ -33,4 +33,5 @@ declare function formatAddress(parts: Partial<ParsedAddress> & {
33
33
  raw?: string;
34
34
  }): string;
35
35
 
36
- export { type ParsedAddress, formatAddress, parseAddress };
36
+ export { formatAddress, parseAddress };
37
+ export type { ParsedAddress };
package/dist/address.d.ts CHANGED
@@ -33,4 +33,5 @@ declare function formatAddress(parts: Partial<ParsedAddress> & {
33
33
  raw?: string;
34
34
  }): string;
35
35
 
36
- export { type ParsedAddress, formatAddress, parseAddress };
36
+ export { formatAddress, parseAddress };
37
+ export type { ParsedAddress };
package/dist/address.js CHANGED
@@ -1,4 +1,4 @@
1
- export { formatAddress, parseAddress } from './chunk-I664KOWP.js';
1
+ export { formatAddress, parseAddress } from './chunk-QKH7W2CC.js';
2
2
  import './chunk-LIYNKIKS.js';
3
- import './chunk-J272OMDL.js';
3
+ import './chunk-E6DT2DWQ.js';
4
4
  import './chunk-ENQ7O7VW.js';
@@ -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 chunkSBS2GHM3_cjs = require('./chunk-SBS2GHM3.cjs');
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
- () => chunkSBS2GHM3_cjs.cities_default.map((entry) => entry.city).sort(byLengthDesc)
12
+ () => chunk34CJGJ67_cjs.cities_default.map((entry) => entry.city).sort(byLengthDesc)
13
13
  );
14
14
  var districtNames = chunkVPBMIYO2_cjs.lazy(
15
- () => chunkSBS2GHM3_cjs.districts_default.map((entry) => entry.district).sort(byLengthDesc)
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 ? chunkSBS2GHM3_cjs.getProvince(city) ?? chunkSBS2GHM3_cjs.getDistrictProvince(city) : district !== null ? chunkSBS2GHM3_cjs.getDistrictProvince(district) : 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-J272OMDL.js';
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.0";
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
@@ -32,4 +32,5 @@ interface CNICInfo {
32
32
  */
33
33
  declare function getCNICInfo(cnic: string): CNICInfo | null;
34
34
 
35
- export { type CNICInfo, getCNICInfo, validateCNIC };
35
+ export { getCNICInfo, validateCNIC };
36
+ export type { CNICInfo };
package/dist/cnic.d.ts CHANGED
@@ -32,4 +32,5 @@ interface CNICInfo {
32
32
  */
33
33
  declare function getCNICInfo(cnic: string): CNICInfo | null;
34
34
 
35
- export { type CNICInfo, getCNICInfo, validateCNIC };
35
+ export { getCNICInfo, validateCNIC };
36
+ export type { CNICInfo };
package/dist/geo.cjs CHANGED
@@ -1,27 +1,27 @@
1
1
  'use strict';
2
2
 
3
- var chunkSBS2GHM3_cjs = require('./chunk-SBS2GHM3.cjs');
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 chunkSBS2GHM3_cjs.getDistrictProvince; }
10
+ get: function () { return chunk34CJGJ67_cjs.getDistrictProvince; }
11
11
  });
12
12
  Object.defineProperty(exports, "getDistrictsByProvince", {
13
13
  enumerable: true,
14
- get: function () { return chunkSBS2GHM3_cjs.getDistrictsByProvince; }
14
+ get: function () { return chunk34CJGJ67_cjs.getDistrictsByProvince; }
15
15
  });
16
16
  Object.defineProperty(exports, "getProvince", {
17
17
  enumerable: true,
18
- get: function () { return chunkSBS2GHM3_cjs.getProvince; }
18
+ get: function () { return chunk34CJGJ67_cjs.getProvince; }
19
19
  });
20
20
  Object.defineProperty(exports, "searchCities", {
21
21
  enumerable: true,
22
- get: function () { return chunkSBS2GHM3_cjs.searchCities; }
22
+ get: function () { return chunk34CJGJ67_cjs.searchCities; }
23
23
  });
24
24
  Object.defineProperty(exports, "searchDistricts", {
25
25
  enumerable: true,
26
- get: function () { return chunkSBS2GHM3_cjs.searchDistricts; }
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-J272OMDL.js';
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 { type HijriDate, type HijriOptions, formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri };
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 { type HijriDate, type HijriOptions, formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri };
62
+ export { formatHijri, fromHijri, getHijriMonthName, isRamadan, toHijri };
63
+ export type { HijriDate, HijriOptions };
@@ -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 { type Holiday, type HolidayId, type HolidayOptions, type IslamicHolidayId, getHolidaysOn, getPakistanHolidays, isPakistanHoliday };
73
+ export { getHolidaysOn, getPakistanHolidays, isPakistanHoliday };
74
+ export type { Holiday, HolidayId, HolidayOptions, IslamicHolidayId };
@@ -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 { type Holiday, type HolidayId, type HolidayOptions, type IslamicHolidayId, getHolidaysOn, getPakistanHolidays, isPakistanHoliday };
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 { type BankInfo, type BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN };
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 { type BankInfo, type BankType, getBankFromIBAN, getBankInfo, getBanks, validateIBAN };
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 chunkCLL6VDPO_cjs = require('./chunk-CLL6VDPO.cjs');
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 chunkSBS2GHM3_cjs = require('./chunk-SBS2GHM3.cjs');
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-10-14";
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 chunkCLL6VDPO_cjs.formatAddress; }
140
+ get: function () { return chunk47P7HILD_cjs.formatAddress; }
141
141
  });
142
142
  Object.defineProperty(exports, "parseAddress", {
143
143
  enumerable: true,
144
- get: function () { return chunkCLL6VDPO_cjs.parseAddress; }
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 chunkSBS2GHM3_cjs.getDistrictProvince; }
184
+ get: function () { return chunk34CJGJ67_cjs.getDistrictProvince; }
185
185
  });
186
186
  Object.defineProperty(exports, "getDistrictsByProvince", {
187
187
  enumerable: true,
188
- get: function () { return chunkSBS2GHM3_cjs.getDistrictsByProvince; }
188
+ get: function () { return chunk34CJGJ67_cjs.getDistrictsByProvince; }
189
189
  });
190
190
  Object.defineProperty(exports, "getProvince", {
191
191
  enumerable: true,
192
- get: function () { return chunkSBS2GHM3_cjs.getProvince; }
192
+ get: function () { return chunk34CJGJ67_cjs.getProvince; }
193
193
  });
194
194
  Object.defineProperty(exports, "searchCities", {
195
195
  enumerable: true,
196
- get: function () { return chunkSBS2GHM3_cjs.searchCities; }
196
+ get: function () { return chunk34CJGJ67_cjs.searchCities; }
197
197
  });
198
198
  Object.defineProperty(exports, "searchDistricts", {
199
199
  enumerable: true,
200
- get: function () { return chunkSBS2GHM3_cjs.searchDistricts; }
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-10-14";
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-10-14";
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-I664KOWP.js';
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-J272OMDL.js';
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-10-14";
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 { type InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
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 { type InputState, checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
67
+ export { checkCNICInput, checkIBANInput, checkPhoneInput, formatCNICInput, formatIBANInput, formatPhoneInput };
68
+ export type { InputState };
@@ -17,4 +17,5 @@ type NetworkName = 'Jazz' | 'Zong' | 'Telenor' | 'Ufone' | 'SCO' | 'Unknown';
17
17
  */
18
18
  declare function getNetwork(phone: string): NetworkName;
19
19
 
20
- export { type NetworkName, getNetwork };
20
+ export { getNetwork };
21
+ export type { NetworkName };
@@ -17,4 +17,5 @@ type NetworkName = 'Jazz' | 'Zong' | 'Telenor' | 'Ufone' | 'SCO' | 'Unknown';
17
17
  */
18
18
  declare function getNetwork(phone: string): NetworkName;
19
19
 
20
- export { type NetworkName, getNetwork };
20
+ export { getNetwork };
21
+ export type { NetworkName };
@@ -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 { type NumberInfo, type NumberType, analyzeNumber, getAreaCode, getNumberType, validateLandline };
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 { type NumberInfo, type NumberType, analyzeNumber, getAreaCode, getNumberType, validateLandline };
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, type PhoneAnalysis, analyzePhone, formatPhone, getPhonePrefix, normalizePhoneDigits, validatePhone };
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, type PhoneAnalysis, analyzePhone, formatPhone, getPhonePrefix, normalizePhoneDigits, validatePhone };
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 { type EmvField, type MerchantAccountInfo, type MerchantQrOptions, type ParsedRaastQr, type RaastDuration, type RaastP2PQrOptions, type RaastQrError, type RaastQrValidation, type RaastQrWarning, type ValidateRaastQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr };
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 { type EmvField, type MerchantAccountInfo, type MerchantQrOptions, type ParsedRaastQr, type RaastDuration, type RaastP2PQrOptions, type RaastQrError, type RaastQrValidation, type RaastQrWarning, type ValidateRaastQrOptions, createMerchantQr, createRaastP2PQr, parseRaastQr, validateRaastQr };
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 { type NTNInfo, type NTNType, analyzeNTN, validateNTN, validateSTRN };
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 { type NTNInfo, type NTNType, analyzeNTN, validateNTN, validateSTRN };
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 { type AmountInWordsOptions, type NumberToWordsOptions, type WordsLanguage, amountInWords, numberToWords };
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 { type AmountInWordsOptions, type NumberToWordsOptions, type WordsLanguage, amountInWords, numberToWords };
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.0",
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": "^9.28.0",
290
- "@types/node": "^22.15.21",
291
- "@typescript-eslint/eslint-plugin": "^8.33.0",
292
- "@typescript-eslint/parser": "^8.33.0",
293
- "eslint": "^9.28.0",
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.5.3",
298
- "tsup": "^8.5.0",
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": "^3.2.1",
302
+ "vitest": "^5.0.5",
303
303
  "yup": "^1.7.1",
304
304
  "zod": "^4.6.7"
305
305
  },