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.9 to 2.1.10

36

dist/es/methods/node.js

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

}
}, _callee4, this);
}, _callee4);
}));

@@ -174,3 +174,3 @@ return _ensureBaseFolderExists.apply(this, arguments);

}
}, _callee5, this);
}, _callee5);
}));

@@ -213,3 +213,3 @@ return _ensureFoldersExist.apply(this, arguments);

}
}, _callee6, this);
}, _callee6);
}));

@@ -280,3 +280,3 @@ return _clearNodeFolder.apply(this, arguments);

}
}, _callee7, this);
}, _callee7);
}));

@@ -333,3 +333,3 @@ return _countChannelFolders.apply(this, arguments);

}
}, _callee8, this);
}, _callee8);
}));

@@ -385,3 +385,3 @@ return _connectionError.apply(this, arguments);

}
}, _callee9, this);
}, _callee9);
}));

@@ -426,3 +426,3 @@

}
}, _callee10, this);
}, _callee10);
}));

@@ -448,3 +448,3 @@

}
}, _callee11, this);
}, _callee11);
}));

@@ -489,3 +489,3 @@ return _createSocketEventEmitter.apply(this, arguments);

}
}, _callee12, this);
}, _callee12);
}));

@@ -555,3 +555,3 @@ return _openClientConnection.apply(this, arguments);

}
}, _callee13, this);
}, _callee13);
}));

@@ -583,3 +583,3 @@ return _getReadersUuids.apply(this, arguments);

}
}, _callee14, this);
}, _callee14);
}));

@@ -625,3 +625,3 @@ return _messagePath.apply(this, arguments);

}
}, _callee15, this);
}, _callee15);
}));

@@ -675,3 +675,3 @@ return _getAllMessages.apply(this, arguments);

}
}, _callee16, this);
}, _callee16);
}));

@@ -773,3 +773,3 @@ return _cleanOldMessages.apply(this, arguments);

}
}, _callee17, this);
}, _callee17);
}));

@@ -880,3 +880,3 @@ return _create.apply(this, arguments);

}
}, _callee18, this);
}, _callee18);
}));

@@ -921,3 +921,3 @@ return _handleMessagePing.apply(this, arguments);

}
}, _callee, this, [[0, 5]]);
}, _callee, null, [[0, 5]]);
}));

@@ -984,3 +984,3 @@

}
}, _callee2, this, [[0, 14], [3, 10]]);
}, _callee2, null, [[0, 14], [3, 10]]);
}));

@@ -1055,3 +1055,3 @@

}
}, _callee3, this);
}, _callee3);
})));

@@ -1058,0 +1058,0 @@ return channelState.writeBlockPromise;

@@ -124,3 +124,3 @@ "use strict";

}
}, _callee4, this);
}, _callee4);
}));

@@ -179,3 +179,3 @@ return _ensureBaseFolderExists.apply(this, arguments);

}
}, _callee5, this);
}, _callee5);
}));

@@ -218,3 +218,3 @@ return _ensureFoldersExist.apply(this, arguments);

}
}, _callee6, this);
}, _callee6);
}));

@@ -285,3 +285,3 @@ return _clearNodeFolder.apply(this, arguments);

}
}, _callee7, this);
}, _callee7);
}));

@@ -338,3 +338,3 @@ return _countChannelFolders.apply(this, arguments);

}
}, _callee8, this);
}, _callee8);
}));

@@ -390,3 +390,3 @@ return _connectionError.apply(this, arguments);

}
}, _callee9, this);
}, _callee9);
}));

@@ -431,3 +431,3 @@

}
}, _callee10, this);
}, _callee10);
}));

@@ -453,3 +453,3 @@

}
}, _callee11, this);
}, _callee11);
}));

@@ -494,3 +494,3 @@ return _createSocketEventEmitter.apply(this, arguments);

}
}, _callee12, this);
}, _callee12);
}));

@@ -560,3 +560,3 @@ return _openClientConnection.apply(this, arguments);

}
}, _callee13, this);
}, _callee13);
}));

@@ -588,3 +588,3 @@ return _getReadersUuids.apply(this, arguments);

}
}, _callee14, this);
}, _callee14);
}));

@@ -630,3 +630,3 @@ return _messagePath.apply(this, arguments);

}
}, _callee15, this);
}, _callee15);
}));

@@ -680,3 +680,3 @@ return _getAllMessages.apply(this, arguments);

}
}, _callee16, this);
}, _callee16);
}));

