i18next-http-middleware 3.7.1 → 3.7.2

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.
package/cjs/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  Application,
3
3
  Handler,
4
- NextFunction,
5
4
  Request,
6
5
  RequestHandler,
7
6
  Response,
@@ -80,8 +79,8 @@ export function koaPlugin(i18next: I18next, options?: HandleOptions): (context:
80
79
  export function plugin(
81
80
  instance: any,
82
81
  options: HandleOptions & { i18next?: I18next },
83
- next: NextFunction
84
- ): Handler;
82
+ next: (err?: Error) => void
83
+ ): void;
85
84
 
86
85
  export function getResourcesHandler(
87
86
  i18next: I18next,
package/esm/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  Application,
3
3
  Handler,
4
- NextFunction,
5
4
  Request,
6
5
  RequestHandler,
7
6
  Response,
@@ -80,8 +79,8 @@ export function koaPlugin(i18next: I18next, options?: HandleOptions): (context:
80
79
  export function plugin(
81
80
  instance: any,
82
81
  options: HandleOptions & { i18next?: I18next },
83
- next: NextFunction
84
- ): Handler;
82
+ next: (err?: Error) => void
83
+ ): void;
85
84
 
86
85
  export function getResourcesHandler(
87
86
  i18next: I18next,
package/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  Application,
3
3
  Handler,
4
- NextFunction,
5
4
  Request,
6
5
  RequestHandler,
7
6
  Response,
@@ -80,8 +79,8 @@ export function koaPlugin(i18next: I18next, options?: HandleOptions): (context:
80
79
  export function plugin(
81
80
  instance: any,
82
81
  options: HandleOptions & { i18next?: I18next },
83
- next: NextFunction
84
- ): Handler;
82
+ next: (err?: Error) => void
83
+ ): void;
85
84
 
86
85
  export function getResourcesHandler(
87
86
  i18next: I18next,
package/licence CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2024 i18next
1
+ Copyright (c) 2025 i18next
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next-http-middleware",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./cjs/index.js",