New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bearychat-rtm-client

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bearychat-rtm-client - npm Package Compare versions

Comparing version 0.2.0-alpha1 to 0.2.0-alpha2

5

package.json
{
"name": "bearychat-rtm-client",
"version": "0.2.0-alpha1",
"version": "0.2.0-alpha2",
"description": "RTM client for BearyChat",

@@ -19,6 +19,7 @@ "main": "lib/index.js",

"dependencies": {
"babel-plugin-transform-runtime": "^6.23.0",
"babel-runtime": "^6.23.0",
"delay": "^2.0.0",
"detect-node": "^2.0.3",
"invariant": "^2.2.2",
"regenerator-runtime": "^0.10.5",
"warning": "^3.0.0",

@@ -25,0 +26,0 @@ "ws": "^3.0.0"

30

RTMClient.js

@@ -7,2 +7,6 @@ 'use strict';

var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

@@ -13,4 +17,4 @@

var timeoutDelay = function () {
var _ref9 = _asyncToGenerator(_regeneratorRuntime2.default.mark(function _callee5(timeout, message) {
return _regeneratorRuntime2.default.wrap(function _callee5$(_context5) {
var _ref9 = _asyncToGenerator(_regenerator2.default.mark(function _callee5(timeout, message) {
return _regenerator2.default.wrap(function _callee5$(_context5) {
while (1) {

@@ -38,6 +42,2 @@ switch (_context5.prev = _context5.next) {

var _regeneratorRuntime = require('regenerator-runtime');
var _regeneratorRuntime2 = _interopRequireDefault(_regeneratorRuntime);
var _events = require('events');

@@ -134,5 +134,5 @@

_this2._doConnect = _asyncToGenerator(_regeneratorRuntime2.default.mark(function _callee() {
_this2._doConnect = _asyncToGenerator(_regenerator2.default.mark(function _callee() {
var wsUrl;
return _regeneratorRuntime2.default.wrap(function _callee$(_context) {
return _regenerator2.default.wrap(function _callee$(_context) {
while (1) {

@@ -235,4 +235,4 @@ switch (_context.prev = _context.next) {

value: function () {
var _ref2 = _asyncToGenerator(_regeneratorRuntime2.default.mark(function _callee2() {
return _regeneratorRuntime2.default.wrap(function _callee2$(_context2) {
var _ref2 = _asyncToGenerator(_regenerator2.default.mark(function _callee2() {
return _regenerator2.default.wrap(function _callee2$(_context2) {
while (1) {

@@ -266,5 +266,5 @@ switch (_context2.prev = _context2.next) {

value: function () {
var _ref3 = _asyncToGenerator(_regeneratorRuntime2.default.mark(function _callee3() {
var _ref3 = _asyncToGenerator(_regenerator2.default.mark(function _callee3() {
var url;
return _regeneratorRuntime2.default.wrap(function _callee3$(_context3) {
return _regenerator2.default.wrap(function _callee3$(_context3) {
while (1) {

@@ -315,5 +315,5 @@ switch (_context3.prev = _context3.next) {

value: function () {
var _ref4 = _asyncToGenerator(_regeneratorRuntime2.default.mark(function _callee4(message, timeout) {
var _ref4 = _asyncToGenerator(_regenerator2.default.mark(function _callee4(message, timeout) {
var sendPromise, timeoutPromise;
return _regeneratorRuntime2.default.wrap(function _callee4$(_context4) {
return _regenerator2.default.wrap(function _callee4$(_context4) {
while (1) {

@@ -412,2 +412,2 @@ switch (_context4.prev = _context4.next) {

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9SVE1DbGllbnQuanMiXSwibmFtZXMiOlsidGltZW91dCIsIm1lc3NhZ2UiLCJSVE1UaW1lb3V0RXJyb3IiLCJ0aW1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gICAgIGNvbm5lY3RcbiAqICBSRUNPTk5FQ1QrLS0tLS0tLT5DT05ORUNUSU5HPC0tLS0tLS0tLStDTE9TRURcbiAqICAgICAgXiAgICAgICAgICAgICAgICArICAgICAgICAgICAgICAgICAgICBeXG4gKiAgICAgIHwgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgfFxuICogICAgICB8ICAgIHNlcnZlciAgICAgIHwgICAgICAgICAgICAgICAgICAgIHxcbiAqICAgICAgfCAgICBjbG9zZS8gICAgICB2ICAgICAgICBjbG9zZSAgICAgICArXG4gKiAgICAgICstLS0tLS0tLS0tLS0rQ09OTkVDVEVEKy0tLS0tLS0tLS0+Q0xPU0lOR1xuICogICAgICAgICAgIGVycm9yXG4gKlxuICogQGNvbnN0cnVjdG9yXG4gKiBAcGFyYW0ge09iamVjdH0gb3B0aW9uc1xuICogQHBhcmFtIHtzdHJpbmd8RnVuY3Rpb259IG9wdGlvbnMudXJsIC0gQSBzdHJpbmcgb3IgYSBmdW5jdGlvbiByZXR1cm5pbmdcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGEgc3RyaW5nIG9yIGEgUHJvbWlzZSByZXNvbHZlcyB0b1xuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYSBzdHJpbmcuXG4gKi9cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIFJUTUNsaWVudCBleHRlbmRzIEV2ZW50RW1pdHRlciB7XG4gIGNvbnN0cnVjdG9yKG9wdGlvbnMpIHtcbiAgICBzdXBlcigpO1xuXG4gICAgb3B0aW9ucyA9IG9wdGlvbnMgfHwge307XG4gICAgY29uc3QgeyB1cmwgfSA9IG9wdGlvbnM7XG5cbiAgICB3YXJuaW5nKFxuICAgICAgdXJsLFxuICAgICAgJ1widXJsXCIgaXMgcmVxdWlyZWQuJ1xuICAgICk7XG5cbiAgICB3YXJuaW5nKFxuICAgICAgdHlwZW9mIHVybCA9PT0gJ3N0cmlu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VE1Db25uZWN0aW9uIGZyb20gJy4vUlRNQ29ubmVjdGlvbic7XG5cbmNsYXNzIFJUTVRpbWVvdXRFcnJvciBleHRlbmRzIEVycm9yIHtcbiAgY29uc3RydWN0b3IoZXJyb3JNZXNzYWdlLCBydG1NZXNzYWdlKSB7XG4gICAgc3VwZXIoZXJyb3JNZXNzYWdlKTtcbiAgICB0aGlzLnJ0bU1lc3NhZ2UgPSBydG1NZXNzYWdlO1xuICB9XG59XG5cbi8qKlxuICogS2VlcCBhbiBSVE0gY2xpZW50IHJ1bm5pbmcgd2l0aCBtdWx0aXBsZS5cbiAqXG4gKiBTdGF0ZSBkaWFncmFtOlxuICpcbiAqICAgICAgICAgICAgICAgICAgICBJTklUSUFMXG4gKiAgICAgICAgICAgICAgICAgICAgICAgK1xuICogICAgICAgICAgZXJyb3IgICAgICAgIHxcbiAqICAgICAgKy0tLS0tLS0tLS0tLS0rICB8XG4gKiAgICAgIHYgICAgICAgICAgICAgKyAgdiAgICAgICAgY29ubmVjdFxuICogIFJFQ09OTkVDVCstLS0tLS0tPkNPTk5FQ1RJTkc8LS0tLS0tLS0tK0NMT1NFRFxuICogICAgICBeICAgICAgICAgICAgICAgICsgICAgICAgICAgICAgICAgICAgIF5cbiAqICAgICAgfCAgICAgICAgICAgICAgICB8ICAgICAgICAgICAgICAgICAgICB8XG4gKiAgICAgIHwgICAgc2VydmVyICAgICAgfCAgICAgICAgICAgICAgICAgICAgfFxuICogICAgICB8ICAgIGNsb3NlLyAgICAgIHYgICAgICAgIGNsb3NlICAgICAgICtcbiAqICAgICAgKy0tLS0tLS0tLS0tLStDT05ORUNURUQrLS0tLS0tLS0tLT5DTE9TSU5HXG4gKiAgICAgICAgICAgZXJyb3JcbiAqXG4gKiBAY29uc3RydWN0b3JcbiAqIEBwYXJhbSB7T2JqZWN0fSBvcHRpb25zXG4gKiBAcGFyYW0ge3N0cmluZ3xGdW5jdGlvbn0gb3B0aW9ucy51cmwgLSBBIHN0cmluZyBvciBhIG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bW92ZUNvbm5lY3Rpb24oKSB7XG4gICAgY29uc3QgY29ubmVjdGlvbiA9IHRoaXMuX2Nvbm5lY3Rpb247XG5cbiAgICBpZiAocHJvY2Vzcy5lbnYuTk9ERV9FTlYgIT09ICdwcm9kdWN0aW9uJykge1xuICAgICAgaW52YXJpYW50KFxuICAgICAgICBjb25uZWN0aW9uLFxuICAgICAgICAnQ29ubmVjdGlvbiBub3Qgc2V0IG9yIGFscmVhZHkgcmVtb3ZlZC4nXG4gICAgICApO1xuICAgIH1cblxuICAgIHRoaXMuX2Nvbm5lY3Rpb25FdmVudHMuZm9yRWFjaCgoW25hbWUsIGhhbmRsZXJdKSA9PiB7XG4gICAgICBjb25uZWN0aW9uLnJlbW92ZUxpc3RlbmVyKG5hbWUsIGhhbmRsZXIpO1xuICAgIH0pO1xuXG4gICAgdGhpcy5fY29ubmVjdGlvbiA9IG51bGw7XG4gIH1cbn1cblxuLy8gZXhwb25lbnRpYWwgYmFja29mZlxuZnVuY3Rpb24gZ2VuZXJhdGVJbnRlcnZhbChhdHRlbXB0cykge1xuICBjb25zdCBtYXhJbnRlcnZhbCA9IE1hdGgubWluKDMwLCAoTWF0aC5wb3coMiwgYXR0ZW1wdHMpIC0gMSkpICogMTAwMDtcbiAgcmV0dXJuIE1hdGgucmFuZG9tKCkgKiBtYXhJbnRlcnZhbDtcbn1cblxuYXN5bmMgZnVuY3Rpb24gdGltZW91dERlbGF5KHRpbWVvdXQsIG1lc3NhZ2UpIHtcbiAgYXdhaXQgZGVsYXkodGltZW91dCk7XG4gIHRocm93IG5ldyBSVE1UaW1lb3V0RXJyb3IoJ1JUTSBtZXNzYWdlIHNlbmQgdGltZW91dC4nLCBtZXNzYWdlKTtcbn1cbiJdfQ==

@@ -7,2 +7,6 @@ 'use strict';

var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

@@ -12,6 +16,2 @@

var _regeneratorRuntime = require('regenerator-runtime');
var _regeneratorRuntime2 = _interopRequireDefault(_regeneratorRuntime);
var _WebSocket = require('./WebSocket');

@@ -118,4 +118,4 @@

_this._startLoop = _asyncToGenerator(_regeneratorRuntime2.default.mark(function _callee() {
return _regeneratorRuntime2.default.wrap(function _callee$(_context) {
_this._startLoop = _asyncToGenerator(_regenerator2.default.mark(function _callee() {
return _regenerator2.default.wrap(function _callee$(_context) {
while (1) {

@@ -219,2 +219,2 @@ switch (_context.prev = _context.next) {

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9SVE1Db25uZWN0aW9uLmpzIl0sIm5hbWVzIjpbIlJUTUNvbm5lY3Rpb24iLCJ1cmwiLCJzdGF0ZSIsIl9oYW5kbGVPcGVuIiwiX3N0YXRlIiwiQ09OTkVDVEVEIiwiZW1pdCIsIk9QRU4iLCJfc3RhcnRMb29wIiwiX2hhbmRsZUNsb3NlIiwiQ0xPU0VEIiwiQ0xPU0UiLCJfaGFuZGxlTWVzc2FnZSIsImV2ZW50IiwibWVzc2FnZSIsIkpTT04iLCJwYXJzZSIsImRhdGEiLCJ0eXBlIiwiUE9ORyIsIk9LIiwiUkVQTFkiLCJfaGFuZGxlUmVwbHlNZXNzYWdlIiwiTUVTU0FHRSIsIl9oYW5kbGVFcnJvciIsImVycm9yIiwiRVJST1IiLCJfcGluZyIsIl9jdXJyZW50Q2FsbElkIiwiSU5JVElBTCIsIl93cyIsIl9jYWxsYmFja01hcCIsIk1hcCIsImFkZEV2ZW50TGlzdGVuZXIiLCJjYWxsYmFja01hcCIsImNhbGxJZCIsImNhbGxfaWQiLCJoYXMiLCJjYWxsYmFjayIsImdldCIsImRlbGV0ZSIsIl9nZXROZXh0Q2FsbElkIiwiY2FsbElkTWFwIiwiUHJvbWlzZSI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0aGlzLl9zdGF0ZSA9IFJUTUNvbm5lY3Rpb25TdGF0ZS5DTE9TSU5HO1xuICAgIHRoaXMuX3dzLmNsb3NlKCk7XG4gIH1cblxuICBnZXRTdGF0ZSgpIHtcbiAgICByZXR1cm4gdGhpcy5fc3RhdGU7XG4gIH1cbn1cbiJdfQ==
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