@antora/page-composer
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -218,8 +218,19 @@ 'use strict' | ||
} | ||
// QUESTION should title be title of component or page? | ||
return component.versions.map((componentVersion) => { | ||
const page = contentCatalog.getById(Object.assign({ version: componentVersion.version }, basePageId)) | ||
return Object.assign({}, componentVersion, page ? { url: page.pub.url } : { missing: true }) | ||
}) | ||
return Object.defineProperty( | ||
component.versions.map((componentVersion) => { | ||
const page = contentCatalog.getById(Object.assign({ version: componentVersion.version }, basePageId)) | ||
// QUESTION should title be title of component or page? | ||
return Object.assign( | ||
componentVersion === component.latest ? { latest: true } : {}, | ||
componentVersion, | ||
page ? { url: page.pub.url } : { missing: true } | ||
) | ||
}), | ||
'latest', | ||
{ | ||
get () { | ||
return this.find((candidate) => candidate.latest) | ||
}, | ||
} | ||
) | ||
} | ||
@@ -226,0 +237,0 @@ |
{ | ||
"name": "@antora/page-composer", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"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.", | ||
@@ -18,3 +18,3 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"handlebars": "^4.0.11", | ||
"handlebars": "^4.0.12", | ||
"require-from-string": "^2.0.2" | ||
@@ -21,0 +21,0 @@ }, |
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
11187
227
Updatedhandlebars@^4.0.12