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.24 to 0.0.25

12

default.js

@@ -89,2 +89,7 @@ const path = require('path');

function createAbsolutePath(url) {
const {rootPath = '/'} = defaultFunc.options;
return createPath(url, rootPath);
}
function rewrite(uri, base) {

@@ -102,3 +107,8 @@ const {rootPath = '/'} = defaultFunc.options;

}
const result = createRelativePath(playlistUrl, url);
let result;
if (url.protocol === playlistUrl.protocol && url.hostname === playlistUrl.hostname) {
result = createRelativePath(playlistUrl, url);
} else {
result = createAbsolutePath(url);
}
print(`\t>>> "${result}"`);

@@ -105,0 +115,0 @@ return `${result}${url.search}${url.hash}`;

2

package.json
{
"name": "hlx-url-rewriter",
"version": "0.0.24",
"version": "0.0.25",
"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