diff --git a/lib/commonjs/index.js b/lib/commonjs/index.js index 3fdaa02..15156ee 100644 --- a/lib/commonjs/index.js +++ b/lib/commonjs/index.js @@ -1,7 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const countries_1 = require("./lib/countries"); -const countries = [ +var countries_1 = require("./lib/countries"); +var countries = [ countries_1.austria, countries_1.belgium, countries_1.bulgaria, diff --git a/lib/commonjs/lib/countries/austria.js b/lib/commonjs/lib/countries/austria.js index 9d8c552..cfdffaa 100644 --- a/lib/commonjs/lib/countries/austria.js +++ b/lib/commonjs/lib/countries/austria.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.austria = { name: 'Austria', codes: ['AT', 'AUT', '040'], - calcFn: (vat) => { - let total = 0; - for (let i = 0; i < 7; i++) { - const temp = Number(vat.charAt(i)) * exports.austria.rules.multipliers.common[i]; + calcFn: function (vat) { + var total = 0; + for (var i = 0; i < 7; i++) { + var temp = Number(vat.charAt(i)) * exports.austria.rules.multipliers.common[i]; if (temp > 9) { total += Math.floor(temp / 10) + temp % 10; } diff --git a/lib/commonjs/lib/countries/belgium.js b/lib/commonjs/lib/countries/belgium.js index 32508e0..50542fd 100644 --- a/lib/commonjs/lib/countries/belgium.js +++ b/lib/commonjs/lib/countries/belgium.js @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.belgium = { name: 'Belgium', codes: ['BE', 'BEL', '056'], - calcFn: (vat) => { - const newVat = (vat.length === 9) ? ('0' + vat) : vat; + calcFn: function (vat) { + var newVat = (vat.length === 9) ? ('0' + vat) : vat; if (Number(newVat.slice(1, 2)) === 0) return false; - const check = (97 - Number(newVat.slice(0, 8)) % 97); + var check = (97 - Number(newVat.slice(0, 8)) % 97); return check === Number(newVat.slice(8, 10)); }, rules: { diff --git a/lib/commonjs/lib/countries/bulgaria.js b/lib/commonjs/lib/countries/bulgaria.js index a0669b0..e09af47 100644 --- a/lib/commonjs/lib/countries/bulgaria.js +++ b/lib/commonjs/lib/countries/bulgaria.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.bulgaria = { name: 'Bulgaria', codes: ['BG', 'BGR', '100'], - calcFn: (vat) => { + calcFn: function (vat) { if (vat.length === 9) return _checkNineLengthVat(vat); - const { multipliers } = exports.bulgaria.rules; + var multipliers = exports.bulgaria.rules.multipliers; return _isPhysicalPerson(vat, multipliers.physical) || _isForeigner(vat, multipliers) || _miscellaneousVAT(vat, multipliers); }, rules: { @@ -19,23 +19,23 @@ exports.bulgaria = { } }; function _increase(value, vat, from, to, incr) { - let result = value; - for (let i = from; i < to; i++) { + var result = value; + for (var i = from; i < to; i++) { result += Number(vat.charAt(i)) * (i + incr); } return result; } function _increase2(value, vat, from, to, multipliers) { - let result = value; - for (let i = from; i < to; i++) { + var result = value; + for (var i = from; i < to; i++) { result += Number(vat.charAt(i)) * multipliers[i]; } return result; } function _checkNineLengthVat(vat) { - let total; - let temp = _increase(0, vat, 0, 8, 1); - const expect = Number(vat.slice(8)); + var total; + var temp = _increase(0, vat, 0, 8, 1); + var expect = Number(vat.slice(8)); total = temp % 11; if (total !== 10) return total === expect; @@ -49,9 +49,9 @@ function _isPhysicalPerson(vat, physicalMultipliers) { // 10 digit VAT code - see if it relates to a standard physical person if ((/^\d\d[0-5]\d[0-3]\d\d{4}$/).test(vat)) { // Check month - const month = Number(vat.slice(2, 4)); + var month = Number(vat.slice(2, 4)); if ((month > 0 && month < 13) || (month > 20 && month < 33) || (month > 40 && month < 53)) { - let total = _increase2(0, vat, 0, 9, physicalMultipliers); + var total = _increase2(0, vat, 0, 9, physicalMultipliers); // Establish check digit. total = total % 11; if (total === 10) @@ -65,13 +65,13 @@ function _isPhysicalPerson(vat, physicalMultipliers) { } function _isForeigner(vat, multipliers) { // Extract the next digit and multiply by the counter. - const total = _increase2(0, vat, 0, 9, multipliers.foreigner); + var total = _increase2(0, vat, 0, 9, multipliers.foreigner); // Check to see if the check digit given is correct, If not, try next type of person return total % 10 === Number(vat.substr(9, 1)); } function _miscellaneousVAT(vat, multipliers) { // Finally, if not yet identified, see if it conforms to a miscellaneous VAT number - let total = _increase2(0, vat, 0, 9, multipliers.miscellaneous); + var total = _increase2(0, vat, 0, 9, multipliers.miscellaneous); // Establish check digit. total = 11 - total % 11; if (total === 10) @@ -79,6 +79,6 @@ function _miscellaneousVAT(vat, multipliers) { if (total === 11) total = 0; // Check to see if the check digit given is correct, If not, we have an error with the VAT number - const expect = Number(vat.substr(9, 1)); + var expect = Number(vat.substr(9, 1)); return total === expect; } diff --git a/lib/commonjs/lib/countries/croatiat.js b/lib/commonjs/lib/countries/croatiat.js index fd73bca..3d234df 100644 --- a/lib/commonjs/lib/countries/croatiat.js +++ b/lib/commonjs/lib/countries/croatiat.js @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.croatia = { name: 'Croatia', codes: ['HR', 'HRV', '191'], - calcFn: (vat) => { + calcFn: function (vat) { // Checks the check digits of a Croatian VAT number using ISO 7064, MOD 11-10 for check digit. - let product = 10; - let sum = 0; - for (let i = 0; i < 10; i++) { + var product = 10; + var sum = 0; + for (var i = 0; i < 10; i++) { // Extract the next digit and implement the algorithm sum = (Number(vat.charAt(i)) + product) % 10; if (sum === 0) { @@ -16,7 +16,7 @@ exports.croatia = { product = (2 * sum) % 11; } // Now check that we have the right check digit - const expect = Number(vat.slice(10, 11)); + var expect = Number(vat.slice(10, 11)); return (product + expect) % 10 === 1; }, rules: { diff --git a/lib/commonjs/lib/countries/cyprus.js b/lib/commonjs/lib/countries/cyprus.js index d8420bd..9ba05d1 100644 --- a/lib/commonjs/lib/countries/cyprus.js +++ b/lib/commonjs/lib/countries/cyprus.js @@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.cyprus = { name: 'Cyprus', codes: ['CY', 'CYP', '196'], - calcFn: (vat) => { + calcFn: function (vat) { // Not allowed to start with '12' if (Number(vat.slice(0, 2)) === 12) return false; // Extract the next digit and multiply by the counter. - let total = extractAndMultiplyByCounter(vat, 0); + var total = extractAndMultiplyByCounter(vat, 0); // Establish check digit using modulus 26, and translate to char. equivalent. total = total % 26; total = String.fromCharCode(total + 65); // Check to see if the check digit given is correct - const expect = vat.substr(8, 1); + var expect = vat.substr(8, 1); return total === expect; }, rules: { @@ -22,9 +22,9 @@ exports.cyprus = { } }; function extractAndMultiplyByCounter(vat, total) { - let result = total; - for (let i = 0; i < 8; i++) { - let temp = Number(vat.charAt(i)); + var result = total; + for (var i = 0; i < 8; i++) { + var temp = Number(vat.charAt(i)); if (i % 2 === 0) { switch (temp) { case 0: diff --git a/lib/commonjs/lib/countries/czechRepublic.js b/lib/commonjs/lib/countries/czechRepublic.js index 2bea49b..07ee8d9 100644 --- a/lib/commonjs/lib/countries/czechRepublic.js +++ b/lib/commonjs/lib/countries/czechRepublic.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.czechRepublic = { name: 'Czech Republic', codes: ['CZ', 'CZE', '203'], - calcFn: (vat) => { - const { rules } = exports.czechRepublic; - const { multipliers, additional, lookup } = rules; + calcFn: function (vat) { + var rules = exports.czechRepublic.rules; + var multipliers = rules.multipliers, additional = rules.additional, lookup = rules.lookup; if (!additional) return false; return isLegalEntities(vat, multipliers.common, additional) @@ -28,10 +28,10 @@ exports.czechRepublic = { } }; function isLegalEntities(vat, multipliers, additional) { - let total = 0; + var total = 0; if (additional[0].test(vat)) { // Extract the next digit and multiply by the counter. - for (let i = 0; i < 7; i++) { + for (var i = 0; i < 7; i++) { total += Number(vat.charAt(i)) * multipliers[i]; } // Establish check digit. @@ -41,7 +41,7 @@ function isLegalEntities(vat, multipliers, additional) { if (total === 11) total = 1; // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(7, 8)); + var expect = Number(vat.slice(7, 8)); return total === expect; } return false; @@ -53,10 +53,10 @@ function isIndividualType1(vat, additional) { return false; } function isIndividualType2(vat, multipliers, additional, lookup) { - let total = 0; + var total = 0; if (additional[2].test(vat)) { // Extract the next digit and multiply by the counter. - for (let j = 0; j < 7; j++) { + for (var j = 0; j < 7; j++) { total += Number(vat.charAt(j + 1)) * multipliers[j]; } // Establish check digit. @@ -66,7 +66,7 @@ function isIndividualType2(vat, multipliers, additional, lookup) { if (total === 11) total = 1; // Convert calculated check digit according to a lookup table - const expect = Number(vat.slice(8, 9)); + var expect = Number(vat.slice(8, 9)); if (!lookup) return false; return lookup[total - 1] === expect; @@ -75,8 +75,8 @@ function isIndividualType2(vat, multipliers, additional, lookup) { } function isIndividualType3(vat, additional) { if (additional[3].test(vat)) { - const temp = Number(vat.slice(0, 2)) + Number(vat.slice(2, 4)) + Number(vat.slice(4, 6)) + Number(vat.slice(6, 8)) + Number(vat.slice(8)); - const expect = Number(vat) % 11 === 0; + var temp = Number(vat.slice(0, 2)) + Number(vat.slice(2, 4)) + Number(vat.slice(4, 6)) + Number(vat.slice(6, 8)) + Number(vat.slice(8)); + var expect = Number(vat) % 11 === 0; return !!(temp % 11 === 0 && expect); } return false; diff --git a/lib/commonjs/lib/countries/denmark.js b/lib/commonjs/lib/countries/denmark.js index 19332c0..4599ebe 100644 --- a/lib/commonjs/lib/countries/denmark.js +++ b/lib/commonjs/lib/countries/denmark.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.denmark = { name: 'Denmark', codes: ['DK', 'DNK', '208'], - calcFn: (vat) => { - let total = 0; - for (let i = 0; i < 8; i++) { + calcFn: function (vat) { + var total = 0; + for (var i = 0; i < 8; i++) { total += Number(vat.charAt(i)) * exports.denmark.rules.multipliers.common[i]; } return total % 11 === 0; diff --git a/lib/commonjs/lib/countries/estonia.js b/lib/commonjs/lib/countries/estonia.js index 8386df1..3f41b97 100644 --- a/lib/commonjs/lib/countries/estonia.js +++ b/lib/commonjs/lib/countries/estonia.js @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.estonia = { name: 'Estonia', codes: ['EE', 'EST', '233'], - calcFn: (vat) => { - let total = 0; - let expect; + calcFn: function (vat) { + var total = 0; + var expect; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 8; i++) { + for (var i = 0; i < 8; i++) { total += Number(vat.charAt(i)) * exports.estonia.rules.multipliers.common[i]; } // Establish check digits using modulus 10. diff --git a/lib/commonjs/lib/countries/europe.js b/lib/commonjs/lib/countries/europe.js index e4c92db..c6529b5 100644 --- a/lib/commonjs/lib/countries/europe.js +++ b/lib/commonjs/lib/countries/europe.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.europe = { name: 'Europe', codes: ['EU', 'EUR', '000'], - calcFn: () => { + calcFn: function () { // We know little about EU numbers apart from the fact that the first 3 digits represent the // country, and that there are nine digits in total. return true; diff --git a/lib/commonjs/lib/countries/finland.js b/lib/commonjs/lib/countries/finland.js index 0d55c1a..e9e5599 100644 --- a/lib/commonjs/lib/countries/finland.js +++ b/lib/commonjs/lib/countries/finland.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.finland = { name: 'Finland', codes: ['FI', 'FIN', '246'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 7; i++) + for (var i = 0; i < 7; i++) total += Number(vat.charAt(i)) * exports.finland.rules.multipliers.common[i]; // Establish check digit. total = 11 - total % 11; @@ -14,7 +14,7 @@ exports.finland = { total = 0; } // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(7, 8)); + var expect = Number(vat.slice(7, 8)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/france.js b/lib/commonjs/lib/countries/france.js index a4a5317..40cea51 100644 --- a/lib/commonjs/lib/countries/france.js +++ b/lib/commonjs/lib/countries/france.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.france = { name: 'France', codes: ['FR', 'FRA', '250'], - calcFn: (vat) => { - let total; + calcFn: function (vat) { + var total; // Checks the check digits of a French VAT number. if (!(/^\d{11}$/).test(vat)) return true; @@ -13,7 +13,7 @@ exports.france = { // Establish check digit. total = (total * 100 + 12) % 97; // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(0, 2)); + var expect = Number(vat.slice(0, 2)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/germany.js b/lib/commonjs/lib/countries/germany.js index 495275c..b1c93aa 100644 --- a/lib/commonjs/lib/countries/germany.js +++ b/lib/commonjs/lib/countries/germany.js @@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.germany = { name: 'Germany', codes: ['DE', 'DEU', '276'], - calcFn: (vat) => { + calcFn: function (vat) { // Checks the check digits of a German VAT number. - let product = 10; - let sum = 0; - let checkDigit = 0; - let expect; - for (let i = 0; i < 8; i++) { + var product = 10; + var sum = 0; + var checkDigit = 0; + var expect; + for (var i = 0; i < 8; i++) { // Extract the next digit and implement peculiar algorithm!. sum = (Number(vat.charAt(i)) + product) % 10; if (sum === 0) { diff --git a/lib/commonjs/lib/countries/greece.js b/lib/commonjs/lib/countries/greece.js index 62bfbf4..fb4860a 100644 --- a/lib/commonjs/lib/countries/greece.js +++ b/lib/commonjs/lib/countries/greece.js @@ -3,19 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.greece = { name: 'Greece', codes: ['GR', 'GRC', '300'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // eight character numbers should be prefixed with an 0. - const newVat = (vat.length === 8) ? '0' + vat : vat; + var newVat = (vat.length === 8) ? '0' + vat : vat; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 8; i++) { + for (var i = 0; i < 8; i++) { total += Number(newVat.charAt(i)) * exports.greece.rules.multipliers.common[i]; } // Establish check digit. total = total % 11; total = (total > 9) ? 0 : total; // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(newVat.slice(8, 9)); + var expect = Number(newVat.slice(8, 9)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/hungary.js b/lib/commonjs/lib/countries/hungary.js index 2300c86..19f2e46 100644 --- a/lib/commonjs/lib/countries/hungary.js +++ b/lib/commonjs/lib/countries/hungary.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.hungary = { name: 'Hungary', codes: ['HU', 'HUN', '348'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 7; i++) { + for (var i = 0; i < 7; i++) { total += Number(vat.charAt(i)) * exports.hungary.rules.multipliers.common[i]; } // Establish check digit. @@ -14,7 +14,7 @@ exports.hungary = { if (total === 10) total = 0; // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(7, 8)); + var expect = Number(vat.slice(7, 8)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/ireland.js b/lib/commonjs/lib/countries/ireland.js index 90b5750..65fb2ef 100644 --- a/lib/commonjs/lib/countries/ireland.js +++ b/lib/commonjs/lib/countries/ireland.js @@ -3,18 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.ireland = { name: 'Ireland', codes: ['IE', 'IRL', '372'], - calcFn: (vat) => { - const { typeFormats, multipliers } = exports.ireland.rules; + calcFn: function (vat) { + var _a = exports.ireland.rules, typeFormats = _a.typeFormats, multipliers = _a.multipliers; if (!typeFormats || !typeFormats.first) return false; - let total = 0; - let newVat = vat; + var total = 0; + var newVat = vat; // If the code is type 1 format, we need to convert it to the new before performing the validation. if (typeFormats.first.test(vat)) { newVat = '0' + vat.substring(2, 7) + vat.substring(0, 1) + vat.substring(7, 8); } // Extract the next digit and multiply by the counter. - for (let i = 0; i < 7; i++) { + for (var i = 0; i < 7; i++) { total += Number(newVat.charAt(i)) * multipliers.common[i]; } // If the number is type 3 then we need to include the trailing A or H in the calculation @@ -26,7 +26,7 @@ exports.ireland = { total = total % 23; total = (total === 0) ? 'W' : String.fromCharCode(total + 64); // Compare it with the eighth character of the VAT number. If it's the same, then it's valid. - const expect = newVat.slice(7, 8); + var expect = newVat.slice(7, 8); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/italy.js b/lib/commonjs/lib/countries/italy.js index 2c0efb0..2e684b7 100644 --- a/lib/commonjs/lib/countries/italy.js +++ b/lib/commonjs/lib/countries/italy.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.italy = { name: 'Italy', codes: ['IT', 'ITA', '380'], - calcFn: (vat) => { - let total = 0; - let temp; + calcFn: function (vat) { + var total = 0; + var temp; // The last three digits are the issuing office, and cannot exceed more 201, unless 999 or 888 if (Number(vat.slice(0, 7)) === 0) { return false; @@ -15,7 +15,7 @@ exports.italy = { return false; } // Extract the next digit and multiply by the appropriate - for (let i = 0; i < 10; i++) { + for (var i = 0; i < 10; i++) { temp = Number(vat.charAt(i)) * exports.italy.rules.multipliers.common[i]; if (temp > 9) total += Math.floor(temp / 10) + temp % 10; @@ -28,7 +28,7 @@ exports.italy = { total = 0; } // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(10, 11)); + var expect = Number(vat.slice(10, 11)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/latvia.js b/lib/commonjs/lib/countries/latvia.js index 4f9922a..dfc9a3c 100644 --- a/lib/commonjs/lib/countries/latvia.js +++ b/lib/commonjs/lib/countries/latvia.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.latvia = { name: 'Latvia', codes: ['LV', 'LVA', '428'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Differentiate between legal entities and natural bodies. For the latter we simply check that // the first six digits correspond to valid DDMMYY dates. if ((/^[0-3]/).test(vat)) { @@ -12,7 +12,7 @@ exports.latvia = { } else { // Extract the next digit and multiply by the counter. - for (let i = 0; i < 10; i++) { + for (var i = 0; i < 10; i++) { total += Number(vat.charAt(i)) * exports.latvia.rules.multipliers.common[i]; } // Establish check digits by getting modulus 11. @@ -28,7 +28,7 @@ exports.latvia = { total = 3 - total % 11; } // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(10, 11)); + var expect = Number(vat.slice(10, 11)); return total === expect; } }, diff --git a/lib/commonjs/lib/countries/lithuania.js b/lib/commonjs/lib/countries/lithuania.js index 2844e67..94da69c 100644 --- a/lib/commonjs/lib/countries/lithuania.js +++ b/lib/commonjs/lib/countries/lithuania.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.lithuania = { name: 'Lithuania', codes: ['LT', 'LTU', '440'], - calcFn: (vat) => { + calcFn: function (vat) { return _check9DigitVat(vat, exports.lithuania.rules) || _check12DigitVat(vat, exports.lithuania.rules); }, rules: { @@ -20,24 +20,24 @@ function _extractDigit(vat, multiplierList, key) { return Number(vat.charAt(key)) * multiplierList[key]; } function _doubleCheckCalculation(vat, total, rules) { - let result = total; + var result = total; if (result % 11 === 10) { result = 0; - for (let i = 0; i < 8; i++) { + for (var i = 0; i < 8; i++) { result += _extractDigit(vat, rules.multipliers.short, i); } } return result; } function extractDigit(vat, total) { - let result = total; - for (let i = 0; i < 8; i++) { + var result = total; + for (var i = 0; i < 8; i++) { result += Number(vat.charAt(i)) * (i + 1); } return result; } function checkDigit(total) { - let result = total % 11; + var result = total % 11; if (result === 10) { result = 0; } @@ -45,7 +45,7 @@ function checkDigit(total) { } function _check9DigitVat(vat, rules) { // 9 character VAT numbers are for legal persons - let total = 0; + var total = 0; if (vat.length === 9) { // 8th character must be one if (!(/^\d{7}1/).test(vat)) @@ -57,30 +57,30 @@ function _check9DigitVat(vat, rules) { // Establish check digit. total = checkDigit(total); // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(8, 9)); + var expect = Number(vat.slice(8, 9)); return total === expect; } return false; } function extractDigit12(vat, total, rules) { - let result = total; - for (let k = 0; k < 11; k++) { + var result = total; + for (var k = 0; k < 11; k++) { result += _extractDigit(vat, rules.multipliers.med, k); } return result; } function _doubleCheckCalculation12(vat, total, rules) { - let result = total; + var result = total; if (total % 11 === 10) { result = 0; - for (let l = 0; l < 11; l++) { + for (var l = 0; l < 11; l++) { result += _extractDigit(vat, rules.multipliers.alt, l); } } return result; } function _check12DigitVat(vat, rules) { - let total = 0; + var total = 0; // 12 character VAT numbers are for temporarily registered taxpayers if (vat.length === 12) { if (!rules.check) @@ -95,7 +95,7 @@ function _check12DigitVat(vat, rules) { // Establish check digit. total = checkDigit(total); // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(11, 12)); + var expect = Number(vat.slice(11, 12)); return total === expect; } return false; diff --git a/lib/commonjs/lib/countries/luxembourg.js b/lib/commonjs/lib/countries/luxembourg.js index 64f09de..55d0bb2 100644 --- a/lib/commonjs/lib/countries/luxembourg.js +++ b/lib/commonjs/lib/countries/luxembourg.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.luxembourg = { name: 'Luxembourg', codes: ['LU', 'LUX', '442'], - calcFn: (vat) => { - const expect = Number(vat.slice(6, 8)); - const checkDigit = Number(vat.slice(0, 6)) % 89; + calcFn: function (vat) { + var expect = Number(vat.slice(6, 8)); + var checkDigit = Number(vat.slice(0, 6)) % 89; // Checks the check digits of a Luxembourg VAT number. return checkDigit === expect; }, diff --git a/lib/commonjs/lib/countries/malta.js b/lib/commonjs/lib/countries/malta.js index 75d9a03..ea7e080 100644 --- a/lib/commonjs/lib/countries/malta.js +++ b/lib/commonjs/lib/countries/malta.js @@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.malta = { name: 'Malta', codes: ['MT', 'MLT', '470'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 6; i++) { + for (var i = 0; i < 6; i++) { total += Number(vat.charAt(i)) * exports.malta.rules.multipliers.common[i]; } // Establish check digits by getting modulus 37. total = 37 - total % 37; // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(6, 8)); + var expect = Number(vat.slice(6, 8)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/netherlands.js b/lib/commonjs/lib/countries/netherlands.js index eba6b94..98ec776 100644 --- a/lib/commonjs/lib/countries/netherlands.js +++ b/lib/commonjs/lib/countries/netherlands.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.netherlands = { name: 'Netherlands', codes: ['NL', 'NLD', '528'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 8; i++) { + for (var i = 0; i < 8; i++) { total += Number(vat.charAt(i)) * exports.netherlands.rules.multipliers.common[i]; } // Establish check digits by getting modulus 11. @@ -15,7 +15,7 @@ exports.netherlands = { total = 0; } // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(8, 9)); + var expect = Number(vat.slice(8, 9)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/norway.js b/lib/commonjs/lib/countries/norway.js index 0707100..b1b47b5 100644 --- a/lib/commonjs/lib/countries/norway.js +++ b/lib/commonjs/lib/countries/norway.js @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.norway = { name: 'Norway', codes: ['NO', 'NOR', '578'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // See http://www.brreg.no/english/coordination/number.html // Extract the next digit and multiply by the counter. - for (let i = 0; i < 8; i++) { + for (var i = 0; i < 8; i++) { total += Number(vat.charAt(i)) * exports.norway.rules.multipliers.common[i]; } // Establish check digits by getting modulus 11. Check digits > 9 are invalid @@ -17,7 +17,7 @@ exports.norway = { } if (total < 10) { // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(8, 9)); + var expect = Number(vat.slice(8, 9)); return total === expect; } return false; diff --git a/lib/commonjs/lib/countries/poland.js b/lib/commonjs/lib/countries/poland.js index 494de89..94c81c4 100644 --- a/lib/commonjs/lib/countries/poland.js +++ b/lib/commonjs/lib/countries/poland.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.poland = { name: 'Poland', codes: ['PL', 'POL', '616'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 9; i++) { + for (var i = 0; i < 9; i++) { total += Number(vat.charAt(i)) * exports.poland.rules.multipliers.common[i]; } // Establish check digits subtracting modulus 11 from 11. @@ -15,7 +15,7 @@ exports.poland = { total = 0; } // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(9, 10)); + var expect = Number(vat.slice(9, 10)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/portugal.js b/lib/commonjs/lib/countries/portugal.js index dac2864..fad18f8 100644 --- a/lib/commonjs/lib/countries/portugal.js +++ b/lib/commonjs/lib/countries/portugal.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.portugal = { name: 'Portugal', codes: ['PT', 'PRT', '620'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 8; i++) { + for (var i = 0; i < 8; i++) { total += Number(vat.charAt(i)) * exports.portugal.rules.multipliers.common[i]; } // Establish check digits subtracting modulus 11 from 11. @@ -15,7 +15,7 @@ exports.portugal = { total = 0; } // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(8, 9)); + var expect = Number(vat.slice(8, 9)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/romania.js b/lib/commonjs/lib/countries/romania.js index c1ac571..8d51b6f 100644 --- a/lib/commonjs/lib/countries/romania.js +++ b/lib/commonjs/lib/countries/romania.js @@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.romania = { name: 'Romania', codes: ['RO', 'ROU', '642'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Extract the next digit and multiply by the counter. - const vatLength = vat.length; - const multipliers = exports.romania.rules.multipliers.common.slice(10 - vatLength); - for (let i = 0; i < vat.length - 1; i++) { + var vatLength = vat.length; + var multipliers = exports.romania.rules.multipliers.common.slice(10 - vatLength); + for (var i = 0; i < vat.length - 1; i++) { total += Number(vat.charAt(i)) * multipliers[i]; } // Establish check digits by getting modulus 11. @@ -16,7 +16,7 @@ exports.romania = { if (total === 10) total = 0; // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(vat.length - 1, vat.length)); + var expect = Number(vat.slice(vat.length - 1, vat.length)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/russia.js b/lib/commonjs/lib/countries/russia.js index e5baae7..fe36e0d 100644 --- a/lib/commonjs/lib/countries/russia.js +++ b/lib/commonjs/lib/countries/russia.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.russia = { name: 'Russian Federation', codes: ['RU', 'RUS', '643'], - calcFn: (vat) => { + calcFn: function (vat) { // See http://russianpartner.biz/test_inn.html for algorithm return _check10DigitINN(vat, exports.russia.rules) || _check12DigitINN(vat, exports.russia.rules); }, @@ -17,9 +17,9 @@ exports.russia = { } }; function _check10DigitINN(vat, rules) { - let total = 0; + var total = 0; if (vat.length === 10) { - for (let i = 0; i < 10; i++) { + for (var i = 0; i < 10; i++) { total += Number(vat.charAt(i)) * rules.multipliers.m_1[i]; } total = total % 11; @@ -27,23 +27,23 @@ function _check10DigitINN(vat, rules) { total = total % 10; } // Compare it with the last character of the VAT number. If it is the same, then it's valid - const expect = Number(vat.slice(9, 10)); + var expect = Number(vat.slice(9, 10)); return total === expect; } return false; } function _check12DigitINN(vat, rules) { - let total1 = 0; - let total2 = 0; + var total1 = 0; + var total2 = 0; if (vat.length === 12) { - for (let j = 0; j < 11; j++) { + for (var j = 0; j < 11; j++) { total1 += Number(vat.charAt(j)) * rules.multipliers.m_2[j]; } total1 = total1 % 11; if (total1 > 9) { total1 = total1 % 10; } - for (let k = 0; k < 11; k++) { + for (var k = 0; k < 11; k++) { total2 += Number(vat.charAt(k)) * rules.multipliers.m_3[k]; } total2 = total2 % 11; @@ -52,8 +52,8 @@ function _check12DigitINN(vat, rules) { } // Compare the first check with the 11th character and the second check with the 12th and last // character of the VAT number. If they're both the same, then it's valid - const expect = (total1 === Number(vat.slice(10, 11))); - const expect2 = (total2 === Number(vat.slice(11, 12))); + var expect = (total1 === Number(vat.slice(10, 11))); + var expect2 = (total2 === Number(vat.slice(11, 12))); return (expect) && (expect2); } return false; diff --git a/lib/commonjs/lib/countries/serbia.js b/lib/commonjs/lib/countries/serbia.js index 6c5afcf..476e7c4 100644 --- a/lib/commonjs/lib/countries/serbia.js +++ b/lib/commonjs/lib/countries/serbia.js @@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.serbia = { name: 'Serbia', codes: ['RS', 'SRB', '688'], - calcFn: (vat) => { + calcFn: function (vat) { // Checks the check digits of a Serbian VAT number using ISO 7064, MOD 11-10 for check digit. - let product = 10; - let sum = 0; - for (let i = 0; i < 8; i++) { + var product = 10; + var sum = 0; + for (var i = 0; i < 8; i++) { // Extract the next digit and implement the algorithm sum = (Number(vat.charAt(i)) + product) % 10; if (sum === 0) { @@ -16,8 +16,8 @@ exports.serbia = { product = (2 * sum) % 11; } // Now check that we have the right check digit - const expect = 1; - const checkDigit = (product + (Number(vat.slice(8, 9)))) % 10; + var expect = 1; + var checkDigit = (product + (Number(vat.slice(8, 9)))) % 10; return checkDigit === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/slovakiaRepublic.js b/lib/commonjs/lib/countries/slovakiaRepublic.js index ad6f065..ea70e03 100644 --- a/lib/commonjs/lib/countries/slovakiaRepublic.js +++ b/lib/commonjs/lib/countries/slovakiaRepublic.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.slovakiaRepublic = { name: 'Slovakia Republic', codes: ['SK', 'SVK', '703'], - calcFn: (vat) => { - const expect = 0; - const checkDigit = (Number(vat) % 11); + calcFn: function (vat) { + var expect = 0; + var checkDigit = (Number(vat) % 11); return checkDigit === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/slovenia.js b/lib/commonjs/lib/countries/slovenia.js index 0e7cfb9..4958822 100644 --- a/lib/commonjs/lib/countries/slovenia.js +++ b/lib/commonjs/lib/countries/slovenia.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.slovenia = { name: 'Slovenia', codes: ['SI', 'SVN', '705'], - calcFn: (vat) => { - let total = 0; + calcFn: function (vat) { + var total = 0; // Extract the next digit and multiply by the counter. - for (let i = 0; i < 7; i++) { + for (var i = 0; i < 7; i++) { total += Number(vat.charAt(i)) * exports.slovenia.rules.multipliers.common[i]; } // Establish check digits using modulus 11 @@ -16,7 +16,7 @@ exports.slovenia = { } // Compare the number with the last character of the VAT number. If it is the // same, then it's a valid check digit. - const expect = Number(vat.slice(7, 8)); + var expect = Number(vat.slice(7, 8)); return !!(total !== 11 && total === expect); }, rules: { diff --git a/lib/commonjs/lib/countries/spain.js b/lib/commonjs/lib/countries/spain.js index 238bebf..b8dccd1 100644 --- a/lib/commonjs/lib/countries/spain.js +++ b/lib/commonjs/lib/countries/spain.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.spain = { name: 'Spain', codes: ['ES', 'ESP', '724'], - calcFn: (vat) => { - const { additional, multipliers } = exports.spain.rules; + calcFn: function (vat) { + var _a = exports.spain.rules, additional = _a.additional, multipliers = _a.multipliers; if (!additional) return false; // National juridical entities @@ -40,9 +40,9 @@ exports.spain = { } }; function extractDigitAndMultiplyByCounter(vat, multipliers, total) { - let temp; - let result = total; - for (let i = 0; i < 7; i++) { + var temp; + var result = total; + for (var i = 0; i < 7; i++) { temp = Number(vat.charAt(i + 1)) * multipliers[i]; if (temp > 9) { result += Math.floor(temp / 10) + temp % 10; @@ -54,35 +54,35 @@ function extractDigitAndMultiplyByCounter(vat, multipliers, total) { return result; } function isNationalJuridicalEntities(vat, multipliers) { - let total = extractDigitAndMultiplyByCounter(vat, multipliers, 0); + var total = extractDigitAndMultiplyByCounter(vat, multipliers, 0); // Now calculate the check digit itself. total = 10 - total % 10; if (total === 10) { total = 0; } // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = Number(vat.slice(8, 9)); + var expect = Number(vat.slice(8, 9)); return total === expect; } function isNonNationalJuridical(vat, multipliers) { - let total = extractDigitAndMultiplyByCounter(vat, multipliers, 0); + var total = extractDigitAndMultiplyByCounter(vat, multipliers, 0); // Now calculate the check digit itself. total = 10 - total % 10; - const totalStr = String.fromCharCode(total + 64); + var totalStr = String.fromCharCode(total + 64); // Compare it with the last character of the VAT number. If it's the same, then it's valid. - const expect = vat.slice(8, 9); + var expect = vat.slice(8, 9); return totalStr === expect; } function isPersonalYtoZ(vat) { - let tempNumber = vat; + var tempNumber = vat; if (tempNumber.substring(0, 1) === 'Y') tempNumber = tempNumber.replace(/Y/, '1'); if (tempNumber.substring(0, 1) === 'Z') tempNumber = tempNumber.replace(/Z/, '2'); - const expect = 'TRWAGMYFPDXBNJZSQVHLCKE'.charAt(+tempNumber.substring(0, 8) % 23); + var expect = 'TRWAGMYFPDXBNJZSQVHLCKE'.charAt(+tempNumber.substring(0, 8) % 23); return tempNumber.charAt(8) === expect; } function isPersonalKtoX(vat) { - const expect = 'TRWAGMYFPDXBNJZSQVHLCKE'.charAt(Number(vat.substring(1, 8)) % 23); + var expect = 'TRWAGMYFPDXBNJZSQVHLCKE'.charAt(Number(vat.substring(1, 8)) % 23); return vat.charAt(8) === expect; } diff --git a/lib/commonjs/lib/countries/sweden.js b/lib/commonjs/lib/countries/sweden.js index f3a8edf..0267926 100644 --- a/lib/commonjs/lib/countries/sweden.js +++ b/lib/commonjs/lib/countries/sweden.js @@ -3,20 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.sweden = { name: 'Sweden', codes: ['SE', 'SWE', '752'], - calcFn: (vat) => { - let expect; + calcFn: function (vat) { + var expect; // Calculate R where R = R1 + R3 + R5 + R7 + R9, and Ri = INT(Ci/5) + (Ci*2) modulo 10 - let R = 0; - for (let i = 0; i < 9; i = i + 2) { - const digit = Number(vat.charAt(i)); + var R = 0; + for (var i = 0; i < 9; i = i + 2) { + var digit = Number(vat.charAt(i)); R += Math.floor(digit / 5) + ((digit * 2) % 10); } // Calculate S where S = C2 + C4 + C6 + C8 - let S = 0; - for (let j = 1; j < 9; j = j + 2) { + var S = 0; + for (var j = 1; j < 9; j = j + 2) { S += Number(vat.charAt(j)); } - const checkDigit = (10 - (R + S) % 10) % 10; + var checkDigit = (10 - (R + S) % 10) % 10; // Compare it with the last character of the VAT number. If it's the same, then it's valid. expect = Number(vat.slice(9, 10)); return checkDigit === expect; diff --git a/lib/commonjs/lib/countries/switzerland.js b/lib/commonjs/lib/countries/switzerland.js index c5fc14d..0a561b2 100644 --- a/lib/commonjs/lib/countries/switzerland.js +++ b/lib/commonjs/lib/countries/switzerland.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.switzerland = { name: 'Switzerland', codes: ['CH', 'CHE', '756'], - calcFn: (vat) => { - let total = 0; - for (let i = 0; i < 8; i++) { + calcFn: function (vat) { + var total = 0; + for (var i = 0; i < 8; i++) { total += Number(vat.charAt(i)) * exports.switzerland.rules.multipliers.common[i]; } // Establish check digit.s @@ -15,7 +15,7 @@ exports.switzerland = { if (total === 11) total = 0; // Check to see if the check digit given is correct, If not, we have an error with the VAT number - const expect = Number(vat.substr(8, 1)); + var expect = Number(vat.substr(8, 1)); return total === expect; }, rules: { diff --git a/lib/commonjs/lib/countries/unitedKingdom.js b/lib/commonjs/lib/countries/unitedKingdom.js index f0651d3..f52503b 100644 --- a/lib/commonjs/lib/countries/unitedKingdom.js +++ b/lib/commonjs/lib/countries/unitedKingdom.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.unitedKingdom = { name: 'United Kingdom', codes: ['GB', 'GBR', '826'], - calcFn: (vat) => { + calcFn: function (vat) { // Government departments if (vat.substr(0, 2) === 'GD') return isGovernmentDepartment(vat); @@ -26,28 +26,28 @@ exports.unitedKingdom = { } }; function isGovernmentDepartment(vat) { - const expect = 500; + var expect = 500; return Number(vat.substr(2, 3)) < expect; } function isHealthAuthorities(vat) { - const expect = 499; + var expect = 499; return Number(vat.substr(2, 3)) > expect; } function isStandardOrCommercialNumber(vat, multipliers) { - let total = 0; + var total = 0; // 0 VAT numbers disallowed! if (Number(vat.slice(0)) === 0) return false; // Check range is OK for modulus 97 calculation - const no = Number(vat.slice(0, 7)); + var no = Number(vat.slice(0, 7)); // Extract the next digit and multiply by the counter. - for (let i = 0; i < 7; i++) { + for (var i = 0; i < 7; i++) { total += Number(vat.charAt(i)) * multipliers[i]; } // Old numbers use a simple 97 modulus, but new numbers use an adaptation of that (less 55). Our // VAT number could use either system, so we check it against both. // Establish check digits by subtracting 97 from total until negative. - let checkDigit = total; + var checkDigit = total; while (checkDigit > 0) { checkDigit = checkDigit - 97; } @@ -64,6 +64,6 @@ function isStandardOrCommercialNumber(vat, multipliers) { else { checkDigit = checkDigit + 42; } - const expect = Number(vat.slice(7, 9)); + var expect = Number(vat.slice(7, 9)); return Boolean(checkDigit === expect && no > 1000000); } diff --git a/lib/commonjs/lib/jsvat.js b/lib/commonjs/lib/jsvat.js index 92dba36..af823f2 100644 --- a/lib/commonjs/lib/jsvat.js +++ b/lib/commonjs/lib/jsvat.js @@ -14,43 +14,47 @@ function makeResult(vat, isValid, country) { } }; } -function removeExtraChars(vat = '') { +function removeExtraChars(vat) { + if (vat === void 0) { vat = ''; } return vat.toString().toUpperCase().replace(/(\s|-|\.)+/g, ''); } function getCountry(vat, countriesList) { - for (const country of countriesList) { - const regexpValidRes = isVatValidToRegexp(vat, country.rules.regex); + for (var _i = 0, countriesList_1 = countriesList; _i < countriesList_1.length; _i++) { + var country = countriesList_1[_i]; + var regexpValidRes = isVatValidToRegexp(vat, country.rules.regex); if (regexpValidRes.isValid) return country; } return undefined; } function isVatValidToRegexp(vat, regexArr) { - for (const regex of regexArr) { - const isValid = regex.test(vat); + for (var _i = 0, regexArr_1 = regexArr; _i < regexArr_1.length; _i++) { + var regex = regexArr_1[_i]; + var isValid = regex.test(vat); if (isValid) return { isValid: true, regex: regex }; } return { isValid: false, regex: undefined }; } function isVatValid(vat, country) { - const regexpValidRes = isVatValidToRegexp(vat, country.rules.regex); + var regexpValidRes = isVatValidToRegexp(vat, country.rules.regex); if (!regexpValidRes.isValid || !regexpValidRes.regex) return false; - const regexResult = regexpValidRes.regex.exec(vat); + var regexResult = regexpValidRes.regex.exec(vat); if (!regexResult) return false; return country.calcFn(regexResult[2]); } -function checkVAT(vat, countriesList = []) { +function checkVAT(vat, countriesList) { + if (countriesList === void 0) { countriesList = []; } if (!vat) return makeResult(vat, false); - const cleanVAT = removeExtraChars(vat); - const result = makeResult(cleanVAT); - const country = getCountry(cleanVAT, countriesList); + var cleanVAT = removeExtraChars(vat); + var result = makeResult(cleanVAT); + var country = getCountry(cleanVAT, countriesList); if (!country) return result; - const isValid = isVatValid(cleanVAT, country); + var isValid = isVatValid(cleanVAT, country); if (isValid) return makeResult(cleanVAT, isValid, country); return result; diff --git a/package.json b/package.json index 7f73c93..bbe8b86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jsvat", - "version": "2.1.3", + "version": "2.1.4", "description": "Check the validity of the format of an EU VAT number", "main": "./lib/commonjs/index.js", "module": "./lib/es6/index.js", @@ -49,15 +49,15 @@ "private": false, "dependencies": {}, "devDependencies": { - "@babel/preset-env": "7.5.5", + "@babel/preset-env": "7.6.3", "babel": "6.23.0", "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", - "jest": "24.8.0", - "rimraf": "2.6.3", - "ts-loader": "6.0.4", - "tslint": "5.18.0", + "jest": "24.9.0", + "rimraf": "3.0.0", + "ts-loader": "6.2.0", + "tslint": "5.20.0", "tslint-config-prettier": "1.18.0", "tslint-immutable": "6.0.1", - "typescript": "3.5.3" + "typescript": "3.6.4" } } diff --git a/yarn.lock b/yarn.lock index 810e649..07e9180 100644 --- a/yarn.lock +++ b/yarn.lock @@ -242,10 +242,10 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-json-strings" "^7.2.0" -"@babel/plugin-proposal-object-rest-spread@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.5.5.tgz#61939744f71ba76a3ae46b5eea18a54c16d22e58" - integrity sha512-F2DxJJSQ7f64FyTVl5cw/9MWn6naXGdk3Q3UhDbFEEHv+EilCPoeRD3Zh/Utx1CJz4uyKlQ4uH+bJPbEhMV7Zw== +"@babel/plugin-proposal-object-rest-spread@^7.6.2": + version "7.6.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.6.2.tgz#8ffccc8f3a6545e9f78988b6bf4fe881b88e8096" + integrity sha512-LDBXlmADCsMZV1Y9OQwMc0MyGZ8Ta/zlD9N67BfQT8uYwkRswiu2hU6nJKrjrt/58aH/vqfQlR/9yId/7A2gWw== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-object-rest-spread" "^7.2.0" @@ -257,13 +257,14 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" -"@babel/plugin-proposal-unicode-property-regex@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.4.4.tgz#501ffd9826c0b91da22690720722ac7cb1ca9c78" +"@babel/plugin-proposal-unicode-property-regex@^7.6.2": + version "7.6.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.6.2.tgz#05413762894f41bfe42b9a5e80919bd575dcc802" + integrity sha512-NxHETdmpeSCtiatMRYWVJo7266rrvAC3DTeG5exQBIH/fMIUK7ejDNznBbn3HQl/o9peymRRg7Yqkx6PdUXmMw== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/helper-regex" "^7.4.4" - regexpu-core "^4.5.4" + regexpu-core "^4.6.0" "@babel/plugin-syntax-async-generators@^7.2.0": version "7.2.0" @@ -317,10 +318,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-block-scoping@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.5.5.tgz#a35f395e5402822f10d2119f6f8e045e3639a2ce" - integrity sha512-82A3CLRRdYubkG85lKwhZB0WZoHxLGsJdux/cOVaJCJpvYFl1LVzAIFyRsa7CvXqW8rBM4Zf3Bfn8PHt5DP0Sg== +"@babel/plugin-transform-block-scoping@^7.6.3": + version "7.6.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.6.3.tgz#6e854e51fbbaa84351b15d4ddafe342f3a5d542a" + integrity sha512-7hvrg75dubcO3ZI2rjYTzUrEuh1E9IyDEhhB6qfcooxhDA33xx2MasuLVgdxzcP6R/lipAC6n9ub9maNW6RKdw== dependencies: "@babel/helper-plugin-utils" "^7.0.0" lodash "^4.17.13" @@ -345,20 +346,21 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-destructuring@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.5.0.tgz#f6c09fdfe3f94516ff074fe877db7bc9ef05855a" - integrity sha512-YbYgbd3TryYYLGyC7ZR+Tq8H/+bCmwoaxHfJHupom5ECstzbRLTch6gOQbhEY9Z4hiCNHEURgq06ykFv9JZ/QQ== +"@babel/plugin-transform-destructuring@^7.6.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.6.0.tgz#44bbe08b57f4480094d57d9ffbcd96d309075ba6" + integrity sha512-2bGIS5P1v4+sWTCnKNDZDxbGvEqi0ijeqM/YqHtVGrvG2y0ySgnEEhXErvE9dA0bnIzY9bIzdFK0jFA46ASIIQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-dotall-regex@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.4.4.tgz#361a148bc951444312c69446d76ed1ea8e4450c3" +"@babel/plugin-transform-dotall-regex@^7.6.2": + version "7.6.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.6.2.tgz#44abb948b88f0199a627024e1508acaf8dc9b2f9" + integrity sha512-KGKT9aqKV+9YMZSkowzYoYEiHqgaDhGmPNZlZxX6UeHC4z30nC1J9IrZuGqbYFB1jaIGdv91ujpze0exiVK8bA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/helper-regex" "^7.4.4" - regexpu-core "^4.5.4" + regexpu-core "^4.6.0" "@babel/plugin-transform-duplicate-keys@^7.5.0": version "7.5.0" @@ -408,10 +410,10 @@ "@babel/helper-plugin-utils" "^7.0.0" babel-plugin-dynamic-import-node "^2.3.0" -"@babel/plugin-transform-modules-commonjs@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.5.0.tgz#425127e6045231360858eeaa47a71d75eded7a74" - integrity sha512-xmHq0B+ytyrWJvQTc5OWAC4ii6Dhr0s22STOoydokG51JjWhyYo5mRPXoi+ZmtHQhZZwuXNN+GG5jy5UZZJxIQ== +"@babel/plugin-transform-modules-commonjs@^7.6.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.6.0.tgz#39dfe957de4420445f1fcf88b68a2e4aa4515486" + integrity sha512-Ma93Ix95PNSEngqomy5LSBMAQvYKVe3dy+JlVJSHEXZR5ASL9lQBedMiCyVtmTLraIDVRE3ZjTZvmXXD2Ozw3g== dependencies: "@babel/helper-module-transforms" "^7.4.4" "@babel/helper-plugin-utils" "^7.0.0" @@ -434,11 +436,12 @@ "@babel/helper-module-transforms" "^7.1.0" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-named-capturing-groups-regex@^7.4.5": - version "7.4.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.4.5.tgz#9d269fd28a370258199b4294736813a60bbdd106" +"@babel/plugin-transform-named-capturing-groups-regex@^7.6.3": + version "7.6.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.6.3.tgz#aaa6e409dd4fb2e50b6e2a91f7e3a3149dbce0cf" + integrity sha512-jTkk7/uE6H2s5w6VlMHeWuH+Pcy2lmdwFoeWCVnvIrDUnB5gQqTVI8WfmEAhF2CDEarGrknZcmSFg1+bkfCoSw== dependencies: - regexp-tree "^0.1.6" + regexpu-core "^4.6.0" "@babel/plugin-transform-new-target@^7.4.4": version "7.4.4" @@ -486,9 +489,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-spread@^7.2.0": - version "7.2.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.2.2.tgz#3103a9abe22f742b6d406ecd3cd49b774919b406" +"@babel/plugin-transform-spread@^7.6.2": + version "7.6.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.6.2.tgz#fc77cf798b24b10c46e1b51b1b88c2bf661bb8dd" + integrity sha512-DpSvPFryKdK1x+EDJYCy28nmAaIMdxmhot62jAXF/o99iA33Zj2Lmcp3vDmz+MUh0LNYVPvfj5iC3feb3/+PFg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" @@ -512,27 +516,28 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-unicode-regex@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.4.4.tgz#ab4634bb4f14d36728bf5978322b35587787970f" +"@babel/plugin-transform-unicode-regex@^7.6.2": + version "7.6.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.6.2.tgz#b692aad888a7e8d8b1b214be6b9dc03d5031f698" + integrity sha512-orZI6cWlR3nk2YmYdb0gImrgCUwb5cBUwjf6Ks6dvNVvXERkwtJWOQaEOjPiu0Gu1Tq6Yq/hruCZZOOi9F34Dw== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/helper-regex" "^7.4.4" - regexpu-core "^4.5.4" + regexpu-core "^4.6.0" -"@babel/preset-env@7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.5.5.tgz#bc470b53acaa48df4b8db24a570d6da1fef53c9a" - integrity sha512-GMZQka/+INwsMz1A5UEql8tG015h5j/qjptpKY2gJ7giy8ohzU710YciJB5rcKsWGWHiW3RUnHib0E5/m3Tp3A== +"@babel/preset-env@7.6.3": + version "7.6.3" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.6.3.tgz#9e1bf05a2e2d687036d24c40e4639dc46cef2271" + integrity sha512-CWQkn7EVnwzlOdR5NOm2+pfgSNEZmvGjOhlCHBDq0J8/EStr+G+FvPEiz9B56dR6MoiUFjXhfE4hjLoAKKJtIQ== dependencies: "@babel/helper-module-imports" "^7.0.0" "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-proposal-async-generator-functions" "^7.2.0" "@babel/plugin-proposal-dynamic-import" "^7.5.0" "@babel/plugin-proposal-json-strings" "^7.2.0" - "@babel/plugin-proposal-object-rest-spread" "^7.5.5" + "@babel/plugin-proposal-object-rest-spread" "^7.6.2" "@babel/plugin-proposal-optional-catch-binding" "^7.2.0" - "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" + "@babel/plugin-proposal-unicode-property-regex" "^7.6.2" "@babel/plugin-syntax-async-generators" "^7.2.0" "@babel/plugin-syntax-dynamic-import" "^7.2.0" "@babel/plugin-syntax-json-strings" "^7.2.0" @@ -541,11 +546,11 @@ "@babel/plugin-transform-arrow-functions" "^7.2.0" "@babel/plugin-transform-async-to-generator" "^7.5.0" "@babel/plugin-transform-block-scoped-functions" "^7.2.0" - "@babel/plugin-transform-block-scoping" "^7.5.5" + "@babel/plugin-transform-block-scoping" "^7.6.3" "@babel/plugin-transform-classes" "^7.5.5" "@babel/plugin-transform-computed-properties" "^7.2.0" - "@babel/plugin-transform-destructuring" "^7.5.0" - "@babel/plugin-transform-dotall-regex" "^7.4.4" + "@babel/plugin-transform-destructuring" "^7.6.0" + "@babel/plugin-transform-dotall-regex" "^7.6.2" "@babel/plugin-transform-duplicate-keys" "^7.5.0" "@babel/plugin-transform-exponentiation-operator" "^7.2.0" "@babel/plugin-transform-for-of" "^7.4.4" @@ -553,10 +558,10 @@ "@babel/plugin-transform-literals" "^7.2.0" "@babel/plugin-transform-member-expression-literals" "^7.2.0" "@babel/plugin-transform-modules-amd" "^7.5.0" - "@babel/plugin-transform-modules-commonjs" "^7.5.0" + "@babel/plugin-transform-modules-commonjs" "^7.6.0" "@babel/plugin-transform-modules-systemjs" "^7.5.0" "@babel/plugin-transform-modules-umd" "^7.2.0" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.4.5" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.6.3" "@babel/plugin-transform-new-target" "^7.4.4" "@babel/plugin-transform-object-super" "^7.5.5" "@babel/plugin-transform-parameters" "^7.4.4" @@ -564,12 +569,12 @@ "@babel/plugin-transform-regenerator" "^7.4.5" "@babel/plugin-transform-reserved-words" "^7.2.0" "@babel/plugin-transform-shorthand-properties" "^7.2.0" - "@babel/plugin-transform-spread" "^7.2.0" + "@babel/plugin-transform-spread" "^7.6.2" "@babel/plugin-transform-sticky-regex" "^7.2.0" "@babel/plugin-transform-template-literals" "^7.4.4" "@babel/plugin-transform-typeof-symbol" "^7.2.0" - "@babel/plugin-transform-unicode-regex" "^7.4.4" - "@babel/types" "^7.5.5" + "@babel/plugin-transform-unicode-regex" "^7.6.2" + "@babel/types" "^7.6.3" browserslist "^4.6.0" core-js-compat "^3.1.1" invariant "^2.2.2" @@ -630,6 +635,15 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@babel/types@^7.6.3": + version "7.6.3" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.6.3.tgz#3f07d96f854f98e2fbd45c64b0cb942d11e8ba09" + integrity sha512-CqbcpTxMcpuQTMhjI37ZHVgjBkysg5icREQIEZ0eG1yCNwg3oy+5AaLiOKmjsCj6nqOsa6Hf0ObjRVwokb7srA== + dependencies: + esutils "^2.0.2" + lodash "^4.17.13" + to-fast-properties "^2.0.0" + "@cnakazawa/watch@^1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef" @@ -645,63 +659,77 @@ chalk "^2.0.1" slash "^2.0.0" -"@jest/core@^24.8.0": - version "24.8.0" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-24.8.0.tgz#fbbdcd42a41d0d39cddbc9f520c8bab0c33eed5b" +"@jest/console@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0" + integrity sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ== + dependencies: + "@jest/source-map" "^24.9.0" + chalk "^2.0.1" + slash "^2.0.0" + +"@jest/core@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-24.9.0.tgz#2ceccd0b93181f9c4850e74f2a9ad43d351369c4" + integrity sha512-Fogg3s4wlAr1VX7q+rhV9RVnUv5tD7VuWfYy1+whMiWUrvl7U3QJSJyWcDio9Lq2prqYsZaeTv2Rz24pWGkJ2A== dependencies: "@jest/console" "^24.7.1" - "@jest/reporters" "^24.8.0" - "@jest/test-result" "^24.8.0" - "@jest/transform" "^24.8.0" - "@jest/types" "^24.8.0" + "@jest/reporters" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" ansi-escapes "^3.0.0" chalk "^2.0.1" exit "^0.1.2" graceful-fs "^4.1.15" - jest-changed-files "^24.8.0" - jest-config "^24.8.0" - jest-haste-map "^24.8.0" - jest-message-util "^24.8.0" + jest-changed-files "^24.9.0" + jest-config "^24.9.0" + jest-haste-map "^24.9.0" + jest-message-util "^24.9.0" jest-regex-util "^24.3.0" - jest-resolve-dependencies "^24.8.0" - jest-runner "^24.8.0" - jest-runtime "^24.8.0" - jest-snapshot "^24.8.0" - jest-util "^24.8.0" - jest-validate "^24.8.0" - jest-watcher "^24.8.0" + jest-resolve "^24.9.0" + jest-resolve-dependencies "^24.9.0" + jest-runner "^24.9.0" + jest-runtime "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + jest-watcher "^24.9.0" micromatch "^3.1.10" p-each-series "^1.0.0" - pirates "^4.0.1" realpath-native "^1.1.0" rimraf "^2.5.4" + slash "^2.0.0" strip-ansi "^5.0.0" -"@jest/environment@^24.8.0": - version "24.8.0" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-24.8.0.tgz#0342261383c776bdd652168f68065ef144af0eac" - dependencies: - "@jest/fake-timers" "^24.8.0" - "@jest/transform" "^24.8.0" - "@jest/types" "^24.8.0" - jest-mock "^24.8.0" - -"@jest/fake-timers@^24.8.0": - version "24.8.0" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-24.8.0.tgz#2e5b80a4f78f284bcb4bd5714b8e10dd36a8d3d1" - dependencies: - "@jest/types" "^24.8.0" - jest-message-util "^24.8.0" - jest-mock "^24.8.0" - -"@jest/reporters@^24.8.0": - version "24.8.0" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-24.8.0.tgz#075169cd029bddec54b8f2c0fc489fd0b9e05729" - dependencies: - "@jest/environment" "^24.8.0" - "@jest/test-result" "^24.8.0" - "@jest/transform" "^24.8.0" - "@jest/types" "^24.8.0" +"@jest/environment@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-24.9.0.tgz#21e3afa2d65c0586cbd6cbefe208bafade44ab18" + integrity sha512-5A1QluTPhvdIPFYnO3sZC3smkNeXPVELz7ikPbhUj0bQjB07EoE9qtLrem14ZUYWdVayYbsjVwIiL4WBIMV4aQ== + dependencies: + "@jest/fake-timers" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + +"@jest/fake-timers@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-24.9.0.tgz#ba3e6bf0eecd09a636049896434d306636540c93" + integrity sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A== + dependencies: + "@jest/types" "^24.9.0" + jest-message-util "^24.9.0" + jest-mock "^24.9.0" + +"@jest/reporters@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-24.9.0.tgz#86660eff8e2b9661d042a8e98a028b8d631a5b43" + integrity sha512-mu4X0yjaHrffOsWmVLzitKmmmWSQ3GGuefgNscUSWNiUNcEOSEQk9k3pERKEQVBb0Cnn88+UESIsZEMH3o88Gw== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" chalk "^2.0.1" exit "^0.1.2" glob "^7.1.2" @@ -709,13 +737,13 @@ istanbul-lib-instrument "^3.0.1" istanbul-lib-report "^2.0.4" istanbul-lib-source-maps "^3.0.1" - istanbul-reports "^2.1.1" - jest-haste-map "^24.8.0" - jest-resolve "^24.8.0" - jest-runtime "^24.8.0" - jest-util "^24.8.0" + istanbul-reports "^2.2.6" + jest-haste-map "^24.9.0" + jest-resolve "^24.9.0" + jest-runtime "^24.9.0" + jest-util "^24.9.0" jest-worker "^24.6.0" - node-notifier "^5.2.1" + node-notifier "^5.4.2" slash "^2.0.0" source-map "^0.6.0" string-length "^2.0.0" @@ -728,50 +756,64 @@ graceful-fs "^4.1.15" source-map "^0.6.0" -"@jest/test-result@^24.8.0": - version "24.8.0" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-24.8.0.tgz#7675d0aaf9d2484caa65e048d9b467d160f8e9d3" +"@jest/source-map@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-24.9.0.tgz#0e263a94430be4b41da683ccc1e6bffe2a191714" + integrity sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg== dependencies: - "@jest/console" "^24.7.1" - "@jest/types" "^24.8.0" + callsites "^3.0.0" + graceful-fs "^4.1.15" + source-map "^0.6.0" + +"@jest/test-result@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-24.9.0.tgz#11796e8aa9dbf88ea025757b3152595ad06ba0ca" + integrity sha512-XEFrHbBonBJ8dGp2JmF8kP/nQI/ImPpygKHwQ/SY+es59Z3L5PI4Qb9TQQMAEeYsThG1xF0k6tmG0tIKATNiiA== + dependencies: + "@jest/console" "^24.9.0" + "@jest/types" "^24.9.0" "@types/istanbul-lib-coverage" "^2.0.0" -"@jest/test-sequencer@^24.8.0": - version "24.8.0" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-24.8.0.tgz#2f993bcf6ef5eb4e65e8233a95a3320248cf994b" +"@jest/test-sequencer@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-24.9.0.tgz#f8f334f35b625a4f2f355f2fe7e6036dad2e6b31" + integrity sha512-6qqsU4o0kW1dvA95qfNog8v8gkRN9ph6Lz7r96IvZpHdNipP2cBcb07J1Z45mz/VIS01OHJ3pY8T5fUY38tg4A== dependencies: - "@jest/test-result" "^24.8.0" - jest-haste-map "^24.8.0" - jest-runner "^24.8.0" - jest-runtime "^24.8.0" + "@jest/test-result" "^24.9.0" + jest-haste-map "^24.9.0" + jest-runner "^24.9.0" + jest-runtime "^24.9.0" -"@jest/transform@^24.8.0": - version "24.8.0" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-24.8.0.tgz#628fb99dce4f9d254c6fd9341e3eea262e06fef5" +"@jest/transform@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-24.9.0.tgz#4ae2768b296553fadab09e9ec119543c90b16c56" + integrity sha512-TcQUmyNRxV94S0QpMOnZl0++6RMiqpbH/ZMccFB/amku6Uwvyb1cjYX7xkp5nGNkbX4QPH/FcB6q1HBTHynLmQ== dependencies: "@babel/core" "^7.1.0" - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" babel-plugin-istanbul "^5.1.0" chalk "^2.0.1" convert-source-map "^1.4.0" fast-json-stable-stringify "^2.0.0" graceful-fs "^4.1.15" - jest-haste-map "^24.8.0" - jest-regex-util "^24.3.0" - jest-util "^24.8.0" + jest-haste-map "^24.9.0" + jest-regex-util "^24.9.0" + jest-util "^24.9.0" micromatch "^3.1.10" + pirates "^4.0.1" realpath-native "^1.1.0" slash "^2.0.0" source-map "^0.6.1" write-file-atomic "2.4.1" -"@jest/types@^24.8.0": - version "24.8.0" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.8.0.tgz#f31e25948c58f0abd8c845ae26fcea1491dea7ad" +"@jest/types@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" + integrity sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw== dependencies: "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^1.1.1" - "@types/yargs" "^12.0.9" + "@types/yargs" "^13.0.0" "@types/babel__core@^7.1.0": version "7.1.2" @@ -823,9 +865,17 @@ version "1.0.1" resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" -"@types/yargs@^12.0.2", "@types/yargs@^12.0.9": - version "12.0.12" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-12.0.12.tgz#45dd1d0638e8c8f153e87d296907659296873916" +"@types/yargs-parser@*": + version "13.1.0" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-13.1.0.tgz#c563aa192f39350a1d18da36c5a8da382bbd8228" + integrity sha512-gCubfBUZ6KxzoibJ+SCUc/57Ms1jz5NjHe4+dI2krNmU5zCPAphyLJYyTOg06ueIyfj+SaCUqmzun7ImlxDcKg== + +"@types/yargs@^13.0.0": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-13.0.3.tgz#76482af3981d4412d65371a318f992d33464a380" + integrity sha512-K8/LfZq2duW33XW/tFwEAfnZlqIfVsoyRB3kfXdPXYhl0nfM8mmh7GS0jg7WrX2Dgq/0Ha/pR1PaR+BvmWwjiQ== + dependencies: + "@types/yargs-parser" "*" abab@^2.0.0: version "2.0.0" @@ -979,15 +1029,16 @@ babel-code-frame@^6.26.0: esutils "^2.0.2" js-tokens "^3.0.2" -babel-jest@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.8.0.tgz#5c15ff2b28e20b0f45df43fe6b7f2aae93dba589" +babel-jest@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.9.0.tgz#3fc327cb8467b89d14d7bc70e315104a783ccd54" + integrity sha512-ntuddfyiN+EhMw58PTNL1ph4C9rECiQXjI4nMMBKBaNjXvqLdkXpPRcMSr4iyBrJg/+wz9brFUD6RhOAT6r4Iw== dependencies: - "@jest/transform" "^24.8.0" - "@jest/types" "^24.8.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" "@types/babel__core" "^7.1.0" babel-plugin-istanbul "^5.1.0" - babel-preset-jest "^24.6.0" + babel-preset-jest "^24.9.0" chalk "^2.4.2" slash "^2.0.0" @@ -1012,9 +1063,10 @@ babel-plugin-istanbul@^5.1.0: istanbul-lib-instrument "^3.3.0" test-exclude "^5.2.3" -babel-plugin-jest-hoist@^24.6.0: - version "24.6.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.6.0.tgz#f7f7f7ad150ee96d7a5e8e2c5da8319579e78019" +babel-plugin-jest-hoist@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.9.0.tgz#4f837091eb407e01447c8843cbec546d0002d756" + integrity sha512-2EMA2P8Vp7lG0RAzr4HXqtYwacfMErOuv1U3wrvxHX6rD1sV6xS3WXG3r8TRQ2r6w8OhvSdWt+z41hQNwNm3Xw== dependencies: "@types/babel__traverse" "^7.0.6" @@ -1034,12 +1086,13 @@ babel-plugin-transform-strict-mode@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-preset-jest@^24.6.0: - version "24.6.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-24.6.0.tgz#66f06136eefce87797539c0d63f1769cc3915984" +babel-preset-jest@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-24.9.0.tgz#192b521e2217fb1d1f67cf73f70c336650ad3cdc" + integrity sha512-izTUuhE4TMfTRPF92fFwD2QfdXaZW08qvWTFCI51V8rW5x00UuPgc3ajRoWofXOuxjfcOM5zzSYsQS3H8KGCAg== dependencies: "@babel/plugin-syntax-object-rest-spread" "^7.0.0" - babel-plugin-jest-hoist "^24.6.0" + babel-plugin-jest-hoist "^24.9.0" babel-runtime@^6.22.0, babel-runtime@^6.26.0: version "6.26.0" @@ -1193,7 +1246,7 @@ callsites@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" -camelcase@^5.0.0: +camelcase@^5.0.0, camelcase@^5.3.1: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" @@ -1246,13 +1299,14 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" -cliui@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" +cliui@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" + integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== dependencies: - string-width "^2.1.1" - strip-ansi "^4.0.0" - wrap-ansi "^2.0.0" + string-width "^3.1.0" + strip-ansi "^5.2.0" + wrap-ansi "^5.1.0" co@^4.6.0: version "4.6.0" @@ -1440,13 +1494,15 @@ detect-newline@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" -diff-sequences@^24.3.0: - version "24.3.0" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.3.0.tgz#0f20e8a1df1abddaf4d9c226680952e64118b975" +diff-sequences@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.9.0.tgz#5715d6244e2aa65f48bba0bc972db0b0b11e95b5" + integrity sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew== -diff@^3.2.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" +diff@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.1.tgz#0c667cb467ebbb5cea7f14f135cc2dba7780a8ff" + integrity sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q== domexception@^1.0.1: version "1.0.1" @@ -1465,6 +1521,11 @@ electron-to-chromium@^1.3.137: version "1.3.144" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.144.tgz#d742d2c451090798303a4a5eea4f33f5e60f5d94" +emoji-regex@^7.0.1: + version "7.0.3" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" + integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + emojis-list@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" @@ -1577,16 +1638,17 @@ expand-brackets@^2.1.4: snapdragon "^0.8.1" to-regex "^3.0.1" -expect@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/expect/-/expect-24.8.0.tgz#471f8ec256b7b6129ca2524b2a62f030df38718d" +expect@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-24.9.0.tgz#b75165b4817074fa4a157794f46fe9f1ba15b6ca" + integrity sha512-wvVAx8XIol3Z5m9zvZXiyZOQ+sRJqNTIm6sGjdWlaZIeupQGO3WbYI+15D/AmEwZywL6wtJkbAbJtzkOfBuR0Q== dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" ansi-styles "^3.2.0" - jest-get-type "^24.8.0" - jest-matcher-utils "^24.8.0" - jest-message-util "^24.8.0" - jest-regex-util "^24.3.0" + jest-get-type "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-regex-util "^24.9.0" extend-shallow@^2.0.1: version "2.0.1" @@ -1721,9 +1783,10 @@ gauge@~2.7.3: strip-ansi "^3.0.1" wide-align "^1.1.0" -get-caller-file@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" +get-caller-file@^2.0.1: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== get-stream@^4.0.0: version "4.1.0" @@ -1902,10 +1965,6 @@ invariant@^2.2.2, invariant@^2.2.4: dependencies: loose-envify "^1.0.0" -invert-kv@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" - is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -2092,68 +2151,73 @@ istanbul-lib-source-maps@^3.0.1: rimraf "^2.6.3" source-map "^0.6.1" -istanbul-reports@^2.1.1: +istanbul-reports@^2.2.6: version "2.2.6" resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-2.2.6.tgz#7b4f2660d82b29303a8fe6091f8ca4bf058da1af" + integrity sha512-SKi4rnMyLBKe0Jy2uUdx28h8oG7ph2PPuQPvIAh31d+Ci+lSiEu4C+h3oBPuJ9+mPKhOyW0M8gY4U5NM1WLeXA== dependencies: handlebars "^4.1.2" -jest-changed-files@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-24.8.0.tgz#7e7eb21cf687587a85e50f3d249d1327e15b157b" +jest-changed-files@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-24.9.0.tgz#08d8c15eb79a7fa3fc98269bc14b451ee82f8039" + integrity sha512-6aTWpe2mHF0DhL28WjdkO8LyGjs3zItPET4bMSeXU6T3ub4FPMw+mcOcbdGXQOAfmLcxofD23/5Bl9Z4AkFwqg== dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" execa "^1.0.0" throat "^4.0.0" -jest-cli@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.8.0.tgz#b075ac914492ed114fa338ade7362a301693e989" +jest-cli@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.9.0.tgz#ad2de62d07472d419c6abc301fc432b98b10d2af" + integrity sha512-+VLRKyitT3BWoMeSUIHRxV/2g8y9gw91Jh5z2UmXZzkZKpbC08CSehVxgHUwTpy+HwGcns/tqafQDJW7imYvGg== dependencies: - "@jest/core" "^24.8.0" - "@jest/test-result" "^24.8.0" - "@jest/types" "^24.8.0" + "@jest/core" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" chalk "^2.0.1" exit "^0.1.2" import-local "^2.0.0" is-ci "^2.0.0" - jest-config "^24.8.0" - jest-util "^24.8.0" - jest-validate "^24.8.0" + jest-config "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" prompts "^2.0.1" realpath-native "^1.1.0" - yargs "^12.0.2" + yargs "^13.3.0" -jest-config@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-24.8.0.tgz#77db3d265a6f726294687cbbccc36f8a76ee0f4f" +jest-config@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-24.9.0.tgz#fb1bbc60c73a46af03590719efa4825e6e4dd1b5" + integrity sha512-RATtQJtVYQrp7fvWg6f5y3pEFj9I+H8sWw4aKxnDZ96mob5i5SD6ZEGWgMLXQ4LE8UurrjbdlLWdUeo+28QpfQ== dependencies: "@babel/core" "^7.1.0" - "@jest/test-sequencer" "^24.8.0" - "@jest/types" "^24.8.0" - babel-jest "^24.8.0" + "@jest/test-sequencer" "^24.9.0" + "@jest/types" "^24.9.0" + babel-jest "^24.9.0" chalk "^2.0.1" glob "^7.1.1" - jest-environment-jsdom "^24.8.0" - jest-environment-node "^24.8.0" - jest-get-type "^24.8.0" - jest-jasmine2 "^24.8.0" + jest-environment-jsdom "^24.9.0" + jest-environment-node "^24.9.0" + jest-get-type "^24.9.0" + jest-jasmine2 "^24.9.0" jest-regex-util "^24.3.0" - jest-resolve "^24.8.0" - jest-util "^24.8.0" - jest-validate "^24.8.0" + jest-resolve "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" micromatch "^3.1.10" - pretty-format "^24.8.0" + pretty-format "^24.9.0" realpath-native "^1.1.0" -jest-diff@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.8.0.tgz#146435e7d1e3ffdf293d53ff97e193f1d1546172" +jest-diff@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.9.0.tgz#931b7d0d5778a1baf7452cb816e325e3724055da" + integrity sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ== dependencies: chalk "^2.0.1" - diff-sequences "^24.3.0" - jest-get-type "^24.8.0" - pretty-format "^24.8.0" + diff-sequences "^24.9.0" + jest-get-type "^24.9.0" + pretty-format "^24.9.0" jest-docblock@^24.3.0: version "24.3.0" @@ -2161,113 +2225,124 @@ jest-docblock@^24.3.0: dependencies: detect-newline "^2.1.0" -jest-each@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-24.8.0.tgz#a05fd2bf94ddc0b1da66c6d13ec2457f35e52775" +jest-each@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-24.9.0.tgz#eb2da602e2a610898dbc5f1f6df3ba86b55f8b05" + integrity sha512-ONi0R4BvW45cw8s2Lrx8YgbeXL1oCQ/wIDwmsM3CqM/nlblNCPmnC3IPQlMbRFZu3wKdQ2U8BqM6lh3LJ5Bsog== dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" chalk "^2.0.1" - jest-get-type "^24.8.0" - jest-util "^24.8.0" - pretty-format "^24.8.0" - -jest-environment-jsdom@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-24.8.0.tgz#300f6949a146cabe1c9357ad9e9ecf9f43f38857" - dependencies: - "@jest/environment" "^24.8.0" - "@jest/fake-timers" "^24.8.0" - "@jest/types" "^24.8.0" - jest-mock "^24.8.0" - jest-util "^24.8.0" + jest-get-type "^24.9.0" + jest-util "^24.9.0" + pretty-format "^24.9.0" + +jest-environment-jsdom@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-24.9.0.tgz#4b0806c7fc94f95edb369a69cc2778eec2b7375b" + integrity sha512-Zv9FV9NBRzLuALXjvRijO2351DRQeLYXtpD4xNvfoVFw21IOKNhZAEUKcbiEtjTkm2GsJ3boMVgkaR7rN8qetA== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + jest-util "^24.9.0" jsdom "^11.5.1" -jest-environment-node@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-24.8.0.tgz#d3f726ba8bc53087a60e7a84ca08883a4c892231" +jest-environment-node@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-24.9.0.tgz#333d2d2796f9687f2aeebf0742b519f33c1cbfd3" + integrity sha512-6d4V2f4nxzIzwendo27Tr0aFm+IXWa0XEUnaH6nU0FMaozxovt+sfRvh4J47wL1OvF83I3SSTu0XK+i4Bqe7uA== dependencies: - "@jest/environment" "^24.8.0" - "@jest/fake-timers" "^24.8.0" - "@jest/types" "^24.8.0" - jest-mock "^24.8.0" - jest-util "^24.8.0" + "@jest/environment" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + jest-util "^24.9.0" -jest-get-type@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-24.8.0.tgz#a7440de30b651f5a70ea3ed7ff073a32dfe646fc" +jest-get-type@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-24.9.0.tgz#1684a0c8a50f2e4901b6644ae861f579eed2ef0e" + integrity sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q== -jest-haste-map@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-24.8.0.tgz#51794182d877b3ddfd6e6d23920e3fe72f305800" +jest-haste-map@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-24.9.0.tgz#b38a5d64274934e21fa417ae9a9fbeb77ceaac7d" + integrity sha512-kfVFmsuWui2Sj1Rp1AJ4D9HqJwE4uwTlS/vO+eRUaMmd54BFpli2XhMQnPC2k4cHFVbB2Q2C+jtI1AGLgEnCjQ== dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" anymatch "^2.0.0" fb-watchman "^2.0.0" graceful-fs "^4.1.15" invariant "^2.2.4" - jest-serializer "^24.4.0" - jest-util "^24.8.0" - jest-worker "^24.6.0" + jest-serializer "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.9.0" micromatch "^3.1.10" sane "^4.0.3" walker "^1.0.7" optionalDependencies: fsevents "^1.2.7" -jest-jasmine2@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-24.8.0.tgz#a9c7e14c83dd77d8b15e820549ce8987cc8cd898" +jest-jasmine2@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-24.9.0.tgz#1f7b1bd3242c1774e62acabb3646d96afc3be6a0" + integrity sha512-Cq7vkAgaYKp+PsX+2/JbTarrk0DmNhsEtqBXNwUHkdlbrTBLtMJINADf2mf5FkowNsq8evbPc07/qFO0AdKTzw== dependencies: "@babel/traverse" "^7.1.0" - "@jest/environment" "^24.8.0" - "@jest/test-result" "^24.8.0" - "@jest/types" "^24.8.0" + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" chalk "^2.0.1" co "^4.6.0" - expect "^24.8.0" + expect "^24.9.0" is-generator-fn "^2.0.0" - jest-each "^24.8.0" - jest-matcher-utils "^24.8.0" - jest-message-util "^24.8.0" - jest-runtime "^24.8.0" - jest-snapshot "^24.8.0" - jest-util "^24.8.0" - pretty-format "^24.8.0" + jest-each "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-runtime "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + pretty-format "^24.9.0" throat "^4.0.0" -jest-leak-detector@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-24.8.0.tgz#c0086384e1f650c2d8348095df769f29b48e6980" +jest-leak-detector@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-24.9.0.tgz#b665dea7c77100c5c4f7dfcb153b65cf07dcf96a" + integrity sha512-tYkFIDsiKTGwb2FG1w8hX9V0aUb2ot8zY/2nFg087dUageonw1zrLMP4W6zsRO59dPkTSKie+D4rhMuP9nRmrA== dependencies: - pretty-format "^24.8.0" + jest-get-type "^24.9.0" + pretty-format "^24.9.0" -jest-matcher-utils@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-24.8.0.tgz#2bce42204c9af12bde46f83dc839efe8be832495" +jest-matcher-utils@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-24.9.0.tgz#f5b3661d5e628dffe6dd65251dfdae0e87c3a073" + integrity sha512-OZz2IXsu6eaiMAwe67c1T+5tUAtQyQx27/EMEkbFAGiw52tB9em+uGbzpcgYVpA8wl0hlxKPZxrly4CXU/GjHA== dependencies: chalk "^2.0.1" - jest-diff "^24.8.0" - jest-get-type "^24.8.0" - pretty-format "^24.8.0" + jest-diff "^24.9.0" + jest-get-type "^24.9.0" + pretty-format "^24.9.0" -jest-message-util@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-24.8.0.tgz#0d6891e72a4beacc0292b638685df42e28d6218b" +jest-message-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-24.9.0.tgz#527f54a1e380f5e202a8d1149b0ec872f43119e3" + integrity sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw== dependencies: "@babel/code-frame" "^7.0.0" - "@jest/test-result" "^24.8.0" - "@jest/types" "^24.8.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" "@types/stack-utils" "^1.0.1" chalk "^2.0.1" micromatch "^3.1.10" slash "^2.0.0" stack-utils "^1.0.1" -jest-mock@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-24.8.0.tgz#2f9d14d37699e863f1febf4e4d5a33b7fdbbde56" +jest-mock@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-24.9.0.tgz#c22835541ee379b908673ad51087a2185c13f1c6" + integrity sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w== dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" jest-pnp-resolver@^1.2.1: version "1.2.1" @@ -2277,106 +2352,119 @@ jest-regex-util@^24.3.0: version "24.3.0" resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-24.3.0.tgz#d5a65f60be1ae3e310d5214a0307581995227b36" -jest-resolve-dependencies@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-24.8.0.tgz#19eec3241f2045d3f990dba331d0d7526acff8e0" +jest-regex-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-24.9.0.tgz#c13fb3380bde22bf6575432c493ea8fe37965636" + integrity sha512-05Cmb6CuxaA+Ys6fjr3PhvV3bGQmO+2p2La4hFbU+W5uOc479f7FdLXUWXw4pYMAhhSZIuKHwSXSu6CsSBAXQA== + +jest-resolve-dependencies@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-24.9.0.tgz#ad055198959c4cfba8a4f066c673a3f0786507ab" + integrity sha512-Fm7b6AlWnYhT0BXy4hXpactHIqER7erNgIsIozDXWl5dVm+k8XdGVe1oTg1JyaFnOxarMEbax3wyRJqGP2Pq+g== dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" jest-regex-util "^24.3.0" - jest-snapshot "^24.8.0" + jest-snapshot "^24.9.0" -jest-resolve@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-24.8.0.tgz#84b8e5408c1f6a11539793e2b5feb1b6e722439f" +jest-resolve@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-24.9.0.tgz#dff04c7687af34c4dd7e524892d9cf77e5d17321" + integrity sha512-TaLeLVL1l08YFZAt3zaPtjiVvyy4oSA6CRe+0AFPPVX3Q/VI0giIWWoAvoS5L96vj9Dqxj4fB5p2qrHCmTU/MQ== dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" browser-resolve "^1.11.3" chalk "^2.0.1" jest-pnp-resolver "^1.2.1" realpath-native "^1.1.0" -jest-runner@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-24.8.0.tgz#4f9ae07b767db27b740d7deffad0cf67ccb4c5bb" +jest-runner@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-24.9.0.tgz#574fafdbd54455c2b34b4bdf4365a23857fcdf42" + integrity sha512-KksJQyI3/0mhcfspnxxEOBueGrd5E4vV7ADQLT9ESaCzz02WnbdbKWIf5Mkaucoaj7obQckYPVX6JJhgUcoWWg== dependencies: "@jest/console" "^24.7.1" - "@jest/environment" "^24.8.0" - "@jest/test-result" "^24.8.0" - "@jest/types" "^24.8.0" + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" chalk "^2.4.2" exit "^0.1.2" graceful-fs "^4.1.15" - jest-config "^24.8.0" + jest-config "^24.9.0" jest-docblock "^24.3.0" - jest-haste-map "^24.8.0" - jest-jasmine2 "^24.8.0" - jest-leak-detector "^24.8.0" - jest-message-util "^24.8.0" - jest-resolve "^24.8.0" - jest-runtime "^24.8.0" - jest-util "^24.8.0" + jest-haste-map "^24.9.0" + jest-jasmine2 "^24.9.0" + jest-leak-detector "^24.9.0" + jest-message-util "^24.9.0" + jest-resolve "^24.9.0" + jest-runtime "^24.9.0" + jest-util "^24.9.0" jest-worker "^24.6.0" source-map-support "^0.5.6" throat "^4.0.0" -jest-runtime@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-24.8.0.tgz#05f94d5b05c21f6dc54e427cd2e4980923350620" +jest-runtime@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-24.9.0.tgz#9f14583af6a4f7314a6a9d9f0226e1a781c8e4ac" + integrity sha512-8oNqgnmF3v2J6PVRM2Jfuj8oX3syKmaynlDMMKQ4iyzbQzIG6th5ub/lM2bCMTmoTKM3ykcUYI2Pw9xwNtjMnw== dependencies: "@jest/console" "^24.7.1" - "@jest/environment" "^24.8.0" + "@jest/environment" "^24.9.0" "@jest/source-map" "^24.3.0" - "@jest/transform" "^24.8.0" - "@jest/types" "^24.8.0" - "@types/yargs" "^12.0.2" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/yargs" "^13.0.0" chalk "^2.0.1" exit "^0.1.2" glob "^7.1.3" graceful-fs "^4.1.15" - jest-config "^24.8.0" - jest-haste-map "^24.8.0" - jest-message-util "^24.8.0" - jest-mock "^24.8.0" + jest-config "^24.9.0" + jest-haste-map "^24.9.0" + jest-message-util "^24.9.0" + jest-mock "^24.9.0" jest-regex-util "^24.3.0" - jest-resolve "^24.8.0" - jest-snapshot "^24.8.0" - jest-util "^24.8.0" - jest-validate "^24.8.0" + jest-resolve "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" realpath-native "^1.1.0" slash "^2.0.0" strip-bom "^3.0.0" - yargs "^12.0.2" + yargs "^13.3.0" -jest-serializer@^24.4.0: - version "24.4.0" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-24.4.0.tgz#f70c5918c8ea9235ccb1276d232e459080588db3" +jest-serializer@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-24.9.0.tgz#e6d7d7ef96d31e8b9079a714754c5d5c58288e73" + integrity sha512-DxYipDr8OvfrKH3Kel6NdED3OXxjvxXZ1uIY2I9OFbGg+vUkkg7AGvi65qbhbWNPvDckXmzMPbK3u3HaDO49bQ== -jest-snapshot@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-24.8.0.tgz#3bec6a59da2ff7bc7d097a853fb67f9d415cb7c6" +jest-snapshot@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-24.9.0.tgz#ec8e9ca4f2ec0c5c87ae8f925cf97497b0e951ba" + integrity sha512-uI/rszGSs73xCM0l+up7O7a40o90cnrk429LOiK3aeTvfC0HHmldbd81/B7Ix81KSFe1lwkbl7GnBGG4UfuDew== dependencies: "@babel/types" "^7.0.0" - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" chalk "^2.0.1" - expect "^24.8.0" - jest-diff "^24.8.0" - jest-matcher-utils "^24.8.0" - jest-message-util "^24.8.0" - jest-resolve "^24.8.0" + expect "^24.9.0" + jest-diff "^24.9.0" + jest-get-type "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-resolve "^24.9.0" mkdirp "^0.5.1" natural-compare "^1.4.0" - pretty-format "^24.8.0" - semver "^5.5.0" - -jest-util@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.8.0.tgz#41f0e945da11df44cc76d64ffb915d0716f46cd1" - dependencies: - "@jest/console" "^24.7.1" - "@jest/fake-timers" "^24.8.0" - "@jest/source-map" "^24.3.0" - "@jest/test-result" "^24.8.0" - "@jest/types" "^24.8.0" + pretty-format "^24.9.0" + semver "^6.2.0" + +jest-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.9.0.tgz#7396814e48536d2e85a37de3e4c431d7cb140162" + integrity sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg== + dependencies: + "@jest/console" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/source-map" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" callsites "^3.0.0" chalk "^2.0.1" graceful-fs "^4.1.15" @@ -2385,27 +2473,29 @@ jest-util@^24.8.0: slash "^2.0.0" source-map "^0.6.0" -jest-validate@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-24.8.0.tgz#624c41533e6dfe356ffadc6e2423a35c2d3b4849" +jest-validate@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-24.9.0.tgz#0775c55360d173cd854e40180756d4ff52def8ab" + integrity sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ== dependencies: - "@jest/types" "^24.8.0" - camelcase "^5.0.0" + "@jest/types" "^24.9.0" + camelcase "^5.3.1" chalk "^2.0.1" - jest-get-type "^24.8.0" - leven "^2.1.0" - pretty-format "^24.8.0" - -jest-watcher@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-24.8.0.tgz#58d49915ceddd2de85e238f6213cef1c93715de4" - dependencies: - "@jest/test-result" "^24.8.0" - "@jest/types" "^24.8.0" - "@types/yargs" "^12.0.9" + jest-get-type "^24.9.0" + leven "^3.1.0" + pretty-format "^24.9.0" + +jest-watcher@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-24.9.0.tgz#4b56e5d1ceff005f5b88e528dc9afc8dd4ed2b3b" + integrity sha512-+/fLOfKPXXYJDYlks62/4R4GoT+GU1tYZed99JSCOsmzkkF7727RqKrjNAxtfO4YpGv11wybgRvCjR73lK2GZw== + dependencies: + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/yargs" "^13.0.0" ansi-escapes "^3.0.0" chalk "^2.0.1" - jest-util "^24.8.0" + jest-util "^24.9.0" string-length "^2.0.0" jest-worker@^24.6.0: @@ -2415,12 +2505,21 @@ jest-worker@^24.6.0: merge-stream "^1.0.1" supports-color "^6.1.0" -jest@24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/jest/-/jest-24.8.0.tgz#d5dff1984d0d1002196e9b7f12f75af1b2809081" +jest-worker@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.9.0.tgz#5dbfdb5b2d322e98567898238a9697bcce67b3e5" + integrity sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw== + dependencies: + merge-stream "^2.0.0" + supports-color "^6.1.0" + +jest@24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-24.9.0.tgz#987d290c05a08b52c56188c1002e368edb007171" + integrity sha512-YvkBL1Zm7d2B1+h5fHEOdyjCG+sGMz4f8D86/0HiqJ6MB4MnDc8FgP5vdWsGnemOQro7lnYo8UakZ3+5A0jxGw== dependencies: import-local "^2.0.0" - jest-cli "^24.8.0" + jest-cli "^24.9.0" js-levenshtein@^1.1.3: version "1.1.6" @@ -2546,19 +2645,14 @@ kleur@^3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" -lcid@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf" - dependencies: - invert-kv "^2.0.0" - left-pad@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" -leven@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== levn@~0.3.0: version "0.3.0" @@ -2623,12 +2717,6 @@ makeerror@1.0.x: dependencies: tmpl "1.0.x" -map-age-cleaner@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a" - dependencies: - p-defer "^1.0.0" - map-cache@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" @@ -2639,14 +2727,6 @@ map-visit@^1.0.0: dependencies: object-visit "^1.0.0" -mem@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178" - dependencies: - map-age-cleaner "^0.1.1" - mimic-fn "^2.0.0" - p-is-promise "^2.0.0" - memory-fs@^0.4.0: version "0.4.1" resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" @@ -2660,6 +2740,11 @@ merge-stream@^1.0.1: dependencies: readable-stream "^2.0.1" +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + micromatch@^3.1.10, micromatch@^3.1.4: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" @@ -2695,10 +2780,6 @@ mime-types@^2.1.12, mime-types@~2.1.19: dependencies: mime-db "1.40.0" -mimic-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" @@ -2799,9 +2880,10 @@ node-modules-regexp@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" -node-notifier@^5.2.1: - version "5.4.0" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.4.0.tgz#7b455fdce9f7de0c63538297354f3db468426e6a" +node-notifier@^5.4.2: + version "5.4.3" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.4.3.tgz#cb72daf94c93904098e28b9c590fd866e464bd50" + integrity sha512-M4UBGcs4jeOK9CjTsYwkvH6/MzuUmGCyTW+kCY7uO+1ZVr0+FHGdPdIf5CCLqAaxnRrWidyoQlNkMIIVwbKB8Q== dependencies: growly "^1.3.0" is-wsl "^1.1.0" @@ -2963,14 +3045,6 @@ os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" -os-locale@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" - dependencies: - execa "^1.0.0" - lcid "^2.0.0" - mem "^4.0.0" - os-tmpdir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" @@ -2982,10 +3056,6 @@ osenv@^0.1.4: os-homedir "^1.0.0" os-tmpdir "^1.0.0" -p-defer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" - p-each-series@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-1.0.0.tgz#930f3d12dd1f50e7434457a22cd6f04ac6ad7f71" @@ -2996,10 +3066,6 @@ p-finally@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" -p-is-promise@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-2.1.0.tgz#918cebaea248a62cf7ffab8e3bca8c5f882fc42e" - p-limit@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.0.tgz#417c9941e6027a9abcba5092dd2904e255b5fbc2" @@ -3097,11 +3163,12 @@ prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" -pretty-format@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.8.0.tgz#8dae7044f58db7cb8be245383b565a963e3c27f2" +pretty-format@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" + integrity sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA== dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" ansi-regex "^4.0.0" ansi-styles "^3.2.0" react-is "^16.8.4" @@ -3194,9 +3261,10 @@ realpath-native@^1.1.0: dependencies: util.promisify "^1.0.0" -regenerate-unicode-properties@^8.0.2: +regenerate-unicode-properties@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.1.0.tgz#ef51e0f0ea4ad424b77bf7cb41f3e015c70a3f0e" + integrity sha512-LGZzkgtLY79GeXLm8Dp0BVLdQlWICzBnJz/ipWUgo59qBaZ+BHtq51P2q1uVZlppMuUAT37SDk39qUbjTWB7bA== dependencies: regenerate "^1.4.0" @@ -3221,16 +3289,13 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" -regexp-tree@^0.1.6: - version "0.1.10" - resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.10.tgz#d837816a039c7af8a8d64d7a7c3cf6a1d93450bc" - -regexpu-core@^4.5.4: - version "4.5.4" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.5.4.tgz#080d9d02289aa87fe1667a4f5136bc98a6aebaae" +regexpu-core@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.6.0.tgz#2037c18b327cfce8a6fea2a4ec441f2432afb8b6" + integrity sha512-YlVaefl8P5BnFYOITTNzDvan1ulLOiXJzCNZxduTIosN17b87h3bvG9yHMoHaRuo88H4mQ06Aodj5VtYGGGiTg== dependencies: regenerate "^1.4.0" - regenerate-unicode-properties "^8.0.2" + regenerate-unicode-properties "^8.1.0" regjsgen "^0.5.0" regjsparser "^0.6.0" unicode-match-property-ecmascript "^1.0.4" @@ -3301,10 +3366,6 @@ require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" -require-main-filename@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" - require-main-filename@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" @@ -3337,7 +3398,14 @@ ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" -rimraf@2.6.3, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.3: +rimraf@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.0.tgz#614176d4b3010b75e5c390eb0ee96f6dc0cebb9b" + integrity sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg== + dependencies: + glob "^7.1.3" + +rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.3: version "2.6.3" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" dependencies: @@ -3387,6 +3455,11 @@ semver@^6.0.0, semver@^6.1.0: version "6.1.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.1.1.tgz#53f53da9b30b2103cd4f15eab3a18ecbcb210c9b" +semver@^6.2.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" @@ -3567,13 +3640,22 @@ string-width@^1.0.1: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: +"string-width@^1.0.2 || 2": version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" dependencies: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" +string-width@^3.0.0, string-width@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" + integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== + dependencies: + emoji-regex "^7.0.1" + is-fullwidth-code-point "^2.0.0" + strip-ansi "^5.1.0" + string_decoder@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" @@ -3592,7 +3674,7 @@ strip-ansi@^4.0.0: dependencies: ansi-regex "^3.0.0" -strip-ansi@^5.0.0: +strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" dependencies: @@ -3723,10 +3805,10 @@ trim-right@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" -ts-loader@6.0.4: - version "6.0.4" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-6.0.4.tgz#bc331ad91a887a60632d94c9f79448666f2c4b63" - integrity sha512-p2zJYe7OtwR+49kv4gs7v4dMrfYD1IPpOtqiSPCbe8oR+4zEBtdHwzM7A7M91F+suReqgzZrlClk4LRSSp882g== +ts-loader@6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-6.2.0.tgz#52d3993ecbc5474c1513242388e1049da0fce880" + integrity sha512-Da8h3fD+HiZ9GvZJydqzk3mTC9nuOKYlJcpuk+Zv6Y1DPaMvBL+56GRzZFypx2cWrZFMsQr869+Ua2slGoLxvQ== dependencies: chalk "^2.3.0" enhanced-resolve "^4.0.0" @@ -3749,16 +3831,16 @@ tslint-immutable@6.0.1: dependencies: tsutils "^2.28.0 || ^3.0.0" -tslint@5.18.0: - version "5.18.0" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.18.0.tgz#f61a6ddcf372344ac5e41708095bbf043a147ac6" - integrity sha512-Q3kXkuDEijQ37nXZZLKErssQVnwCV/+23gFEMROi8IlbaBG6tXqLPQJ5Wjcyt/yHPKBC+hD5SzuGaMora+ZS6w== +tslint@5.20.0: + version "5.20.0" + resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.0.tgz#fac93bfa79568a5a24e7be9cdde5e02b02d00ec1" + integrity sha512-2vqIvkMHbnx8acMogAERQ/IuINOq6DFqgF8/VDvhEkBqQh/x6SP0Y+OHnKth9/ZcHQSroOZwUQSN18v8KKF0/g== dependencies: "@babel/code-frame" "^7.0.0" builtin-modules "^1.1.1" chalk "^2.3.0" commander "^2.12.1" - diff "^3.2.0" + diff "^4.0.1" glob "^7.1.1" js-yaml "^3.13.1" minimatch "^3.0.4" @@ -3796,10 +3878,10 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -typescript@3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" - integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== +typescript@3.6.4: + version "3.6.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d" + integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg== uglify-js@^3.1.4: version "3.6.0" @@ -3953,12 +4035,14 @@ wordwrap@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" -wrap-ansi@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" +wrap-ansi@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" + integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== dependencies: - string-width "^1.0.1" - strip-ansi "^3.0.1" + ansi-styles "^3.2.0" + string-width "^3.0.0" + strip-ansi "^5.0.0" wrappy@1: version "1.0.2" @@ -3982,34 +4066,35 @@ xml-name-validator@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" -"y18n@^3.2.1 || ^4.0.0": +y18n@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" + integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== yallist@^3.0.0, yallist@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9" -yargs-parser@^11.1.1: - version "11.1.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-11.1.1.tgz#879a0865973bca9f6bab5cbdf3b1c67ec7d3bcf4" +yargs-parser@^13.1.1: + version "13.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.1.tgz#d26058532aa06d365fe091f6a1fc06b2f7e5eca0" + integrity sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ== dependencies: camelcase "^5.0.0" decamelize "^1.2.0" -yargs@^12.0.2: - version "12.0.5" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13" +yargs@^13.3.0: + version "13.3.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz#4c657a55e07e5f2cf947f8a366567c04a0dedc83" + integrity sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA== dependencies: - cliui "^4.0.0" - decamelize "^1.2.0" + cliui "^5.0.0" find-up "^3.0.0" - get-caller-file "^1.0.1" - os-locale "^3.0.0" + get-caller-file "^2.0.1" require-directory "^2.1.1" - require-main-filename "^1.0.1" + require-main-filename "^2.0.0" set-blocking "^2.0.0" - string-width "^2.0.0" + string-width "^3.0.0" which-module "^2.0.0" - y18n "^3.2.1 || ^4.0.0" - yargs-parser "^11.1.1" + y18n "^4.0.0" + yargs-parser "^13.1.1"