prevent-unload
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4646