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 3.0.0-alpha.8 to 3.0.0-alpha.9

18

lib/content-catalog.js

@@ -76,11 +76,13 @@ 'use strict'

const componentVersions = component.versions
const insertIdx = componentVersions.findIndex(({ version: candidate }) => {
if (candidate === version) throw new Error(`Duplicate version detected for component ${name}: ${version}`)
return versionCompare(candidate, version) > 0
})
if (~insertIdx) {
componentVersions.splice(insertIdx, 0, componentVersion)
} else {
componentVersions.push(componentVersion)
if (componentVersions.find(({ version: candidate }) => candidate === version)) {
throw new Error(`Duplicate version detected for component ${name}: ${version}`)
}
const insertIdx = prerelease
? componentVersions.findIndex(({ version: candidateVersion, prerelease: candidatePrerelease }) =>
candidatePrerelease ? versionCompare(candidateVersion, version) > 0 : true
)
: componentVersions.findIndex(({ version: candidateVersion, prerelease: candidatePrerelease }) =>
candidatePrerelease ? false : versionCompare(candidateVersion, version) > 0
)
~insertIdx ? componentVersions.splice(insertIdx, 0, componentVersion) : componentVersions.push(componentVersion)
if ((component.latest = componentVersions.find((candidate) => !candidate.prerelease))) {

@@ -87,0 +89,0 @@ if (componentVersions[0] !== component.latest) component.latestPrerelease = componentVersions[0]

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

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

"dependencies": {
"@antora/logger": "3.0.0-alpha.8",
"@antora/logger": "3.0.0-alpha.9",
"mime-types": "~2.1",

@@ -38,3 +38,3 @@ "vinyl": "~2.2"

],
"gitHead": "2e5695bea11fb5719989c329c97e66d36e29659f"
"gitHead": "a504d6889819b548e8a5416a7194cbb6f9a93e93"
}
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