@antora/page-composer
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -121,6 +121,6 @@ 'use strict' | ||
let latestReached | ||
// 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) { | ||
// NOTE latest can be undefined if page is only in prerelease and the prerelease version is not the latest version | ||
if (latest && !latest.prerelease) { | ||
let canonicalUrl = latest.url | ||
@@ -127,0 +127,0 @@ if (canonicalUrl === url || canonicalUrl.charAt() === '/') canonicalUrl = siteUrl + canonicalUrl |
{ | ||
"name": "@antora/page-composer", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"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": "859ba61d87c93743e302b0e2113252cb95739ac0" | ||
"gitHead": "0e0b6673b62cd6e89d11124f849e74f574d53317" | ||
} |
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
33236