Skip to content

Commit b90362a

Browse files
committed
updated dependencies & bumped version
1 parent f82dd91 commit b90362a

File tree

3 files changed

+744
-565
lines changed

3 files changed

+744
-565
lines changed

lib/commonjs/lib/jsvat.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ var __assign = (this && this.__assign) || function () {
1010
};
1111
return __assign.apply(this, arguments);
1212
};
13-
var __spreadArrays = (this && this.__spreadArrays) || function () {
14-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
15-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
16-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
17-
r[k] = a[j];
18-
return r;
13+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
14+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
15+
to[j] = from[i];
16+
return to;
1917
};
2018
Object.defineProperty(exports, "__esModule", { value: true });
2119
exports.checkVAT = void 0;
@@ -46,7 +44,7 @@ function removeExtraChars(vat) {
4644
.replace(/(\s|-|\.|\/)+/g, '');
4745
}
4846
function getCountryCodes(country) {
49-
return __spreadArrays(country.codes, [country.name === 'Greece' ? 'EL' : undefined]).filter(Boolean);
47+
return __spreadArray(__spreadArray([], country.codes), [country.name === 'Greece' ? 'EL' : undefined]).filter(Boolean);
5048
}
5149
var countriesVATDoesNotStartWithCountryCode = [countries_1.brazil.name];
5250
function isVATStartWithCountryCode(countryName) {

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsvat",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"description": "Check the validity of the format of an EU VAT number",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/es6/index.js",
@@ -54,19 +54,19 @@
5454
"private": false,
5555
"dependencies": {},
5656
"devDependencies": {
57-
"@babel/preset-env": "7.12.11",
57+
"@babel/preset-env": "7.13.15",
5858
"babel": "6.23.0",
5959
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
60-
"husky": "4.3.6",
60+
"husky": "4.3.8",
6161
"jest": "26.6.3",
6262
"prettier": "2.2.1",
6363
"pretty-quick": "3.1.0",
6464
"rimraf": "3.0.2",
65-
"ts-loader": "8.0.12",
65+
"ts-loader": "8.1.0",
6666
"tslint": "6.1.3",
6767
"tslint-config-prettier": "1.18.0",
6868
"tslint-immutable": "6.0.1",
69-
"typescript": "4.1.3"
69+
"typescript": "4.2.4"
7070
},
7171
"husky": {
7272
"hooks": {

0 commit comments

Comments
 (0)