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

broadcast-channel

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broadcast-channel - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

5

dist/es/methods/indexed-db.js

@@ -214,2 +214,5 @@ /**

// channel already closed
if (state.closed) return Promise.resolve();
// if no one is listening, we do not need to scan for new messages

@@ -273,3 +276,3 @@ if (!state.messagesCallback) return Promise.resolve();

export function averageResponseTime(options) {
return options.idb.fallbackInterval * 1.5;
return options.idb.fallbackInterval * 2;
}

2

dist/es/options.js

@@ -12,3 +12,3 @@ export function fillOptionsWithDefaults(options) {

if (!options.idb.ttl) options.idb.ttl = 1000 * 45;
if (!options.idb.fallbackInterval) options.idb.fallbackInterval = 50;
if (!options.idb.fallbackInterval) options.idb.fallbackInterval = 150;

@@ -15,0 +15,0 @@ // localstorage

@@ -241,2 +241,5 @@ 'use strict';

// channel already closed
if (state.closed) return Promise.resolve();
// if no one is listening, we do not need to scan for new messages

@@ -300,3 +303,3 @@ if (!state.messagesCallback) return Promise.resolve();

function averageResponseTime(options) {
return options.idb.fallbackInterval * 1.5;
return options.idb.fallbackInterval * 2;
}

@@ -18,3 +18,3 @@ 'use strict';

if (!options.idb.ttl) options.idb.ttl = 1000 * 45;
if (!options.idb.fallbackInterval) options.idb.fallbackInterval = 50;
if (!options.idb.fallbackInterval) options.idb.fallbackInterval = 150;

@@ -21,0 +21,0 @@ // localstorage

{
"name": "broadcast-channel",
"version": "1.2.7",
"version": "1.2.8",
"description": "A BroadcastChannel implementation that works with new browsers, older browsers and Node.js",

@@ -35,3 +35,4 @@ "homepage": "https://github.com/pubkey/broadcast-channel#readme",

"test:browser": "npm run build && karma start ./config/karma.conf.js --single-run",
"test:e2e": "concurrently \"npm run docs:serve\" \"sleep 5 && testcafe all test/e2e.test.js\" --kill-others --success first",
"test:e2e": "concurrently \"npm run docs:serve\" \"sleep 5 && testcafe -b && testcafe all test/e2e.test.js\" --kill-others --success first",
"test:e2e:travis": "concurrently \"npm run docs:serve\" \"sleep 5 && testcafe -b && testcafe chrome test/e2e.test.js && testcafe chromium test/e2e.test.js && testcafe firefox test/e2e.test.js\" --kill-others --success first",
"test:typings": "npm run build && mocha ./test/typings.test.js -b --timeout 12000 --exit",

@@ -53,3 +54,3 @@ "test:performance": "npm run build && mocha ./test/performance.test.js -b --timeout 24000 --exit",

"build:min": "uglifyjs --compress --mangle --output dist/lib/browserify.min.js -- dist/lib/browserify.index.js",
"docs:only": "http-server ./docs",
"docs:only": "http-server ./docs --silent",
"docs:serve": "npm run build && npm run docs:only"

@@ -56,0 +57,0 @@ },

@@ -215,2 +215,5 @@ /**

// channel already closed
if(state.closed) return Promise.resolve();
// if no one is listening, we do not need to scan for new messages

@@ -281,3 +284,3 @@ if (!state.messagesCallback) return Promise.resolve();

export function averageResponseTime(options) {
return options.idb.fallbackInterval * 1.5;
return options.idb.fallbackInterval * 2;
}

@@ -13,3 +13,3 @@ export function fillOptionsWithDefaults(options) {

if (!options.idb.ttl) options.idb.ttl = 1000 * 45;
if (!options.idb.fallbackInterval) options.idb.fallbackInterval = 50;
if (!options.idb.fallbackInterval) options.idb.fallbackInterval = 150;

@@ -16,0 +16,0 @@ // localstorage

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