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

@uppy/core

Package Overview
Dependencies
Maintainers
5
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/core - npm Package Compare versions

Comparing version 4.2.3 to 4.3.0

8

CHANGELOG.md
# @uppy/core
## 4.3.0
Released: 2024-12-05
Included in: Uppy v4.8.0
- @uppy/core,@uppy/provider-views: move useStore out of core (Mikael Finstad / #5533)
- @uppy/audio,@uppy/aws-s3,@uppy/box,@uppy/companion-client,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/drag-drop,@uppy/drop-target,@uppy/dropbox,@uppy/facebook,@uppy/file-input,@uppy/form,@uppy/golden-retriever,@uppy/google-drive,@uppy/google-photos,@uppy/image-editor,@uppy/informer,@uppy/instagram,@uppy/locales,@uppy/onedrive,@uppy/progress-bar,@uppy/provider-views,@uppy/react,@uppy/remote-sources,@uppy/screen-capture,@uppy/status-bar,@uppy/store-default,@uppy/thumbnail-generator,@uppy/transloadit,@uppy/tus,@uppy/unsplash,@uppy/url,@uppy/utils,@uppy/vue,@uppy/webcam,@uppy/xhr-upload,@uppy/zoom: cleanup tsconfig (Mikael Finstad / #5520)
## 4.2.3

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

4

lib/locale.d.ts

@@ -39,2 +39,5 @@ declare const _default: {

logOut: string;
logIn: string;
pickFiles: string;
pickPhotos: string;
filter: string;

@@ -60,2 +63,3 @@ resetFilter: string;

unnamed: string;
pleaseWait: string;
};

@@ -62,0 +66,0 @@ };

@@ -40,2 +40,5 @@ export default {

logOut: 'Log out',
logIn: 'Log in',
pickFiles: 'Pick files',
pickPhotos: 'Pick photos',
filter: 'Filter',

@@ -60,4 +63,5 @@ resetFilter: 'Reset filter',

additionalRestrictionsFailed: '%{count} additional restrictions were not fulfilled',
unnamed: 'Unnamed'
unnamed: 'Unnamed',
pleaseWait: 'Please wait'
}
};

26

lib/Uppy.d.ts

@@ -85,13 +85,19 @@ /// <reference types="lodash" />

};
export type UnknownProviderPlugin<M extends Meta, B extends Body> = UnknownPlugin<M, B, UnknownProviderPluginState> & {
export interface AsyncStore {
getItem: (key: string) => Promise<string | null>;
setItem: (key: string, value: string) => Promise<void>;
removeItem: (key: string) => Promise<void>;
}
/**
* This is a base for a provider that does not necessarily use the Companion-assisted OAuth2 flow
*/
export interface BaseProviderPlugin {
title: string;
icon: () => h.JSX.Element;
storage: AsyncStore;
}
export type UnknownProviderPlugin<M extends Meta, B extends Body> = UnknownPlugin<M, B, UnknownProviderPluginState> & BaseProviderPlugin & {
rootFolderId: string | null;
files: UppyFile<M, B>[];
icon: () => h.JSX.Element;
provider: CompanionClientProvider;
storage: {
getItem: (key: string) => Promise<string | null>;
setItem: (key: string, value: string) => Promise<void>;
removeItem: (key: string) => Promise<void>;
};
};

@@ -101,5 +107,3 @@ export type UnknownSearchProviderPluginState = {

} & Pick<UnknownProviderPluginState, 'loading' | 'searchString' | 'partialTree' | 'currentFolderId'>;
export type UnknownSearchProviderPlugin<M extends Meta, B extends Body> = UnknownPlugin<M, B, UnknownSearchProviderPluginState> & {
title: string;
icon: () => h.JSX.Element;
export type UnknownSearchProviderPlugin<M extends Meta, B extends Body> = UnknownPlugin<M, B, UnknownSearchProviderPluginState> & BaseProviderPlugin & {
provider: CompanionClientSearchProvider;

@@ -379,3 +383,3 @@ };

*/
log(message: string | Record<any, any> | Error, type?: string): void;
log(message: unknown, type?: 'error' | 'warning'): void;
registerRequestClient(id: string, client: unknown): void;

@@ -382,0 +386,0 @@ /** @protected */

@@ -24,3 +24,3 @@ function _classPrivateFieldLooseBase(e, t) { if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); return e; }

const packageJson = {
"version": "4.2.3"
"version": "4.3.0"
};

@@ -48,4 +48,9 @@ import locale from "./locale.js";

/**
* This is a base for a provider that does not necessarily use the Companion-assisted OAuth2 flow
*/
/*
* UnknownProviderPlugin can be any Companion plugin (such as Google Drive).
* UnknownProviderPlugin can be any Companion plugin (such as Google Drive)
* that uses the Companion-assisted OAuth flow.
* As the plugins are passed around throughout Uppy we need a generic type for this.

@@ -510,3 +515,3 @@ * It may seems like duplication, but this type safe. Changing the type of `storage`

if (!updatedFiles[fileID]) {
this.log('Was trying to set metadata for a file that has been removed: ', fileID);
this.log(`Was trying to set metadata for a file that has been removed: ${fileID}`);
return;

@@ -513,0 +518,0 @@ }

{
"name": "@uppy/core",
"description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
"version": "4.2.3",
"version": "4.3.0",
"license": "MIT",

@@ -27,4 +27,4 @@ "main": "lib/index.js",

"@transloadit/prettier-bytes": "^0.3.4",
"@uppy/store-default": "^4.1.1",
"@uppy/utils": "^6.0.4",
"@uppy/store-default": "^4.1.2",
"@uppy/utils": "^6.0.5",
"lodash": "^4.17.21",

@@ -31,0 +31,0 @@ "mime-match": "^1.0.2",

@@ -44,2 +44,5 @@ export default {

logOut: 'Log out',
logIn: 'Log in',
pickFiles: 'Pick files',
pickPhotos: 'Pick photos',
filter: 'Filter',

@@ -67,3 +70,4 @@ resetFilter: 'Reset filter',

unnamed: 'Unnamed',
pleaseWait: 'Please wait',
},
}

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 too big to display

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