Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coordinate

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coordinate - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

6

lib/historyPathStrategy.js

@@ -10,8 +10,3 @@ var util = require('util'),

currentPath,
isManualChange = false,
changeHandler = function() {
if (isManualChange) {
isManualChange = false;
return;
}
var newPath = self.getCurrentPath();

@@ -38,3 +33,2 @@ self.emit('change', newPath, currentPath);

if (newPath !== win.location.pathname) {
isManualChange = true;
win.history.pushState(null, null, newPath);

@@ -41,0 +35,0 @@ }

2

package.json

@@ -7,3 +7,3 @@ {

],
"version": "0.0.2",
"version": "0.0.3",
"dependencies": {

@@ -10,0 +10,0 @@ "call": "2.x.x"

@@ -22,3 +22,3 @@ var assert = require('assert'),

assert.throws(function() {
pathStrategy = PathStrategyFactory.getPathStrategy('fnord', { _window: mockWindow });
var pathStrategy = PathStrategyFactory.getPathStrategy('fnord', { _window: mockWindow });
});

@@ -29,3 +29,3 @@ done();

it('should return an instance of HashPathStrategy', function(done) {
pathStrategy = PathStrategyFactory.getPathStrategy('hash', { _window: mockWindow });
var pathStrategy = PathStrategyFactory.getPathStrategy('hash', { _window: mockWindow });
assert(pathStrategy instanceof HashPathStrategy);

@@ -36,3 +36,3 @@ done();

it('should return an instance of HistoryPathStrategy', function(done) {
pathStrategy = PathStrategyFactory.getPathStrategy('history', { _window: mockWindow });
var pathStrategy = PathStrategyFactory.getPathStrategy('history', { _window: mockWindow });
assert(pathStrategy instanceof HistoryPathStrategy);

@@ -39,0 +39,0 @@ done();

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