Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
magicjar committed Oct 14, 2024
1 parent 5548e66 commit 7812958
Show file tree
Hide file tree
Showing 26 changed files with 4,776 additions and 3,262 deletions.
37 changes: 22 additions & 15 deletions dist/cjs/nusantara-valid.extended.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Nusantara Valid v0.4.1
* Nusantara Valid v0.4.2
* Copyright 2020 - Fajar Setya Budi (https://magicjar.github.io)
* Contributors (https://github.com/agraris/nusantara-valid/graphs/contributors)
* Licensed under MIT (https://github.com/agraris/nusantara-valid/blob/master/LICENSE)
Expand Down Expand Up @@ -1154,7 +1154,7 @@ function isValidEmail(email) {
return theEmail.isValid(email);
}

/*! *****************************************************************************
/******************************************************************************
Copyright (c) Microsoft Corporation.

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

var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};

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

typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};

/**
* Nusantara Valid: nik.ts
*
Expand Down Expand Up @@ -1235,7 +1242,7 @@ var Province = /** @class */ (function () {
};
return Province;
}());
var prov = new Province();
var prov$1 = new Province();
/**
* Get specific province data with IDataProvince object structure
*
Expand All @@ -1244,8 +1251,8 @@ var prov = new Province();
* @param {string} provinceKey - Array key of the province
* @return {IDataProvince} IDataProvince object
**/
function getDataProvince(provinceKey) {
return prov.getData(provinceKey);
function getDataProvince$1(provinceKey) {
return prov$1.getData(provinceKey);
}

/**
Expand Down Expand Up @@ -1308,7 +1315,7 @@ var NomorIndukKependudukan = /** @class */ (function () {
var validProvince = includes(PROVINCE_KEYS, validNIK[1]);
var validBirthday = !isNaN(formatDate('19' + reformatedBirthday).getTime());
if (validProvince) {
data.province = getDataProvince(validNIK[1]);
data.province = getDataProvince$1(validNIK[1]);
}
if (validBirthday) {
var currentYear = new Date().getFullYear();
Expand Down Expand Up @@ -11311,7 +11318,7 @@ var ProvinceExtended = /** @class */ (function (_super) {
};
return ProvinceExtended;
}(Province));
var prov$1 = new ProvinceExtended();
var prov = new ProvinceExtended();
/**
* Get specific province data with IDataProvince object structure
*
Expand All @@ -11320,8 +11327,8 @@ var prov$1 = new ProvinceExtended();
* @param {string} provinceKey - Array key of the province
* @return {IDataProvince} IDataProvince object
**/
function getDataProvince$1(provinceKey) {
return prov$1.getData(provinceKey);
function getDataProvince(provinceKey) {
return prov.getData(provinceKey);
}
/**
* Get all province data with IDataProvince object structure
Expand All @@ -11331,7 +11338,7 @@ function getDataProvince$1(provinceKey) {
* @return {IDataProvince[]} Array of IDataProvince object
**/
function getDataProvinces() {
return prov$1.getData();
return prov.getData();
}
/**
* Get all regencies in a Province
Expand All @@ -11342,7 +11349,7 @@ function getDataProvinces() {
* @return {IDataRegency[]} Array of IDataRegency object
**/
function getDataRegenciesInProvince(provinceKey) {
return prov$1.getDataRegenciesInProvince(provinceKey);
return prov.getDataRegenciesInProvince(provinceKey);
}
/**
* Get all districts in a Regency
Expand All @@ -11353,7 +11360,7 @@ function getDataRegenciesInProvince(provinceKey) {
* @return {IDataDistrict[]} Array of IDataDistrict object
**/
function getDataDistrictsInRegency(regencyKey) {
return prov$1.getDataDistrictsInRegency(regencyKey);
return prov.getDataDistrictsInRegency(regencyKey);
}

/**
Expand Down Expand Up @@ -11980,7 +11987,7 @@ exports.getDataCellularProviders = getDataCellularProviders;
exports.getDataDistrictsInRegency = getDataDistrictsInRegency;
exports.getDataNIK = getDataNIK;
exports.getDataNIP = getDataNIP;
exports.getDataProvince = getDataProvince$1;
exports.getDataProvince = getDataProvince;
exports.getDataProvinces = getDataProvinces;
exports.getDataRegenciesInProvince = getDataRegenciesInProvince;
exports.getDataTNKB = getDataTNKB;
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/nusantara-valid.extended.js.map

Large diffs are not rendered by default.

18 changes: 2 additions & 16 deletions dist/cjs/nusantara-valid.extended.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/nusantara-valid.extended.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/nusantara-valid.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/nusantara-valid.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/nusantara-valid.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/nusantara-valid.min.js.map

Large diffs are not rendered by default.

37 changes: 22 additions & 15 deletions dist/esm/nusantara-valid.extended.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Nusantara Valid v0.4.1
* Nusantara Valid v0.4.2
* Copyright 2020 - Fajar Setya Budi (https://magicjar.github.io)
* Contributors (https://github.com/agraris/nusantara-valid/graphs/contributors)
* Licensed under MIT (https://github.com/agraris/nusantara-valid/blob/master/LICENSE)
Expand Down Expand Up @@ -1150,7 +1150,7 @@ function isValidEmail(email) {
return theEmail.isValid(email);
}

/*! *****************************************************************************
/******************************************************************************
Copyright (c) Microsoft Corporation.

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

var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};

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

typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};

/**
* Nusantara Valid: nik.ts
*
Expand Down Expand Up @@ -1231,7 +1238,7 @@ var Province = /** @class */ (function () {
};
return Province;
}());
var prov = new Province();
var prov$1 = new Province();
/**
* Get specific province data with IDataProvince object structure
*
Expand All @@ -1240,8 +1247,8 @@ var prov = new Province();
* @param {string} provinceKey - Array key of the province
* @return {IDataProvince} IDataProvince object
**/
function getDataProvince(provinceKey) {
return prov.getData(provinceKey);
function getDataProvince$1(provinceKey) {
return prov$1.getData(provinceKey);
}

/**
Expand Down Expand Up @@ -1304,7 +1311,7 @@ var NomorIndukKependudukan = /** @class */ (function () {
var validProvince = includes(PROVINCE_KEYS, validNIK[1]);
var validBirthday = !isNaN(formatDate('19' + reformatedBirthday).getTime());
if (validProvince) {
data.province = getDataProvince(validNIK[1]);
data.province = getDataProvince$1(validNIK[1]);
}
if (validBirthday) {
var currentYear = new Date().getFullYear();
Expand Down Expand Up @@ -11307,7 +11314,7 @@ var ProvinceExtended = /** @class */ (function (_super) {
};
return ProvinceExtended;
}(Province));
var prov$1 = new ProvinceExtended();
var prov = new ProvinceExtended();
/**
* Get specific province data with IDataProvince object structure
*
Expand All @@ -11316,8 +11323,8 @@ var prov$1 = new ProvinceExtended();
* @param {string} provinceKey - Array key of the province
* @return {IDataProvince} IDataProvince object
**/
function getDataProvince$1(provinceKey) {
return prov$1.getData(provinceKey);
function getDataProvince(provinceKey) {
return prov.getData(provinceKey);
}
/**
* Get all province data with IDataProvince object structure
Expand All @@ -11327,7 +11334,7 @@ function getDataProvince$1(provinceKey) {
* @return {IDataProvince[]} Array of IDataProvince object
**/
function getDataProvinces() {
return prov$1.getData();
return prov.getData();
}
/**
* Get all regencies in a Province
Expand All @@ -11338,7 +11345,7 @@ function getDataProvinces() {
* @return {IDataRegency[]} Array of IDataRegency object
**/
function getDataRegenciesInProvince(provinceKey) {
return prov$1.getDataRegenciesInProvince(provinceKey);
return prov.getDataRegenciesInProvince(provinceKey);
}
/**
* Get all districts in a Regency
Expand All @@ -11349,7 +11356,7 @@ function getDataRegenciesInProvince(provinceKey) {
* @return {IDataDistrict[]} Array of IDataDistrict object
**/
function getDataDistrictsInRegency(regencyKey) {
return prov$1.getDataDistrictsInRegency(regencyKey);
return prov.getDataDistrictsInRegency(regencyKey);
}

/**
Expand Down Expand Up @@ -11961,5 +11968,5 @@ function isValidZIPWithComparison(zip, comparison) {
return theZIP.isValid(zip, provinceKey);
}

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 };
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 };
//# sourceMappingURL=nusantara-valid.extended.js.map
2 changes: 1 addition & 1 deletion dist/esm/nusantara-valid.extended.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 7812958

Please sign in to comment.