Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a real UMD script #12

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/amd/lib/countries/andorra.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ define(["require", "exports"], function (require, exports) {
name: 'Andorra',
codes: ['AD', 'AND', '020'],
calcFn: (vat) => {
let firstLetter = vat.slice(0, 1).toUpperCase();
let number = parseInt(vat.slice(1, 7));
const firstLetter = vat.slice(0, 1).toUpperCase();
const number = parseInt(vat.slice(1, 7), 10);
if (vat.length !== 8) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commonjs/lib/countries/andorra.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports.andorra = {
codes: ['AD', 'AND', '020'],
calcFn: function (vat) {
var firstLetter = vat.slice(0, 1).toUpperCase();
var number = parseInt(vat.slice(1, 7));
var number = parseInt(vat.slice(1, 7), 10);
if (vat.length !== 8) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/es6/lib/countries/andorra.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ export const andorra = {
name: 'Andorra',
codes: ['AD', 'AND', '020'],
calcFn: (vat) => {
let firstLetter = vat.slice(0, 1).toUpperCase();
let number = parseInt(vat.slice(1, 7));
const firstLetter = vat.slice(0, 1).toUpperCase();
const number = parseInt(vat.slice(1, 7), 10);
if (vat.length !== 8) {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/system/lib/countries/andorra.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ System.register([], function (exports_1, context_1) {
name: 'Andorra',
codes: ['AD', 'AND', '020'],
calcFn: (vat) => {
let firstLetter = vat.slice(0, 1).toUpperCase();
let number = parseInt(vat.slice(1, 7));
const firstLetter = vat.slice(0, 1).toUpperCase();
const number = parseInt(vat.slice(1, 7), 10);
if (vat.length !== 8) {
return false;
}
Expand Down
1,831 changes: 1,741 additions & 90 deletions lib/umd/index.js

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions lib/umd/lib/countries/andorra.js

This file was deleted.

36 changes: 0 additions & 36 deletions lib/umd/lib/countries/australia.js

This file was deleted.

39 changes: 0 additions & 39 deletions lib/umd/lib/countries/austria.js

This file was deleted.

27 changes: 0 additions & 27 deletions lib/umd/lib/countries/belgium.js

This file was deleted.

46 changes: 0 additions & 46 deletions lib/umd/lib/countries/brazil.js

This file was deleted.

97 changes: 0 additions & 97 deletions lib/umd/lib/countries/bulgaria.js

This file was deleted.

37 changes: 0 additions & 37 deletions lib/umd/lib/countries/croatiat.js

This file was deleted.

Loading