@uppy/utils
Advanced tools
Comparing version 5.5.0 to 5.5.1
# @uppy/utils | ||
## 5.5.1 | ||
Released: 2023-09-29 | ||
Included in: Uppy v3.17.0 | ||
- @uppy/utils: test: migrate to Vitest for Uppy core and Uppy plugins (Antoine du Hamel / #4700) | ||
## 5.5.0 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@uppy/utils", | ||
"description": "Shared utility functions for Uppy Core and plugins maintained by the Uppy team.", | ||
"version": "5.5.0", | ||
"version": "5.5.1", | ||
"license": "MIT", | ||
@@ -75,4 +75,4 @@ "types": "types/index.d.ts", | ||
"devDependencies": { | ||
"@jest/globals": "^29.0.0" | ||
"vitest": "^0.34.5" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it, jest } from '@jest/globals' | ||
import { describe, expect, it, vi } from 'vitest' | ||
import { AbortController, AbortSignal } from './AbortController.js' | ||
@@ -17,3 +17,3 @@ | ||
const controller = new AbortController() | ||
const callback = jest.fn() | ||
const callback = vi.fn() | ||
@@ -31,4 +31,4 @@ controller.signal.addEventListener('abort', callback) | ||
const controller = new AbortController() | ||
const callback = jest.fn() | ||
const callback2 = jest.fn() | ||
const callback = vi.fn() | ||
const callback2 = vi.fn() | ||
@@ -35,0 +35,0 @@ controller.signal.addEventListener('abort', callback) |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import dataURItoBlob from './dataURItoBlob.js' | ||
@@ -3,0 +3,0 @@ import sampleImageDataURI from './sampleImageDataURI.js' |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import dataURItoFile from './dataURItoFile.js' | ||
@@ -3,0 +3,0 @@ import sampleImageDataURI from './sampleImageDataURI.js' |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import { AbortController } from './AbortController.js' | ||
@@ -3,0 +3,0 @@ import delay from './delay.js' |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import emaFilter from './emaFilter.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import ErrorWithCause from './ErrorWithCause.js' | ||
@@ -3,0 +3,0 @@ import NetworkError from './NetworkError.js' |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import findIndex from './findIndex.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import generateFileID from './generateFileID.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import getBytesRemaining from './getBytesRemaining.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import getETA from './getETA.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import getFileNameAndExtension from './getFileNameAndExtension.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import getFileType from './getFileType.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import getFileTypeExtension from './getFileTypeExtension.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import getSocketHost from './getSocketHost.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import getSpeed from './getSpeed.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import isMobileDevice from './isMobileDevice.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import isNetworkError from './isNetworkError.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import isObjectURL from './isObjectURL.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import isPreviewSupported from './isPreviewSupported.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { afterEach, beforeEach, describe, expect, xit } from '@jest/globals' | ||
import { afterEach, beforeEach, describe, expect, it } from 'vitest' | ||
import isTouchDevice from './isTouchDevice.js' | ||
@@ -18,3 +18,3 @@ | ||
xit("should return true if it's a touch device", () => { | ||
it.skip("should return true if it's a touch device", () => { | ||
expect(isTouchDevice()).toEqual(true) | ||
@@ -21,0 +21,0 @@ delete globalThis.window.ontouchstart |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import prettyETA from './prettyETA.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import { RateLimitedQueue } from './RateLimitedQueue.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import secondsToTime from './secondsToTime.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import settle from './settle.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import toArray from './toArray.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import Translator from './Translator.js' | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { describe, expect, it } from '@jest/globals' | ||
import { describe, expect, it } from 'vitest' | ||
import truncateString from './truncateString.js' | ||
@@ -3,0 +3,0 @@ |
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
291594