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

can-route-pushstate

Package Overview
Dependencies
Maintainers
12
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-route-pushstate - npm Package Compare versions

Comparing version 5.0.4 to 5.0.5

32

can-route-pushstate-iframe-test.js

@@ -550,23 +550,17 @@ /*jshint scripturl:true*/

makeTestingIframe(function (info, done) {
var timer;
info.route.serializedCompute.bind("change", function () {
clearTimeout(timer);
timer = setTimeout(function () {
// deepEqual doesn't like to compare objects from different contexts
// so we copy it
var obj = extend({}, info.route.attr());
// deepEqual doesn't like to compare objects from different contexts
// so we copy it
var obj = extend({}, info.route.attr());
deepEqual(obj, {
section: "something",
sub: "test",
}, "route's data is correct");
deepEqual(obj, {
section: "something",
sub: "test",
}, "route's data is correct");
equal(info.route.matched(), "{section}/{sub}/",
"route's matched property is correct");
equal(info.route.matched(), "{section}/{sub}/",
"route's matched property is correct");
done();
start();
}, 10);
done();
start();
});

@@ -576,4 +570,6 @@

var link = createLink(info.window, "/app/something/test/");
domEvents.dispatch(link, "click");
domEvents.dispatch(link, "click");
});

@@ -580,0 +576,0 @@ };

{
"name": "can-route-pushstate",
"version": "5.0.4",
"version": "5.0.5",
"description": "Pushstate for can-route",

@@ -41,3 +41,3 @@ "homepage": "https://canjs.com/doc/can-route-pushstate.html",

"can-reflect": "^1.8.0",
"can-route": "^4.2.0-pre.1",
"can-route": "^4.3.12",
"can-simple-observable": "^2.0.0",

@@ -48,3 +48,3 @@ "can-diff": "<2.0.0"

"can-assign": "<2.0.0",
"can-define": "^2.0.0",
"can-define": "^2.6.0",
"can-map": "^4.0.0",

@@ -51,0 +51,0 @@ "detect-cyclic-packages": "^1.1.0",

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