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.2.2 to 6.2.4

2

lib/src/components/createFormattedComponent.d.ts

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

import { Part } from '@formatjs/intl-listformat';
declare type Formatter = {
type Formatter = {
formatDate: FormatDateOptions;

@@ -8,0 +8,0 @@ formatTime: FormatDateOptions;

@@ -10,6 +10,6 @@ import * as React from 'react';

}
export declare type WrappedComponentProps<IntlPropName extends string = 'intl'> = {
export type WrappedComponentProps<IntlPropName extends string = 'intl'> = {
[k in IntlPropName]: IntlShape;
};
export declare type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & {
export type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & {
forwardedRef?: React.Ref<any>;

@@ -16,0 +16,0 @@ };

import * as React from 'react';
import { ResolvedIntlConfig as CoreResolvedIntlConfig, IntlFormatters, Formatters } from '@formatjs/intl';
import { DEFAULT_INTL_CONFIG } from './utils';
export declare type IntlConfig = Omit<ResolvedIntlConfig, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>;
export type IntlConfig = Omit<ResolvedIntlConfig, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>;
export interface ResolvedIntlConfig extends CoreResolvedIntlConfig<React.ReactNode> {

@@ -6,0 +6,0 @@ textComponent?: React.ComponentType | keyof React.ReactHTML;

{
"name": "react-intl",
"version": "6.2.2",
"version": "6.2.4",
"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.14.0",
"@formatjs/icu-messageformat-parser": "2.1.11",
"@formatjs/intl": "2.6.0",
"@formatjs/intl-displaynames": "6.2.0",
"@formatjs/intl-listformat": "7.1.4",
"@formatjs/ecma402-abstract": "1.14.2",
"@formatjs/icu-messageformat-parser": "2.1.13",
"@formatjs/intl": "2.6.2",
"@formatjs/intl-displaynames": "6.2.2",
"@formatjs/intl-listformat": "7.1.6",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/react": "16 || 17 || 18",
"hoist-non-react-statics": "^3.3.2",
"intl-messageformat": "10.2.2",
"intl-messageformat": "10.2.4",
"tslib": "2.4.0"
},
"devDependencies": {
"@formatjs/intl-numberformat": "8.3.0",
"@formatjs/intl-relativetimeformat": "11.1.5"
"@formatjs/intl-numberformat": "8.3.2",
"@formatjs/intl-relativetimeformat": "11.1.7"
},

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

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

import { Part } from '@formatjs/intl-listformat';
declare type Formatter = {
type Formatter = {
formatDate: FormatDateOptions;

@@ -8,0 +8,0 @@ formatTime: FormatDateOptions;

@@ -10,6 +10,6 @@ import * as React from 'react';

}
export declare type WrappedComponentProps<IntlPropName extends string = 'intl'> = {
export type WrappedComponentProps<IntlPropName extends string = 'intl'> = {
[k in IntlPropName]: IntlShape;
};
export declare type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & {
export type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & {
forwardedRef?: React.Ref<any>;

@@ -16,0 +16,0 @@ };

import * as React from 'react';
import { ResolvedIntlConfig as CoreResolvedIntlConfig, IntlFormatters, Formatters } from '@formatjs/intl';
import { DEFAULT_INTL_CONFIG } from './utils';
export declare type IntlConfig = Omit<ResolvedIntlConfig, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>;
export type IntlConfig = Omit<ResolvedIntlConfig, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>;
export interface ResolvedIntlConfig extends CoreResolvedIntlConfig<React.ReactNode> {

@@ -6,0 +6,0 @@ textComponent?: React.ComponentType | keyof React.ReactHTML;

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 too big to display

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