@formatjs/icu-messageformat-parser
Advanced tools
Comparing version 2.1.11 to 2.1.13
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
217397
1
+ Added@formatjs/ecma402-abstract@1.14.2(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.17(transitive)
- Removed@formatjs/ecma402-abstract@1.14.0(transitive)
- Removed@formatjs/icu-skeleton-parser@1.3.15(transitive)