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

@antora/content-classifier

Package Overview
Dependencies
Maintainers
0
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 3.2.0-alpha.5 to 3.2.0-alpha.6

12

lib/classify-content.js

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

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