@@ -778,3 +778,3 @@ return _cleanOldMessages.apply(this, arguments);

}
}, _callee17, this);
}, _callee17);
}));

@@ -885,3 +885,3 @@ return _create.apply(this, arguments);

}
}, _callee18, this);
}, _callee18);
}));

@@ -926,3 +926,3 @@ return _handleMessagePing.apply(this, arguments);

}
}, _callee, this, [[0, 5]]);
}, _callee, null, [[0, 5]]);
}));

@@ -989,3 +989,3 @@

}
}, _callee2, this, [[0, 14], [3, 10]]);
}, _callee2, null, [[0, 14], [3, 10]]);
}));

@@ -1060,3 +1060,3 @@

}
}, _callee3, this);
}, _callee3);
})));

@@ -1063,0 +1063,0 @@ return channelState.writeBlockPromise;

{
"name": "broadcast-channel",
"version": "2.1.9",
"version": "2.1.10",
"description": "A BroadcastChannel shim/polyfill that works in New Browsers, Old Browsers, WebWorkers and NodeJs",

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

"dependencies": {
"@babel/runtime": "7.3.1",
"@babel/runtime": "7.3.4",
"detect-node": "2.0.4",

@@ -74,14 +74,14 @@ "js-sha3": "0.8.0",

"@babel/cli": "7.2.3",
"@babel/core": "7.2.2",
"@babel/core": "7.3.4",
"@babel/plugin-check-constants": "7.0.0-beta.38",
"@babel/plugin-proposal-object-rest-spread": "7.3.1",
"@babel/plugin-proposal-object-rest-spread": "7.3.4",
"@babel/plugin-transform-member-expression-literals": "7.2.0",
"@babel/plugin-transform-property-literals": "7.2.0",
"@babel/plugin-transform-runtime": "7.2.0",
"@babel/plugin-transform-runtime": "7.3.4",
"@babel/polyfill": "7.2.5",
"@babel/preset-env": "7.3.1",
"@babel/types": "7.3.0",
"@babel/preset-env": "7.3.4",
"@babel/types": "7.3.4",
"@types/core-js": "2.5.0",
"assert": "1.4.1",
"async-test-util": "1.6.3",
"async-test-util": "1.7.2",
"browserify": "16.2.3",

@@ -94,6 +94,6 @@ "child-process-promise": "2.2.1",

"cross-env": "5.2.0",
"eslint": "5.13.0",
"eslint": "5.15.2",
"gzip-size-cli": "3.0.0",
"http-server": "0.11.1",
"karma": "4.0.0",
"karma": "4.0.1",
"karma-babel-preprocessor": "8.0.0",

@@ -111,3 +111,3 @@ "karma-browserify": "6.0.0",

"mocha": "5.2.0",
"node": "11.9.0",
"node": "11.12.0",
"pre-commit": "1.2.2",

@@ -117,9 +117,9 @@ "random-int": "1.0.0",

"testcafe": "0.23.3",
"testcafe-hammerhead": "14.4.12",
"testcafe-hammerhead": "14.5.1",
"ts-node": "7.0.1",
"typescript": "3.3.1",
"uglifyjs-webpack-plugin": "2.1.1",
"watchify": "3.11.0",
"webpack": "4.29.0",
"webpack-cli": "3.2.1"
"typescript": "3.3.3333",
"uglifyjs-webpack-plugin": "2.1.2",
"watchify": "3.11.1",
"webpack": "4.29.6",
"webpack-cli": "3.3.0"
},

@@ -126,0 +126,0 @@ "browser": {

<p align="center">
<a href="https://github.com/pubkey/broadcast-channel">
<img src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f4e1.png" width="150px" />
<img src="./docs/files/icon.png" width="150px" />
</a>

@@ -106,8 +106,17 @@ </p>

```javascript
import BroadcastChannel from 'broadcast-channel';
const hasRun = await BroadcastChannel.clearNodeFolder();
console.log(hasRun); // > true on NodeJs, false on Browsers
```jest
beforeAll(async () => {
const hasRun = await BroadcastChannel.clearNodeFolder();
console.log(hasRun); // > true on NodeJs, false on Browsers
})
```
```Mocha
before(async () => {
const hasRun = await BroadcastChannel.clearNodeFolder();
console.log(hasRun); // > true on NodeJs, false on Browsers
})
```
## Methods:

@@ -114,0 +123,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