Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/companion-client

Package Overview
Dependencies
Maintainers
6
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/companion-client - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

7

CHANGELOG.md
# @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 @@

2

lib/RequestClient.js

@@ -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

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