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

intl-messageformat-parser

Package Overview
Dependencies
Maintainers
4
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-messageformat-parser - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

24

index.d.ts
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

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