@antora/page-composer
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -121,7 +121,6 @@ 'use strict' | ||
let latestReached | ||
// NOTE latest could be older than the latest component version since the page might cease to exist | ||
const latest = versions.find( | ||
(candidate) => (latestReached || (latestReached = candidate.latest)) && !candidate.missing | ||
) | ||
if (latest && !latest.prerelease) { | ||
// NOTE latest will at least match current page version, if not a newer version | ||
// NOTE latest not guaranteed to match latest component version since the page may be missing in that version | ||
const latest = versions.find((it) => (latestReached || (latestReached = it.latest)) && !it.missing) | ||
if (!latest.prerelease) { | ||
let canonicalUrl = latest.url | ||
@@ -128,0 +127,0 @@ if (canonicalUrl === url || canonicalUrl.charAt() === '/') canonicalUrl = siteUrl + canonicalUrl |
{ | ||
"name": "@antora/page-composer", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Wraps the embeddable HTML contents of each page file from the content catalog in a page layout to yield standalone pages in an Antora documentation pipeline.", | ||
@@ -36,3 +36,3 @@ "license": "MPL-2.0", | ||
], | ||
"gitHead": "b5c90bd55ba16fc6b293ea76d40452212c6e2a37" | ||
"gitHead": "859ba61d87c93743e302b0e2113252cb95739ac0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33191
349