Socket
Socket
Sign inDemoInstall

navigation-knockout

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

14

lib/LinkUtility.js

@@ -0,1 +1,3 @@

/// <reference path="navigation.d.ts" />
/// <reference path="knockout.d.ts" />
var Navigation = require('navigation');

@@ -24,6 +26,9 @@ var ko = require('knockout');

return false;
if (val != null && val.toString()) {
if (val != null) {
var trackTypes = Navigation.StateContext.state.trackTypes;
var currentVal = Navigation.StateContext.data[key];
return currentVal != null && (trackTypes ? val === currentVal : val.toString() == currentVal.toString());
if (currentVal != null)
return trackTypes ? val === currentVal : val.toString() == currentVal.toString();
else
return val === '';
}

@@ -52,3 +57,6 @@ return true;

e['returnValue'] = false;
Navigation.StateController.navigateLink(link);
var historyAction = ko.unwrap(allBindings.get('historyAction'));
if (typeof historyAction === 'string')
historyAction = Navigation.HistoryAction[historyAction];
Navigation.StateController.navigateLink(link, false, historyAction);
}

@@ -55,0 +63,0 @@ }

{
"name": "navigation-knockout",
"version": "1.1.0",
"version": "1.2.0",
"description": "A plugin for the Navigation routing library that lets you build Hyperlinks using Knockout's binding syntax",

@@ -5,0 +5,0 @@ "main": "navigation-knockout.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc