can-route-pushstate
Advanced tools
Comparing version 3.2.3 to 3.2.4
@@ -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 @@ |
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
275345
18
6917
2