@fedify/sveltekit 2.0.1 → 2.0.2

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/mod.d.cts CHANGED
@@ -4,24 +4,24 @@ import { Handle, RequestEvent } from "@sveltejs/kit";
4
4
  //#region src/mod.d.ts
5
5
 
6
6
  /**
7
- * Create a SvelteKit hook handler to integrate with the {@link Federation}
8
- * object.
9
- *
10
- * @example hooks.server.ts
11
- * ``` typescript
12
- * import { federation } from "./federation"; // Import the `Federation` object
13
- *
14
- * export const handle = fedifyHook(federation);
15
- * ```
16
- *
17
- * @template TContextData A type of the context data for the {@link Federation}
18
- * object.
19
- * @param federation A {@link Federation} object to integrate with SvelteKit.
20
- * @param createContextData A function to create a context data for the
21
- * {@link Federation} object.
22
- * @returns A SvelteKit hook handler.
23
- * @since 1.9.0
24
- */
7
+ * Create a SvelteKit hook handler to integrate with the {@link Federation}
8
+ * object.
9
+ *
10
+ * @example hooks.server.ts
11
+ * ``` typescript
12
+ * import { federation } from "./federation"; // Import the `Federation` object
13
+ *
14
+ * export const handle = fedifyHook(federation);
15
+ * ```
16
+ *
17
+ * @template TContextData A type of the context data for the {@link Federation}
18
+ * object.
19
+ * @param federation A {@link Federation} object to integrate with SvelteKit.
20
+ * @param createContextData A function to create a context data for the
21
+ * {@link Federation} object.
22
+ * @returns A SvelteKit hook handler.
23
+ * @since 1.9.0
24
+ */
25
25
  declare function fedifyHook<TContextData>(federation: Federation<TContextData>, createContextData?: (event: RequestEvent) => TContextData | Promise<TContextData>): Handle;
26
26
  //#endregion
27
27
  export { fedifyHook };
package/dist/mod.d.ts CHANGED
@@ -4,24 +4,24 @@ import { Handle, RequestEvent } from "@sveltejs/kit";
4
4
  //#region src/mod.d.ts
5
5
 
6
6
  /**
7
- * Create a SvelteKit hook handler to integrate with the {@link Federation}
8
- * object.
9
- *
10
- * @example hooks.server.ts
11
- * ``` typescript
12
- * import { federation } from "./federation"; // Import the `Federation` object
13
- *
14
- * export const handle = fedifyHook(federation);
15
- * ```
16
- *
17
- * @template TContextData A type of the context data for the {@link Federation}
18
- * object.
19
- * @param federation A {@link Federation} object to integrate with SvelteKit.
20
- * @param createContextData A function to create a context data for the
21
- * {@link Federation} object.
22
- * @returns A SvelteKit hook handler.
23
- * @since 1.9.0
24
- */
7
+ * Create a SvelteKit hook handler to integrate with the {@link Federation}
8
+ * object.
9
+ *
10
+ * @example hooks.server.ts
11
+ * ``` typescript
12
+ * import { federation } from "./federation"; // Import the `Federation` object
13
+ *
14
+ * export const handle = fedifyHook(federation);
15
+ * ```
16
+ *
17
+ * @template TContextData A type of the context data for the {@link Federation}
18
+ * object.
19
+ * @param federation A {@link Federation} object to integrate with SvelteKit.
20
+ * @param createContextData A function to create a context data for the
21
+ * {@link Federation} object.
22
+ * @returns A SvelteKit hook handler.
23
+ * @since 1.9.0
24
+ */
25
25
  declare function fedifyHook<TContextData>(federation: Federation<TContextData>, createContextData?: (event: RequestEvent) => TContextData | Promise<TContextData>): Handle;
26
26
  //#endregion
27
27
  export { fedifyHook };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/sveltekit",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Integrate Fedify with SvelteKit",
5
5
  "keywords": [
6
6
  "Fedify",
@@ -51,7 +51,7 @@
51
51
  ],
52
52
  "peerDependencies": {
53
53
  "@sveltejs/kit": "^2.0.0",
54
- "@fedify/fedify": "^2.0.1"
54
+ "@fedify/fedify": "^2.0.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "tsdown": "^0.12.9",