better-state
Advanced tools
Comparing version 1.0.63 to 1.1.0
{ | ||
"name": "better-state", | ||
"version": "1.0.63", | ||
"version": "1.1.0", | ||
"description": "A small wrapper that encapsulates history.pushState and window.onpopstate and offers extra features - including 'No Going Back'", | ||
"main": "app.js", | ||
"main": "better-state.min.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
@@ -83,3 +83,3 @@ # Better-State | ||
`betterState.on("better-state-change", (e) => { console.log(e); });` | ||
`betterState.on = (e) => { console.log(e); };` | ||
@@ -101,2 +101,12 @@ returns: | ||
To unsubscribe | ||
`betterState.offPopState();` | ||
--- | ||
To override `preventBack` and `preventForward`: | ||
@@ -103,0 +113,0 @@ |
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
19798
5
277
144
2
1