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.7.2 to 2.8.0

1

index.d.ts

@@ -17,2 +17,1 @@ import { MessageDescriptor } from './src/types';

export type { CreateIntlFn } from './src/create-intl';
//# sourceMappingURL=index.d.ts.map

@@ -17,2 +17,1 @@ import { MessageDescriptor } from './src/types';

export type { CreateIntlFn } from './src/create-intl';
//# sourceMappingURL=index.d.ts.map

@@ -11,2 +11,1 @@ import { IntlCache, IntlShape, IntlConfig } from './types';

export declare function createIntl<T = string>(config: IntlConfig<T>, cache?: IntlCache): IntlShape<T>;
//# sourceMappingURL=create-intl.d.ts.map

@@ -38,2 +38,1 @@ import { Formatters, IntlFormatters, CustomFormats, OnErrorFn } from './types';

}, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[value, options]: Parameters<IntlFormatters['formatTimeToParts']>): Intl.DateTimeFormatPart[];
//# sourceMappingURL=dateTime.d.ts.map

@@ -6,2 +6,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types';

}, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined;
//# sourceMappingURL=displayName.d.ts.map

@@ -36,2 +36,1 @@ import { MessageDescriptor } from './types';

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

@@ -11,2 +11,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types';

}, getListFormat: Formatters['getListFormat'], values: ReadonlyArray<string | T>, options: Parameters<IntlFormatters['formatList']>[1]): Part[];
//# sourceMappingURL=list.d.ts.map

@@ -16,2 +16,1 @@ import { Formatters, MessageDescriptor, CustomFormats, OnErrorFn } from './types';

export declare const formatMessage: FormatMessageFn<any>;
//# sourceMappingURL=message.d.ts.map

@@ -17,2 +17,1 @@ import { Formatters, IntlFormatters, CustomFormats, OnErrorFn } from './types';

}, getNumberFormat: Formatters['getNumberFormat'], value: Parameters<IntlFormatters['formatNumber']>[0], options?: Parameters<IntlFormatters['formatNumber']>[1]): Intl.NumberFormatPart[];
//# sourceMappingURL=number.d.ts.map

@@ -7,2 +7,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types';

}, getPluralRules: Formatters['getPluralRules'], value: Parameters<IntlFormatters['formatPlural']>[0], options?: Parameters<IntlFormatters['formatPlural']>[1]): LDMLPluralRule;
//# sourceMappingURL=plural.d.ts.map

@@ -7,2 +7,1 @@ import { IntlFormatters, Formatters, CustomFormats, OnErrorFn } from './types';

}, getRelativeTimeFormat: Formatters['getRelativeTimeFormat'], value: Parameters<IntlFormatters['formatRelativeTime']>[0], unit?: Parameters<IntlFormatters['formatRelativeTime']>[1], options?: Parameters<IntlFormatters['formatRelativeTime']>[2]): string;
//# sourceMappingURL=relativeTime.d.ts.map

@@ -107,2 +107,1 @@ import { IntlMessageFormat, Formats, FormatXMLElementFn, FormatError, PrimitiveType, Options as IntlMessageFormatOptions } from 'intl-messageformat';

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

@@ -12,2 +12,1 @@ import { IntlCache, CustomFormats, Formatters, OnErrorFn, ResolvedIntlConfig } from './types';

export declare function getNamedFormat<T extends keyof CustomFormats>(formats: CustomFormats, type: T, name: string, onError: OnErrorFn): NumberFormatOptions | Intl.DateTimeFormatOptions | Intl.RelativeTimeFormatOptions | undefined;
//# sourceMappingURL=utils.d.ts.map

27

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

