rehype-og-card 3.1.4 → 3.1.6

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
@@ -30,8 +30,9 @@ const DEFAULT_OPTIONS = {
30
30
  * @param options Plugin options.
31
31
  * @returns Transformer function.
32
32
  */
33
+ const rehypeOGCard = (options
33
34
  // eslint-disable-next-line max-lines-per-function, max-statements
34
- const rehypeOGCard = (options) => {
35
+ ) => {
35
36
  const mergedOptions = {
36
37
  ...DEFAULT_OPTIONS,
37
38
  ...options
@@ -315,8 +315,9 @@ const saveOGDataBuildCache = async (url, OGData, buildCachePath) => {
315
315
  * @param maxAgeMs Cache expiration time in milliseconds.
316
316
  * @returns Restored OG data. If not found, returns `null`.
317
317
  */
318
+ const restoreOGDataBuildCache = async (url, buildCachePath, maxAgeMs
318
319
  // eslint-disable-next-line max-statements
319
- const restoreOGDataBuildCache = async (url, buildCachePath, maxAgeMs) => {
320
+ ) => {
320
321
  const filename = generateFilename(url, false);
321
322
  const savePath = `${path.join(buildCachePath, filename)}.json`;
322
323
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rehype-og-card",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
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",
@@ -40,18 +40,18 @@
40
40
  },
41
41
  "homepage": "https://github.com/Robot-Inventor/rehype-og-card#readme",
42
42
  "devDependencies": {
43
- "@changesets/changelog-github": "^0.6.0",
43
+ "@changesets/changelog-github": "^0.7.0",
44
44
  "@changesets/cli": "^2.27.7",
45
- "@robot-inventor/eslint-config": "^11.0.0",
45
+ "@robot-inventor/eslint-config": "^12.0.0",
46
46
  "@robot-inventor/tsconfig-base": "^7.0.0",
47
47
  "@types/node": "^25.0.2",
48
- "eslint": "^9.7.0",
48
+ "eslint": "^10.0.0",
49
49
  "hast-util-to-html": "^9.0.1",
50
50
  "prettier": "^3.3.3",
51
51
  "rehype-stringify": "^10.0.0",
52
52
  "remark-parse": "^11.0.0",
53
53
  "remark-rehype": "^11.1.0",
54
- "typescript": "^5.9.2",
54
+ "typescript": "^6.0.0",
55
55
  "unified": "^11.0.5",
56
56
  "vitest": "^4.0.0"
57
57
  },
@@ -63,5 +63,8 @@
63
63
  "node-fetch": "^3.3.2",
64
64
  "open-graph-scraper": "^6.6.3",
65
65
  "unist-util-visit-parents": "^6.0.1"
66
+ },
67
+ "overrides": {
68
+ "zod-validation-error": "^5.0.0"
66
69
  }
67
70
  }