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

@antora/content-classifier

Package Overview
Dependencies
Maintainers
2
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/content-classifier - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

10

lib/content-catalog.js

@@ -30,4 +30,3 @@ 'use strict'

if (startPageSpec) {
const formalStartPageSpec = startPageSpec.endsWith('.adoc') ? startPageSpec : startPageSpec + '.adoc'
const { src: startPageSrc } = (startPage = this.resolvePage(formalStartPageSpec, indexPageId)) || {}
const { src: startPageSrc } = (startPage = this.resolvePage(startPageSpec, indexPageId)) || {}
if (startPageSrc && startPageSrc.component === name && startPageSrc.version === version) {

@@ -39,3 +38,3 @@ if (!(startPageSrc.module === 'ROOT' && startPageSrc.relative === 'index.adoc')) {

startPage = this.getById(indexPageId)
console.warn(`Start page specified for ${version}@${name} not found: ${formalStartPageSpec}`)
console.warn(`Start page specified for ${version}@${name} not found: ${startPageSpec}`)
}

@@ -227,8 +226,7 @@ } else {

if (!startPageSpec) return
const formalStartPageSpec = startPageSpec.endsWith('.adoc') ? startPageSpec : startPageSpec + '.adoc'
const rel = this.resolvePage(formalStartPageSpec)
const rel = this.resolvePage(startPageSpec)
if (rel) {
return this.addFile({ mediaType: 'text/html', src: inflateSrc(Object.assign({}, START_ALIAS_ID), 'alias'), rel })
} else {
console.warn(`Start page specified for site not found: ${formalStartPageSpec}`)
console.warn(`Start page specified for site not found: ${startPageSpec}`)
}

@@ -235,0 +233,0 @@ }

2

lib/util/parse-resource-id.js

@@ -56,2 +56,4 @@ 'use strict'

if (family === 'page' && relative.indexOf('.') < 0) relative += '.adoc'
if (~relative.indexOf('/')) {

@@ -58,0 +60,0 @@ relative = relative

{
"name": "@antora/content-classifier",
"version": "2.3.1",
"version": "2.3.2",
"description": "Organizes aggregated content into a virtual file catalog for use in an Antora documentation pipeline.",

@@ -19,7 +19,7 @@ "license": "MPL-2.0",

"dependencies": {
"@antora/asciidoc-loader": "2.3.1",
"@antora/asciidoc-loader": "2.3.2",
"vinyl": "~2.2"
},
"devDependencies": {
"@antora/content-aggregator": "2.3.1"
"@antora/content-aggregator": "2.3.2"
},

@@ -40,3 +40,3 @@ "engines": {

],
"gitHead": "b5c90bd55ba16fc6b293ea76d40452212c6e2a37"
"gitHead": "859ba61d87c93743e302b0e2113252cb95739ac0"
}
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