Socket
Socket
Sign inDemoInstall

@formatjs/icu-messageformat-parser

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/icu-messageformat-parser - npm Package Compare versions

Comparing version 2.1.11 to 2.1.13

2

lib/parser.d.ts

@@ -38,3 +38,3 @@ import { ParserError } from './error';

}
export declare type Result<T, E> = {
export type Result<T, E> = {
val: T;

@@ -41,0 +41,0 @@ err: null;

@@ -63,4 +63,4 @@ import type { NumberFormatOptions } from '@formatjs/ecma402-abstract';

}
export declare type LiteralElement = BaseElement<TYPE.literal>;
export declare type ArgumentElement = BaseElement<TYPE.argument>;
export type LiteralElement = BaseElement<TYPE.literal>;
export type ArgumentElement = BaseElement<TYPE.argument>;
export interface TagElement {

@@ -75,5 +75,5 @@ type: TYPE.tag;

}
export declare type NumberElement = SimpleFormatElement<TYPE.number, NumberSkeleton>;
export declare type DateElement = SimpleFormatElement<TYPE.date, DateTimeSkeleton>;
export declare type TimeElement = SimpleFormatElement<TYPE.time, DateTimeSkeleton>;
export type NumberElement = SimpleFormatElement<TYPE.number, NumberSkeleton>;
export type DateElement = SimpleFormatElement<TYPE.date, DateTimeSkeleton>;
export type TimeElement = SimpleFormatElement<TYPE.time, DateTimeSkeleton>;
export interface SelectOption {

@@ -84,3 +84,3 @@ id: string;

}
export declare type ValidPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other' | string;
export type ValidPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other' | string;
export interface PluralOrSelectOption {

@@ -102,3 +102,3 @@ value: MessageFormatElement[];

}
export declare type MessageFormatElement = ArgumentElement | DateElement | LiteralElement | NumberElement | PluralElement | PoundElement | SelectElement | TagElement | TimeElement;
export type MessageFormatElement = ArgumentElement | DateElement | LiteralElement | NumberElement | PluralElement | PoundElement | SelectElement | TagElement | TimeElement;
export interface NumberSkeleton {

@@ -116,3 +116,3 @@ type: SKELETON_TYPE.number;

}
export declare type Skeleton = NumberSkeleton | DateTimeSkeleton;
export type Skeleton = NumberSkeleton | DateTimeSkeleton;
/**

@@ -134,3 +134,3 @@ * Type Guards

export declare function createNumberElement(value: string, style?: string | null): NumberElement;
export declare type IntlLocaleLike = {
export type IntlLocaleLike = {
readonly hourCycle?: Intl.LocaleHourCycleKey;

@@ -137,0 +137,0 @@ readonly hourCycles?: Array<Intl.LocaleHourCycleKey>;

{
"name": "@formatjs/icu-messageformat-parser",
"version": "2.1.11",
"version": "2.1.13",
"main": "index.js",

@@ -14,6 +14,6 @@ "module": "lib/index.js",

"dependencies": {
"@formatjs/ecma402-abstract": "1.14.0",
"@formatjs/icu-skeleton-parser": "1.3.15",
"@formatjs/ecma402-abstract": "1.14.2",
"@formatjs/icu-skeleton-parser": "1.3.17",
"tslib": "2.4.0"
}
}

@@ -38,3 +38,3 @@ import { ParserError } from './error';

}
export declare type Result<T, E> = {
export type Result<T, E> = {
val: T;

@@ -41,0 +41,0 @@ err: null;

@@ -63,4 +63,4 @@ import type { NumberFormatOptions } from '@formatjs/ecma402-abstract';

}
export declare type LiteralElement = BaseElement<TYPE.literal>;
export declare type ArgumentElement = BaseElement<TYPE.argument>;
export type LiteralElement = BaseElement<TYPE.literal>;
export type ArgumentElement = BaseElement<TYPE.argument>;
export interface TagElement {

@@ -75,5 +75,5 @@ type: TYPE.tag;

}
export declare type NumberElement = SimpleFormatElement<TYPE.number, NumberSkeleton>;
export declare type DateElement = SimpleFormatElement<TYPE.date, DateTimeSkeleton>;
export declare type TimeElement = SimpleFormatElement<TYPE.time, DateTimeSkeleton>;
export type NumberElement = SimpleFormatElement<TYPE.number, NumberSkeleton>;
export type DateElement = SimpleFormatElement<TYPE.date, DateTimeSkeleton>;
export type TimeElement = SimpleFormatElement<TYPE.time, DateTimeSkeleton>;
export interface SelectOption {

@@ -84,3 +84,3 @@ id: string;

}
export declare type ValidPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other' | string;
export type ValidPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other' | string;
export interface PluralOrSelectOption {

@@ -102,3 +102,3 @@ value: MessageFormatElement[];

}
export declare type MessageFormatElement = ArgumentElement | DateElement | LiteralElement | NumberElement | PluralElement | PoundElement | SelectElement | TagElement | TimeElement;
export type MessageFormatElement = ArgumentElement | DateElement | LiteralElement | NumberElement | PluralElement | PoundElement | SelectElement | TagElement | TimeElement;
export interface NumberSkeleton {

@@ -116,3 +116,3 @@ type: SKELETON_TYPE.number;

}
export declare type Skeleton = NumberSkeleton | DateTimeSkeleton;
export type Skeleton = NumberSkeleton | DateTimeSkeleton;
/**

@@ -134,3 +134,3 @@ * Type Guards

export declare function createNumberElement(value: string, style?: string | null): NumberElement;
export declare type IntlLocaleLike = {
export type IntlLocaleLike = {
readonly hourCycle?: Intl.LocaleHourCycleKey;

@@ -137,0 +137,0 @@ readonly hourCycles?: Array<Intl.LocaleHourCycleKey>;

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 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