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

intl-messageformat

Package Overview
Dependencies
Maintainers
12
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-messageformat - npm Package Compare versions

Comparing version 10.3.1 to 10.3.2

2

lib/src/core.d.ts

@@ -15,3 +15,3 @@ import { parse, MessageFormatElement, ParserOptions } from '@formatjs/icu-messageformat-parser';

constructor(message: string | MessageFormatElement[], locales?: string | string[], overrideFormats?: Partial<Formats>, opts?: Options);
format: <T = void>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => string | T | (string | T)[];
format: <T = void>(values?: Record<string, T | PrimitiveType | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => string | T | (string | T)[];
formatToParts: <T>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => MessageFormatPart<T>[];

@@ -18,0 +18,0 @@ resolvedOptions: () => {

@@ -8,3 +8,3 @@ /*

import { parse, } from '@formatjs/icu-messageformat-parser';
import memoize, { strategies } from '@formatjs/fast-memoize';
import { memoize, strategies } from '@formatjs/fast-memoize';
import { formatToParts, PART_TYPE, } from './formatters';

@@ -11,0 +11,0 @@ // -- MessageFormat --------------------------------------------------------

{
"name": "intl-messageformat",
"version": "10.3.1",
"version": "10.3.2",
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.",

@@ -35,3 +35,3 @@ "keywords": [

"@formatjs/ecma402-abstract": "1.14.3",
"@formatjs/fast-memoize": "1.2.8",
"@formatjs/fast-memoize": "2.0.0",
"@formatjs/icu-messageformat-parser": "2.3.0",

@@ -38,0 +38,0 @@ "tslib": "^2.4.0"

@@ -15,3 +15,3 @@ import { parse, MessageFormatElement, ParserOptions } from '@formatjs/icu-messageformat-parser';

constructor(message: string | MessageFormatElement[], locales?: string | string[], overrideFormats?: Partial<Formats>, opts?: Options);
format: <T = void>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => string | T | (string | T)[];
format: <T = void>(values?: Record<string, T | PrimitiveType | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => string | T | (string | T)[];
formatToParts: <T>(values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined) => MessageFormatPart<T>[];

@@ -18,0 +18,0 @@ resolvedOptions: () => {

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

var icu_messageformat_parser_1 = require("@formatjs/icu-messageformat-parser");
var fast_memoize_1 = tslib_1.__importStar(require("@formatjs/fast-memoize"));
var fast_memoize_1 = require("@formatjs/fast-memoize");
var formatters_1 = require("./formatters");

@@ -54,3 +54,3 @@ // -- MessageFormat --------------------------------------------------------

return {
getNumberFormat: (0, fast_memoize_1.default)(function () {
getNumberFormat: (0, fast_memoize_1.memoize)(function () {
var _a;

@@ -66,3 +66,3 @@ var args = [];

}),
getDateTimeFormat: (0, fast_memoize_1.default)(function () {
getDateTimeFormat: (0, fast_memoize_1.memoize)(function () {
var _a;

@@ -78,3 +78,3 @@ var args = [];

}),
getPluralRules: (0, fast_memoize_1.default)(function () {
getPluralRules: (0, fast_memoize_1.memoize)(function () {
var _a;

@@ -81,0 +81,0 @@ var args = [];

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

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