@uppy/companion-client
Advanced tools
Comparing version 3.1.1 to 3.1.2
# @uppy/companion-client | ||
## 3.1.2 | ||
Released: 2023-04-04 | ||
Included in: Uppy v3.7.0 | ||
- @uppy/companion-client: do not open socket more than once (Artur Paikin) | ||
## 3.1.1 | ||
@@ -4,0 +11,0 @@ |
@@ -15,3 +15,3 @@ 'use strict'; | ||
const packageJson = { | ||
"version": "3.1.1" | ||
"version": "3.1.2" | ||
}; // Remove the trailing slash so we can always safely append /xyz. | ||
@@ -18,0 +18,0 @@ |
@@ -73,2 +73,3 @@ let _Symbol$for, _Symbol$for2; | ||
open() { | ||
if (_classPrivateFieldLooseBase(this, _socket)[_socket] != null) return; | ||
_classPrivateFieldLooseBase(this, _socket)[_socket] = new WebSocket(this.opts.target); | ||
@@ -88,2 +89,3 @@ | ||
_classPrivateFieldLooseBase(this, _isOpen)[_isOpen] = false; | ||
_classPrivateFieldLooseBase(this, _socket)[_socket] = null; | ||
}; | ||
@@ -90,0 +92,0 @@ |
{ | ||
"name": "@uppy/companion-client", | ||
"description": "Client library for communication with Companion. Intended for use in Uppy plugins.", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^5.1.1", | ||
"@uppy/utils": "^5.2.0", | ||
"namespace-emitter": "^2.0.1" | ||
@@ -28,0 +28,0 @@ }, |
@@ -27,2 +27,4 @@ import ee from 'namespace-emitter' | ||
open () { | ||
if (this.#socket != null) return | ||
this.#socket = new WebSocket(this.opts.target) | ||
@@ -41,2 +43,3 @@ | ||
this.#isOpen = false | ||
this.#socket = null | ||
} | ||
@@ -43,0 +46,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79359
1116
Updated@uppy/utils@^5.2.0