Socket
Socket
Sign inDemoInstall

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.0.0 to 2.0.1

7

dist/browserify.js

@@ -116,2 +116,9 @@ (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){

}
exports['default'] = {
add: add,
runAll: runAll,
removeAll: removeAll,
getSize: getSize
};
},{"./browser.js":1,"./node.js":7,"babel-runtime/helpers/typeof":6,"detect-node":72}],4:[function(require,module,exports){

@@ -118,0 +125,0 @@ module.exports = { "default": require("core-js/library/fn/symbol"), __esModule: true };

9

dist/es/index.js

@@ -47,2 +47,9 @@ import isNode from 'detect-node';

return LISTENERS.size;
}
}
export default {
add: add,
runAll: runAll,
removeAll: removeAll,
getSize: getSize
};

@@ -72,2 +72,9 @@ 'use strict';

return LISTENERS.size;
}
}
exports['default'] = {
add: add,
runAll: runAll,
removeAll: removeAll,
getSize: getSize
};

2

package.json
{
"name": "unload",
"version": "2.0.0",
"version": "2.0.1",
"description": "Execute code when the js-process exits. On all javascript-environments",

@@ -5,0 +5,0 @@ "scripts": {

@@ -6,11 +6,15 @@ declare type addReturn = {

declare interface Unload {
add(fn: () => void): addReturn;
runAll(): Promise<any>;
removeAll(): void;
getSize(): number;
};
declare const unload: Unload;
export function add(fn: () => void): addReturn;
export function runAll(): Promise<any>;
export function removeAll(): void;
export function getSize(): number;
export = unload;
declare const _default: {
add,
runAll,
removeAll,
getSize
}
export default _default;

@@ -46,2 +46,9 @@ import isNode from 'detect-node';

return LISTENERS.size;
}
}
export default {
add,
runAll,
removeAll,
getSize
};
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