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

can-route-pushstate

Package Overview
Dependencies
Maintainers
10
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 3.2.3 to 3.2.4

dist/amd/can-route-pushstate.js

25

can-route-pushstate_test.js

@@ -556,2 +556,27 @@ /* jshint asi:true,scripturl:true */

test("loading page with a hash in the url works (can-route-pushstate#95)", function () {
stop();
window.routeTestReady = function (iCanRoute, loc, hist, win) {
iCanRoute(win.location.pathname, {
page: "index"
});
iCanRoute("{type}/{id}");
iCanRoute.ready();
equal(win.location.hash, "#myHash", "hash in the url is preserved on page init");
setTimeout(function(){
equal(win.location.hash, "#myHash", "hash in the url is still present after page fully loads(100ms delay)");
start();
},100);
};
var iframe = document.createElement('iframe');
iframe.src = __dirname + "/test/testing.html#myHash";
document.getElementById('qunit-fixture').appendChild(iframe);
});
test("preventDefault not called when only the hash changes (can-route-pushstate#75)", function () {

@@ -558,0 +583,0 @@

2

can-route-pushstate.js

@@ -238,3 +238,3 @@ // # can/route/pushstate/pushstate.js

// Used to tell setURL to include the hash because we clicked on a link.
includeHash = false,
includeHash = true,
// Attributes that will cause replaceState to be called

@@ -241,0 +241,0 @@ replaceStateAttrs = [];

{
"name": "can-route-pushstate",
"version": "3.2.3",
"version": "3.2.4",
"description": "Pushstate for can-route",

@@ -18,10 +18,8 @@ "homepage": "https://canjs.com",

"version": "git commit -am \"Update dist for release\" && git checkout -b release && git add -f dist/",
"postversion": "git push --tags && git checkout master && git branch -D release && git push",
"postpublish": "git push --tags && git checkout - && git branch -D release && git push",
"testee": "testee test/test.html --browsers firefox",
"test": "npm run detect-cycle && npm run jshint && npm run testee",
"jshint": "jshint ./*.js --config",
"release:pre": "npm version prerelease && npm publish --tag=pre",
"release:patch": "npm version patch && npm publish",
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish",
"release:patch": "npm version patch && npm publish --tag 3.x-legacy",
"release:minor": "npm version minor && npm publish --tag 3.x-legacy",
"build": "node build.js",

@@ -28,0 +26,0 @@ "detect-cycle": "detect-cyclic-packages --ignore done-serve"

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