Socket
Socket
Sign inDemoInstall

normalize-walker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-walker - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

9

lib/file.js

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

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