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

@uniformdev/files

Package Overview
Dependencies
Maintainers
9
Versions
389
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniformdev/files - npm Package Compare versions

Comparing version 19.199.1-alpha.8 to 19.199.1-alpha.10

10

dist/index.d.ts

@@ -265,3 +265,11 @@ import { ApiClient, ClientOptions } from '@uniformdev/context/api';

declare const FILE_MIME_TYPES_IMAGE: string[];
declare const FILE_TYPES_VIDEO: string[];
declare const FILE_MIME_TYPES_VIDEO: string[];
declare const FILE_TYPES_AUDIO: string[];
declare const FILE_MIME_TYPES_AUDIO: string[];
declare const FILE_TYPES_OTHER: string[];
declare const FILE_MIME_TYPES_OTHER: string[];
declare const FILE_TYPES_ALL: string[];
declare const FILE_MIME_TYPES_ALL: string[];
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_MIME_TYPES_IMAGE, FILE_READY_STATE, FILE_TYPES_IMAGE, FileClient, type FileDeleteRequest, type FileDeleteResponse, type FileGetByIDRequest, type FileGetBySourceIDRequest, type FileGetByURLRequest, type FileGetRequest, type FileGetResponse, type FileInsertRequest, type FileInsertResponse, UncachedFileClient, getFileNameFromUrl };
export { FILE_IN_PROGRESS_STATE, FILE_MAX_SIZE, FILE_MIME_TYPES_ALL, FILE_MIME_TYPES_AUDIO, FILE_MIME_TYPES_IMAGE, FILE_MIME_TYPES_OTHER, FILE_MIME_TYPES_VIDEO, FILE_READY_STATE, FILE_TYPES_ALL, FILE_TYPES_AUDIO, FILE_TYPES_IMAGE, FILE_TYPES_OTHER, FILE_TYPES_VIDEO, FileClient, type FileDeleteRequest, type FileDeleteResponse, type FileGetByIDRequest, type FileGetBySourceIDRequest, type FileGetByURLRequest, type FileGetRequest, type FileGetResponse, type FileInsertRequest, type FileInsertResponse, UncachedFileClient, getFileNameFromUrl };

@@ -49,3 +49,3 @@ // src/FileClient.ts

