Socket
Socket
Sign inDemoInstall

@formatjs/intl

Package Overview
Dependencies
Maintainers
3
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/intl - npm Package Compare versions

Comparing version 2.5.1 to 2.6.0

1

lib/src/displayName.js

@@ -8,2 +8,3 @@ import { filterProps } from './utils';

'fallback',
'languageDisplay',
];

@@ -10,0 +11,0 @@ export function formatDisplayName(_a, getDisplayNames, value, options) {

10

lib/src/types.d.ts

@@ -19,8 +19,10 @@ import { IntlMessageFormat, Formats, FormatXMLElementFn, FormatError, PrimitiveType, Options as IntlMessageFormatOptions } from 'intl-messageformat';

}
declare type MessageIds = FormatjsIntl.Message extends {
declare type _Message = FormatjsIntl.Message;
declare type MessageIds = _Message extends {
ids: string;
} ? FormatjsIntl.Message['ids'] : string;
declare type Locale = FormatjsIntl.IntlConfig extends {
} ? _Message['ids'] : string;
declare type _IntlConfig = FormatjsIntl.IntlConfig;
declare type Locale = _IntlConfig extends {
locale: string;
} ? FormatjsIntl.IntlConfig['locale'] : string;
} ? _IntlConfig['locale'] : string;
export declare type OnErrorFn = (err: MissingTranslationError | MessageFormatError | MissingDataError | InvalidConfigError | UnsupportedFormatterError | FormatError) => void;

@@ -27,0 +29,0 @@ export declare type OnWarnFn = (warning: string) => void;

{
"name": "@formatjs/intl",
"version": "2.5.1",
"version": "2.6.0",
"description": "Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.",

@@ -32,13 +32,13 @@ "keywords": [

"dependencies": {
"@formatjs/ecma402-abstract": "1.13.0",
"@formatjs/ecma402-abstract": "1.14.0",
"@formatjs/fast-memoize": "1.2.6",
"@formatjs/icu-messageformat-parser": "2.1.10",
"@formatjs/intl-displaynames": "6.1.4",
"@formatjs/intl-listformat": "7.1.3",
"intl-messageformat": "10.2.1",
"@formatjs/icu-messageformat-parser": "2.1.11",
"@formatjs/intl-displaynames": "6.2.0",
"@formatjs/intl-listformat": "7.1.4",
"intl-messageformat": "10.2.2",
"tslib": "2.4.0"
},
"devDependencies": {
"@formatjs/intl-datetimeformat": "6.3.1",
"@formatjs/intl-numberformat": "8.2.0"
"@formatjs/intl-datetimeformat": "6.4.0",
"@formatjs/intl-numberformat": "8.3.0"
},

@@ -45,0 +45,0 @@ "peerDependencies": {

@@ -11,2 +11,3 @@ "use strict";

'fallback',
'languageDisplay',
];

@@ -13,0 +14,0 @@ function formatDisplayName(_a, getDisplayNames, value, options) {

@@ -19,8 +19,10 @@ import { IntlMessageFormat, Formats, FormatXMLElementFn, FormatError, PrimitiveType, Options as IntlMessageFormatOptions } from 'intl-messageformat';

}
declare type MessageIds = FormatjsIntl.Message extends {
declare type _Message = FormatjsIntl.Message;
declare type MessageIds = _Message extends {
ids: string;
} ? FormatjsIntl.Message['ids'] : string;
declare type Locale = FormatjsIntl.IntlConfig extends {
} ? _Message['ids'] : string;
declare type _IntlConfig = FormatjsIntl.IntlConfig;
declare type Locale = _IntlConfig extends {
locale: string;
} ? FormatjsIntl.IntlConfig['locale'] : string;
} ? _IntlConfig['locale'] : string;
export declare type OnErrorFn = (err: MissingTranslationError | MessageFormatError | MissingDataError | InvalidConfigError | UnsupportedFormatterError | FormatError) => void;

@@ -27,0 +29,0 @@ export declare type OnWarnFn = (warning: string) => void;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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