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

react-intl

Package Overview
Dependencies
Maintainers
0
Versions
349
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 7.0.2 to 7.0.3

3

lib/src/components/provider.d.ts
import { IntlCache } from '@formatjs/intl';
import * as React from 'react';
import type { IntlConfig, IntlShape } from '../types';
import { DefaultIntlConfig } from '../utils';
interface State {

@@ -22,3 +23,3 @@ /**

static displayName: string;
static defaultProps: Pick<import("../types").ResolvedIntlConfig, "timeZone" | "fallbackOnEmptyString" | "formats" | "messages" | "defaultLocale" | "defaultFormats" | "onError" | "textComponent">;
static defaultProps: DefaultIntlConfig;
private cache;

@@ -25,0 +26,0 @@ state: State;

@@ -9,5 +9,5 @@ /*

import * as React from 'react';
import { DEFAULT_INTL_CONFIG, invariantIntlContext, shallowEqual } from '../utils';
import { DEFAULT_INTL_CONFIG, invariantIntlContext, shallowEqual, } from '../utils';
import { createIntl } from './createIntl';
import { Provider } from './injectIntl';
import { createIntl } from './createIntl';
function processIntlConfig(config) {

@@ -14,0 +14,0 @@ return {

@@ -6,3 +6,4 @@ import { FormatXMLElementFn } from 'intl-messageformat';

export declare function invariantIntlContext(intl?: any): asserts intl;
export declare const DEFAULT_INTL_CONFIG: Pick<ResolvedIntlConfig, 'fallbackOnEmptyString' | 'formats' | 'messages' | 'timeZone' | 'textComponent' | 'defaultLocale' | 'defaultFormats' | 'onError'>;
export type DefaultIntlConfig = Pick<ResolvedIntlConfig, 'fallbackOnEmptyString' | 'formats' | 'messages' | 'timeZone' | 'textComponent' | 'defaultLocale' | 'defaultFormats' | 'onError'>;
export declare const DEFAULT_INTL_CONFIG: DefaultIntlConfig;
/**

@@ -9,0 +10,0 @@ * Takes a `formatXMLElementFn`, and composes it in function, which passes

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

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

"tslib": "2",
"@formatjs/ecma402-abstract": "2.2.5",
"@formatjs/icu-messageformat-parser": "2.9.5",
"@formatjs/intl": "3.0.2",
"intl-messageformat": "10.7.8"
"@formatjs/ecma402-abstract": "2.3.0",
"@formatjs/intl": "3.0.3",
"@formatjs/icu-messageformat-parser": "2.9.6",
"intl-messageformat": "10.7.9"
},

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

import { IntlCache } from '@formatjs/intl';
import * as React from 'react';
import type { IntlConfig, IntlShape } from '../types';
import { DefaultIntlConfig } from '../utils';
interface State {

@@ -22,3 +23,3 @@ /**

static displayName: string;
static defaultProps: Pick<import("../types").ResolvedIntlConfig, "timeZone" | "fallbackOnEmptyString" | "formats" | "messages" | "defaultLocale" | "defaultFormats" | "onError" | "textComponent">;
static defaultProps: DefaultIntlConfig;
private cache;

@@ -25,0 +26,0 @@ state: State;

@@ -12,4 +12,4 @@ "use strict";

var utils_1 = require("../utils");
var createIntl_1 = require("./createIntl");
var injectIntl_1 = require("./injectIntl");
var createIntl_1 = require("./createIntl");
function processIntlConfig(config) {

@@ -16,0 +16,0 @@ return {

@@ -6,3 +6,4 @@ import { FormatXMLElementFn } from 'intl-messageformat';

export declare function invariantIntlContext(intl?: any): asserts intl;
export declare const DEFAULT_INTL_CONFIG: Pick<ResolvedIntlConfig, 'fallbackOnEmptyString' | 'formats' | 'messages' | 'timeZone' | 'textComponent' | 'defaultLocale' | 'defaultFormats' | 'onError'>;
export type DefaultIntlConfig = Pick<ResolvedIntlConfig, 'fallbackOnEmptyString' | 'formats' | 'messages' | 'timeZone' | 'textComponent' | 'defaultLocale' | 'defaultFormats' | 'onError'>;
export declare const DEFAULT_INTL_CONFIG: DefaultIntlConfig;
/**

@@ -9,0 +10,0 @@ * Takes a `formatXMLElementFn`, and composes it in function, which passes

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