Huge News!Announcing our $40M Series B led by Abstract Ventures.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.12 to 1.1.13

2

lib/index.js

@@ -26,3 +26,3 @@ 'use strict';

return function (event) {
// cross-browser solution
// Cross-browser solution
// https://developer.mozilla.org/en-US/docs/Web/Events/beforeunload

@@ -29,0 +29,0 @@ event.returnValue = message; // eslint-disable-line no-param-reassign

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

@@ -9,6 +9,6 @@ "author": "Plusb Preco <plusb21@gmail.com>",

"prepublish": "npm run build",
"prebuild": "npm run clean",
"test": "npm run lint && ava",
"lint": "eslint .",
"build": "npm run clean && npm run babel",
"babel": "babel --out-dir lib src",
"build": "babel --out-dir lib src",
"clean": "rimraf lib"

@@ -33,10 +33,11 @@ },

"devDependencies": {
"ava": "^0.16.0",
"ava": "^0.17.0",
"babel-cli": "^6.18.0",
"babel-eslint": "^7.1.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-latest": "^6.16.0",
"babel-preset-env": "^0.0.9",
"babel-register": "^6.18.0",
"eslint": "^3.9.1",
"eslint-config-prev": "2.1.0",
"eslint-config-prev": "^3.1.0",
"eslint-plugin-babel": "^4.0.0",
"eslint-plugin-import": "^2.0.1",

@@ -43,0 +44,0 @@ "jsdom": "^9.8.3",

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