@nxtedition/lib 25.1.2 → 25.1.3
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/http.js +1 -1
- package/package.json +1 -1
package/http.js
CHANGED
|
@@ -954,7 +954,7 @@ export async function retry(fn, options) {
|
|
|
954
954
|
* @param {Array} middleware
|
|
955
955
|
* @return {Function}
|
|
956
956
|
*/
|
|
957
|
-
const composeSlim = (middleware) =>
|
|
957
|
+
const composeSlim = (middleware) => (ctx, next) => {
|
|
958
958
|
const dispatch = (i) => () => {
|
|
959
959
|
const fn = i === middleware.length ? next : middleware[i]
|
|
960
960
|
return fn ? fn(ctx, dispatch(i + 1)) : undefined
|