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

can-route

Package Overview
Dependencies
Maintainers
8
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-route - npm Package Compare versions

Comparing version 4.0.0-pre.3 to 4.0.0-pre.4

20

can-route.js

@@ -45,4 +45,2 @@ /*jshint -W079 */

var timer;
// Are data changes pending that haven't yet updated the hash
var changingData;
// A dummy events object used to dispatch url change events on.

@@ -60,4 +58,2 @@ var matchedObservable = new Observation(function canRoute_matchedRoute(){

function updateUrl(serializedData) {
// indicate that data is changing
changingData = 1;
// collect attributes that are changing

@@ -68,3 +64,2 @@ clearTimeout(timer);

// indicate that the hash is set to look like the data
changingData = 0;
var serialized =canRoute.data.serialize(),

@@ -97,10 +92,10 @@ route = routeParam.getMatchedRoute(serialized),

// the hash is what we set it to anyway, do NOT change the hash
if ( !changingData ) {
queues.batch.start();
var state = canRoute.deparam(hash);
delete state.route;
canReflect.update(canRoute.data,state);
queues.batch.stop();
}
queues.batch.start();
var state = canRoute.deparam(hash);
delete state.route;
canReflect.update(canRoute.data,state);
queues.batch.stop();
}

@@ -249,3 +244,2 @@ //!steal-remove-start

clearTimeout(timer);
changingData = 0;
},

@@ -252,0 +246,0 @@ /**

{
"name": "can-route",
"version": "4.0.0-pre.3",
"version": "4.0.0-pre.4",
"description": "Observable front-end application routing for CanJS.",

@@ -5,0 +5,0 @@ "homepage": "https://canjs.com/doc/can-route.html",

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