@fedify/next 2.5.0-dev.2619 → 2.5.0-dev.2687
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -65,7 +65,7 @@ let next_server_js = require("next/server.js");
|
|
|
65
65
|
* };
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
const fedifyWith = (federation, contextDataFactory, errorHandlers) => (middleware = (
|
|
68
|
+
const fedifyWith = (federation, contextDataFactory, errorHandlers) => (middleware = (_) => next_server_js.NextResponse.next()) => async (request) => {
|
|
69
69
|
if (isFederationRequest(request)) return await integrateFederation(federation, contextDataFactory, errorHandlers)(request);
|
|
70
70
|
return await middleware(request);
|
|
71
71
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -69,7 +69,7 @@ type ErrorHandlers = Omit<FederationFetchOptions<unknown>, "contextData">;
|
|
|
69
69
|
* };
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
72
|
-
declare const fedifyWith: <TContextData>(federation: Federation<TContextData>, contextDataFactory?: ContextDataFactory<TContextData>, errorHandlers?: Partial<ErrorHandlers>) => (middleware?: (request: Request) => unknown) => (request: Request) => unknown;
|
|
72
|
+
declare const fedifyWith: <TContextData>(federation: Federation<TContextData>, contextDataFactory?: ContextDataFactory<TContextData>, errorHandlers?: Partial<ErrorHandlers>) => (middleware?: (request: Request) => unknown) => ((request: Request) => unknown);
|
|
73
73
|
/**
|
|
74
74
|
* Check if the request should be handled by the {@link Federation} object.
|
|
75
75
|
* A request is considered a federation request if any of the following
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ type ErrorHandlers = Omit<FederationFetchOptions<unknown>, "contextData">;
|
|
|
69
69
|
* };
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
72
|
-
declare const fedifyWith: <TContextData>(federation: Federation<TContextData>, contextDataFactory?: ContextDataFactory<TContextData>, errorHandlers?: Partial<ErrorHandlers>) => (middleware?: (request: Request) => unknown) => (request: Request) => unknown;
|
|
72
|
+
declare const fedifyWith: <TContextData>(federation: Federation<TContextData>, contextDataFactory?: ContextDataFactory<TContextData>, errorHandlers?: Partial<ErrorHandlers>) => (middleware?: (request: Request) => unknown) => ((request: Request) => unknown);
|
|
73
73
|
/**
|
|
74
74
|
* Check if the request should be handled by the {@link Federation} object.
|
|
75
75
|
* A request is considered a federation request if any of the following
|
package/dist/index.js
CHANGED
|
@@ -64,7 +64,7 @@ import { NextResponse } from "next/server.js";
|
|
|
64
64
|
* };
|
|
65
65
|
* ```
|
|
66
66
|
*/
|
|
67
|
-
const fedifyWith = (federation, contextDataFactory, errorHandlers) => (middleware = (
|
|
67
|
+
const fedifyWith = (federation, contextDataFactory, errorHandlers) => (middleware = (_) => NextResponse.next()) => async (request) => {
|
|
68
68
|
if (isFederationRequest(request)) return await integrateFederation(federation, contextDataFactory, errorHandlers)(request);
|
|
69
69
|
return await middleware(request);
|
|
70
70
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/next",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2687+924da5ce",
|
|
4
4
|
"description": "Integrate Fedify with Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"next": ">=15.4.6 <17",
|
|
51
|
-
"@fedify/fedify": "^2.5.0-dev.
|
|
51
|
+
"@fedify/fedify": "^2.5.0-dev.2687+924da5ce"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"tsdown": "^0.22.0",
|