Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hlx-url-rewriter

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hlx-url-rewriter - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

8

default.js

@@ -64,4 +64,4 @@ const path = require('path');

function createRelativeFunc(playlistUrl) {
return pathname => path.relative(path.dirname(playlistUrl.pathname), pathname);
function createRelativeFunc(fromPath) {
return pathname => path.relative(path.dirname(fromPath), pathname);
}

@@ -81,7 +81,7 @@

}
const relativeToPlaylist = createRelativeFunc(playlistUrl);
const relativeToPlaylist = createRelativeFunc(path.join('/', playlistUrl.hostname, playlistUrl.pathname));
let result;
if (url.protocol === playlistUrl.protocol && url.hostname === playlistUrl.hostname) {
print('\tpattern-A');
result = relativeToPlaylist(url.pathname);
result = relativeToPlaylist(path.join('/', url.hostname, url.pathname));
} else {

@@ -88,0 +88,0 @@ print('\tpattern-B');

{
"name": "hlx-url-rewriter",
"version": "0.0.18",
"version": "0.0.19",
"description": "A transform stream to modify URLs contained in HLS playlists",

@@ -5,0 +5,0 @@ "main": "index.js",

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