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 2.1.0 to 2.1.1

18

lib/create-page-composer.js

@@ -105,5 +105,14 @@ 'use strict'

if (siteUrl) {
if (siteUrl.charAt(siteUrl.length - 1) === '/') siteUrl = siteUrl.substr(0, siteUrl.length - 1)
if ((model.path = new URL(siteUrl).pathname) === '/') model.path = ''
model.url = siteUrl
if (siteUrl === '/') {
model.url = siteUrl
model.path = ''
} else {
if (siteUrl.charAt(siteUrl.length - 1) === '/') siteUrl = siteUrl.substr(0, siteUrl.length - 1)
if (siteUrl.charAt() === '/') {
model.path = siteUrl
} else if ((model.path = new URL(siteUrl).pathname) === '/') {
model.path = ''
}
model.url = siteUrl
}
}

@@ -180,3 +189,4 @@

if (site.url) {
// NOTE the site URL has already been normalized at this point
if (site.url && site.url.charAt() !== '/') {
// NOTE not always the same as the latest component version (since the page might cease to exist)

@@ -183,0 +193,0 @@ const latestPageVersion = versions

{
"name": "@antora/page-composer",
"version": "2.1.0",
"version": "2.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.1",
"handlebars": "~4.2",
"require-from-string": "~2.0"

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