1
1
/*!
2
- * Nusantara Valid v0.4.1
2
+ * Nusantara Valid v0.4.2
3
3
* Copyright 2020 - Fajar Setya Budi (https://magicjar.github.io)
4
4
* Contributors (https://github.com/agraris/nusantara-valid/graphs/contributors)
5
5
* Licensed under MIT (https://github.com/agraris/nusantara-valid/blob/master/LICENSE)
@@ -1150,7 +1150,7 @@ function isValidEmail(email) {
1150
1150
return theEmail.isValid(email);
1151
1151
}
1152
1152
1153
- /*! *****************************************************************************
1153
+ /******************************************************************************
1154
1154
Copyright (c) Microsoft Corporation.
1155
1155
1156
1156
Permission to use, copy, modify, and/or distribute this software for any
@@ -1164,21 +1164,28 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1164
1164
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1165
1165
PERFORMANCE OF THIS SOFTWARE.
1166
1166
***************************************************************************** */
1167
- /* global Reflect, Promise */
1167
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1168
1168
1169
1169
var extendStatics = function(d, b) {
1170
1170
extendStatics = Object.setPrototypeOf ||
1171
1171
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1172
- function (d, b) { for (var p in b) if (b. hasOwnProperty( p)) d[p] = b[p]; };
1172
+ function (d, b) { for (var p in b) if (Object.prototype. hasOwnProperty.call(b, p)) d[p] = b[p]; };
1173
1173
return extendStatics(d, b);
1174
1174
};
1175
1175
1176
1176
function __extends(d, b) {
1177
+ if (typeof b !== "function" && b !== null)
1178
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1177
1179
extendStatics(d, b);
1178
1180
function __() { this.constructor = d; }
1179
1181
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1180
1182
}
1181
1183
1184
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1185
+ var e = new Error(message);
1186
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1187
+ };
1188
+
1182
1189
/**
1183
1190
* Nusantara Valid: nik.ts
1184
1191
*
@@ -1231,7 +1238,7 @@ var Province = /** @class */ (function () {
1231
1238
};
1232
1239
return Province;
1233
1240
}());
1234
- var prov = new Province();
1241
+ var prov$1 = new Province();
1235
1242
/**
1236
1243
* Get specific province data with IDataProvince object structure
1237
1244
*
@@ -1240,8 +1247,8 @@ var prov = new Province();
1240
1247
* @param {string} provinceKey - Array key of the province
1241
1248
* @return {IDataProvince} IDataProvince object
1242
1249
**/
1243
- function getDataProvince(provinceKey) {
1244
- return prov.getData(provinceKey);
1250
+ function getDataProvince$1 (provinceKey) {
1251
+ return prov$1 .getData(provinceKey);
1245
1252
}
1246
1253
1247
1254
/**
@@ -1304,7 +1311,7 @@ var NomorIndukKependudukan = /** @class */ (function () {
1304
1311
var validProvince = includes(PROVINCE_KEYS, validNIK[1]);
1305
1312
var validBirthday = !isNaN(formatDate('19' + reformatedBirthday).getTime());
1306
1313
if (validProvince) {
1307
- data.province = getDataProvince(validNIK[1]);
1314
+ data.province = getDataProvince$1 (validNIK[1]);
1308
1315
}
1309
1316
if (validBirthday) {
1310
1317
var currentYear = new Date().getFullYear();
@@ -11307,7 +11314,7 @@ var ProvinceExtended = /** @class */ (function (_super) {
11307
11314
};
11308
11315
return ProvinceExtended;
11309
11316
}(Province));
11310
- var prov$1 = new ProvinceExtended();
11317
+ var prov = new ProvinceExtended();
11311
11318
/**
11312
11319
* Get specific province data with IDataProvince object structure
11313
11320
*
@@ -11316,8 +11323,8 @@ var prov$1 = new ProvinceExtended();
11316
11323
* @param {string} provinceKey - Array key of the province
11317
11324
* @return {IDataProvince} IDataProvince object
11318
11325
**/
11319
- function getDataProvince$1 (provinceKey) {
11320
- return prov$1 .getData(provinceKey);
11326
+ function getDataProvince(provinceKey) {
11327
+ return prov.getData(provinceKey);
11321
11328
}
11322
11329
/**
11323
11330
* Get all province data with IDataProvince object structure
@@ -11327,7 +11334,7 @@ function getDataProvince$1(provinceKey) {
11327
11334
* @return {IDataProvince[]} Array of IDataProvince object
11328
11335
**/
11329
11336
function getDataProvinces() {
11330
- return prov$1 .getData();
11337
+ return prov.getData();
11331
11338
}
11332
11339
/**
11333
11340
* Get all regencies in a Province
@@ -11338,7 +11345,7 @@ function getDataProvinces() {
11338
11345
* @return {IDataRegency[]} Array of IDataRegency object
11339
11346
**/
11340
11347
function getDataRegenciesInProvince(provinceKey) {
11341
- return prov$1 .getDataRegenciesInProvince(provinceKey);
11348
+ return prov.getDataRegenciesInProvince(provinceKey);
11342
11349
}
11343
11350
/**
11344
11351
* Get all districts in a Regency
@@ -11349,7 +11356,7 @@ function getDataRegenciesInProvince(provinceKey) {
11349
11356
* @return {IDataDistrict[]} Array of IDataDistrict object
11350
11357
**/
11351
11358
function getDataDistrictsInRegency(regencyKey) {
11352
- return prov$1 .getDataDistrictsInRegency(regencyKey);
11359
+ return prov.getDataDistrictsInRegency(regencyKey);
11353
11360
}
11354
11361
11355
11362
/**
@@ -11961,5 +11968,5 @@ function isValidZIPWithComparison(zip, comparison) {
11961
11968
return theZIP.isValid(zip, provinceKey);
11962
11969
}
11963
11970
11964
- export { cleanPhoneNumbers, correctLength, formatCCNumber, formatCellularNumber, formatDate, formatNPWP, formatTelephoneNumber, getDataBank, getDataBanks, getDataCellularNumber, getDataCellularProvider, getDataCellularProviders, getDataDistrictsInRegency, getDataNIK, getDataNIP, getDataProvince$1 as getDataProvince , getDataProvinces, getDataRegenciesInProvince, getDataTNKB, getDataTelephoneNumber, includes, isValidATMNumber, isValidATMNumberWithComparison, isValidCCNumber, isValidCellularNumber, isValidCellularNumberWithComparison, isValidEmail, isValidNIK, isValidNIKWithComparison, isValidNIP, isValidNISN, isValidNPWP, isValidTNKB, isValidTelephoneNumber, isValidZIP, isValidZIPWithComparison, numbersOnly, range };
11971
+ export { cleanPhoneNumbers, correctLength, formatCCNumber, formatCellularNumber, formatDate, formatNPWP, formatTelephoneNumber, getDataBank, getDataBanks, getDataCellularNumber, getDataCellularProvider, getDataCellularProviders, getDataDistrictsInRegency, getDataNIK, getDataNIP, getDataProvince, getDataProvinces, getDataRegenciesInProvince, getDataTNKB, getDataTelephoneNumber, includes, isValidATMNumber, isValidATMNumberWithComparison, isValidCCNumber, isValidCellularNumber, isValidCellularNumberWithComparison, isValidEmail, isValidNIK, isValidNIKWithComparison, isValidNIP, isValidNISN, isValidNPWP, isValidTNKB, isValidTelephoneNumber, isValidZIP, isValidZIPWithComparison, numbersOnly, range };
11965
11972
//# sourceMappingURL=nusantara-valid.extended.js.map
0 commit comments