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

@transifex/native

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transifex/native - npm Package Compare versions

Comparing version 7.1.2 to 7.1.3

4

package.json
{
"name": "@transifex/native",
"version": "7.1.2",
"version": "7.1.3",
"description": "i18n framework using Transifex Native",

@@ -56,6 +56,6 @@ "keywords": [

"dependencies": {
"@messageformat/core": "^3.3.0",
"cross-fetch": "^4.0.0",
"intl-messageformat": "^10.5.14",
"md5": "^2.3.0"
}
}
/* eslint-disable class-methods-use-this */
import MessageFormat from '@messageformat/core';
import IntlMessageFormat from 'intl-messageformat';
// object to cache MessageFormat classes related to
// specific locales
const MF = {};
/**

@@ -19,16 +15,10 @@ * MessageFormat renderer

const locale = ((localeCode || '').split('_'))[0];
if (!MF[locale]) {
try {
MF[locale] = new MessageFormat(locale, {
strictPluralKeys: false,
});
} catch (err) {
MF[locale] = new MessageFormat('*', {
strictPluralKeys: false,
});
}
let msg;
try {
msg = new IntlMessageFormat(sourceString, locale, undefined, { ignoreTag: true });
} catch (err) {
msg = new IntlMessageFormat(sourceString, undefined, undefined, { ignoreTag: true });
}
const msg = MF[locale].compile(sourceString);
return msg(params);
return msg.format(params);
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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