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

@antora/content-aggregator

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-aggregator - npm Package Compare versions

Comparing version 2.0.0-rc.1 to 2.0.0-rc.2

19

lib/aggregate-content.js

@@ -199,5 +199,4 @@ 'use strict'

fetchOpts.emitter && fetchOpts.emitter.emit('complete')
// NOTE we're not interested in local branches
// it also causes isomorphic-git to hang when calling readObject after fetch
return fs.emptyDir(ospath.join(repo.gitdir, 'refs', 'heads'))
// NOTE we're not interested in local branches, so we can just delete them
//return fs.emptyDir(ospath.join(repo.gitdir, 'refs', 'heads'))
})

@@ -231,10 +230,6 @@ } else {

async function collectComponentVersions (source, repo, remoteName, requiresAuth, refPatterns) {
const refs = await selectReferences(repo, remoteName, refPatterns)
const result = []
// a for loop is used here because Promise.all was causing resource starvation on large repositories
for (let i = 0, len = refs.length; i < len; i++) {
result[i] = await populateComponentVersion(source, repo, remoteName, requiresAuth, refs[i])
}
return result
function collectComponentVersions (source, repo, remoteName, requiresAuth, refPatterns) {
return selectReferences(repo, remoteName, refPatterns).then((refs) =>
Promise.all(refs.map((ref) => populateComponentVersion(source, repo, remoteName, requiresAuth, ref)))
)
}

@@ -297,3 +292,3 @@

for (let name of remoteBranches) {
// FIXME UPSTREAM isomorphic-git should filter out HEAD from the list of remote branches
// NOTE isomorphic-git includes HEAD in list of remote branches (see https://isomorphic-git.org/docs/listBranches)
if (name !== 'HEAD' && matcher([name], branchPatterns).length) {

@@ -300,0 +295,0 @@ refs.set(name, { name, qname: path.join('remotes', remote, name), type: 'branch', remote })

{
"name": "@antora/content-aggregator",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "Fetches and aggregates content from distributed sources for use in an Antora documentation pipeline.",

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

"fs-extra": "^7.0.0",
"isomorphic-git": "0.46.0",
"isomorphic-git": "0.47.0",
"js-yaml": "^3.12.0",

@@ -26,0 +26,0 @@ "lodash": "^4.17.11",

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