diff --git a/package-lock.json b/package-lock.json index d33055c..a7d46c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "license": "MIT", "dependencies": { "@livechat/customer-auth": "^0.4.0-alpha.6", - "@livechat/customer-sdk": "^2.0.4", + "@livechat/customer-sdk": "^3.0.0", "@livechat/livechat-visitor-sdk": "0.37.0-4", "better-npm-audit": "^1.8.1", "react-native-animatable": "^1.3.3", @@ -1218,6 +1218,11 @@ "node": ">= 6" } }, + "node_modules/@livechat/backoff": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@livechat/backoff/-/backoff-0.1.0.tgz", + "integrity": "sha512-PrLsKYSBtIrBPPDj0urtjcu4yjZzZUhxljydm2T9ESYN3uHWzvXNNqaqTQo4tJSHOjaqlL3IpwRz3U3gu/Omow==" + }, "node_modules/@livechat/cookies": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/@livechat/cookies/-/cookies-0.0.1.tgz", @@ -1235,40 +1240,40 @@ } }, "node_modules/@livechat/customer-sdk": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@livechat/customer-sdk/-/customer-sdk-2.0.4.tgz", - "integrity": "sha512-MTQK3umP3JV2OlmL3d9jlUS0rnPXEThhjjivNrzP/blcRmKhIw3ImV7U7GBuscOeOWNXN6H2LSwWdDyA9O5F0g==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@livechat/customer-sdk/-/customer-sdk-3.0.0.tgz", + "integrity": "sha512-86Fj1cjd7fdon9/iY60PIEDKROuYxjgyCAbXUlLUzwW31UOm+Gw5M2GY61FsimeW5swHov3hbfq/460BJr8HlQ==", "dependencies": { + "@livechat/backoff": "^0.1.0", "@livechat/customer-auth": "^0.4.0-alpha.6", "@livechat/data-utils": "^0.2.9", "@livechat/deferred": "^1.1.0", "@livechat/file-upload": "^0.3.0", "@livechat/isomorphic-storage": "^0.1.0", "@livechat/mitt": "^0.1.2", - "@livechat/platform-client": "^0.2.1", + "@livechat/platform-client": "^0.3.0", "@livechat/promise-try": "^0.1.0", "@livechat/side-effects-middleware": "^0.2.0", "@livechat/url-utils": "^0.1.3", - "backo2": "^1.0.2", "redux": "^4.0.4", "ts-toolbelt": "^6.7.5", - "unfetch": "^2.1.2" + "unfetch": "^4.2.0" } }, - "node_modules/@livechat/customer-sdk/node_modules/@livechat/data-utils": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/@livechat/data-utils/-/data-utils-0.2.11.tgz", - "integrity": "sha512-sGLjkZEQOy8NlfY74WBhgwKzUda+mVvEclpfiWrAca+qymSkaJ6TppWj9uKwGydhw2MAwGJxmn8W6ZWP9Nz+7A==" - }, "node_modules/@livechat/customer-sdk/node_modules/@livechat/file-upload": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/@livechat/file-upload/-/file-upload-0.3.0.tgz", "integrity": "sha512-uAAfyZVC5JfintGj70der3mGYujOTxaMUxqYFCtvfbpdHl66ix6V7u64FMCtzBM7KtecZJO/dvOh4zc/SwqbOg==" }, + "node_modules/@livechat/customer-sdk/node_modules/unfetch": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-4.2.0.tgz", + "integrity": "sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==" + }, "node_modules/@livechat/data-utils": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/@livechat/data-utils/-/data-utils-0.2.8.tgz", - "integrity": "sha512-c00toCXqHIdZXMt8kXlAfv7SA0r8ZERzblP6zrWAR1UxRQpDd/0NeDH/wOp7XFhjnvHDpHSG5neLsFjbJMY9Ag==" + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@livechat/data-utils/-/data-utils-0.2.12.tgz", + "integrity": "sha512-A/tx/hxgJ5jnVfq2zynK5IyBecSj6bCCYMkpXjX8c25qCmmP89HmItg0VkZyskJaUk87K2kY/+jXpTaHFnmZmA==" }, "node_modules/@livechat/deferred": { "version": "1.1.0", @@ -1332,14 +1337,14 @@ } }, "node_modules/@livechat/platform-client": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@livechat/platform-client/-/platform-client-0.2.1.tgz", - "integrity": "sha512-qMveYlBXE8HH6LSz/H3w5Kjg7iMfW4Bxgn7SzHp0r24HUCtGG1uhw2lAL0XzBHRXmo4/6sSdU2i7ypDVmGSG4g==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@livechat/platform-client/-/platform-client-0.3.0.tgz", + "integrity": "sha512-XzXEYZLNlZmf/oOzq7DjEBV0/nqMtfPEpcTv2H7AdAXJ2/4ATUYHJGynhoK9NBLalRLf2oNKMocS/90XDoxKEw==", "dependencies": { - "@livechat/data-utils": "^0.2.7", + "@livechat/data-utils": "^0.2.9", "@livechat/deferred": "^1.1.0", "@livechat/mitt": "^0.1.2", - "@livechat/sockjs-manager": "^0.2.0" + "@livechat/websocket-manager": "^0.1.0" } }, "node_modules/@livechat/promise-try": { @@ -1379,17 +1384,6 @@ "resolved": "https://registry.npmjs.org/@livechat/side-effects-middleware/-/side-effects-middleware-0.2.0.tgz", "integrity": "sha512-WqoEJd7AkvN0ofRrdzclgvEbZciOnJK5Tz8vTmRVbOE8ti1aUDTfRxGiKg1MBOKid+6VFE95QJIlNOA2jCC6SQ==" }, - "node_modules/@livechat/sockjs-manager": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@livechat/sockjs-manager/-/sockjs-manager-0.2.0.tgz", - "integrity": "sha512-Q1AHOy4gqqhxGjgNmwMq9FH97jeDEnihpY2FCyi6lisKFeJ2/2878O+RyJtgQZc5TBbQTDL1Ko0jnZ0LX8SmUw==", - "dependencies": { - "@livechat/mitt": "^0.1.2", - "@livechat/url-utils": "^0.1.3", - "@types/sockjs-client": "^1.1.1", - "sockjs-client": "^1.3.0" - } - }, "node_modules/@livechat/url-utils": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/@livechat/url-utils/-/url-utils-0.1.4.tgz", @@ -1398,6 +1392,16 @@ "@livechat/data-utils": "^0.2.8" } }, + "node_modules/@livechat/websocket-manager": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@livechat/websocket-manager/-/websocket-manager-0.1.0.tgz", + "integrity": "sha512-FT8q/5f2j5/BP2H0xLdShq1Oyl0edCdXLO+s38BojgdeOV+Upmy6O41ihOuZL2KLmXoJ2tc2GpgdhYtXiFVvyw==", + "dependencies": { + "@livechat/backoff": "^0.1.0", + "@livechat/mitt": "^0.1.2", + "@livechat/url-utils": "^0.1.3" + } + }, "node_modules/@react-native-community/cli": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-3.2.1.tgz", @@ -1672,11 +1676,6 @@ "csstype": "^2.2.0" } }, - "node_modules/@types/sockjs-client": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/sockjs-client/-/sockjs-client-1.1.1.tgz", - "integrity": "sha512-DaTdN4kfPNxu0otmQlxhmYeCjtY8cHmJsU6LqiFOrhytIkx8Txq06PwAWYzha7nMkEyju44a3NDpqCKiHn/NZQ==" - }, "node_modules/@types/stack-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", @@ -2911,14 +2910,6 @@ "integrity": "sha512-KqtAuIfdNfZR5sJY1Dixr2Is4ZvcCqhb0dZpCOt5dGEFiMzoIbjkTSzUb4QKTCsP+WNpGwUjAFIZrnZvUxxkhw==", "peer": true }, - "node_modules/debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dependencies": { - "ms": "^2.1.1" - } - }, "node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", @@ -3153,17 +3144,6 @@ "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==", "peer": true }, - "node_modules/eventsource": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.0.7.tgz", - "integrity": "sha512-4Ln17+vVT0k8aWq+t/bF5arcS3EpT9gYtW66EPacdj/mAFevznsnyoHLPy2BA8gbIQeIHoPsvwmfBftfcG//BQ==", - "dependencies": { - "original": "^1.0.0" - }, - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/exec-sh": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", @@ -3419,17 +3399,6 @@ "node": ">= 0.10" } }, - "node_modules/faye-websocket": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.3.tgz", - "integrity": "sha512-D2y4bovYpzziGgbHYtGCMjlJM36vAl/y+xUyn1C+FVx8szd1E+86KwVw6XvYSzOP8iMpm1X0I4xJD+QtUb36OA==", - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/fb-watchman": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", @@ -3897,11 +3866,6 @@ "node": ">= 0.6" } }, - "node_modules/http-parser-js": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.2.tgz", - "integrity": "sha512-opCO9ASqg5Wy2FNo7A0sxy71yGbbkJJXLdgMK04Tcypw9jr2MgWbyubb0+WdmDmGnFflO7fRbqbaihh/ENDlRQ==" - }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -3961,7 +3925,8 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "peer": true }, "node_modules/inquirer": { "version": "3.3.0", @@ -4475,11 +4440,6 @@ "jsonify": "~0.0.0" } }, - "node_modules/json3": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", - "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==" - }, "node_modules/json5": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", @@ -5639,7 +5599,8 @@ "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "peer": true }, "node_modules/mute-stream": { "version": "0.0.7", @@ -6033,14 +5994,6 @@ "node": ">=6" } }, - "node_modules/original": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/original/-/original-1.0.2.tgz", - "integrity": "sha512-hyBVl6iqqUOJ8FqRe+l/gS8H+kKYjrEndd5Pm1MfBtsEKA038HkkdbAl/72EAXGyonD/PFsvmVG+EvcIpliMBg==", - "dependencies": { - "url-parse": "^1.4.3" - } - }, "node_modules/os-locale": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", @@ -6429,11 +6382,6 @@ "once": "^1.3.1" } }, - "node_modules/querystringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.1.1.tgz", - "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==" - }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -6877,11 +6825,6 @@ "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", "peer": true }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" - }, "node_modules/resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", @@ -6999,11 +6942,6 @@ "node": ">=0.10.0" } }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, "node_modules/safe-regex": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", @@ -7487,19 +7425,6 @@ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "peer": true }, - "node_modules/sockjs-client": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.4.0.tgz", - "integrity": "sha512-5zaLyO8/nri5cua0VtOrFXBPK1jbL4+1cebT/mmKA1E1ZXOvJrII75bPu0l0k843G/+iAbhEqzyKr0w/eCCj7g==", - "dependencies": { - "debug": "^3.2.5", - "eventsource": "^1.0.7", - "faye-websocket": "~0.11.1", - "inherits": "^2.0.3", - "json3": "^3.3.2", - "url-parse": "^1.4.3" - } - }, "node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -8218,15 +8143,6 @@ "deprecated": "Please see https://github.com/lydell/urix#deprecated", "peer": true }, - "node_modules/url-parse": { - "version": "1.4.7", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz", - "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==", - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, "node_modules/use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", @@ -8302,27 +8218,6 @@ "defaults": "^1.0.3" } }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/whatwg-fetch": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", @@ -9570,6 +9465,11 @@ "@types/yargs": "^13.0.0" } }, + "@livechat/backoff": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@livechat/backoff/-/backoff-0.1.0.tgz", + "integrity": "sha512-PrLsKYSBtIrBPPDj0urtjcu4yjZzZUhxljydm2T9ESYN3uHWzvXNNqaqTQo4tJSHOjaqlL3IpwRz3U3gu/Omow==" + }, "@livechat/cookies": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/@livechat/cookies/-/cookies-0.0.1.tgz", @@ -9587,42 +9487,42 @@ } }, "@livechat/customer-sdk": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@livechat/customer-sdk/-/customer-sdk-2.0.4.tgz", - "integrity": "sha512-MTQK3umP3JV2OlmL3d9jlUS0rnPXEThhjjivNrzP/blcRmKhIw3ImV7U7GBuscOeOWNXN6H2LSwWdDyA9O5F0g==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@livechat/customer-sdk/-/customer-sdk-3.0.0.tgz", + "integrity": "sha512-86Fj1cjd7fdon9/iY60PIEDKROuYxjgyCAbXUlLUzwW31UOm+Gw5M2GY61FsimeW5swHov3hbfq/460BJr8HlQ==", "requires": { + "@livechat/backoff": "^0.1.0", "@livechat/customer-auth": "^0.4.0-alpha.6", "@livechat/data-utils": "^0.2.9", "@livechat/deferred": "^1.1.0", "@livechat/file-upload": "^0.3.0", "@livechat/isomorphic-storage": "^0.1.0", "@livechat/mitt": "^0.1.2", - "@livechat/platform-client": "^0.2.1", + "@livechat/platform-client": "^0.3.0", "@livechat/promise-try": "^0.1.0", "@livechat/side-effects-middleware": "^0.2.0", "@livechat/url-utils": "^0.1.3", - "backo2": "^1.0.2", "redux": "^4.0.4", "ts-toolbelt": "^6.7.5", - "unfetch": "^2.1.2" + "unfetch": "^4.2.0" }, "dependencies": { - "@livechat/data-utils": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/@livechat/data-utils/-/data-utils-0.2.11.tgz", - "integrity": "sha512-sGLjkZEQOy8NlfY74WBhgwKzUda+mVvEclpfiWrAca+qymSkaJ6TppWj9uKwGydhw2MAwGJxmn8W6ZWP9Nz+7A==" - }, "@livechat/file-upload": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/@livechat/file-upload/-/file-upload-0.3.0.tgz", "integrity": "sha512-uAAfyZVC5JfintGj70der3mGYujOTxaMUxqYFCtvfbpdHl66ix6V7u64FMCtzBM7KtecZJO/dvOh4zc/SwqbOg==" + }, + "unfetch": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/unfetch/-/unfetch-4.2.0.tgz", + "integrity": "sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==" } } }, "@livechat/data-utils": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/@livechat/data-utils/-/data-utils-0.2.8.tgz", - "integrity": "sha512-c00toCXqHIdZXMt8kXlAfv7SA0r8ZERzblP6zrWAR1UxRQpDd/0NeDH/wOp7XFhjnvHDpHSG5neLsFjbJMY9Ag==" + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@livechat/data-utils/-/data-utils-0.2.12.tgz", + "integrity": "sha512-A/tx/hxgJ5jnVfq2zynK5IyBecSj6bCCYMkpXjX8c25qCmmP89HmItg0VkZyskJaUk87K2kY/+jXpTaHFnmZmA==" }, "@livechat/deferred": { "version": "1.1.0", @@ -9688,14 +9588,14 @@ } }, "@livechat/platform-client": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@livechat/platform-client/-/platform-client-0.2.1.tgz", - "integrity": "sha512-qMveYlBXE8HH6LSz/H3w5Kjg7iMfW4Bxgn7SzHp0r24HUCtGG1uhw2lAL0XzBHRXmo4/6sSdU2i7ypDVmGSG4g==", + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@livechat/platform-client/-/platform-client-0.3.0.tgz", + "integrity": "sha512-XzXEYZLNlZmf/oOzq7DjEBV0/nqMtfPEpcTv2H7AdAXJ2/4ATUYHJGynhoK9NBLalRLf2oNKMocS/90XDoxKEw==", "requires": { - "@livechat/data-utils": "^0.2.7", + "@livechat/data-utils": "^0.2.9", "@livechat/deferred": "^1.1.0", "@livechat/mitt": "^0.1.2", - "@livechat/sockjs-manager": "^0.2.0" + "@livechat/websocket-manager": "^0.1.0" } }, "@livechat/promise-try": { @@ -9735,17 +9635,6 @@ "resolved": "https://registry.npmjs.org/@livechat/side-effects-middleware/-/side-effects-middleware-0.2.0.tgz", "integrity": "sha512-WqoEJd7AkvN0ofRrdzclgvEbZciOnJK5Tz8vTmRVbOE8ti1aUDTfRxGiKg1MBOKid+6VFE95QJIlNOA2jCC6SQ==" }, - "@livechat/sockjs-manager": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@livechat/sockjs-manager/-/sockjs-manager-0.2.0.tgz", - "integrity": "sha512-Q1AHOy4gqqhxGjgNmwMq9FH97jeDEnihpY2FCyi6lisKFeJ2/2878O+RyJtgQZc5TBbQTDL1Ko0jnZ0LX8SmUw==", - "requires": { - "@livechat/mitt": "^0.1.2", - "@livechat/url-utils": "^0.1.3", - "@types/sockjs-client": "^1.1.1", - "sockjs-client": "^1.3.0" - } - }, "@livechat/url-utils": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/@livechat/url-utils/-/url-utils-0.1.4.tgz", @@ -9754,6 +9643,16 @@ "@livechat/data-utils": "^0.2.8" } }, + "@livechat/websocket-manager": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@livechat/websocket-manager/-/websocket-manager-0.1.0.tgz", + "integrity": "sha512-FT8q/5f2j5/BP2H0xLdShq1Oyl0edCdXLO+s38BojgdeOV+Upmy6O41ihOuZL2KLmXoJ2tc2GpgdhYtXiFVvyw==", + "requires": { + "@livechat/backoff": "^0.1.0", + "@livechat/mitt": "^0.1.2", + "@livechat/url-utils": "^0.1.3" + } + }, "@react-native-community/cli": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-3.2.1.tgz", @@ -9996,11 +9895,6 @@ "csstype": "^2.2.0" } }, - "@types/sockjs-client": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/sockjs-client/-/sockjs-client-1.1.1.tgz", - "integrity": "sha512-DaTdN4kfPNxu0otmQlxhmYeCjtY8cHmJsU6LqiFOrhytIkx8Txq06PwAWYzha7nMkEyju44a3NDpqCKiHn/NZQ==" - }, "@types/stack-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", @@ -11019,14 +10913,6 @@ "integrity": "sha512-KqtAuIfdNfZR5sJY1Dixr2Is4ZvcCqhb0dZpCOt5dGEFiMzoIbjkTSzUb4QKTCsP+WNpGwUjAFIZrnZvUxxkhw==", "peer": true }, - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "requires": { - "ms": "^2.1.1" - } - }, "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", @@ -11211,14 +11097,6 @@ "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==", "peer": true }, - "eventsource": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-1.0.7.tgz", - "integrity": "sha512-4Ln17+vVT0k8aWq+t/bF5arcS3EpT9gYtW66EPacdj/mAFevznsnyoHLPy2BA8gbIQeIHoPsvwmfBftfcG//BQ==", - "requires": { - "original": "^1.0.0" - } - }, "exec-sh": { "version": "0.3.6", "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", @@ -11428,14 +11306,6 @@ "time-stamp": "^1.0.0" } }, - "faye-websocket": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.3.tgz", - "integrity": "sha512-D2y4bovYpzziGgbHYtGCMjlJM36vAl/y+xUyn1C+FVx8szd1E+86KwVw6XvYSzOP8iMpm1X0I4xJD+QtUb36OA==", - "requires": { - "websocket-driver": ">=0.5.1" - } - }, "fb-watchman": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", @@ -11821,11 +11691,6 @@ } } }, - "http-parser-js": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.2.tgz", - "integrity": "sha512-opCO9ASqg5Wy2FNo7A0sxy71yGbbkJJXLdgMK04Tcypw9jr2MgWbyubb0+WdmDmGnFflO7fRbqbaihh/ENDlRQ==" - }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -11870,7 +11735,8 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "peer": true }, "inquirer": { "version": "3.3.0", @@ -12287,11 +12153,6 @@ "jsonify": "~0.0.0" } }, - "json3": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", - "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==" - }, "json5": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", @@ -13280,7 +13141,8 @@ "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "peer": true }, "mute-stream": { "version": "0.0.7", @@ -13598,14 +13460,6 @@ "wcwidth": "^1.0.1" } }, - "original": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/original/-/original-1.0.2.tgz", - "integrity": "sha512-hyBVl6iqqUOJ8FqRe+l/gS8H+kKYjrEndd5Pm1MfBtsEKA038HkkdbAl/72EAXGyonD/PFsvmVG+EvcIpliMBg==", - "requires": { - "url-parse": "^1.4.3" - } - }, "os-locale": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", @@ -13904,11 +13758,6 @@ "once": "^1.3.1" } }, - "querystringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.1.1.tgz", - "integrity": "sha512-w7fLxIRCRT7U8Qu53jQnJyPkYZIaR4n5151KMfcJlO/A9397Wxb1amJvROTK6TOnp7PfoAmg/qXiNHI+08jRfA==" - }, "range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -14286,11 +14135,6 @@ "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", "peer": true }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" - }, "resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", @@ -14382,11 +14226,6 @@ } } }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, "safe-regex": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", @@ -14793,19 +14632,6 @@ } } }, - "sockjs-client": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.4.0.tgz", - "integrity": "sha512-5zaLyO8/nri5cua0VtOrFXBPK1jbL4+1cebT/mmKA1E1ZXOvJrII75bPu0l0k843G/+iAbhEqzyKr0w/eCCj7g==", - "requires": { - "debug": "^3.2.5", - "eventsource": "^1.0.7", - "faye-websocket": "~0.11.1", - "inherits": "^2.0.3", - "json3": "^3.3.2", - "url-parse": "^1.4.3" - } - }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -15382,15 +15208,6 @@ "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", "peer": true }, - "url-parse": { - "version": "1.4.7", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz", - "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==", - "requires": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", @@ -15454,21 +15271,6 @@ "defaults": "^1.0.3" } }, - "websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "requires": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - } - }, - "websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" - }, "whatwg-fetch": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz", diff --git a/package.json b/package.json index ad7b843..9c11bcd 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "homepage": "https://github.com/livechat/react-native-livechat#readme", "dependencies": { "@livechat/customer-auth": "^0.4.0-alpha.6", - "@livechat/customer-sdk": "^2.0.4", + "@livechat/customer-sdk": "^3.0.0", "@livechat/livechat-visitor-sdk": "0.37.0-4", "better-npm-audit": "^1.8.1", "react-native-animatable": "^1.3.3",