@antora/content-classifier
Advanced tools
Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.9
@@ -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" | ||
} |
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
56590
915
+ Added@antora/logger@3.0.0-alpha.9(transitive)
+ Addedcolorette@1.4.0(transitive)
+ Addedpino@6.13.4(transitive)
+ Addedpino-pretty@6.0.0(transitive)
+ Addedprocess-warning@1.0.0(transitive)
+ Addedsonic-boom@2.1.0(transitive)
- Removed@antora/logger@3.0.0-alpha.8(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedpino@6.11.3(transitive)
- Removedpino-pretty@5.1.3(transitive)
- Removedsupports-color@7.2.0(transitive)
Updated@antora/logger@3.0.0-alpha.9