intl-messageformat-parser
Advanced tools
Comparing version 6.0.18 to 6.1.0
@@ -1,3 +0,2 @@ | ||
import { NumberSkeletonToken } from './types'; | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
import { ExtendedNumberFormatOptions, NumberSkeletonToken } from './types'; | ||
export interface ExtendedDateTimeFormatOptions extends Intl.DateTimeFormatOptions { | ||
@@ -16,3 +15,3 @@ hourCycle?: 'h11' | 'h12' | 'h23' | 'h24'; | ||
*/ | ||
export declare function parseNumberSkeleton(tokens: NumberSkeletonToken[]): NumberFormatOptions; | ||
export declare function parseNumberSkeleton(tokens: NumberSkeletonToken[]): ExtendedNumberFormatOptions; | ||
//# sourceMappingURL=skeleton.d.ts.map |
@@ -255,2 +255,5 @@ import { __assign } from "tslib"; | ||
continue; | ||
case 'scale': | ||
result.scale = parseFloat(token.options[0]); | ||
continue; | ||
} | ||
@@ -257,0 +260,0 @@ // Precision |
@@ -0,1 +1,5 @@ | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
export interface ExtendedNumberFormatOptions extends NumberFormatOptions { | ||
scale?: number; | ||
} | ||
export declare enum TYPE { | ||
@@ -103,3 +107,3 @@ /** | ||
location?: Location; | ||
parsedOptions: Intl.NumberFormatOptions; | ||
parsedOptions: ExtendedNumberFormatOptions; | ||
} | ||
@@ -106,0 +110,0 @@ export interface DateTimeSkeleton { |
{ | ||
"name": "intl-messageformat-parser", | ||
"version": "6.0.18", | ||
"version": "6.1.0", | ||
"description": "Parses ICU Message strings into an AST via JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,3 +0,2 @@ | ||
import { NumberSkeletonToken } from './types'; | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
import { ExtendedNumberFormatOptions, NumberSkeletonToken } from './types'; | ||
export interface ExtendedDateTimeFormatOptions extends Intl.DateTimeFormatOptions { | ||
@@ -16,3 +15,3 @@ hourCycle?: 'h11' | 'h12' | 'h23' | 'h24'; | ||
*/ | ||
export declare function parseNumberSkeleton(tokens: NumberSkeletonToken[]): NumberFormatOptions; | ||
export declare function parseNumberSkeleton(tokens: NumberSkeletonToken[]): ExtendedNumberFormatOptions; | ||
//# sourceMappingURL=skeleton.d.ts.map |
@@ -259,2 +259,5 @@ "use strict"; | ||
continue; | ||
case 'scale': | ||
result.scale = parseFloat(token.options[0]); | ||
continue; | ||
} | ||
@@ -261,0 +264,0 @@ // Precision |
@@ -0,1 +1,5 @@ | ||
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
export interface ExtendedNumberFormatOptions extends NumberFormatOptions { | ||
scale?: number; | ||
} | ||
export declare enum TYPE { | ||
@@ -103,3 +107,3 @@ /** | ||
location?: Location; | ||
parsedOptions: Intl.NumberFormatOptions; | ||
parsedOptions: ExtendedNumberFormatOptions; | ||
} | ||
@@ -106,0 +110,0 @@ export interface DateTimeSkeleton { |
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
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
300043
7856