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

intl-messageformat-parser

Package Overview
Dependencies
Maintainers
6
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 6.0.18 to 6.1.0

5

lib/src/skeleton.d.ts

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

3

lib/src/skeleton.js

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

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