Huge News!Announcing our $40M Series B led by Abstract Ventures.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.9 to 3.1.10

6

lib/produce-redirects.js

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

return urlPath === '/' ? '' : urlPath
} else {
return ''
}
return ''
}

@@ -124,5 +123,4 @@

return `location ^~ ${fromUrl}/ { rewrite ^${regexpEscape(fromUrl)}/(.*)$ ${toUrlWithTrailingSlash}$1 redirect; }`
} else {
return `location = ${fromUrl} { return 301 ${toUrl}; }`
}
return `location = ${fromUrl} { return 301 ${toUrl}; }`
})

@@ -129,0 +127,0 @@ return [new File({ contents: Buffer.from(rules.join('\n') + '\n'), out: { path: '.etc/nginx/rewrite.conf' } })]

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

@@ -12,3 +12,6 @@ "license": "MPL-2.0",

"homepage": "https://antora.org",
"repository": "gitlab:antora/antora",
"repository": {
"type": "git",
"url": "git+https://gitlab.com/antora/antora.git"
},
"bugs": {

@@ -15,0 +18,0 @@ "url": "https://gitlab.com/antora/antora/issues"

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