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

@antora/redirect-producer

Package Overview
Dependencies
Maintainers
2
Versions
78
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 2.3.0-beta.1 to 2.3.0-beta.2

7

lib/produce-redirects.js

@@ -88,3 +88,3 @@ 'use strict'

if (includeDirectoryRedirects && fromUrl.endsWith('/index.html')) {
accum.push(`${fromUrl.slice(0, -10)} ${toUrl} 301!`)
accum.push(`${fromUrl.substr(0, fromUrl.length - 10)} ${toUrl} 301!`)
}

@@ -109,6 +109,3 @@ return accum

function populateStaticRedirectFiles (files, siteUrl) {
files.forEach((file) => {
file.contents = Buffer.from(createStaticRedirectContents(file, siteUrl) + '\n')
file.mediaType = 'text/html'
})
files.forEach((file) => (file.contents = Buffer.from(createStaticRedirectContents(file, siteUrl) + '\n')))
return []

@@ -115,0 +112,0 @@ }

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

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

"dependencies": {
"@antora/asciidoc-loader": "2.3.0-beta.1",
"@antora/asciidoc-loader": "2.3.0-beta.2",
"vinyl": "~2.2"

@@ -21,0 +21,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