broadcast-channel
Advanced tools
Comparing version 1.2.10 to 1.2.11
import { sleep, randomToken } from '../util.js'; | ||
import * as unload from 'unload'; | ||
import unload from 'unload'; | ||
@@ -5,0 +5,0 @@ var LeaderElection = function LeaderElection(channel, options) { |
@@ -12,5 +12,5 @@ 'use strict'; | ||
var unload = _interopRequireWildcard(_unload); | ||
var _unload2 = _interopRequireDefault(_unload); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
@@ -181,3 +181,3 @@ var LeaderElection = function LeaderElection(channel, options) { | ||
this.isLeader = true; | ||
var unloadFn = unload.add(function () { | ||
var unloadFn = _unload2['default'].add(function () { | ||
return _this4.die(); | ||
@@ -184,0 +184,0 @@ }); |
{ | ||
"name": "broadcast-channel", | ||
"version": "1.2.10", | ||
"version": "1.2.11", | ||
"description": "A BroadcastChannel implementation that works with new browsers, older browsers and Node.js", | ||
@@ -66,7 +66,7 @@ "homepage": "https://github.com/pubkey/broadcast-channel#readme", | ||
"nano-time": "1.0.0", | ||
"unload": "2.0.0" | ||
"unload": "2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/types": "7.0.0-beta.51", | ||
"@types/core-js": "2.5.0", | ||
"@babel/types": "7.0.0-beta.51", | ||
"assert": "1.4.1", | ||
@@ -76,3 +76,3 @@ "async-test-util": "1.6.1", | ||
"babel-core": "6.26.3", | ||
"babel-eslint": "8.2.5", | ||
"babel-eslint": "8.2.6", | ||
"babel-loader": "7.1.5", | ||
@@ -98,10 +98,10 @@ "babel-plugin-transform-async-to-generator": "6.24.1", | ||
"clone": "2.1.1", | ||
"concurrently": "3.6.0", | ||
"concurrently": "3.6.1", | ||
"convert-hrtime": "2.0.0", | ||
"copyfiles": "2.0.0", | ||
"cross-env": "5.2.0", | ||
"eslint": "5.1.0", | ||
"eslint": "5.2.0", | ||
"gzip-size-cli": "3.0.0", | ||
"http-server": "0.11.1", | ||
"karma": "2.0.4", | ||
"karma": "2.0.5", | ||
"karma-babel-preprocessor": "7.0.0", | ||
@@ -126,5 +126,5 @@ "karma-browserify": "5.3.0", | ||
"ts-node": "7.0.0", | ||
"typescript": "2.9.2", | ||
"webpack": "4.16.0", | ||
"webpack-cli": "3.0.8" | ||
"typescript": "3.0.1", | ||
"webpack": "4.16.3", | ||
"webpack-cli": "3.1.0" | ||
}, | ||
@@ -131,0 +131,0 @@ "browser": { |
@@ -6,3 +6,3 @@ import { | ||
import * as unload from 'unload'; | ||
import unload from 'unload'; | ||
@@ -9,0 +9,0 @@ const LeaderElection = function (channel, options) { |
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
199620
48
+ Addedunload@2.0.1(transitive)
- Removedunload@2.0.0(transitive)
Updatedunload@2.0.1