@armi-wave/common 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,11 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const
|
|
12
|
+
const countries_1 = require("./countries");
|
|
13
13
|
class CountryUtils {
|
|
14
14
|
static isValidCode(code) {
|
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
for (const country of
|
|
16
|
+
for (const country of countries_1.countries) {
|
|
17
17
|
if (country.code == code) {
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
@@ -22,7 +22,7 @@ class CountryUtils {
|
|
|
22
22
|
}
|
|
23
23
|
static isValidDialCode(dialCode) {
|
|
24
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
for (const country of
|
|
25
|
+
for (const country of countries_1.countries) {
|
|
26
26
|
if (country.dialCode == dialCode) {
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
@@ -31,7 +31,7 @@ class CountryUtils {
|
|
|
31
31
|
}
|
|
32
32
|
static getNameFromCode(code) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
for (const country of
|
|
34
|
+
for (const country of countries_1.countries) {
|
|
35
35
|
if (country.code == code) {
|
|
36
36
|
return country.name;
|
|
37
37
|
}
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@armi-wave/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"build": "tsc",
|
|
13
|
+
"clean": "del ./build/*",
|
|
13
14
|
"pub": "git add . && git commit -m \"Updates\" && npm version feature && npm run build && npm publish"
|
|
14
15
|
},
|
|
15
16
|
"author": "Armiron Kurbalaj",
|