@trycourier/react-provider 1.8.1-internal.ec69865.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/ws.js +3 -5
  2. package/package.json +2 -2
package/dist/ws.js CHANGED
@@ -25,8 +25,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
25
25
 
26
26
  var WS = /*#__PURE__*/function () {
27
27
  function WS(_ref) {
28
- var _ref2, _options$url;
29
-
30
28
  var clientKey = _ref.clientKey,
31
29
  options = _ref.options,
32
30
  userSignature = _ref.userSignature;
@@ -34,7 +32,7 @@ var WS = /*#__PURE__*/function () {
34
32
  this.messageCallback = null;
35
33
  this.connection = undefined;
36
34
  this.connected = false;
37
- this.url = (_ref2 = (_options$url = options === null || options === void 0 ? void 0 : options.url) !== null && _options$url !== void 0 ? _options$url : "") !== null && _ref2 !== void 0 ? _ref2 : "wss://1x60p1o3h8.execute-api.us-east-1.amazonaws.com/production";
35
+ this.url = (options === null || options === void 0 ? void 0 : options.url) || "" || "wss://1x60p1o3h8.execute-api.us-east-1.amazonaws.com/production";
38
36
  this.clientKey = clientKey;
39
37
  this.userSignature = userSignature;
40
38
  this.subscriptions = [];
@@ -101,8 +99,8 @@ var WS = /*#__PURE__*/function () {
101
99
  }
102
100
  }, {
103
101
  key: "_onMessage",
104
- value: function _onMessage(_ref3) {
105
- var data = _ref3.data;
102
+ value: function _onMessage(_ref2) {
103
+ var data = _ref2.data;
106
104
  var message;
107
105
 
108
106
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/react-provider",
3
- "version": "1.8.1-internal.ec69865.0+ec69865",
3
+ "version": "1.9.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
@@ -31,5 +31,5 @@
31
31
  "dist/",
32
32
  "typings/"
33
33
  ],
34
- "gitHead": "ec6986508fb4215b53705e6209c3b18de3955e81"
34
+ "gitHead": "b7d6126fd1ecdf1c65ad427d8473e85c209c1a50"
35
35
  }