Socket
Socket
Sign inDemoInstall

@antora/asciidoc-loader

Package Overview
Dependencies
56
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.0-alpha.1 to 3.2.0-alpha.2

10

lib/util/compute-relative-url-path.js

@@ -21,9 +21,5 @@ 'use strict'

function computeRelativeUrlPath (from, to, hash = '') {
if (to.charAt() === '/') {
return to === from
? hash || (isDir(to) ? './' : path.basename(to))
: (path.relative(path.dirname(from + '.'), to) || '.') + (isDir(to) ? '/' + hash : hash)
} else {
return to + hash
}
if (to.charAt() !== '/') return to + hash
if (to === from) return hash || (isDir(to) ? './' : path.basename(to))
return (path.relative(path.dirname(from + '.'), to) || '.') + (isDir(to) ? '/' + hash : hash)
}

@@ -30,0 +26,0 @@

{
"name": "@antora/asciidoc-loader",
"version": "3.2.0-alpha.1",
"version": "3.2.0-alpha.2",
"description": "Loads AsciiDoc content into an Asciidoctor Document object (AST) for use in an Antora documentation pipeline.",

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

"dependencies": {
"@antora/logger": "3.2.0-alpha.1",
"@antora/logger": "3.2.0-alpha.2",
"@antora/user-require-helper": "~2.0",

@@ -30,0 +30,0 @@ "@asciidoctor/core": "~2.2"

@@ -21,2 +21,2 @@ # Antora AsciiDoc Loader

Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0).
Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc