locale-service 0.0.7 → 0.0.8

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.
package/lib/index.js CHANGED
@@ -58,9 +58,9 @@ function initCurrencyResources() {
58
58
  var key = keys_2[_i];
59
59
  var x = currencies_1.currencies[key];
60
60
  var c = {
61
- currencyCode: key,
61
+ code: key,
62
62
  decimalDigits: (x.b !== undefined ? x.b : 2),
63
- currencySymbol: x.c
63
+ symbol: x.c
64
64
  };
65
65
  cr[key] = c;
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "locale-service",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Locale Service",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -94,9 +94,9 @@ interface CurrencyAlias {
94
94
  }
95
95
 
96
96
  export interface Currency {
97
- currencyCode?: string;
97
+ code?: string;
98
98
  decimalDigits: number;
99
- currencySymbol: string;
99
+ symbol: string;
100
100
  }
101
101
 
102
102
  function initCurrencyResources(): void {
@@ -104,9 +104,9 @@ function initCurrencyResources(): void {
104
104
  for (const key of keys) {
105
105
  const x: CurrencyAlias = currencies[key];
106
106
  const c: Currency = {
107
- currencyCode: key,
107
+ code: key,
108
108
  decimalDigits: (x.b !== undefined ? x.b : 2),
109
- currencySymbol: x.c
109
+ symbol: x.c
110
110
  };
111
111
  cr[key] = c;
112
112
  }