var FILE_READY_STATE = 64;
var FILE_MAX_SIZE = 1024 * 1024 * 10;
var FILE_MAX_SIZE = 1024 * 1024 * 50;
var FILE_TYPES_IMAGE = [

@@ -62,2 +62,3 @@ ".jpg",

".apng",
// AVIF is here for backwards compatibility reasons, as we used to allow it
".avif"

@@ -78,8 +79,28 @@ ];

];
var FILE_TYPES_VIDEO = [".mp4", ".webm", ".ogg"];
var FILE_MIME_TYPES_VIDEO = ["video/mp4", "video/webm", "video/ogg"];
var FILE_TYPES_AUDIO = [".mp3", ".wav", ".ogg", ".flac"];
var FILE_MIME_TYPES_AUDIO = ["audio/mpeg", "audio/mp4", "audio/wav", "audio/ogg", "audio/flac"];
var FILE_TYPES_OTHER = [".pdf", ".json"];
var FILE_MIME_TYPES_OTHER = ["application/pdf", "application/json"];
var FILE_TYPES_ALL = FILE_TYPES_IMAGE.concat(FILE_TYPES_VIDEO, FILE_TYPES_AUDIO, FILE_TYPES_OTHER);
var FILE_MIME_TYPES_ALL = FILE_MIME_TYPES_IMAGE.concat(
FILE_MIME_TYPES_VIDEO,
FILE_MIME_TYPES_AUDIO,
FILE_MIME_TYPES_OTHER
);
export {
FILE_IN_PROGRESS_STATE,
FILE_MAX_SIZE,
FILE_MIME_TYPES_ALL,
FILE_MIME_TYPES_AUDIO,
FILE_MIME_TYPES_IMAGE,
FILE_MIME_TYPES_OTHER,
FILE_MIME_TYPES_VIDEO,
FILE_READY_STATE,
FILE_TYPES_ALL,
FILE_TYPES_AUDIO,
FILE_TYPES_IMAGE,
FILE_TYPES_OTHER,
FILE_TYPES_VIDEO,
FileClient,

@@ -86,0 +107,0 @@ UncachedFileClient,

@@ -25,5 +25,13 @@ "use strict";

FILE_MAX_SIZE: () => FILE_MAX_SIZE,
FILE_MIME_TYPES_ALL: () => FILE_MIME_TYPES_ALL,
FILE_MIME_TYPES_AUDIO: () => FILE_MIME_TYPES_AUDIO,
FILE_MIME_TYPES_IMAGE: () => FILE_MIME_TYPES_IMAGE,
FILE_MIME_TYPES_OTHER: () => FILE_MIME_TYPES_OTHER,
FILE_MIME_TYPES_VIDEO: () => FILE_MIME_TYPES_VIDEO,
FILE_READY_STATE: () => FILE_READY_STATE,
FILE_TYPES_ALL: () => FILE_TYPES_ALL,
FILE_TYPES_AUDIO: () => FILE_TYPES_AUDIO,
FILE_TYPES_IMAGE: () => FILE_TYPES_IMAGE,
FILE_TYPES_OTHER: () => FILE_TYPES_OTHER,
FILE_TYPES_VIDEO: () => FILE_TYPES_VIDEO,
FileClient: () => FileClient,

@@ -83,3 +91,3 @@ UncachedFileClient: () => UncachedFileClient,

var FILE_READY_STATE = 64;
var FILE_MAX_SIZE = 1024 * 1024 * 10;
var FILE_MAX_SIZE = 1024 * 1024 * 50;
var FILE_TYPES_IMAGE = [

@@ -96,2 +104,3 @@ ".jpg",

".apng",
// AVIF is here for backwards compatibility reasons, as we used to allow it
".avif"

@@ -112,2 +121,14 @@ ];

];
var FILE_TYPES_VIDEO = [".mp4", ".webm", ".ogg"];
var FILE_MIME_TYPES_VIDEO = ["video/mp4", "video/webm", "video/ogg"];
var FILE_TYPES_AUDIO = [".mp3", ".wav", ".ogg", ".flac"];
var FILE_MIME_TYPES_AUDIO = ["audio/mpeg", "audio/mp4", "audio/wav", "audio/ogg", "audio/flac"];
var FILE_TYPES_OTHER = [".pdf", ".json"];
var FILE_MIME_TYPES_OTHER = ["application/pdf", "application/json"];
var FILE_TYPES_ALL = FILE_TYPES_IMAGE.concat(FILE_TYPES_VIDEO, FILE_TYPES_AUDIO, FILE_TYPES_OTHER);
var FILE_MIME_TYPES_ALL = FILE_MIME_TYPES_IMAGE.concat(
FILE_MIME_TYPES_VIDEO,
FILE_MIME_TYPES_AUDIO,
FILE_MIME_TYPES_OTHER
);
// Annotate the CommonJS export names for ESM import in node:

@@ -117,5 +138,13 @@ 0 && (module.exports = {

FILE_MAX_SIZE,
FILE_MIME_TYPES_ALL,
FILE_MIME_TYPES_AUDIO,
FILE_MIME_TYPES_IMAGE,
FILE_MIME_TYPES_OTHER,
FILE_MIME_TYPES_VIDEO,
FILE_READY_STATE,
FILE_TYPES_ALL,
FILE_TYPES_AUDIO,
FILE_TYPES_IMAGE,
FILE_TYPES_OTHER,
FILE_TYPES_VIDEO,
FileClient,

@@ -122,0 +151,0 @@ UncachedFileClient,

6

package.json
{
"name": "@uniformdev/files",
"version": "19.199.1-alpha.8+8e9e9ec9d1",
"version": "19.199.1-alpha.10+7f62130189",
"description": "Uniform Files helpers",

@@ -39,5 +39,5 @@ "license": "SEE LICENSE IN LICENSE.txt",

"dependencies": {
"@uniformdev/context": "19.199.1-alpha.8+8e9e9ec9d1"
"@uniformdev/context": "19.199.1-alpha.10+7f62130189"
},
"gitHead": "8e9e9ec9d1fb834f92360e8c80771dd037fbc21a"
"gitHead": "7f62130189d43f7ecaaed0a41c929e5c166860d2"
}

Sorry, the diff of this file is not supported yet

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