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 3.1.1 to 3.2.0-alpha.1

7

lib/produce-redirects.js

@@ -37,4 +37,3 @@ 'use strict'

if (!aliases.length) return []
let siteUrl = playbook.site.url
if (siteUrl) siteUrl = stripTrailingSlash(siteUrl, '')
const siteUrl = playbook.site.url
const directoryRedirects = (playbook.urls.htmlExtensionStyle || 'default') !== 'default'

@@ -167,4 +166,4 @@ switch (playbook.urls.redirectFacility) {

function stripTrailingSlash (str, root = '/') {
if (str === '/') return root
function stripTrailingSlash (str) {
if (str === '/') return str
const lastIdx = str.length - 1

@@ -171,0 +170,0 @@ return str.charAt(lastIdx) === '/' ? str.substr(0, lastIdx) : str

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

@@ -5,0 +5,0 @@ "license": "MPL-2.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