Comparing version 2.0.0 to 2.0.1
@@ -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 }; |
@@ -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 | ||
}; |
{ | ||
"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 | ||
}; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
1
72262
18
1430