i18next 23.2.0 → 23.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"type":"module","version":"23.2.0"}
1
+ {"type":"module","version":"23.2.1"}
package/index.d.ts CHANGED
@@ -841,21 +841,21 @@ export type ParseKeys<
841
841
  Keys extends $Dictionary = KeysByTOptions<TOpt>,
842
842
  ActualNS extends Namespace = NsByTOptions<Ns, TOpt>,
843
843
  > = $IsResourcesDefined extends true
844
- ? _FallbackNamespace extends false
845
- ?
846
- | ParseKeysByKeyPrefix<Keys[$FirstNamespace<ActualNS>], KPrefix>
847
- | ParseKeysByNamespaces<ActualNS, Keys>
848
- : _FallbackNamespace extends Array<infer FallbackNs extends Namespace>
844
+ ? _FallbackNamespace extends Array<infer FallbackNs extends Namespace>
849
845
  ?
850
846
  | ParseKeysByKeyPrefix<Keys[$FirstNamespace<ActualNS>], KPrefix>
851
847
  | ParseKeysByKeyPrefix<Keys[$FirstNamespace<FallbackNs>], KPrefix>
852
848
  | ParseKeysByNamespaces<ActualNS, Keys>
853
849
  | ParseKeysByNamespaces<FallbackNs, Keys>
854
- :
850
+ : _FallbackNamespace extends Namespace
851
+ ?
855
852
  | ParseKeysByKeyPrefix<Keys[$FirstNamespace<ActualNS>], KPrefix>
856
853
  | ParseKeysByKeyPrefix<Keys[$FirstNamespace<_FallbackNamespace>], KPrefix>
857
854
  | ParseKeysByNamespaces<ActualNS, Keys>
858
855
  | ParseKeysByNamespaces<_FallbackNamespace, Keys>
856
+ :
857
+ | ParseKeysByKeyPrefix<Keys[$FirstNamespace<ActualNS>], KPrefix>
858
+ | ParseKeysByNamespaces<ActualNS, Keys>
859
859
  : string;
860
860
 
861
861
  /*********************************************************
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "23.2.0",
3
+ "version": "23.2.1",
4
4
  "description": "i18next internationalization framework",
5
5
  "main": "./dist/cjs/i18next.js",
6
6
  "module": "./dist/esm/i18next.js",
@@ -103,13 +103,14 @@
103
103
  "watchify": "4.0.0"
104
104
  },
105
105
  "scripts": {
106
- "pretest": "npm run test:typescript && npm run test:typescript:customtypes && npm run test:typescript:noninterop",
106
+ "pretest": "npm run test:typescript && npm run test:typescript:customtypes && npm run test:typescript:fallbacktypes && npm run test:typescript:noninterop",
107
107
  "lint": "eslint src",
108
108
  "test": "npm run lint && npm run test:new && npm run test:compat",
109
109
  "test:new": "karma start karma.conf.js --singleRun",
110
110
  "test:compat": "karma start karma.backward.conf.js --singleRun",
111
111
  "test:typescript": "tslint --project tsconfig.json",
112
112
  "test:typescript:customtypes": "tslint --project test/typescript/custom-types/tsconfig.json",
113
+ "test:typescript:fallbacktypes": "tslint --project test/typescript/fallback-types/tsconfig.json",
113
114
  "test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json",
114
115
  "tdd": "karma start karma.conf.js",
115
116
  "tdd:compat": "karma start karma.backward.conf.js",