hlx-url-rewriter
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -72,3 +72,3 @@ const path = require('path'); | ||
const url = createUrl(uri, base); | ||
if (!url) { | ||
if (!url || !playlistUrl) { | ||
print(`\t>>> "${uri}"`); | ||
@@ -78,6 +78,3 @@ return uri; | ||
let result; | ||
if (!playlistUrl) { | ||
print('\tpattern-A'); | ||
result = path.relative(url.protocol === 'file:' ? rootPath : '/', url.pathname); | ||
} else if (url.protocol === playlistUrl.protocol && url.hostname === playlistUrl.hostname) { | ||
if (url.protocol === playlistUrl.protocol && url.hostname === playlistUrl.hostname) { | ||
print('\tpattern-B'); | ||
@@ -84,0 +81,0 @@ result = path.relative(path.dirname(playlistUrl.pathname), url.pathname); |
{ | ||
"name": "hlx-url-rewriter", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "A transform stream to modify URLs contained in HLS playlists", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9026
114