Update standard to version 10.0.0 🚀 (#468)
* chore(package): update standard to version 10.0.0 https://greenkeeper.io/ * appease the standard gods
This commit is contained in:
committed by
Yoshua Wuyts
parent
281b351d42
commit
1cec8bbf22
+3
-2
@@ -8,11 +8,12 @@ module.exports = history
|
|||||||
function history (cb) {
|
function history (cb) {
|
||||||
assert.equal(typeof cb, 'function', 'sheet-router/history: cb must be a function')
|
assert.equal(typeof cb, 'function', 'sheet-router/history: cb must be a function')
|
||||||
window.onpopstate = function () {
|
window.onpopstate = function () {
|
||||||
cb({
|
var obj = {
|
||||||
pathname: document.location.pathname,
|
pathname: document.location.pathname,
|
||||||
search: document.location.search,
|
search: document.location.search,
|
||||||
href: document.location.href,
|
href: document.location.href,
|
||||||
hash: document.location.hash
|
hash: document.location.hash
|
||||||
})
|
}
|
||||||
|
cb(obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@
|
|||||||
"node-zopfli": "^2.0.2",
|
"node-zopfli": "^2.0.2",
|
||||||
"pretty-bytes-cli": "^2.0.0",
|
"pretty-bytes-cli": "^2.0.0",
|
||||||
"spok": "^0.8.1",
|
"spok": "^0.8.1",
|
||||||
"standard": "^9.0.1",
|
"standard": "^10.0.0",
|
||||||
"tape": "^4.6.3",
|
"tape": "^4.6.3",
|
||||||
"uglifyify": "^3.0.4",
|
"uglifyify": "^3.0.4",
|
||||||
"uglifyjs": "^2.4.10",
|
"uglifyjs": "^2.4.10",
|
||||||
|
|||||||
Reference in New Issue
Block a user