@@ -30,15 +30,24 @@ "keywords": [

"module": "lib/index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"dependencies": {
"@formatjs/ecma402-abstract": "1.15.0",
"@formatjs/fast-memoize": "2.0.1",
"@formatjs/icu-messageformat-parser": "2.4.0",
"@formatjs/intl-displaynames": "6.3.2",
"@formatjs/intl-listformat": "7.2.2",
"intl-messageformat": "10.3.5",
"@formatjs/ecma402-abstract": "1.16.0",
"@formatjs/fast-memoize": "2.1.0",
"@formatjs/icu-messageformat-parser": "2.5.0",
"@formatjs/intl-displaynames": "6.4.0",
"@formatjs/intl-listformat": "7.3.0",
"intl-messageformat": "10.4.0",
"tslib": "^2.4.0"
},
"devDependencies": {
"@formatjs/intl-datetimeformat": "6.8.0",
"@formatjs/intl-numberformat": "8.5.0"
"@formatjs/intl-datetimeformat": "6.9.0",
"@formatjs/intl-numberformat": "8.6.0"
},

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

@@ -11,2 +11,1 @@ import { IntlCache, IntlShape, IntlConfig } from './types';

export declare function createIntl<T = string>(config: IntlConfig<T>, cache?: IntlCache): IntlShape<T>;
//# sourceMappingURL=create-intl.d.ts.map

@@ -38,2 +38,1 @@ import { Formatters, IntlFormatters, CustomFormats, OnErrorFn } from './types';

}, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[value, options]: Parameters<IntlFormatters['formatTimeToParts']>): Intl.DateTimeFormatPart[];
//# sourceMappingURL=dateTime.d.ts.map

@@ -6,2 +6,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types';

}, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined;
//# sourceMappingURL=displayName.d.ts.map

@@ -36,2 +36,1 @@ import { MessageDescriptor } from './types';

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

@@ -11,2 +11,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types';

}, getListFormat: Formatters['getListFormat'], values: ReadonlyArray<string | T>, options: Parameters<IntlFormatters['formatList']>[1]): Part[];
//# sourceMappingURL=list.d.ts.map

@@ -16,2 +16,1 @@ import { Formatters, MessageDescriptor, CustomFormats, OnErrorFn } from './types';

export declare const formatMessage: FormatMessageFn<any>;
//# sourceMappingURL=message.d.ts.map

@@ -17,2 +17,1 @@ import { Formatters, IntlFormatters, CustomFormats, OnErrorFn } from './types';

}, getNumberFormat: Formatters['getNumberFormat'], value: Parameters<IntlFormatters['formatNumber']>[0], options?: Parameters<IntlFormatters['formatNumber']>[1]): Intl.NumberFormatPart[];
//# sourceMappingURL=number.d.ts.map

@@ -7,2 +7,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types';

}, getPluralRules: Formatters['getPluralRules'], value: Parameters<IntlFormatters['formatPlural']>[0], options?: Parameters<IntlFormatters['formatPlural']>[1]): LDMLPluralRule;
//# sourceMappingURL=plural.d.ts.map

@@ -7,2 +7,1 @@ import { IntlFormatters, Formatters, CustomFormats, OnErrorFn } from './types';

}, getRelativeTimeFormat: Formatters['getRelativeTimeFormat'], value: Parameters<IntlFormatters['formatRelativeTime']>[0], unit?: Parameters<IntlFormatters['formatRelativeTime']>[1], options?: Parameters<IntlFormatters['formatRelativeTime']>[2]): string;
//# sourceMappingURL=relativeTime.d.ts.map

@@ -107,2 +107,1 @@ import { IntlMessageFormat, Formats, FormatXMLElementFn, FormatError, PrimitiveType, Options as IntlMessageFormatOptions } from 'intl-messageformat';

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

@@ -12,2 +12,1 @@ import { IntlCache, CustomFormats, Formatters, OnErrorFn, ResolvedIntlConfig } from './types';

export declare function getNamedFormat<T extends keyof CustomFormats>(formats: CustomFormats, type: T, name: string, onError: OnErrorFn): NumberFormatOptions | Intl.DateTimeFormatOptions | Intl.RelativeTimeFormatOptions | undefined;
//# sourceMappingURL=utils.d.ts.map
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