intl-messageformat-parser
Advanced tools
Comparing version 1.5.0 to 1.5.1
type Selector = string | ||
type Format = null | SimpleFormat | PluralFormat | SelectFormat | SelectOrdinalFormat | ||
interface LocationDetails { | ||
@@ -17,8 +16,4 @@ offset: number | ||
} | ||
interface PluralFormat { | ||
type: 'pluralFormat' | ||
interface PluralFormat extends PluralStyle { | ||
ordinal: false | ||
offset: number | ||
options: OptionalFormatPattern[] | ||
location: Location | ||
} | ||
@@ -30,9 +25,6 @@ interface SelectFormat { | ||
} | ||
interface SelectOrdinalFormat { | ||
type: 'selectordinalFormat', | ||
interface SelectOrdinalFormat extends PluralStyle { | ||
ordinal: true, | ||
offset: number, | ||
options: OptionalFormatPattern[] | ||
location: Location | ||
} | ||
type ElementFormat = SimpleFormat | PluralFormat | SelectOrdinalFormat | SelectFormat | ||
interface OptionalFormatPattern { | ||
@@ -47,3 +39,3 @@ type: 'optionalFormatPattern', | ||
offset: number | ||
options: OptionalFormatPattern, | ||
options: OptionalFormatPattern[], | ||
location: Location | ||
@@ -59,10 +51,10 @@ } | ||
id: string | ||
format: Format | ||
format: ElementFormat | ||
location: Location | ||
} | ||
type ICUElement = MessageTextElement | ArgumentElement | ||
type Element = MessageTextElement | ArgumentElement | ||
interface MessageFormatPattern { | ||
export interface MessageFormatPattern { | ||
type: 'messageFormatPattern', | ||
elements: Array<ICUElement>, | ||
elements: Array<Element>, | ||
location: Location | ||
@@ -69,0 +61,0 @@ } |
{ | ||
"name": "intl-messageformat-parser", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Parses ICU Message strings into an AST via JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
434739
0
3910