@uppy/utils
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -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
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
227689
176
2970