@antora/content-classifier
Advanced tools
Comparing version 3.2.0-alpha.5 to 3.2.0-alpha.6
@@ -159,9 +159,15 @@ 'use strict' | ||
function resolveAsciiDocConfig (siteAsciiDocConfig, { asciidoc, origins = [] }) { | ||
function resolveAsciiDocConfig (siteAsciiDocConfig, { name, version, asciidoc, origins = [] }) { | ||
const scopedAttributes = (asciidoc || {}).attributes | ||
if (scopedAttributes) { | ||
const initial = siteAsciiDocConfig.attributes | ||
const initial = Object.assign({}, siteAsciiDocConfig.attributes) | ||
initial['antora-component-name'] = name | ||
initial['antora-component-version'] = version | ||
const mdc = { file: { path: 'antora.yml', origin: origins[origins.length - 1] } } | ||
const attributes = collateAsciiDocAttributes(scopedAttributes, { initial, mdc, merge: true }) | ||
if (attributes !== initial) return Object.assign({}, siteAsciiDocConfig, { attributes }) | ||
if (attributes !== initial) { | ||
delete attributes['antora-component-name'] | ||
delete attributes['antora-component-version'] | ||
return Object.assign({}, siteAsciiDocConfig, { attributes }) | ||
} | ||
} | ||
@@ -168,0 +174,0 @@ return siteAsciiDocConfig |
{ | ||
"name": "@antora/content-classifier", | ||
"version": "3.2.0-alpha.5", | ||
"version": "3.2.0-alpha.6", | ||
"description": "Organizes aggregated content into a virtual file catalog for use in an Antora documentation pipeline.", | ||
@@ -30,4 +30,4 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/asciidoc-loader": "3.2.0-alpha.5", | ||
"@antora/logger": "3.2.0-alpha.5", | ||
"@antora/asciidoc-loader": "3.2.0-alpha.6", | ||
"@antora/logger": "3.2.0-alpha.6", | ||
"mime-types": "~2.1", | ||
@@ -34,0 +34,0 @@ "vinyl": "~3.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
47289
1013
+ Added@antora/asciidoc-loader@3.2.0-alpha.6(transitive)
+ Added@antora/logger@3.2.0-alpha.6(transitive)
- Removed@antora/asciidoc-loader@3.2.0-alpha.5(transitive)
- Removed@antora/logger@3.2.0-alpha.5(transitive)
Updated@antora/logger@3.2.0-alpha.6