law-common 5.0.0 → 5.0.1-beta.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,7 +1,14 @@
1
1
  export declare enum CountryEnum {
2
2
  India = "India",
3
3
  USA = "USA",
4
- UK = "UK"
4
+ UK = "UK",
5
+ Singapore = "Singapore",
6
+ Japan = "Japan",
7
+ Israel = "Israel",
8
+ France = "France",
9
+ Mauritius = "Mauritius",
10
+ China = "China",
11
+ South_Korea = "South Korea"
5
12
  }
6
13
  export declare namespace CountryEnum {
7
14
  function values(): string[];
@@ -6,32 +6,38 @@ var CountryEnum;
6
6
  CountryEnum["India"] = "India";
7
7
  CountryEnum["USA"] = "USA";
8
8
  CountryEnum["UK"] = "UK";
9
+ CountryEnum["Singapore"] = "Singapore";
10
+ CountryEnum["Japan"] = "Japan";
11
+ CountryEnum["Israel"] = "Israel";
12
+ CountryEnum["France"] = "France";
13
+ CountryEnum["Mauritius"] = "Mauritius";
14
+ CountryEnum["China"] = "China";
15
+ CountryEnum["South_Korea"] = "South Korea";
9
16
  })(CountryEnum || (exports.CountryEnum = CountryEnum = {}));
10
17
  (function (CountryEnum) {
11
18
  function values() {
12
- return Object.keys(CountryEnum).filter((type) => isNaN(type) && type !== 'values');
19
+ return Object.keys(CountryEnum).filter((type) => isNaN(type) && type !== "values");
13
20
  }
14
21
  CountryEnum.values = values;
15
22
  function keys() {
16
- return Object.keys(CountryEnum).filter((type) => isNaN(type) && type !== 'values');
23
+ return Object.keys(CountryEnum).filter((type) => isNaN(type) && type !== "values");
17
24
  }
18
25
  CountryEnum.keys = keys;
19
26
  function getCountryTimezone(country) {
20
27
  switch (country) {
21
28
  case CountryEnum.India:
22
- return 'Asia/Kolkata';
29
+ return "Asia/Kolkata";
23
30
  case CountryEnum.USA:
24
- return 'America/New_York';
31
+ return "America/New_York";
25
32
  case CountryEnum.UK:
26
- return 'Europe/London';
33
+ return "Europe/London";
27
34
  default:
28
- return 'UTC';
35
+ return "UTC";
29
36
  }
30
37
  }
31
38
  CountryEnum.getCountryTimezone = getCountryTimezone;
32
39
  function getNames() {
33
- return Object.values(CountryEnum).filter(value => typeof value === 'string');
34
- ;
40
+ return Object.values(CountryEnum).filter((value) => typeof value === "string");
35
41
  }
36
42
  CountryEnum.getNames = getNames;
37
43
  })(CountryEnum || (exports.CountryEnum = CountryEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "5.0.0",
3
+ "version": "5.0.1-beta.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [