@uppy/utils
Advanced tools
Comparing version 4.1.0 to 5.0.0-beta
@@ -1,21 +0,11 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.createAbortError = exports.AbortSignal = exports.AbortController = void 0; | ||
/** | ||
* Little AbortController proxy module so we can swap out the implementation easily later. | ||
*/ | ||
const { | ||
export const { | ||
AbortController | ||
} = globalThis; | ||
exports.AbortController = AbortController; | ||
const { | ||
export const { | ||
AbortSignal | ||
} = globalThis; | ||
exports.AbortSignal = AbortSignal; | ||
const createAbortError = function (message) { | ||
export const createAbortError = function (message) { | ||
if (message === void 0) { | ||
@@ -26,4 +16,2 @@ message = 'Aborted'; | ||
return new DOMException(message, 'AbortError'); | ||
}; | ||
exports.createAbortError = createAbortError; | ||
}; |
@@ -1,9 +0,1 @@ | ||
"use strict"; | ||
function canvasToBlob(canvas, type, quality) { | ||
return new Promise(resolve => { | ||
canvas.toBlob(resolve, type, quality); | ||
}); | ||
} | ||
/** | ||
@@ -15,2 +7,6 @@ * Save a <canvas> element's content to a Blob object. | ||
*/ | ||
module.exports = canvasToBlob; | ||
export default function canvasToBlob(canvas, type, quality) { | ||
return new Promise(resolve => { | ||
canvas.toBlob(resolve, type, quality); | ||
}); | ||
} |
@@ -1,6 +0,3 @@ | ||
"use strict"; | ||
const DATA_URL_PATTERN = /^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/; | ||
function dataURItoBlob(dataURI, opts, toFile) { | ||
export default function dataURItoBlob(dataURI, opts, toFile) { | ||
var _ref, _opts$mimeType; | ||
@@ -37,4 +34,2 @@ | ||
}); | ||
} | ||
module.exports = dataURItoBlob; | ||
} |
@@ -1,9 +0,4 @@ | ||
"use strict"; | ||
const dataURItoBlob = require("./dataURItoBlob.js"); | ||
function dataURItoFile(dataURI, opts) { | ||
import dataURItoBlob from './dataURItoBlob.js'; | ||
export default function dataURItoFile(dataURI, opts) { | ||
return dataURItoBlob(dataURI, opts, true); | ||
} | ||
module.exports = dataURItoFile; | ||
} |
@@ -1,6 +0,11 @@ | ||
"use strict"; | ||
import { createAbortError } from './AbortController.js'; | ||
/** | ||
* Return a Promise that resolves after `ms` milliseconds. | ||
* | ||
* @param {number} ms - Number of milliseconds to wait. | ||
* @param {{ signal?: AbortSignal }} [opts] - An abort signal that can be used to cancel the delay early. | ||
* @returns {Promise<void>} A Promise that resolves after the given amount of `ms`. | ||
*/ | ||
var _AbortController = require("./AbortController.js"); | ||
function delay(ms, opts) { | ||
export default function delay(ms, opts) { | ||
return new Promise((resolve, reject) => { | ||
@@ -10,3 +15,3 @@ var _opts$signal, _opts$signal2; | ||
if (opts != null && (_opts$signal = opts.signal) != null && _opts$signal.aborted) { | ||
return reject((0, _AbortController.createAbortError)()); | ||
return reject(createAbortError()); | ||
} | ||
@@ -24,3 +29,3 @@ | ||
reject((0, _AbortController.createAbortError)()); | ||
reject(createAbortError()); | ||
} | ||
@@ -38,11 +43,2 @@ | ||
}); | ||
} | ||
/** | ||
* Return a Promise that resolves after `ms` milliseconds. | ||
* | ||
* @param {number} ms - Number of milliseconds to wait. | ||
* @param {{ signal?: AbortSignal }} [opts] - An abort signal that can be used to cancel the delay early. | ||
* @returns {Promise<void>} A Promise that resolves after the given amount of `ms`. | ||
*/ | ||
module.exports = delay; | ||
} |
@@ -1,5 +0,3 @@ | ||
"use strict"; | ||
import throttle from 'lodash.throttle'; | ||
const throttle = require("lodash.throttle"); | ||
function emitSocketProgress(uploader, progressData, file) { | ||
@@ -22,5 +20,5 @@ const { | ||
module.exports = throttle(emitSocketProgress, 300, { | ||
export default throttle(emitSocketProgress, 300, { | ||
leading: true, | ||
trailing: true | ||
}); |
@@ -1,5 +0,3 @@ | ||
"use strict"; | ||
import hasProperty from './hasProperty.js'; | ||
const hasProperty = require("./hasProperty.js"); | ||
class ErrorWithCause extends Error { | ||
@@ -21,2 +19,2 @@ constructor(message, options) { | ||
module.exports = ErrorWithCause; | ||
export default ErrorWithCause; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
@@ -13,3 +11,7 @@ | ||
class EventTracker { | ||
/** | ||
* Create a wrapper around an event emitter with a `remove` method to remove | ||
* all events that were added using the wrapped emitter. | ||
*/ | ||
export default class EventTracker { | ||
constructor(emitter) { | ||
@@ -39,8 +41,2 @@ Object.defineProperty(this, _emitter, { | ||
} | ||
/** | ||
* Create a wrapper around an event emitter with a `remove` method to remove | ||
* all events that were added using the wrapped emitter. | ||
*/ | ||
module.exports = EventTracker; | ||
} |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
const NetworkError = require("./NetworkError.js"); | ||
import NetworkError from './NetworkError.js'; | ||
/** | ||
@@ -8,4 +6,3 @@ * Wrapper around window.fetch that throws a NetworkError when appropriate | ||
function fetchWithNetworkError() { | ||
export default function fetchWithNetworkError() { | ||
return fetch(...arguments).catch(err => { | ||
@@ -18,4 +15,2 @@ if (err.name === 'AbortError') { | ||
}); | ||
} | ||
module.exports = fetchWithNetworkError; | ||
} |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
const isDOMElement = require("./isDOMElement.js"); | ||
import isDOMElement from './isDOMElement.js'; | ||
/** | ||
@@ -11,4 +9,3 @@ * Find one or more DOM elements. | ||
function findAllDOMElements(element) { | ||
export default function findAllDOMElements(element) { | ||
if (typeof element === 'string') { | ||
@@ -24,4 +21,2 @@ const elements = document.querySelectorAll(element); | ||
return null; | ||
} | ||
module.exports = findAllDOMElements; | ||
} |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
const isDOMElement = require("./isDOMElement.js"); | ||
import isDOMElement from './isDOMElement.js'; | ||
/** | ||
@@ -11,4 +9,3 @@ * Find a DOM element. | ||
function findDOMElement(element, context) { | ||
export default function findDOMElement(element, context) { | ||
if (context === void 0) { | ||
@@ -27,4 +24,2 @@ context = document; | ||
return null; | ||
} | ||
module.exports = findDOMElement; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,2 +6,2 @@ * @param {Array} array | ||
*/ | ||
module.exports = Function.prototype.call.bind(Array.prototype.findIndex); | ||
export default Function.prototype.call.bind(Array.prototype.findIndex); |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = ['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'input:not([disabled]):not([inert]):not([aria-hidden])', 'select:not([disabled]):not([inert]):not([aria-hidden])', 'textarea:not([disabled]):not([inert]):not([aria-hidden])', 'button:not([disabled]):not([inert]):not([aria-hidden])', 'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'object:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])', '[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', '[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])']; | ||
export default ['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'input:not([disabled]):not([inert]):not([aria-hidden])', 'select:not([disabled]):not([inert]):not([aria-hidden])', 'textarea:not([disabled]):not([inert]):not([aria-hidden])', 'button:not([disabled]):not([inert]):not([aria-hidden])', 'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'object:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])', '[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', '[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])']; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
function encodeCharacter(character) { | ||
@@ -23,3 +21,3 @@ return character.charCodeAt(0).toString(32); | ||
function generateFileID(file) { | ||
export default function generateFileID(file) { | ||
// It's tempting to do `[items].filter(Boolean).join('-')` here, but that | ||
@@ -50,4 +48,2 @@ // is slower! simple string concatenation is fast | ||
return id; | ||
} | ||
module.exports = generateFileID; | ||
} |
@@ -1,7 +0,3 @@ | ||
"use strict"; | ||
function getBytesRemaining(fileProgress) { | ||
export default function getBytesRemaining(fileProgress) { | ||
return fileProgress.bytesTotal - fileProgress.bytesUploaded; | ||
} | ||
module.exports = getBytesRemaining; | ||
} |
@@ -1,6 +0,3 @@ | ||
"use strict"; | ||
const webkitGetAsEntryApi = require("./utils/webkitGetAsEntryApi/index.js"); | ||
const fallbackApi = require("./utils/fallbackApi.js"); | ||
import webkitGetAsEntryApi from './utils/webkitGetAsEntryApi/index.js'; | ||
import fallbackApi from './utils/fallbackApi.js'; | ||
/** | ||
@@ -21,4 +18,3 @@ * Returns a promise that resolves to the array of dropped files (if a folder is | ||
function getDroppedFiles(dataTransfer, _temp) { | ||
export default function getDroppedFiles(dataTransfer, _temp) { | ||
var _dataTransfer$items; | ||
@@ -36,4 +32,2 @@ | ||
return fallbackApi(dataTransfer); | ||
} | ||
module.exports = getDroppedFiles; | ||
} |
@@ -1,11 +0,6 @@ | ||
"use strict"; | ||
import toArray from '../../toArray.js'; // .files fallback, should be implemented in any browser | ||
const toArray = require("../../toArray.js"); // .files fallback, should be implemented in any browser | ||
function fallbackApi(dataTransfer) { | ||
export default function fallbackApi(dataTransfer) { | ||
const files = toArray(dataTransfer.files); | ||
return Promise.resolve(files); | ||
} | ||
module.exports = fallbackApi; | ||
} |
@@ -1,4 +0,10 @@ | ||
"use strict"; | ||
function getFilesAndDirectoriesFromDirectory(directoryReader, oldEntries, logDropError, _ref) { | ||
/** | ||
* Recursive function, calls the original callback() when the directory is entirely parsed. | ||
* | ||
* @param {FileSystemDirectoryReader} directoryReader | ||
* @param {Array} oldEntries | ||
* @param {Function} logDropError | ||
* @param {Function} callback - called with ([ all files and directories in that directoryReader ]) | ||
*/ | ||
export default function getFilesAndDirectoriesFromDirectory(directoryReader, oldEntries, logDropError, _ref) { | ||
let { | ||
@@ -25,12 +31,2 @@ onSuccess | ||
}); | ||
} | ||
/** | ||
* Recursive function, calls the original callback() when the directory is entirely parsed. | ||
* | ||
* @param {FileSystemDirectoryReader} directoryReader | ||
* @param {Array} oldEntries | ||
* @param {Function} logDropError | ||
* @param {Function} callback - called with ([ all files and directories in that directoryReader ]) | ||
*/ | ||
module.exports = getFilesAndDirectoriesFromDirectory; | ||
} |
@@ -1,13 +0,1 @@ | ||
"use strict"; | ||
function getRelativePath(fileEntry) { | ||
// fileEntry.fullPath - "/simpsons/hi.jpeg" or undefined (for browsers that don't support it) | ||
// fileEntry.name - "hi.jpeg" | ||
if (!fileEntry.fullPath || fileEntry.fullPath === `/${fileEntry.name}`) { | ||
return null; | ||
} | ||
return fileEntry.fullPath; | ||
} | ||
/** | ||
@@ -22,2 +10,10 @@ * Get the relative path from the FileEntry#fullPath, because File#webkitRelativePath is always '', at least onDrop. | ||
*/ | ||
module.exports = getRelativePath; | ||
export default function getRelativePath(fileEntry) { | ||
// fileEntry.fullPath - "/simpsons/hi.jpeg" or undefined (for browsers that don't support it) | ||
// fileEntry.name - "hi.jpeg" | ||
if (!fileEntry.fullPath || fileEntry.fullPath === `/${fileEntry.name}`) { | ||
return null; | ||
} | ||
return fileEntry.fullPath; | ||
} |
@@ -1,10 +0,5 @@ | ||
"use strict"; | ||
const getRelativePath = require("./getRelativePath.js"); | ||
const getFilesAndDirectoriesFromDirectory = require("./getFilesAndDirectoriesFromDirectory.js"); | ||
const toArray = require("../../../toArray.js"); | ||
function webkitGetAsEntryApi(dataTransfer, logDropError) { | ||
import getRelativePath from './getRelativePath.js'; | ||
import getFilesAndDirectoriesFromDirectory from './getFilesAndDirectoriesFromDirectory.js'; | ||
import toArray from '../../../toArray.js'; | ||
export default function webkitGetAsEntryApi(dataTransfer, logDropError) { | ||
const files = []; | ||
@@ -50,4 +45,2 @@ const rootPromises = []; | ||
return Promise.all(rootPromises).then(() => files); | ||
} | ||
module.exports = webkitGetAsEntryApi; | ||
} |
@@ -1,8 +0,4 @@ | ||
"use strict"; | ||
const getSpeed = require("./getSpeed.js"); | ||
const getBytesRemaining = require("./getBytesRemaining.js"); | ||
function getETA(fileProgress) { | ||
import getSpeed from './getSpeed.js'; | ||
import getBytesRemaining from './getBytesRemaining.js'; | ||
export default function getETA(fileProgress) { | ||
if (!fileProgress.bytesUploaded) return 0; | ||
@@ -13,4 +9,2 @@ const uploadSpeed = getSpeed(fileProgress); | ||
return secondsRemaining; | ||
} | ||
module.exports = getETA; | ||
} |
@@ -1,4 +0,8 @@ | ||
"use strict"; | ||
function getFileNameAndExtension(fullFileName) { | ||
/** | ||
* Takes a full filename string and returns an object {name, extension} | ||
* | ||
* @param {string} fullFileName | ||
* @returns {object} {name, extension} | ||
*/ | ||
export default function getFileNameAndExtension(fullFileName) { | ||
const lastDot = fullFileName.lastIndexOf('.'); // these count as no extension: "no-dot", "trailing-dot." | ||
@@ -17,10 +21,2 @@ | ||
}; | ||
} | ||
/** | ||
* Takes a full filename string and returns an object {name, extension} | ||
* | ||
* @param {string} fullFileName | ||
* @returns {object} {name, extension} | ||
*/ | ||
module.exports = getFileNameAndExtension; | ||
} |
@@ -1,8 +0,4 @@ | ||
"use strict"; | ||
const getFileNameAndExtension = require("./getFileNameAndExtension.js"); | ||
const mimeTypes = require("./mimeTypes.js"); | ||
function getFileType(file) { | ||
import getFileNameAndExtension from './getFileNameAndExtension.js'; | ||
import mimeTypes from './mimeTypes.js'; | ||
export default function getFileType(file) { | ||
var _getFileNameAndExtens; | ||
@@ -20,4 +16,2 @@ | ||
return 'application/octet-stream'; | ||
} | ||
module.exports = getFileType; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const mimeToExtensions = { | ||
@@ -21,4 +19,3 @@ 'audio/mp3': 'mp3', | ||
}; | ||
function getFileTypeExtension(mimeType) { | ||
export default function getFileTypeExtension(mimeType) { | ||
// Remove the ; bit in 'video/x-matroska;codecs=avc1' | ||
@@ -28,4 +25,2 @@ // eslint-disable-next-line no-param-reassign | ||
return mimeToExtensions[mimeType] || null; | ||
} | ||
module.exports = getFileTypeExtension; | ||
} |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
function getSocketHost(url) { | ||
export default function getSocketHost(url) { | ||
// get the host domain | ||
@@ -9,4 +7,2 @@ const regex = /^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i; | ||
return `${socketProtocol}://${host}`; | ||
} | ||
module.exports = getSocketHost; | ||
} |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
function getSpeed(fileProgress) { | ||
export default function getSpeed(fileProgress) { | ||
if (!fileProgress.bytesUploaded) return 0; | ||
@@ -8,4 +6,2 @@ const timeElapsed = Date.now() - fileProgress.uploadStarted; | ||
return uploadSpeed; | ||
} | ||
module.exports = getSpeed; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
/** | ||
@@ -26,2 +24,2 @@ * Get the declared text direction for an element. | ||
module.exports = getTextDirection; | ||
export default getTextDirection; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
/** | ||
@@ -17,3 +15,3 @@ * Adds zero to strings shorter than two characters. | ||
function getTimeStamp() { | ||
export default function getTimeStamp() { | ||
const date = new Date(); | ||
@@ -24,4 +22,2 @@ const hours = pad(date.getHours()); | ||
return `${hours}:${minutes}:${seconds}`; | ||
} | ||
module.exports = getTimeStamp; | ||
} |
@@ -1,7 +0,3 @@ | ||
"use strict"; | ||
function has(object, key) { | ||
export default function has(object, key) { | ||
return Object.prototype.hasOwnProperty.call(object, key); | ||
} | ||
module.exports = has; | ||
} |
@@ -1,7 +0,1 @@ | ||
"use strict"; | ||
function isDOMElement(obj) { | ||
return (obj == null ? void 0 : obj.nodeType) === Node.ELEMENT_NODE; | ||
} | ||
/** | ||
@@ -12,2 +6,4 @@ * Check if an object is a DOM element. Duck-typing based on `nodeType`. | ||
*/ | ||
module.exports = isDOMElement; | ||
export default function isDOMElement(obj) { | ||
return (obj == null ? void 0 : obj.nodeType) === Node.ELEMENT_NODE; | ||
} |
@@ -1,4 +0,7 @@ | ||
"use strict"; | ||
function isDragDropSupported() { | ||
/** | ||
* Checks if the browser supports Drag & Drop (not supported on mobile devices, for example). | ||
* | ||
* @returns {boolean} | ||
*/ | ||
export default function isDragDropSupported() { | ||
const div = document.body; | ||
@@ -19,9 +22,2 @@ | ||
return true; | ||
} | ||
/** | ||
* Checks if the browser supports Drag & Drop (not supported on mobile devices, for example). | ||
* | ||
* @returns {boolean} | ||
*/ | ||
module.exports = isDragDropSupported; | ||
} |
@@ -1,11 +0,1 @@ | ||
"use strict"; | ||
function isMobileDevice() { | ||
if (typeof window !== 'undefined' && window.navigator && window.navigator.userAgent && window.navigator.userAgent.match(/Mobi/)) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
/** | ||
@@ -17,2 +7,8 @@ * Checks if current device reports itself as “mobile”. | ||
*/ | ||
module.exports = isMobileDevice; | ||
export default function isMobileDevice() { | ||
if (typeof window !== 'undefined' && window.navigator && window.navigator.userAgent && window.navigator.userAgent.match(/Mobi/)) { | ||
return true; | ||
} | ||
return false; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
function isNetworkError(xhr) { | ||
@@ -11,2 +9,2 @@ if (!xhr) { | ||
module.exports = isNetworkError; | ||
export default isNetworkError; |
@@ -1,7 +0,1 @@ | ||
"use strict"; | ||
function isObjectURL(url) { | ||
return url.startsWith('blob:'); | ||
} | ||
/** | ||
@@ -13,2 +7,4 @@ * Check if a URL string is an object URL from `URL.createObjectURL`. | ||
*/ | ||
module.exports = isObjectURL; | ||
export default function isObjectURL(url) { | ||
return url.startsWith('blob:'); | ||
} |
@@ -1,9 +0,5 @@ | ||
"use strict"; | ||
function isPreviewSupported(fileType) { | ||
export default function isPreviewSupported(fileType) { | ||
if (!fileType) return false; // list of images that browsers can preview | ||
return /^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(fileType); | ||
} | ||
module.exports = isPreviewSupported; | ||
} |
@@ -1,7 +0,3 @@ | ||
"use strict"; | ||
function isTouchDevice() { | ||
export default function isTouchDevice() { | ||
return 'ontouchstart' in window || 'maxTouchPoints' in navigator; | ||
} | ||
module.exports = isTouchDevice; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
// ___Why not add the mime-types package? | ||
@@ -7,3 +5,3 @@ // It's 19.7kB gzipped, and we only need mime types for well-known extensions (for file previews). | ||
// https://github.com/jshttp/mime-db/blob/master/db.json | ||
module.exports = { | ||
export default { | ||
md: 'text/markdown', | ||
@@ -10,0 +8,0 @@ markdown: 'text/markdown', |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
class NetworkError extends Error { | ||
@@ -17,2 +15,2 @@ constructor(error, xhr) { | ||
module.exports = NetworkError; | ||
export default NetworkError; |
@@ -1,6 +0,3 @@ | ||
"use strict"; | ||
const secondsToTime = require("./secondsToTime.js"); | ||
function prettyETA(seconds) { | ||
import secondsToTime from './secondsToTime.js'; | ||
export default function prettyETA(seconds) { | ||
const time = secondsToTime(seconds); // Only display hours and minutes if they are greater than 0 but always | ||
@@ -14,4 +11,2 @@ // display minutes if hours is being displayed | ||
return `${hoursStr}${minutesStr}${secondsStr}`; | ||
} | ||
module.exports = prettyETA; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
@@ -67,2 +65,2 @@ | ||
module.exports = ProgressTimeout; | ||
export default ProgressTimeout; |
@@ -1,8 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.internalRateLimitedQueue = exports.RateLimitedQueue = void 0; | ||
function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
@@ -46,3 +39,3 @@ | ||
class RateLimitedQueue { | ||
export class RateLimitedQueue { | ||
constructor(limit) { | ||
@@ -239,4 +232,2 @@ Object.defineProperty(this, _dequeue, { | ||
exports.RateLimitedQueue = RateLimitedQueue; | ||
function _call2(fn) { | ||
@@ -337,3 +328,2 @@ _classPrivateFieldLooseBase(this, _activeRequests)[_activeRequests] += 1; | ||
const internalRateLimitedQueue = Symbol('__queue'); | ||
exports.internalRateLimitedQueue = internalRateLimitedQueue; | ||
export const internalRateLimitedQueue = Symbol('__queue'); |
@@ -1,6 +0,3 @@ | ||
"use strict"; | ||
const getFileNameAndExtension = require("./getFileNameAndExtension.js"); | ||
function remoteFileObjToLocal(file) { | ||
import getFileNameAndExtension from './getFileNameAndExtension.js'; | ||
export default function remoteFileObjToLocal(file) { | ||
return { ...file, | ||
@@ -10,4 +7,2 @@ type: file.mimeType, | ||
}; | ||
} | ||
module.exports = remoteFileObjToLocal; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTExMWFhUXGBgbFxgYFxcXGBgbFxcXFxcYGBgYHSggGRolHRcVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGi0dHR0tLS0tLSstLS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tKy0tLS0tKy0tOCstLS0tLTc3Lf/AABEIAMMBAwMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAAEBQIDBgABBwj/xAA9EAABAwIEBAMHAgUDAwUAAAABAAIRAyEEEjFBBSJRYXGBkQYTMqGxwfDR4RQjQlLxB2KCM3KSFRaywtL/xAAZAQADAQEBAAAAAAAAAAAAAAABAgMABAX/xAAnEQEBAAICAgEDAwUAAAAAAAAAAQIRAyESMUETIlEEYeEyUnGhsf/aAAwDAQACEQMRAD8Ay3AcRWxdX+Y6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gNflEWIBbpIuj8Rd4aYgtvAANy6RIvHZcuTQq3B0GjClwAkh89NW7ablL+KtHIIEOqBpECINMGI2Er1ciF9jsRXd7zLNhEWFuQFQ9qCf4uhTk5HSS2TBhoj6leLkL7ZbSrOa1jwSHFwk9czHOM+YHoveKUWto52iHOc0OPW7dVy5Fi4PJc4TsPLXTpoEZiMIxtYACxpSZJdMtpzcnS5tovFy1avfctzMbt7smJNjmAkdDzHRKuCYhz2guM8rjoNiLwFy5CN8CamnWJaJvbMRF0RRpge8MAkUrSM0cw6+JXq5GssxDyWXJ/6rGRNg2BYDQeSnhMMyo9+cZuY7n+kkDTsuXIVqsw2GZDjlEh5AsDAgmB0uhuKN5nO0JEGCRIytN43ub63XLkoi8aYpNbsaTTe9yy9z4LqzQ2nTc3lLrOItIFMkAxtK5cj+BrzDVnFokzNyDdpOUu+HTW+inVcWvIbYBpMbSGNeDHXMSZXq5ChEPixFJpAIewOdYXIc+86jyR9PEOZialBpilBOSBEnMDMi47Gy5cj8DA+KwbGtYWtgvpuDoJANxtMblW8Jpj3BffMGiDJkcxGvguXJTL8TRDHOa0QHU3PcBN3NIh3Y3OiIbTGSk+BmdJJ6nLP1XLkQL8I3Rty002EtcS5sup3s6Qh6w+7vN0T5dtFy5aMznFarmNoFpIklx3knUmdfNB4sfz6jRZozEBvKBabAd7rly1N8GDWtfzPYxzjqXMYSdrkiSuXLkpH//Z'; |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
function secondsToTime(rawSeconds) { | ||
export default function secondsToTime(rawSeconds) { | ||
const hours = Math.floor(rawSeconds / 3600) % 24; | ||
@@ -12,4 +10,2 @@ const minutes = Math.floor(rawSeconds / 60) % 60; | ||
}; | ||
} | ||
module.exports = secondsToTime; | ||
} |
@@ -1,4 +0,2 @@ | ||
"use strict"; | ||
function settle(promises) { | ||
export default function settle(promises) { | ||
const resolutions = []; | ||
@@ -22,4 +20,2 @@ const rejections = []; | ||
}); | ||
} | ||
module.exports = settle; | ||
} |
@@ -1,6 +0,4 @@ | ||
"use strict"; | ||
/** | ||
* Converts list into array | ||
*/ | ||
module.exports = Array.from; | ||
export default Array.from; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
function _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } | ||
@@ -9,3 +7,3 @@ | ||
const has = require("./hasProperty.js"); | ||
import has from './hasProperty.js'; | ||
@@ -90,3 +88,3 @@ function insertReplacement(source, rx, replacement) { | ||
class Translator { | ||
export default class Translator { | ||
/** | ||
@@ -172,4 +170,2 @@ * @param {object|Array<object>} locales - locale or list of locales. | ||
this.locale.pluralize = locale.pluralize || prevLocale.pluralize; | ||
} | ||
module.exports = Translator; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
/** | ||
@@ -12,4 +10,3 @@ * Truncates a string to the given number of chars (maxLength) by inserting '...' in the middle of that string. | ||
const separator = '...'; | ||
function truncateString(string, maxLength) { | ||
export default function truncateString(string, maxLength) { | ||
// Return the empty string if maxLength is zero | ||
@@ -25,4 +22,2 @@ if (maxLength === 0) return ''; // Return original string if it's already shorter than maxLength | ||
return string.slice(0, frontChars) + separator + string.slice(-backChars); | ||
} | ||
module.exports = truncateString; | ||
} |
{ | ||
"name": "@uppy/utils", | ||
"description": "Shared utility functions for Uppy Core and plugins maintained by the Uppy team.", | ||
"version": "4.1.0", | ||
"version": "5.0.0-beta", | ||
"license": "MIT", | ||
@@ -26,3 +26,4 @@ "main": "lib/index.js", | ||
"@jest/globals": "^27.4.2" | ||
} | ||
}, | ||
"stableVersion": "4.1.0" | ||
} |
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
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
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
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
233007
181
3152
1