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.16 to 0.0.17

7

default.js

@@ -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",

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