Comparing version 0.0.5 to 0.0.6
{ | ||
"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", |
10
utils.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 | ||
}; |
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
6456
154