@jam-comments/astro 1.0.0-beta.2 → 1.0.1

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/index.d.ts CHANGED
@@ -1 +1,11 @@
1
- export {};
1
+ declare global {
2
+ interface Window {
3
+ JamComments: {
4
+ initialize: () => void;
5
+ };
6
+ }
7
+ }
8
+
9
+ export interface JamCommentsProps {
10
+ path: string;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jam-comments/astro",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.1",
4
4
  "author": "Alex MacArthur <alex@macarthur.me> (https://macarthur.me)",
5
5
  "license": "GPL-2.0",
6
6
  "description": "Easily add performant, SEO-friendly comments to your Astro blog with JamComments.",
@@ -28,12 +28,12 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@jam-comments/server-utilities": "^2.0.2",
32
- "astro": "^1.6.12",
33
- "node-fetch": "^3.3.0"
31
+ "@jam-comments/server-utilities": "^3.0.1",
32
+ "astro": "^2.1.7",
33
+ "node-fetch": "^3.3.1"
34
34
  },
35
35
  "gitHead": "2b1cefb90c89a2f70099213881b09216f20e3dc2",
36
36
  "devDependencies": {
37
- "prettier": "^2.8.3"
37
+ "prettier": "^2.8.7"
38
38
  }
39
39
  }
package/src/index.astro CHANGED
@@ -1,19 +1,10 @@
1
1
  ---
2
2
  import pkg from "@jam-comments/server-utilities";
3
3
  import nodeFetch from "node-fetch";
4
+ import type { JamCommentsProps } from "..";
4
5
  const { markupFetcher, logError } = pkg;
5
6
 
6
- export interface Props {
7
- path: string;
8
- }
9
-
10
- declare global {
11
- interface Window {
12
- JamComments: {
13
- initialize: () => void;
14
- };
15
- }
16
- }
7
+ type Props = JamCommentsProps;
17
8
 
18
9
  const CLIENT_SCRIPT_URL =
19
10
  "https://unpkg.com/@jam-comments/client@2.0.0-beta.2/dist/index.umd.js";