Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unload

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unload - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

24

dist/browserify.js

@@ -65,4 +65,2 @@ (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _detectNode = _interopRequireDefault(require("detect-node"));

@@ -86,3 +84,3 @@

startListening();
if (typeof fn !== 'function') throw new Error('The "listener" argument must be of type Function. Received type ' + (0, _typeof2["default"])(fn));
if (typeof fn !== 'function') throw new Error('Listener is no function');
LISTENERS.add(fn);

@@ -125,3 +123,3 @@ var addReturn = {

exports["default"] = _default;
},{"./browser.js":1,"./node.js":6,"@babel/runtime/helpers/interopRequireDefault":4,"@babel/runtime/helpers/typeof":5,"detect-node":7}],4:[function(require,module,exports){
},{"./browser.js":1,"./node.js":5,"@babel/runtime/helpers/interopRequireDefault":4,"detect-node":6}],4:[function(require,module,exports){
function _interopRequireDefault(obj) {

@@ -135,22 +133,4 @@ return obj && obj.__esModule ? obj : {

},{}],5:[function(require,module,exports){
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
function _typeof(obj) {
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
module.exports = _typeof = function _typeof(obj) {
return _typeof2(obj);
};
} else {
module.exports = _typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
};
}
return _typeof(obj);
}
module.exports = _typeof;
},{}],6:[function(require,module,exports){
},{}],7:[function(require,module,exports){
module.exports = false;

@@ -157,0 +137,0 @@

2

dist/es/index.js

@@ -16,3 +16,3 @@ import isNode from 'detect-node';

startListening();
if (typeof fn !== 'function') throw new Error('The "listener" argument must be of type Function. Received type ' + typeof fn);
if (typeof fn !== 'function') throw new Error('Listener is no function');
LISTENERS.add(fn);

@@ -19,0 +19,0 @@ var addReturn = {

@@ -14,4 +14,2 @@ "use strict";

var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _detectNode = _interopRequireDefault(require("detect-node"));

@@ -35,3 +33,3 @@

startListening();
if (typeof fn !== 'function') throw new Error('The "listener" argument must be of type Function. Received type ' + (0, _typeof2["default"])(fn));
if (typeof fn !== 'function') throw new Error('Listener is no function');
LISTENERS.add(fn);

@@ -38,0 +36,0 @@ var addReturn = {

{
"name": "unload",
"version": "2.1.1",
"version": "2.2.0",
"description": "Execute code when the js-process exits. On all javascript-environments",

@@ -43,29 +43,29 @@ "author": "pubkey",

"devDependencies": {
"@babel/cli": "7.5.5",
"@babel/core": "7.5.5",
"@babel/cli": "7.6.2",
"@babel/core": "7.6.2",
"@babel/plugin-check-constants": "7.0.0-beta.38",
"@babel/plugin-proposal-object-rest-spread": "7.5.5",
"@babel/plugin-proposal-object-rest-spread": "7.6.2",
"@babel/plugin-transform-member-expression-literals": "7.2.0",
"@babel/plugin-transform-property-literals": "7.2.0",
"@babel/plugin-transform-runtime": "7.5.5",
"@babel/polyfill": "7.4.4",
"@babel/preset-env": "7.5.5",
"@babel/types": "7.5.5",
"assert": "1.4.1",
"@babel/plugin-transform-runtime": "7.6.2",
"@babel/polyfill": "7.6.0",
"@babel/preset-env": "7.6.2",
"@babel/types": "7.6.1",
"assert": "2.0.0",
"async-test-util": "1.7.3",
"browserify": "16.3.0",
"browserify": "16.5.0",
"child-process-promise": "2.2.1",
"child_process": "1.0.2",
"concurrently": "4.1.1",
"concurrently": "4.1.2",
"cors": "2.8.5",
"cross-env": "5.2.0",
"eslint": "5.8.0",
"cross-env": "6.0.0",
"eslint": "6.4.0",
"express": "4.17.1",
"http-server": "0.11.1",
"karma": "3.1.1",
"karma-browserify": "5.3.0",
"karma-chrome-launcher": "2.2.0",
"karma": "4.3.0",
"karma-browserify": "6.1.0",
"karma-chrome-launcher": "3.1.0",
"karma-mocha": "1.3.0",
"mocha": "5.2.0",
"node": "11.0.0",
"mocha": "6.2.0",
"node": "12.11.0",
"node-cmd": "3.0.0",

@@ -76,7 +76,7 @@ "npm-run-all": "4.1.5",

"request-promise-native": "1.0.7",
"rimraf": "2.6.3",
"rimraf": "3.0.0",
"ts-node": "7.0.1",
"typescript": "3.5.3",
"typescript": "3.6.3",
"uglify-js": "3.6.0",
"util": "0.11.1",
"util": "0.12.1",
"watch": "1.0.2",

@@ -86,4 +86,4 @@ "watchify": "3.11.1"

"dependencies": {
"@babel/runtime": "7.5.5",
"detect-node": "2.0.4"
"@babel/runtime": "^7.6.2",
"detect-node": "^2.0.4"
},

@@ -90,0 +90,0 @@ "// browser": "this field contains files that will be empty objects in webpack-builds",

@@ -18,3 +18,3 @@ import isNode from 'detect-node';

if (typeof fn !== 'function')
throw new Error('The "listener" argument must be of type Function. Received type ' + typeof fn);
throw new Error('Listener is no function');
LISTENERS.add(fn);

@@ -21,0 +21,0 @@

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