@poppinss/intl-formatter
Advanced tools
Comparing version 3.0.1 to 3.0.2
import moize from 'moize'; | ||
declare const number: moize.Moized<(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined) => Intl.NumberFormat, Partial<{ | ||
declare const number: moize.Moized<(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined) => Intl.NumberFormat, Partial<{ | ||
isDeepEqual: boolean; | ||
@@ -14,5 +14,5 @@ isPromise: boolean; | ||
maxSize: number; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined) => Intl.NumberFormat>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined) => Intl.NumberFormat>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined) => Intl.NumberFormat>; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined) => Intl.NumberFormat>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined) => Intl.NumberFormat>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined) => Intl.NumberFormat>; | ||
onExpire: moize.OnExpire; | ||
@@ -47,3 +47,3 @@ profileName: string; | ||
}>; | ||
declare const date: moize.Moized<(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined) => Intl.DateTimeFormat, Partial<{ | ||
declare const date: moize.Moized<(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined) => Intl.DateTimeFormat, Partial<{ | ||
isDeepEqual: boolean; | ||
@@ -59,5 +59,5 @@ isPromise: boolean; | ||
maxSize: number; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined) => Intl.DateTimeFormat>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined) => Intl.DateTimeFormat>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined) => Intl.DateTimeFormat>; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined) => Intl.DateTimeFormat>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined) => Intl.DateTimeFormat>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined) => Intl.DateTimeFormat>; | ||
onExpire: moize.OnExpire; | ||
@@ -92,3 +92,3 @@ profileName: string; | ||
}>; | ||
declare const plural: moize.Moized<(locales?: string | string[] | undefined, options?: Intl.PluralRulesOptions | undefined) => Intl.PluralRules, Partial<{ | ||
declare const plural: moize.Moized<(locales?: Intl.LocalesArgument, options?: Intl.PluralRulesOptions | undefined) => Intl.PluralRules, Partial<{ | ||
isDeepEqual: boolean; | ||
@@ -104,5 +104,5 @@ isPromise: boolean; | ||
maxSize: number; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.PluralRulesOptions | undefined) => Intl.PluralRules>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.PluralRulesOptions | undefined) => Intl.PluralRules>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.PluralRulesOptions | undefined) => Intl.PluralRules>; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.PluralRulesOptions | undefined) => Intl.PluralRules>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.PluralRulesOptions | undefined) => Intl.PluralRules>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.PluralRulesOptions | undefined) => Intl.PluralRules>; | ||
onExpire: moize.OnExpire; | ||
@@ -137,3 +137,3 @@ profileName: string; | ||
}>; | ||
declare const relative: moize.Moized<(locales?: string | string[] | undefined, options?: Intl.RelativeTimeFormatOptions | undefined) => Intl.RelativeTimeFormat, Partial<{ | ||
declare const relative: moize.Moized<(locales?: Intl.LocalesArgument, options?: Intl.RelativeTimeFormatOptions | undefined) => Intl.RelativeTimeFormat, Partial<{ | ||
isDeepEqual: boolean; | ||
@@ -149,5 +149,5 @@ isPromise: boolean; | ||
maxSize: number; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.RelativeTimeFormatOptions | undefined) => Intl.RelativeTimeFormat>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.RelativeTimeFormatOptions | undefined) => Intl.RelativeTimeFormat>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.RelativeTimeFormatOptions | undefined) => Intl.RelativeTimeFormat>; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.RelativeTimeFormatOptions | undefined) => Intl.RelativeTimeFormat>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.RelativeTimeFormatOptions | undefined) => Intl.RelativeTimeFormat>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.RelativeTimeFormatOptions | undefined) => Intl.RelativeTimeFormat>; | ||
onExpire: moize.OnExpire; | ||
@@ -182,3 +182,3 @@ profileName: string; | ||
}>; | ||
declare const list: moize.Moized<(locales?: string | string[] | undefined, options?: Intl.ListFormatOptions | undefined) => Intl.ListFormat, Partial<{ | ||
declare const list: moize.Moized<(locales?: Intl.LocalesArgument, options?: Intl.ListFormatOptions | undefined) => Intl.ListFormat, Partial<{ | ||
isDeepEqual: boolean; | ||
@@ -194,5 +194,5 @@ isPromise: boolean; | ||
maxSize: number; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.ListFormatOptions | undefined) => Intl.ListFormat>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.ListFormatOptions | undefined) => Intl.ListFormat>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: string | string[] | undefined, options?: Intl.ListFormatOptions | undefined) => Intl.ListFormat>; | ||
onCacheAdd: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.ListFormatOptions | undefined) => Intl.ListFormat>; | ||
onCacheChange: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.ListFormatOptions | undefined) => Intl.ListFormat>; | ||
onCacheHit: moize.OnCacheOperation<(locales?: Intl.LocalesArgument, options?: Intl.ListFormatOptions | undefined) => Intl.ListFormat>; | ||
onExpire: moize.OnExpire; | ||
@@ -199,0 +199,0 @@ profileName: string; |
{ | ||
"name": "@poppinss/intl-formatter", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Memoized API for Intl (To be used within Node)", | ||
@@ -39,22 +39,22 @@ "main": "build/index.js", | ||
"devDependencies": { | ||
"@adonisjs/eslint-config": "^1.2.0", | ||
"@adonisjs/prettier-config": "^1.2.0", | ||
"@adonisjs/tsconfig": "^1.2.0", | ||
"@commitlint/cli": "^18.4.3", | ||
"@commitlint/config-conventional": "^18.4.3", | ||
"@japa/assert": "^2.0.1", | ||
"@japa/runner": "^3.1.0", | ||
"@swc/core": "^1.3.100", | ||
"@types/node": "^20.10.4", | ||
"@adonisjs/eslint-config": "^1.3.0", | ||
"@adonisjs/prettier-config": "^1.3.0", | ||
"@adonisjs/tsconfig": "^1.3.0", | ||
"@commitlint/cli": "^19.2.1", | ||
"@commitlint/config-conventional": "^19.1.0", | ||
"@japa/assert": "^2.1.0", | ||
"@japa/runner": "^3.1.1", | ||
"@swc/core": "^1.4.11", | ||
"@types/node": "^20.11.30", | ||
"benchmark": "^2.1.4", | ||
"c8": "^8.0.1", | ||
"c8": "^9.1.0", | ||
"del-cli": "^5.1.0", | ||
"eslint": "^8.56.0", | ||
"eslint": "^8.57.0", | ||
"github-label-sync": "^2.3.1", | ||
"husky": "^8.0.3", | ||
"np": "^9.2.0", | ||
"prettier": "^3.1.1", | ||
"husky": "^9.0.11", | ||
"np": "^10.0.2", | ||
"prettier": "^3.2.5", | ||
"ts-node": "^10.9.2", | ||
"tsup": "^8.0.1", | ||
"typescript": "^5.3.3" | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.4.3" | ||
}, | ||
@@ -61,0 +61,0 @@ "dependencies": { |
20301