New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@antora/redirect-producer

Package Overview
Dependencies
Maintainers
0
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/redirect-producer - npm Package Compare versions

Comparing version 3.1.7 to 3.1.8

13

lib/produce-redirects.js

@@ -36,3 +36,7 @@ 'use strict'

if ('findBy' in aliases) aliases = aliases.findBy({ family: 'alias' }) // @deprecated remove in Antora 4
if (!aliases.length) return []
aliases = aliases.filter((it) => {
if (it.pub.url !== it.rel.pub.url) return true
delete it.out
})
if (!aliases.length) return aliases
let siteUrl = playbook.site.url

@@ -51,6 +55,3 @@ if (siteUrl) siteUrl = stripTrailingSlash(siteUrl, '')

case 'static':
return populateStaticRedirectFiles(
aliases.filter((it) => it.out),
siteUrl
)
return populateStaticRedirectFiles(aliases, siteUrl)
default:

@@ -132,3 +133,3 @@ return unpublish(aliases)

function populateStaticRedirectFiles (files, siteUrl) {
files.forEach((file) => (file.contents = Buffer.from(createStaticRedirectContents(file, siteUrl) + '\n')))
files.forEach((file) => file.out && (file.contents = Buffer.from(createStaticRedirectContents(file, siteUrl) + '\n')))
return []

@@ -135,0 +136,0 @@ }

{
"name": "@antora/redirect-producer",
"version": "3.1.7",
"version": "3.1.8",
"description": "Produces redirects (HTTP redirections) for pages in an Antora site.",

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

"dependencies": {
"vinyl": "~2.2"
"vinyl": "~3.0"
},

@@ -25,0 +25,0 @@ "engines": {

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