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.9 to 1.1.10

2

lib/index.js

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

function makeHandler() {
var message = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];
var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

@@ -26,0 +26,0 @@ return function (event) {

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

@@ -10,5 +10,5 @@ "author": "Plusb Preco <plusb21@gmail.com>",

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

@@ -23,3 +23,3 @@ },

"files": [
"lib/"
"lib"
],

@@ -35,11 +35,11 @@ "keywords": [

"ava": "^0.16.0",
"babel-cli": "^6.14.0",
"babel-eslint": "^6.1.2",
"babel-cli": "^6.16.0",
"babel-eslint": "^7.0.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.14.0",
"babel-register": "^6.14.0",
"babel-preset-es2015": "^6.16.0",
"babel-register": "^6.16.3",
"eslint": "^3.6.1",
"eslint-config-prev": "1.4.0",
"eslint-config-prev": "1.6.0",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-import": "^2.0.0",
"jsdom": "^9.5.0",

@@ -46,0 +46,0 @@ "rimraf": "^2.5.4",

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