hlx-url-rewriter
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -115,7 +115,7 @@ const path = require('path'); | ||
} | ||
data.uri = `/${obj.hostname}${obj.pathname}${obj.search}${obj.hash}`; | ||
data.uri = `${path.join(`/${obj.hostname}`, obj.pathname)}${obj.search}${obj.hash}`; | ||
} else if (type === 'path-absolute' && baseUrl) { | ||
data.uri = `/${baseUrl.hostname}${uri}`; | ||
data.uri = path.join(`/${baseUrl.hostname}`, uri); | ||
} else if (type === 'path-relative' && baseUrl) { | ||
data.uri = path.resolve(`/${baseUrl.hostname}/${path.dirname(baseUrl.pathname)}/`, uri); | ||
data.uri = path.join(`/${baseUrl.hostname}`, path.dirname(baseUrl.pathname), uri); | ||
} | ||
@@ -122,0 +122,0 @@ print(`\t>>> "${data.uri}"`); |
{ | ||
"name": "hlx-url-rewriter", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"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
7284