Socket
Socket
Sign inDemoInstall

better-state

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.63 to 1.1.0

better-state.js

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc