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 2.1.4 to 2.1.5

10

dist/es/methods/node.js

@@ -59,2 +59,3 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";

var readdir = util.promisify(fs.readdir);
var chmod = util.promisify(fs.chmod);
var removeDir = util.promisify(rimraf);

@@ -137,2 +138,3 @@ var OTHER_INSTANCES = {};

_regeneratorRuntime.mark(function _callee5(channelName, paths) {
var chmodValue;
return _regeneratorRuntime.wrap(function _callee5$(_context5) {

@@ -161,2 +163,10 @@ while (1) {

case 7:
// set permissions so other users can use the same channel
chmodValue = '777';
_context5.next = 10;
return Promise.all([chmod(paths.channelBase, chmodValue), chmod(paths.readers, chmodValue), chmod(paths.messages, chmodValue)])["catch"](function () {
return null;
});
case 10:
case "end":

@@ -163,0 +173,0 @@ return _context5.stop();

@@ -64,2 +64,3 @@ "use strict";

var readdir = util.promisify(fs.readdir);
var chmod = util.promisify(fs.chmod);
var removeDir = util.promisify(rimraf);

@@ -142,2 +143,3 @@ var OTHER_INSTANCES = {};

_regenerator["default"].mark(function _callee5(channelName, paths) {
var chmodValue;
return _regenerator["default"].wrap(function _callee5$(_context5) {

@@ -166,2 +168,10 @@ while (1) {

case 7:
// set permissions so other users can use the same channel
chmodValue = '777';
_context5.next = 10;
return Promise.all([chmod(paths.channelBase, chmodValue), chmod(paths.readers, chmodValue), chmod(paths.messages, chmodValue)])["catch"](function () {
return null;
});
case 10:
case "end":

@@ -168,0 +178,0 @@ return _context5.stop();

11

package.json
{
"name": "broadcast-channel",
"version": "2.1.4",
"version": "2.1.5",
"description": "A BroadcastChannel implementation that works with new browsers, older browsers and Node.js",

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

"test:performance": "npm run build && mocha ./test/performance.test.js -b --timeout 24000 --exit",
"test:simple": "npm run build && node ./test_tmp/simple.test.js",
"size:prewebpack": "npm run build && cross-env NODE_ENV=build webpack --config ./config/webpack.config.js",

@@ -85,3 +86,3 @@ "size:webpack": "npm run size:prewebpack && echo \"Build-Size Webpack (minified+gzip):\" && gzip-size --raw ./test_tmp/webpack.bundle.js",

"async-test-util": "1.6.1",
"browserify": "16.2.2",
"browserify": "16.2.3",
"child-process-promise": "2.2.1",

@@ -109,3 +110,3 @@ "clone": "2.1.2",

"mocha": "5.2.0",
"node": "10.10.0",
"node": "10.11.0",
"pre-commit": "1.2.2",

@@ -119,4 +120,4 @@ "random-int": "1.0.0",

"watchify": "3.11.0",
"webpack": "4.19.1",
"webpack-cli": "3.1.0"
"webpack": "4.20.2",
"webpack-cli": "3.1.1"
},

@@ -123,0 +124,0 @@ "browser": {

@@ -47,2 +47,3 @@ /**

const readdir = util.promisify(fs.readdir);
const chmod = util.promisify(fs.chmod);
const removeDir = util.promisify(rimraf);

@@ -110,2 +111,10 @@

]);
// set permissions so other users can use the same channel
const chmodValue = '777';
await Promise.all([
chmod(paths.channelBase, chmodValue),
chmod(paths.readers, chmodValue),
chmod(paths.messages, chmodValue)
]).catch(() => null);
}

@@ -112,0 +121,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