Skip to content

Commit 7812958

Browse files
committed
Update packages
1 parent 5548e66 commit 7812958

26 files changed

+4776
-3262
lines changed

dist/cjs/nusantara-valid.extended.js

+22-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Nusantara Valid v0.4.1
2+
* Nusantara Valid v0.4.2
33
* Copyright 2020 - Fajar Setya Budi (https://magicjar.github.io)
44
* Contributors (https://github.com/agraris/nusantara-valid/graphs/contributors)
55
* Licensed under MIT (https://github.com/agraris/nusantara-valid/blob/master/LICENSE)
@@ -1154,7 +1154,7 @@ function isValidEmail(email) {
11541154
return theEmail.isValid(email);
11551155
}
11561156

1157-
/*! *****************************************************************************
1157+
/******************************************************************************
11581158
Copyright (c) Microsoft Corporation.
11591159

11601160
Permission to use, copy, modify, and/or distribute this software for any
@@ -1168,21 +1168,28 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11681168
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
11691169
PERFORMANCE OF THIS SOFTWARE.
11701170
***************************************************************************** */
1171-
/* global Reflect, Promise */
1171+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
11721172

11731173
var extendStatics = function(d, b) {
11741174
extendStatics = Object.setPrototypeOf ||
11751175
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1176-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1176+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11771177
return extendStatics(d, b);
11781178
};
11791179

11801180
function __extends(d, b) {
1181+
if (typeof b !== "function" && b !== null)
1182+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11811183
extendStatics(d, b);
11821184
function __() { this.constructor = d; }
11831185
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11841186
}
11851187

1188+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1189+
var e = new Error(message);
1190+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1191+
};
1192+
11861193
/**
11871194
* Nusantara Valid: nik.ts
11881195
*
@@ -1235,7 +1242,7 @@ var Province = /** @class */ (function () {
12351242
};
12361243
return Province;
12371244
}());
1238-
var prov = new Province();
1245+
var prov$1 = new Province();
12391246
/**
12401247
* Get specific province data with IDataProvince object structure
12411248
*
@@ -1244,8 +1251,8 @@ var prov = new Province();
12441251
* @param {string} provinceKey - Array key of the province
12451252
* @return {IDataProvince} IDataProvince object
12461253
**/
1247-
function getDataProvince(provinceKey) {
1248-
return prov.getData(provinceKey);
1254+
function getDataProvince$1(provinceKey) {
1255+
return prov$1.getData(provinceKey);
12491256
}
12501257

12511258
/**
@@ -1308,7 +1315,7 @@ var NomorIndukKependudukan = /** @class */ (function () {
13081315
var validProvince = includes(PROVINCE_KEYS, validNIK[1]);
13091316
var validBirthday = !isNaN(formatDate('19' + reformatedBirthday).getTime());
13101317
if (validProvince) {
1311-
data.province = getDataProvince(validNIK[1]);
1318+
data.province = getDataProvince$1(validNIK[1]);
13121319
}
13131320
if (validBirthday) {
13141321
var currentYear = new Date().getFullYear();
@@ -11311,7 +11318,7 @@ var ProvinceExtended = /** @class */ (function (_super) {
1131111318
};
1131211319
return ProvinceExtended;
1131311320
}(Province));
11314-
var prov$1 = new ProvinceExtended();
11321+
var prov = new ProvinceExtended();
1131511322
/**
1131611323
* Get specific province data with IDataProvince object structure
1131711324
*
@@ -11320,8 +11327,8 @@ var prov$1 = new ProvinceExtended();
1132011327
* @param {string} provinceKey - Array key of the province
1132111328
* @return {IDataProvince} IDataProvince object
1132211329
**/
11323-
function getDataProvince$1(provinceKey) {
11324-
return prov$1.getData(provinceKey);
11330+
function getDataProvince(provinceKey) {
11331+
return prov.getData(provinceKey);
1132511332
}
1132611333
/**
1132711334
* Get all province data with IDataProvince object structure
@@ -11331,7 +11338,7 @@ function getDataProvince$1(provinceKey) {
1133111338
* @return {IDataProvince[]} Array of IDataProvince object
1133211339
**/
1133311340
function getDataProvinces() {
11334-
return prov$1.getData();
11341+
return prov.getData();
1133511342
}
1133611343
/**
1133711344
* Get all regencies in a Province
@@ -11342,7 +11349,7 @@ function getDataProvinces() {
1134211349
* @return {IDataRegency[]} Array of IDataRegency object
1134311350
**/
1134411351
function getDataRegenciesInProvince(provinceKey) {
11345-
return prov$1.getDataRegenciesInProvince(provinceKey);
11352+
return prov.getDataRegenciesInProvince(provinceKey);
1134611353
}
1134711354
/**
1134811355
* Get all districts in a Regency
@@ -11353,7 +11360,7 @@ function getDataRegenciesInProvince(provinceKey) {
1135311360
* @return {IDataDistrict[]} Array of IDataDistrict object
1135411361
**/
1135511362
function getDataDistrictsInRegency(regencyKey) {
11356-
return prov$1.getDataDistrictsInRegency(regencyKey);
11363+
return prov.getDataDistrictsInRegency(regencyKey);
1135711364
}
1135811365

1135911366
/**
@@ -11980,7 +11987,7 @@ exports.getDataCellularProviders = getDataCellularProviders;
1198011987
exports.getDataDistrictsInRegency = getDataDistrictsInRegency;
1198111988
exports.getDataNIK = getDataNIK;
1198211989
exports.getDataNIP = getDataNIP;
11983-
exports.getDataProvince = getDataProvince$1;
11990+
exports.getDataProvince = getDataProvince;
1198411991
exports.getDataProvinces = getDataProvinces;
1198511992
exports.getDataRegenciesInProvince = getDataRegenciesInProvince;
1198611993
exports.getDataTNKB = getDataTNKB;

dist/cjs/nusantara-valid.extended.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/nusantara-valid.extended.min.js

+2-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/nusantara-valid.extended.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/nusantara-valid.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/nusantara-valid.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/nusantara-valid.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/nusantara-valid.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/nusantara-valid.extended.js

+22-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Nusantara Valid v0.4.1
2+
* Nusantara Valid v0.4.2
33
* Copyright 2020 - Fajar Setya Budi (https://magicjar.github.io)
44
* Contributors (https://github.com/agraris/nusantara-valid/graphs/contributors)
55
* Licensed under MIT (https://github.com/agraris/nusantara-valid/blob/master/LICENSE)
@@ -1150,7 +1150,7 @@ function isValidEmail(email) {
11501150
return theEmail.isValid(email);
11511151
}
11521152

1153-
/*! *****************************************************************************
1153+
/******************************************************************************
11541154
Copyright (c) Microsoft Corporation.
11551155

11561156
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
11641164
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
11651165
PERFORMANCE OF THIS SOFTWARE.
11661166
***************************************************************************** */
1167-
/* global Reflect, Promise */
1167+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
11681168

11691169
var extendStatics = function(d, b) {
11701170
extendStatics = Object.setPrototypeOf ||
11711171
({ __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]; };
11731173
return extendStatics(d, b);
11741174
};
11751175

11761176
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");
11771179
extendStatics(d, b);
11781180
function __() { this.constructor = d; }
11791181
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
11801182
}
11811183

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+
11821189
/**
11831190
* Nusantara Valid: nik.ts
11841191
*
@@ -1231,7 +1238,7 @@ var Province = /** @class */ (function () {
12311238
};
12321239
return Province;
12331240
}());
1234-
var prov = new Province();
1241+
var prov$1 = new Province();
12351242
/**
12361243
* Get specific province data with IDataProvince object structure
12371244
*
@@ -1240,8 +1247,8 @@ var prov = new Province();
12401247
* @param {string} provinceKey - Array key of the province
12411248
* @return {IDataProvince} IDataProvince object
12421249
**/
1243-
function getDataProvince(provinceKey) {
1244-
return prov.getData(provinceKey);
1250+
function getDataProvince$1(provinceKey) {
1251+
return prov$1.getData(provinceKey);
12451252
}
12461253

12471254
/**
@@ -1304,7 +1311,7 @@ var NomorIndukKependudukan = /** @class */ (function () {
13041311
var validProvince = includes(PROVINCE_KEYS, validNIK[1]);
13051312
var validBirthday = !isNaN(formatDate('19' + reformatedBirthday).getTime());
13061313
if (validProvince) {
1307-
data.province = getDataProvince(validNIK[1]);
1314+
data.province = getDataProvince$1(validNIK[1]);
13081315
}
13091316
if (validBirthday) {
13101317
var currentYear = new Date().getFullYear();
@@ -11307,7 +11314,7 @@ var ProvinceExtended = /** @class */ (function (_super) {
1130711314
};
1130811315
return ProvinceExtended;
1130911316
}(Province));
11310-
var prov$1 = new ProvinceExtended();
11317+
var prov = new ProvinceExtended();
1131111318
/**
1131211319
* Get specific province data with IDataProvince object structure
1131311320
*
@@ -11316,8 +11323,8 @@ var prov$1 = new ProvinceExtended();
1131611323
* @param {string} provinceKey - Array key of the province
1131711324
* @return {IDataProvince} IDataProvince object
1131811325
**/
11319-
function getDataProvince$1(provinceKey) {
11320-
return prov$1.getData(provinceKey);
11326+
function getDataProvince(provinceKey) {
11327+
return prov.getData(provinceKey);
1132111328
}
1132211329
/**
1132311330
* Get all province data with IDataProvince object structure
@@ -11327,7 +11334,7 @@ function getDataProvince$1(provinceKey) {
1132711334
* @return {IDataProvince[]} Array of IDataProvince object
1132811335
**/
1132911336
function getDataProvinces() {
11330-
return prov$1.getData();
11337+
return prov.getData();
1133111338
}
1133211339
/**
1133311340
* Get all regencies in a Province
@@ -11338,7 +11345,7 @@ function getDataProvinces() {
1133811345
* @return {IDataRegency[]} Array of IDataRegency object
1133911346
**/
1134011347
function getDataRegenciesInProvince(provinceKey) {
11341-
return prov$1.getDataRegenciesInProvince(provinceKey);
11348+
return prov.getDataRegenciesInProvince(provinceKey);
1134211349
}
1134311350
/**
1134411351
* Get all districts in a Regency
@@ -11349,7 +11356,7 @@ function getDataRegenciesInProvince(provinceKey) {
1134911356
* @return {IDataDistrict[]} Array of IDataDistrict object
1135011357
**/
1135111358
function getDataDistrictsInRegency(regencyKey) {
11352-
return prov$1.getDataDistrictsInRegency(regencyKey);
11359+
return prov.getDataDistrictsInRegency(regencyKey);
1135311360
}
1135411361

1135511362
/**
@@ -11961,5 +11968,5 @@ function isValidZIPWithComparison(zip, comparison) {
1196111968
return theZIP.isValid(zip, provinceKey);
1196211969
}
1196311970

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 };
1196511972
//# sourceMappingURL=nusantara-valid.extended.js.map

dist/esm/nusantara-valid.extended.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)