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

@uppy/utils

Package Overview
Dependencies
Maintainers
5
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/utils - npm Package Compare versions

Comparing version 6.0.0-beta.7 to 6.0.0-beta.8

8

CHANGELOG.md
# @uppy/utils
## 6.0.0-beta.8
Released: 2024-06-04
Included in: Uppy v4.0.0-beta.10
- @uppy/utils: remove unused `settle` (Antoine du Hamel / #5210)
- @uppy/aws-s3,@uppy/tus,@uppy/utils,@uppy/xhr-upload: remove `uploader` from `upload-progress` event (Mikael Finstad / #5200)
## 6.0.0-beta.5

@@ -4,0 +12,0 @@

1

lib/CompanionClientProvider.d.ts

@@ -25,2 +25,3 @@ export type RequestOptions = {

logout<ResBody>(options?: RequestOptions): Promise<ResBody>;
fetchPreAuthToken(): Promise<void>;
list<ResBody>(directory: string | undefined, options: RequestOptions): Promise<ResBody>;

@@ -27,0 +28,0 @@ }

4

lib/emitSocketProgress.js

@@ -9,6 +9,6 @@ import throttle from 'lodash/throttle.js';

if (progress) {
var _file$progress$upload;
uploader.uppy.log(`Upload progress: ${progress}`);
uploader.uppy.emit('upload-progress', file, {
// @ts-expect-error todo remove in next major
uploader,
uploadStarted: (_file$progress$upload = file.progress.uploadStarted) != null ? _file$progress$upload : 0,
bytesUploaded,

@@ -15,0 +15,0 @@ bytesTotal

@@ -1,4 +0,4 @@

function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }
var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; }
var _uppy = /*#__PURE__*/_classPrivateFieldLooseKey("uppy");

@@ -5,0 +5,0 @@ var _events = /*#__PURE__*/_classPrivateFieldLooseKey("events");

@@ -1,4 +0,4 @@

function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }
var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; }
var _aliveTimer = /*#__PURE__*/_classPrivateFieldLooseKey("aliveTimer");

@@ -5,0 +5,0 @@ var _isDone = /*#__PURE__*/_classPrivateFieldLooseKey("isDone");

@@ -1,4 +0,4 @@

function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }
var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; }
function createCancelError(cause) {

@@ -5,0 +5,0 @@ return new Error('Cancelled', {

@@ -1,4 +0,4 @@

function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; }
function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }
var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
function _classPrivateFieldLooseKey(e) { return "__private_" + id++ + "_" + e; }
// We're using a generic because languages have different plural rules.

@@ -5,0 +5,0 @@

@@ -1,2 +0,2 @@

function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
/**

@@ -3,0 +3,0 @@ * Adapted from preact-virtual-list: https://github.com/developit/preact-virtual-list

{
"name": "@uppy/utils",
"description": "Shared utility functions for Uppy Core and plugins maintained by the Uppy team.",
"version": "6.0.0-beta.7",
"version": "6.0.0-beta.8",
"license": "MIT",

@@ -49,3 +49,2 @@ "type": "module",

"./lib/secondsToTime": "./lib/secondsToTime.js",
"./lib/settle": "./lib/settle.js",
"./lib/toArray": "./lib/toArray.js",

@@ -52,0 +51,0 @@ "./lib/FOCUSABLE_ELEMENTS": "./lib/FOCUSABLE_ELEMENTS.js",

@@ -26,2 +26,3 @@ export type RequestOptions = {

logout<ResBody>(options?: RequestOptions): Promise<ResBody>
fetchPreAuthToken(): Promise<void>
list<ResBody>(

@@ -28,0 +29,0 @@ directory: string | undefined,

@@ -18,4 +18,3 @@ import throttle from 'lodash/throttle.js'

uploader.uppy.emit('upload-progress', file, {
// @ts-expect-error todo remove in next major
uploader,
uploadStarted: file.progress.uploadStarted ?? 0,
bytesUploaded,

@@ -22,0 +21,0 @@ bytesTotal,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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