Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antora/page-composer

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/page-composer - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

23

lib/create-page-composer.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc