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

hlx-util

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hlx-util - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "hlx-util",
"version": "0.0.5",
"version": "0.0.6",
"description": "A library to preserve functions commonly used in hlxjs project",

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

@@ -110,2 +110,7 @@ const {URL} = require('url');

function removeQueryString(absolutePath) {
const obj = buildUrlObj(`file://${absolutePath}`);
return obj.pathname;
}
function buildLocalPath(uri, parentUri, inputDir, outputDir) {

@@ -118,3 +123,3 @@ print(`buildLocalPath: uri=${uri}, parentUri=${parentUri}, inputDir=${inputDir}, outputDir=${outputDir}`);

print(`\tFrom absolute path to localPath: ${localPath}`);
return localPath;
return removeQueryString(localPath);
}

@@ -136,3 +141,3 @@ obj = buildUrlObj(uri);

print(`\tFrom relative path to localPath: ${localPath}`);
return localPath;
return removeQueryString(localPath);
}

@@ -150,3 +155,4 @@

buildUrlObj,
removeQueryString,
buildLocalPath
};
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