@fedify/fedify 0.12.0-dev.284 → 0.12.0-dev.285
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -0
- package/esm/mod.js +1 -0
- package/esm/x/astro.js +2 -0
- package/package.json +1 -1
- package/types/mod.d.ts +1 -0
- package/types/mod.d.ts.map +1 -1
- package/types/x/astro.d.ts +7 -0
- package/types/x/astro.d.ts.map +1 -1
package/README.md
CHANGED
@@ -30,6 +30,7 @@ Currently, Fedify provides the following features out of the box:
|
|
30
30
|
- [NodeInfo] protocol
|
31
31
|
- Special touch for interoperability with Mastodon and few other popular
|
32
32
|
fediverse software
|
33
|
+
- Integration with various web frameworks
|
33
34
|
- CLI toolchain for testing and debugging
|
34
35
|
|
35
36
|
If you want to know more about the project, please take a look at the following
|
package/esm/mod.js
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
* - [NodeInfo] protocol
|
20
20
|
* - Special touch for interoperability with Mastodon and few other popular
|
21
21
|
* fediverse software
|
22
|
+
* - Integration with various web frameworks
|
22
23
|
* - CLI toolchain for testing and debugging
|
23
24
|
*
|
24
25
|
* If you want to know more about the project, please take a look at the
|
package/esm/x/astro.js
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
* @example src/middleware.ts
|
6
6
|
* ``` typescript
|
7
7
|
* import { defineMiddleware } from "astro:middleware";
|
8
|
+
* import { createFetchOptions } from "@fedify/fedify/x/astro";
|
8
9
|
* import { federation } from "./federation"; // Import the `Federation` object
|
9
10
|
*
|
10
11
|
* export const onRequest = defineMiddleware((context, next) => {
|
@@ -56,6 +57,7 @@ export function createFetchOptions(_context, next) {
|
|
56
57
|
* @example src/middleware.ts
|
57
58
|
* ``` typescript
|
58
59
|
* import type { MiddlewareHandler } from "astro";
|
60
|
+
* import { createMiddleware } from "@fedify/fedify/x/astro";
|
59
61
|
* import { federation } from "./federation"; // Import the `Federation` object
|
60
62
|
*
|
61
63
|
* export const onRequest: MiddlewareHandler = createMiddleware(
|
package/package.json
CHANGED
package/types/mod.d.ts
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
* - [NodeInfo] protocol
|
20
20
|
* - Special touch for interoperability with Mastodon and few other popular
|
21
21
|
* fediverse software
|
22
|
+
* - Integration with various web frameworks
|
22
23
|
* - CLI toolchain for testing and debugging
|
23
24
|
*
|
24
25
|
* If you want to know more about the project, please take a look at the
|
package/types/mod.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/types/x/astro.d.ts
CHANGED
@@ -7,7 +7,12 @@
|
|
7
7
|
* This module contains some utilities for integrating Fedify with
|
8
8
|
* the [Astro] framework.
|
9
9
|
*
|
10
|
+
* > [!NOTE]
|
11
|
+
* >
|
12
|
+
* > Astro integration requires [on-demand server rendering][1].
|
13
|
+
*
|
10
14
|
* [Astro]: https://astro.build/
|
15
|
+
* [1]: https://docs.astro.build/en/guides/server-side-rendering/
|
11
16
|
*
|
12
17
|
* @module
|
13
18
|
* @since 0.12.0
|
@@ -26,6 +31,7 @@ type MiddlewareHandler<TAstroContext extends AstroContext> = (context: TAstroCon
|
|
26
31
|
* @example src/middleware.ts
|
27
32
|
* ``` typescript
|
28
33
|
* import { defineMiddleware } from "astro:middleware";
|
34
|
+
* import { createFetchOptions } from "@fedify/fedify/x/astro";
|
29
35
|
* import { federation } from "./federation"; // Import the `Federation` object
|
30
36
|
*
|
31
37
|
* export const onRequest = defineMiddleware((context, next) => {
|
@@ -61,6 +67,7 @@ export type ContextDataFactory<TContextData, TAstroContext extends AstroContext>
|
|
61
67
|
* @example src/middleware.ts
|
62
68
|
* ``` typescript
|
63
69
|
* import type { MiddlewareHandler } from "astro";
|
70
|
+
* import { createMiddleware } from "@fedify/fedify/x/astro";
|
64
71
|
* import { federation } from "./federation"; // Import the `Federation` object
|
65
72
|
*
|
66
73
|
* export const onRequest: MiddlewareHandler = createMiddleware(
|
package/types/x/astro.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"astro.d.ts","sourceRoot":"","sources":["../../src/x/astro.ts"],"names":[],"mappings":";;AAAA
|
1
|
+
{"version":3,"file":"astro.d.ts","sourceRoot":"","sources":["../../src/x/astro.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EACV,UAAU,EACV,sBAAsB,EACvB,MAAM,6BAA6B,CAAC;AAErC,UAAU,YAAY;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB;AACD,KAAK,cAAc,GAAG,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC;AAC7C,KAAK,cAAc,GAAG,CACpB,cAAc,CAAC,EAAE,cAAc,KAC5B,OAAO,CAAC,QAAQ,CAAC,CAAC;AACvB,KAAK,iBAAiB,CAAC,aAAa,SAAS,YAAY,IAAI,CAC3D,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,cAAc,KACjB,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,SAAS,YAAY,EACnE,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,cAAc,GACnB,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,CA2BnD;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,kBAAkB,CAC5B,YAAY,EACZ,aAAa,SAAS,YAAY,IAChC,CACF,OAAO,EAAE,aAAa,KACnB,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,gBAAgB,CAC9B,YAAY,EACZ,aAAa,SAAS,YAAY,EAElC,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC,EACpC,kBAAkB,EAAE,kBAAkB,CAAC,YAAY,EAAE,aAAa,CAAC,GAClE,iBAAiB,CAAC,aAAa,CAAC,CAQlC"}
|