Socket
Socket
Sign inDemoInstall

react-intl

Package Overview
Dependencies
Maintainers
8
Versions
331
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intl - npm Package Compare versions

Comparing version 6.1.2 to 6.2.0

5

index.d.ts

@@ -26,4 +26,5 @@ import * as React from 'react';

}>;
export declare const FormattedNumber: React.FC<NumberFormatOptions & CustomFormatConfig & {
value: number | bigint;
export declare const FormattedNumber: React.FC<Omit<NumberFormatOptions, 'localeMatcher'> & CustomFormatConfig<'number'> & {
value: number;
children?(formattedNumber: string): React.ReactElement | null;
}>;

@@ -30,0 +31,0 @@ export declare const FormattedList: React.FC<IntlListFormatOptions & {

1

index.js

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

exports.FormattedTime = (0, createFormattedComponent_1.createFormattedComponent)('formatTime');
// @ts-ignore issue w/ TS Intl types
exports.FormattedNumber = (0, createFormattedComponent_1.createFormattedComponent)('formatNumber');

@@ -46,0 +45,0 @@ exports.FormattedList = (0, createFormattedComponent_1.createFormattedComponent)('formatList');

@@ -26,4 +26,5 @@ import * as React from 'react';

}>;
export declare const FormattedNumber: React.FC<NumberFormatOptions & CustomFormatConfig & {
value: number | bigint;
export declare const FormattedNumber: React.FC<Omit<NumberFormatOptions, 'localeMatcher'> & CustomFormatConfig<'number'> & {
value: number;
children?(formattedNumber: string): React.ReactElement | null;
}>;

@@ -30,0 +31,0 @@ export declare const FormattedList: React.FC<IntlListFormatOptions & {

@@ -20,3 +20,2 @@ import { createFormattedComponent, createFormattedDateTimePartsComponent, } from './src/components/createFormattedComponent';

export var FormattedTime = createFormattedComponent('formatTime');
// @ts-ignore issue w/ TS Intl types
export var FormattedNumber = createFormattedComponent('formatNumber');

@@ -23,0 +22,0 @@ export var FormattedList = createFormattedComponent('formatList');

{
"name": "react-intl",
"version": "6.1.2",
"version": "6.2.0",
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",

@@ -131,16 +131,16 @@ "keywords": [

"dependencies": {
"@formatjs/ecma402-abstract": "1.12.0",
"@formatjs/icu-messageformat-parser": "2.1.8",
"@formatjs/intl": "2.4.2",
"@formatjs/intl-displaynames": "6.1.3",
"@formatjs/intl-listformat": "7.1.2",
"@formatjs/ecma402-abstract": "1.13.0",
"@formatjs/icu-messageformat-parser": "2.1.9",
"@formatjs/intl": "2.5.0",
"@formatjs/intl-displaynames": "6.1.4",
"@formatjs/intl-listformat": "7.1.3",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/react": "16 || 17 || 18",
"hoist-non-react-statics": "^3.3.2",
"intl-messageformat": "10.1.5",
"intl-messageformat": "10.2.0",
"tslib": "2.4.0"
},
"devDependencies": {
"@formatjs/intl-numberformat": "8.1.3",
"@formatjs/intl-relativetimeformat": "11.1.3"
"@formatjs/intl-numberformat": "8.2.0",
"@formatjs/intl-relativetimeformat": "11.1.4"
},

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

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