@cloudflare/intl-core
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.0.7"></a> | ||
## [1.0.7](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/intl-core@1.0.6...@cloudflare/intl-core@1.0.7) (2018-10-06) | ||
### Bug Fixes | ||
* **intl-core:** UI-1321 decrease package size by 20Kb ([5c6e8e7](http://stash.cfops.it:7999/fe/stratus/commits/5c6e8e7)) | ||
<a name="1.0.6"></a> | ||
@@ -8,0 +19,0 @@ ## [1.0.6](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/intl-core@1.0.5...@cloudflare/intl-core@1.0.6) (2018-10-05) |
@@ -12,3 +12,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
import markdown from '@cloudflare/util-markdown'; | ||
import _ from 'lodash'; | ||
import { mapValues } from 'lodash-es'; | ||
@@ -154,3 +154,3 @@ var Translator = | ||
value: function translateObject(phrases) { | ||
return _.mapValues(phrases, this.t); | ||
return mapValues(phrases, this.t); | ||
} | ||
@@ -157,0 +157,0 @@ }]); |
@@ -14,3 +14,3 @@ "use strict"; | ||
var _lodash = _interopRequireDefault(require("lodash")); | ||
var _lodashEs = require("lodash-es"); | ||
@@ -166,3 +166,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
value: function translateObject(phrases) { | ||
return _lodash.default.mapValues(phrases, this.t); | ||
return (0, _lodashEs.mapValues)(phrases, this.t); | ||
} | ||
@@ -169,0 +169,0 @@ }]); |
{ | ||
"name": "@cloudflare/intl-core", | ||
"description": "", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"types": "./src", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"@cloudflare/util-markdown": "^1.0.12", | ||
"lodash": "^2.4.2", | ||
"lodash-es": "^4.17.11", | ||
"node-polyglot": "^2.3.0" | ||
@@ -31,5 +31,5 @@ }, | ||
"path": "es/index.js", | ||
"limit": "38 KB" | ||
"limit": "18 KB" | ||
} | ||
] | ||
} |
import Polyglot from 'node-polyglot'; | ||
import { ESupportedLocales, IPhrases } from './types'; | ||
import markdown from '@cloudflare/util-markdown'; | ||
import _ from 'lodash'; | ||
import { mapValues } from 'lodash-es'; | ||
@@ -130,3 +130,3 @@ class Translator { | ||
translateObject(phrases: IPhrases) { | ||
return _.mapValues(phrases, this.t); | ||
return mapValues(phrases, this.t); | ||
} | ||
@@ -133,0 +133,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22687
+ Addedlodash-es@^4.17.11
+ Addedlodash-es@4.17.21(transitive)
- Removedlodash@^2.4.2
- Removedlodash@2.4.2(transitive)