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
2
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 1.1.1 to 2.0.0-beta.1

4

lib/produce-redirects.js

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

const File = require('vinyl')
const url = require('url')
const { URL } = require('url')

@@ -54,3 +54,3 @@ /**

let urlContext
return sourceUrl && (urlContext = url.parse(sourceUrl).pathname) !== '/' ? urlContext : undefined
return sourceUrl && (urlContext = new URL(sourceUrl).pathname) !== '/' ? urlContext : undefined
}

@@ -57,0 +57,0 @@

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

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

"dependencies": {
"@antora/asciidoc-loader": "1.1.1",
"@antora/asciidoc-loader": "2.0.0-beta.1",
"vinyl": "^2.2.0"

@@ -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