rehype-og-card 1.0.3 → 1.0.4

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 CHANGED
@@ -8,9 +8,7 @@ import { visitParents } from "unist-util-visit-parents";
8
8
  const DEFAULT_OPTIONS = {
9
9
  buildCache: false,
10
10
  buildCachePath: "./node_modules/.cache",
11
- crawlerUserAgent:
12
- // eslint-disable-next-line max-len
13
- "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
11
+ crawlerUserAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",
14
12
  decoding: "async",
15
13
  enableSameTextURLConversion: false,
16
14
  excludeDomains: [],
package/dist/util/hast.js CHANGED
@@ -37,7 +37,6 @@ const createOGCard = (data, options) => {
37
37
  target: "_blank"
38
38
  };
39
39
  const card = h("div.og-card-container", [
40
- // eslint-disable-next-line no-extra-parens
41
40
  h("a", { href: data.url, ...(options.openInNewTab ? openInNewTab : {}) }, [
42
41
  h("div.og-card-info", [
43
42
  h("div.og-card-title", data.title),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rehype-og-card",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Rehype plugin to convert text links to link cards",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "devDependencies": {
43
43
  "@changesets/changelog-github": "^0.5.0",
44
44
  "@changesets/cli": "^2.27.7",
45
- "@robot-inventor/eslint-config": "^4.0.0",
45
+ "@robot-inventor/eslint-config": "^5.0.0",
46
46
  "@robot-inventor/tsconfig-base": "^1.1.0",
47
47
  "@types/node": "^20.14.11",
48
48
  "@types/sanitize-html": "^2.11.0",