New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prevent-unload

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prevent-unload - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

19

package.json
{
"name": "prevent-unload",
"version": "1.1.11",
"version": "1.1.12",
"description": "Prevent page unloading from the user's action",

@@ -33,12 +33,11 @@ "author": "Plusb Preco <plusb21@gmail.com>",

"ava": "^0.16.0",
"babel-cli": "^6.16.0",
"babel-eslint": "^7.0.0",
"babel-cli": "^6.18.0",
"babel-eslint": "^7.1.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.16.0",
"babel-register": "^6.16.3",
"eslint": "^3.6.1",
"eslint-config-prev": "1.6.0",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^2.0.0",
"jsdom": "^9.5.0",
"babel-preset-latest": "^6.16.0",
"babel-register": "^6.18.0",
"eslint": "^3.9.1",
"eslint-config-prev": "2.1.0",
"eslint-plugin-import": "^2.0.1",
"jsdom": "^9.8.3",
"rimraf": "^2.5.4",

@@ -45,0 +44,0 @@ "sinon": "^1.17.6"

@@ -10,3 +10,3 @@ # prevent-unload

## Installation
## Install

@@ -32,11 +32,7 @@ ```bash

* `message` String (optional) - Message to display on confirm popup. Default is
platform specified.
* `message` String (optional) - Message to display on confirm popup. Default is platform specified.
Apply page unloading prevention. If user attempt to close current web page after
calling the method, then browser blocks page unloading and shows up popup with
specified message.
Apply page unloading prevention. If user attempt to close current web page after calling the method, then browser blocks page unloading and shows up popup with specified message.
This method returns reference of `handler`, which can be used for cancel the
behavior.
This method returns reference of `handler`, which can be used for cancel the behavior.

@@ -43,0 +39,0 @@ ### `preventUnload.cancel(handler)`

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