@fedify/next 1.9.0-dev.1388 → 1.9.0-dev.1390
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.js +2 -2
- package/package.json +9 -7
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { notFound } from "next/navigation";
|
|
2
1
|
import { NextResponse } from "next/server";
|
|
3
2
|
|
|
4
3
|
//#region src/index.ts
|
|
@@ -79,11 +78,12 @@ const FEDERATION_ACCEPT_REGEX = /.*application\/((jrd|activity|ld)\+json|xrd\+xm
|
|
|
79
78
|
function integrateFederation(federation, contextDataFactory = () => void 0, errorHandlers) {
|
|
80
79
|
return async (request) => await federation.fetch(request, {
|
|
81
80
|
contextData: await contextDataFactory(request),
|
|
82
|
-
onNotFound
|
|
81
|
+
onNotFound,
|
|
83
82
|
onNotAcceptable,
|
|
84
83
|
...errorHandlers
|
|
85
84
|
});
|
|
86
85
|
}
|
|
86
|
+
const onNotFound = () => new Response("Not found", { status: 404 });
|
|
87
87
|
const onNotAcceptable = () => new Response("Not acceptable", {
|
|
88
88
|
status: 406,
|
|
89
89
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/next",
|
|
3
|
-
"version": "1.9.0-dev.
|
|
3
|
+
"version": "1.9.0-dev.1390+daedc1c4",
|
|
4
4
|
"description": "Integrate Fedify with Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -30,17 +30,19 @@
|
|
|
30
30
|
],
|
|
31
31
|
"type": "module",
|
|
32
32
|
"main": "./dist/index.js",
|
|
33
|
-
"module": "./dist/index.
|
|
33
|
+
"module": "./dist/index.js",
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
|
37
37
|
"require": {
|
|
38
38
|
"types": "./dist/index.d.ts",
|
|
39
|
+
"import": "./dist/index.js",
|
|
39
40
|
"default": "./dist/index.js"
|
|
40
41
|
},
|
|
41
42
|
"import": {
|
|
42
|
-
"types": "./dist/index.d.
|
|
43
|
-
"
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"import": "./dist/index.js",
|
|
45
|
+
"default": "./dist/index.js"
|
|
44
46
|
}
|
|
45
47
|
},
|
|
46
48
|
"./package.json": "./package.json"
|
|
@@ -50,12 +52,12 @@
|
|
|
50
52
|
"package.json"
|
|
51
53
|
],
|
|
52
54
|
"peerDependencies": {
|
|
53
|
-
"next": "^15.4.
|
|
54
|
-
"@fedify/fedify": "1.9.0-dev.
|
|
55
|
+
"next": "^15.4.6",
|
|
56
|
+
"@fedify/fedify": "1.9.0-dev.1390+daedc1c4"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
57
59
|
"tsdown": "^0.12.9",
|
|
58
|
-
"typescript": "^5.
|
|
60
|
+
"typescript": "^5.9.2"
|
|
59
61
|
},
|
|
60
62
|
"scripts": {
|
|
61
63
|
"build": "tsdown",
|