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 3.4.1 to 3.4.2

lib/findIndex.js

11

lib/RateLimitedQueue.js

@@ -1,12 +0,3 @@

/**
* Array.prototype.findIndex ponyfill for old browsers.
*/
function findIndex(array, predicate) {
for (var i = 0; i < array.length; i++) {
if (predicate(array[i])) return i;
}
var findIndex = require('@uppy/utils/lib/findIndex');
return -1;
}
function createCancelError() {

@@ -13,0 +4,0 @@ return new Error('Cancelled');

{
"name": "@uppy/utils",
"description": "Shared utility functions for Uppy Core and plugins maintained by the Uppy team.",
"version": "3.4.1",
"version": "3.4.2",
"license": "MIT",

@@ -24,3 +24,3 @@ "main": "lib/index.js",

},
"gitHead": "2eabc3309983165b3f275c7b6f21fc0e899d11ba"
"gitHead": "4bf107236340dc98f8584f15a06e13ffa9fc31f4"
}

@@ -8,3 +8,5 @@ const delay = require('./delay')

await delay(100)
expect(Date.now() - start).toBeGreaterThanOrEqual(100)
// 100 is less of a rule, more of a guideline
// according to CI
expect(Date.now() - start).toBeGreaterThanOrEqual(90)
})

@@ -11,0 +13,0 @@

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

/**
* Array.prototype.findIndex ponyfill for old browsers.
*/
function findIndex (array, predicate) {
for (let i = 0; i < array.length; i++) {
if (predicate(array[i])) return i
}
return -1
}
const findIndex = require('@uppy/utils/lib/findIndex')

@@ -11,0 +3,0 @@ function createCancelError () {

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