Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudflare/intl-core

Package Overview
Dependencies
Maintainers
19
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/intl-core - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

11

CHANGELOG.md

@@ -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)

4

es/Translator.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc