normalize-walker
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -39,6 +39,7 @@ | ||
// to do: set most of this shit automatically when changing .basename and stuff | ||
// remove query strings and #s | ||
this.uri = uri | ||
this.dirname = path.dirname(uri) | ||
this.type = | ||
this.basename = path.basename(uri) | ||
this.basename = path.basename(removeAffixes(uri)) | ||
this.logs = [] | ||
@@ -163,3 +164,3 @@ } | ||
setSource: function* (source) { | ||
source = source || this.uri | ||
source = removeAffixes(source || this.uri) | ||
if (this.source) return debug('source already set: %s, %s', this.source, source) | ||
@@ -232,1 +233,5 @@ | ||
} | ||
function removeAffixes(string) { | ||
return string.replace(/[#?].*$/, '') | ||
} |
{ | ||
"name": "normalize-walker", | ||
"description": "Walk down dependencies of JS, CSS, HTML, etc. and create a tree. ", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Jonathan Ong", |
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
26895
804