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.7.10 to 23.7.11

2

dist/esm/package.json

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

{"type":"module","version":"23.7.10"}
{"type":"module","version":"23.7.11"}
{
"name": "i18next",
"version": "23.7.10",
"version": "23.7.11",
"description": "i18next internationalization framework",

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

@@ -101,7 +101,15 @@ import type { $OmitArrayKeys, $PreservedValue, $Dictionary, $SpecialObject } from './helpers.js';

// this seems not to work for ts < 4.7.2
// type ParseKeysByFallbackNs<Keys extends $Dictionary> = _FallbackNamespace extends false
// ? never
// : _FallbackNamespace extends (infer UnionFallbackNs extends string)[]
// ? Keys[UnionFallbackNs]
// : Keys[_FallbackNamespace & string];
// so let's try this:
type First<T> = T extends [infer U, ...any[]] ? U : any;
type ParseKeysByFallbackNs<Keys extends $Dictionary> = _FallbackNamespace extends false
? never
: _FallbackNamespace extends (infer UnionFallbackNs extends string)[]
? Keys[UnionFallbackNs]
: Keys[_FallbackNamespace & string];
: _FallbackNamespace extends string
? Keys[_FallbackNamespace & string]
: Keys[First<_FallbackNamespace>];

@@ -108,0 +116,0 @@ type FilterKeysByContext<Keys, TOpt extends TOptions> = TOpt['context'] extends string

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