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

i18next

Package Overview
Dependencies
Maintainers
2
Versions
501
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next - npm Package Compare versions

Comparing version 23.2.11 to 23.3.0

2

dist/esm/package.json

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

{"type":"module","version":"23.2.11"}
{"type":"module","version":"23.3.0"}
// Internal Helpers
type $MergeBy<T, K> = Omit<T, keyof K> & K;
type $Dictionary<T = any> = { [key: string]: T };
type $Value<Obj, Key> = Key extends keyof Obj ? Obj[Key] : never;
type $OmitArrayKeys<Arr> = Arr extends readonly any[] ? Omit<Arr, keyof any[]> : Arr;

@@ -869,10 +868,6 @@ type $PreservedValue<Value, Fallback> = [Value] extends [never] ? Fallback : Value;

string}${_PluralSeparator}ordinal${_PluralSeparator}${PluralSuffix}`,
> = KeyWithOrdinalPlural extends keyof Res
? Res[KeyWithOrdinalPlural]
: KeyWithPlural extends keyof Res
? Res[KeyWithPlural]
: $Value<Res, Key>;
> = Res[(KeyWithOrdinalPlural | KeyWithPlural | Key) & keyof Res];
type ParseTReturn<Key, Res> = Key extends `${infer K1}${_KeySeparator}${infer RestKey}`
? ParseTReturn<RestKey, $Value<Res, K1>>
? ParseTReturn<RestKey, Res[K1 & keyof Res]>
: ParseTReturnPlural<Res, Key>;

@@ -895,3 +890,3 @@

? Key extends `${infer Nsp}${_NsSeparator}${infer RestKey}`
? ParseTReturn<RestKey, $Value<Resources, Nsp>>
? ParseTReturn<RestKey, Resources[Nsp & keyof Resources]>
: ParseTReturn<Key, Resources[$FirstNamespace<ActualNS>]>

@@ -920,3 +915,2 @@ : DefaultTReturn<TOpt>;

| [key: Key | Key[], options?: TOpt & InterpolationMap<Ret>]
| [key: Key | Key[], defaultValue: string, options?: TOpt & InterpolationMap<Ret>]
| [key: string | string[], options: TOpt & InterpolationMap<Ret> & { defaultValue: string }]

@@ -923,0 +917,0 @@ | [key: string | string[], defaultValue: string, options?: TOpt & InterpolationMap<Ret>]

{
"name": "i18next",
"version": "23.2.11",
"version": "23.3.0",
"description": "i18next internationalization framework",

@@ -5,0 +5,0 @@ "main": "./dist/cjs/i18next.js",

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