@cms-lab/core 1.0.8 → 1.0.10

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/README.md CHANGED
@@ -19,6 +19,12 @@ Sanity image `alt` fields.
19
19
  `readCmsDataPath` is exported for adapters that need to read dotted paths from
20
20
  normalized CMS payloads, for example custom `uidField` and `urlField` mapping.
21
21
 
22
+ ## Release History
23
+
24
+ See the repository [changelog](https://github.com/i-afaqrashid/cms-lab/blob/main/CHANGELOG.md)
25
+ and [GitHub Releases](https://github.com/i-afaqrashid/cms-lab/releases) for
26
+ version-by-version notes.
27
+
22
28
  ## Open Source
23
29
 
24
30
  MIT licensed. See the repository [license](https://github.com/i-afaqrashid/cms-lab/blob/main/LICENSE), [contributing guide](https://github.com/i-afaqrashid/cms-lab/blob/main/CONTRIBUTING.md), and [support guide](https://github.com/i-afaqrashid/cms-lab/blob/main/SUPPORT.md).
package/dist/index.js CHANGED
@@ -708,7 +708,7 @@ function imageAltCandidate(provider, record) {
708
708
  if (typeof record.url === "string" && ("alt" in record || "dimensions" in record)) {
709
709
  return { isImage: true, value: record.alt };
710
710
  }
711
- if (provider === "strapi" && typeof record.url === "string" && ("alternativeText" in record || "mime" in record || "formats" in record)) {
711
+ if (provider === "strapi" && typeof record.url === "string" && ("alternativeText" in record || "formats" in record)) {
712
712
  return { isImage: true, value: record.alternativeText };
713
713
  }
714
714
  if (provider === "wordpress" && typeof record.source_url === "string" && ("alt_text" in record || "media_type" in record || "mime_type" in record)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cms-lab/core",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "description": "Core config, scan, diagnostics, and checks for cms-lab.",
6
6
  "license": "MIT",