New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

patchnav-basic

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

patchnav-basic - npm Package Compare versions

Comparing version
2.0.1
to
2.0.2
+7
-3
index.js

@@ -61,7 +61,10 @@ var h = require('hyperscript')

window.onclick = function (ev) {
var href, target = ev.target
while (target && !(href = target.getAttribute('href')))
target = target.parentNode
ev.preventDefault()
//TODO: make path more generic
var link = ev.target.getAttribute('href') //get the exact href provided
if(link) {
nav.push(link)
if(href) {
nav.push(href)
}

@@ -85,1 +88,2 @@ }

{
"name": "patchnav-basic",
"description": "",
"version": "2.0.1",
"version": "2.0.2",
"homepage": "https://github.com/dominictarr/patchnav-basic",

@@ -6,0 +6,0 @@ "repository": {