@fedify/h3 2.0.8 → 2.0.9
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 +3 -27
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
const h3 = __toESM(require("h3"));
|
|
25
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let h3 = require("h3");
|
|
26
3
|
//#region src/index.ts
|
|
27
4
|
/**
|
|
28
5
|
* Integrates a `Federation` instance with an H3 handler.
|
|
@@ -52,7 +29,6 @@ function integrateFederation(federation, contextDataFactory) {
|
|
|
52
29
|
async function onError(error, event) {
|
|
53
30
|
if ("__fedify_response__" in event.context && event.context["__fedify_response__"].status === 406 && error.statusCode === 404) await event.respondWith(event.context["__fedify_response__"]);
|
|
54
31
|
}
|
|
55
|
-
|
|
56
32
|
//#endregion
|
|
57
33
|
exports.integrateFederation = integrateFederation;
|
|
58
|
-
exports.onError = onError;
|
|
34
|
+
exports.onError = onError;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,6 @@ import { Federation } from "@fedify/fedify";
|
|
|
2
2
|
import { EventHandler, EventHandlerRequest, EventHandlerResponse, H3Error, H3Event } from "h3";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* A factory function that creates the context data that will be passed to the
|
|
8
7
|
* `Federation` instance.
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { EventHandler, EventHandlerRequest, EventHandlerResponse, H3Error, H3Eve
|
|
|
2
2
|
import { Federation } from "@fedify/fedify";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* A factory function that creates the context data that will be passed to the
|
|
8
7
|
* `Federation` instance.
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { defineEventHandler, toWebRequest } from "h3";
|
|
2
|
-
|
|
3
2
|
//#region src/index.ts
|
|
4
3
|
/**
|
|
5
4
|
* Integrates a `Federation` instance with an H3 handler.
|
|
@@ -29,6 +28,5 @@ function integrateFederation(federation, contextDataFactory) {
|
|
|
29
28
|
async function onError(error, event) {
|
|
30
29
|
if ("__fedify_response__" in event.context && event.context["__fedify_response__"].status === 406 && error.statusCode === 404) await event.respondWith(event.context["__fedify_response__"]);
|
|
31
30
|
}
|
|
32
|
-
|
|
33
31
|
//#endregion
|
|
34
|
-
export { integrateFederation, onError };
|
|
32
|
+
export { integrateFederation, onError };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/h3",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"description": "Integrate Fedify with h3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"package.json"
|
|
48
48
|
],
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"tsdown": "^0.
|
|
51
|
-
"typescript": "^5.9.
|
|
50
|
+
"tsdown": "^0.21.6",
|
|
51
|
+
"typescript": "^5.9.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"h3": "^1.15.0",
|
|
55
|
-
"@fedify/fedify": "^2.0.
|
|
55
|
+
"@fedify/fedify": "^2.0.9"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build:self": "tsdown",
|