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

react-intl

Package Overview
Dependencies
Maintainers
8
Versions
341
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.4.2 to 6.4.3

1

index.d.ts

@@ -47,2 +47,1 @@ import * as React from 'react';

export type { PrimitiveType } from 'intl-messageformat';
//# sourceMappingURL=index.d.ts.map

@@ -47,2 +47,1 @@ import * as React from 'react';

export type { PrimitiveType } from 'intl-messageformat';
//# sourceMappingURL=index.d.ts.map

@@ -29,2 +29,1 @@ import * as React from 'react';

export {};
//# sourceMappingURL=createFormattedComponent.d.ts.map

@@ -11,2 +11,1 @@ import * as React from 'react';

export default FormattedDateTimeRange;
//# sourceMappingURL=dateTimeRange.d.ts.map

5

lib/src/components/injectIntl.d.ts

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

interface Window {
/**
* Set this to `true` prior to mounting to bypass using a globally-exposed context.
*/
__REACT_INTL_BYPASS_GLOBAL_CONTEXT__: boolean | undefined;
__REACT_INTL_CONTEXT__: React.Context<IntlShape> | undefined;

@@ -37,2 +41,1 @@ }

};
//# sourceMappingURL=injectIntl.d.ts.map

@@ -10,3 +10,3 @@ import { __assign } from "tslib";

// might exist
var IntlContext = typeof window !== 'undefined'
var IntlContext = typeof window !== 'undefined' && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__
? window.__REACT_INTL_CONTEXT__ ||

@@ -13,0 +13,0 @@ (window.__REACT_INTL_CONTEXT__ = React.createContext(null))

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

}
declare const MemoizedFormattedMessage: React.NamedExoticComponent<Props<Record<string, string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | Date | FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined>>>;
declare const MemoizedFormattedMessage: React.NamedExoticComponent<Props<Record<string, string | number | boolean | Date | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined>>>;
export default MemoizedFormattedMessage;
//# sourceMappingURL=message.d.ts.map

@@ -15,2 +15,1 @@ import * as React from 'react';

export default FormattedPlural;
//# sourceMappingURL=plural.d.ts.map

@@ -35,2 +35,1 @@ import * as React from 'react';

export {};
//# sourceMappingURL=provider.d.ts.map

@@ -12,2 +12,1 @@ import * as React from 'react';

export default FormattedRelativeTime;
//# sourceMappingURL=relative.d.ts.map
import { IntlShape } from '../types';
export default function useIntl(): IntlShape;
//# sourceMappingURL=useIntl.d.ts.map

@@ -12,2 +12,1 @@ import * as React from 'react';

}
//# sourceMappingURL=types.d.ts.map

@@ -14,2 +14,1 @@ import { ResolvedIntlConfig } from './types';

export declare function shallowEqual<T extends Record<string, unknown> = Record<string, unknown>>(objA?: T, objB?: T): boolean;
//# sourceMappingURL=utils.d.ts.map
{
"name": "react-intl",
"version": "6.4.2",
"version": "6.4.3",
"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.15.0",
"@formatjs/icu-messageformat-parser": "2.4.0",
"@formatjs/intl": "2.7.2",
"@formatjs/intl-displaynames": "6.3.2",
"@formatjs/intl-listformat": "7.2.2",
"@formatjs/ecma402-abstract": "1.16.0",
"@formatjs/icu-messageformat-parser": "2.5.0",
"@formatjs/intl": "2.8.0",
"@formatjs/intl-displaynames": "6.4.0",
"@formatjs/intl-listformat": "7.3.0",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/react": "16 || 17 || 18",
"hoist-non-react-statics": "^3.3.2",
"intl-messageformat": "10.3.5",
"intl-messageformat": "10.4.0",
"tslib": "^2.4.0"
},
"devDependencies": {
"@formatjs/intl-numberformat": "8.5.0",
"@formatjs/intl-relativetimeformat": "11.2.2"
"@formatjs/intl-numberformat": "8.6.0",
"@formatjs/intl-relativetimeformat": "11.2.3"
},

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

@@ -29,2 +29,1 @@ import * as React from 'react';

export {};
//# sourceMappingURL=createFormattedComponent.d.ts.map

@@ -11,2 +11,1 @@ import * as React from 'react';

export default FormattedDateTimeRange;
//# sourceMappingURL=dateTimeRange.d.ts.map

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

interface Window {
/**
* Set this to `true` prior to mounting to bypass using a globally-exposed context.
*/
__REACT_INTL_BYPASS_GLOBAL_CONTEXT__: boolean | undefined;
__REACT_INTL_CONTEXT__: React.Context<IntlShape> | undefined;

@@ -37,2 +41,1 @@ }

};
//# sourceMappingURL=injectIntl.d.ts.map

@@ -13,3 +13,3 @@ "use strict";

// might exist
var IntlContext = typeof window !== 'undefined'
var IntlContext = typeof window !== 'undefined' && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__
? window.__REACT_INTL_CONTEXT__ ||

@@ -16,0 +16,0 @@ (window.__REACT_INTL_CONTEXT__ = React.createContext(null))

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

}
declare const MemoizedFormattedMessage: React.NamedExoticComponent<Props<Record<string, string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | Date | FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined>>>;
declare const MemoizedFormattedMessage: React.NamedExoticComponent<Props<Record<string, string | number | boolean | Date | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactFragment | React.ReactPortal | FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined>>>;
export default MemoizedFormattedMessage;
//# sourceMappingURL=message.d.ts.map

@@ -15,2 +15,1 @@ import * as React from 'react';

export default FormattedPlural;
//# sourceMappingURL=plural.d.ts.map

@@ -35,2 +35,1 @@ import * as React from 'react';

export {};
//# sourceMappingURL=provider.d.ts.map

@@ -12,2 +12,1 @@ import * as React from 'react';

export default FormattedRelativeTime;
//# sourceMappingURL=relative.d.ts.map
import { IntlShape } from '../types';
export default function useIntl(): IntlShape;
//# sourceMappingURL=useIntl.d.ts.map

@@ -12,2 +12,1 @@ import * as React from 'react';

}
//# sourceMappingURL=types.d.ts.map

@@ -14,2 +14,1 @@ import { ResolvedIntlConfig } from './types';

export declare function shallowEqual<T extends Record<string, unknown> = Record<string, unknown>>(objA?: T, objB?: T): boolean;
//# sourceMappingURL=utils.d.ts.map

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

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