@antora/redirect-producer
Advanced tools
Comparing version 2.3.0-beta.1 to 2.3.0-beta.2
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7853
130
+ Added@antora/asciidoc-loader@2.3.0-beta.2(transitive)
- Removed@antora/asciidoc-loader@2.3.0-beta.1(transitive)