@armi-wave/common 1.9.0 → 1.10.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.
@@ -1,5 +1,5 @@
1
1
  export default class CountryUtils {
2
- static isValidCode(code: string): Promise<true | undefined>;
3
- static isValidDialCode(dialCode: string): Promise<true | undefined>;
4
- static getNameFromCode(code: string): Promise<string | undefined>;
2
+ static isValidCode(code: string): Promise<boolean>;
3
+ static isValidDialCode(dialCode: string): Promise<boolean>;
4
+ static getNameFromCode(code: string): Promise<string | false>;
5
5
  }
@@ -18,6 +18,7 @@ class CountryUtils {
18
18
  return true;
19
19
  }
20
20
  }
21
+ return false;
21
22
  });
22
23
  }
23
24
  static isValidDialCode(dialCode) {
@@ -27,6 +28,7 @@ class CountryUtils {
27
28
  return true;
28
29
  }
29
30
  }
31
+ return false;
30
32
  });
31
33
  }
32
34
  static getNameFromCode(code) {
@@ -36,6 +38,7 @@ class CountryUtils {
36
38
  return country.name;
37
39
  }
38
40
  }
41
+ return false;
39
42
  });
40
43
  }
41
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armi-wave/common",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",