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

@formatjs/intl-utils

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/intl-utils - npm Package Compare versions

Comparing version 3.7.0 to 3.8.0

_validate_dist_options.optionsvalid.d.ts

3

lib/src/number-types.d.ts

@@ -1,2 +0,1 @@

import { LDMLPluralRule } from './plural-rules-types';
import { LocaleData } from './types';

@@ -92,3 +91,3 @@ export declare type NumberFormatNotation = 'standard' | 'scientific' | 'engineering' | 'compact';

}
export declare type LDMLPluralRuleMap<T> = Omit<Partial<Record<LDMLPluralRule, T>>, 'other'> & {
export declare type LDMLPluralRuleMap<T> = Omit<Partial<Record<Intl.LDMLPluralRule, T>>, 'other'> & {
other: T;

@@ -95,0 +94,0 @@ };

import { LocaleData } from './types';
export declare type LDMLPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
export interface PluralRulesData {

@@ -8,5 +7,5 @@ categories: {

};
fn: (val: number | string, ord?: boolean) => LDMLPluralRule;
fn: (val: number | string, ord?: boolean) => Intl.LDMLPluralRule;
}
export declare type PluralRulesLocaleData = LocaleData<PluralRulesData>;
//# sourceMappingURL=plural-rules-types.d.ts.map
import { LocaleData } from './types';
import { LDMLPluralRule } from './plural-rules-types';
export interface FieldData {

@@ -15,3 +14,3 @@ '0'?: string;

declare type RelativeTimeData = {
[u in LDMLPluralRule]?: string;
[u in Intl.LDMLPluralRule]?: string;
};

@@ -18,0 +17,0 @@ export declare type UnpackedLocaleFieldsData = {

{
"name": "@formatjs/intl-utils",
"version": "3.7.0",
"version": "3.8.0",
"description": "Smartly determine best unit for relative time format",

@@ -25,7 +25,2 @@ "keywords": [

"types": "intl-utils.d.ts",
"files": [
"lib",
"src",
"*.js"
],
"homepage": "https://github.com/formatjs/formatjs",

@@ -32,0 +27,0 @@ "license": "MIT",

@@ -1,2 +0,1 @@

import { LDMLPluralRule } from './plural-rules-types';
import { LocaleData } from './types';

@@ -92,3 +91,3 @@ export declare type NumberFormatNotation = 'standard' | 'scientific' | 'engineering' | 'compact';

}
export declare type LDMLPluralRuleMap<T> = Omit<Partial<Record<LDMLPluralRule, T>>, 'other'> & {
export declare type LDMLPluralRuleMap<T> = Omit<Partial<Record<Intl.LDMLPluralRule, T>>, 'other'> & {
other: T;

@@ -95,0 +94,0 @@ };

import { LocaleData } from './types';
export declare type LDMLPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
export interface PluralRulesData {

@@ -8,5 +7,5 @@ categories: {

};
fn: (val: number | string, ord?: boolean) => LDMLPluralRule;
fn: (val: number | string, ord?: boolean) => Intl.LDMLPluralRule;
}
export declare type PluralRulesLocaleData = LocaleData<PluralRulesData>;
//# sourceMappingURL=plural-rules-types.d.ts.map
import { LocaleData } from './types';
import { LDMLPluralRule } from './plural-rules-types';
export interface FieldData {

@@ -15,3 +14,3 @@ '0'?: string;

declare type RelativeTimeData = {
[u in LDMLPluralRule]?: string;
[u in Intl.LDMLPluralRule]?: string;
};

@@ -18,0 +17,0 @@ export declare type UnpackedLocaleFieldsData = {

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