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

@supabase/storage-js

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/storage-js - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

2

dist/main/lib/version.d.ts

@@ -1,2 +0,2 @@

export declare const version = "2.5.0";
export declare const version = "2.5.1";
//# sourceMappingURL=version.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

// generated by genversion
exports.version = '2.5.0';
exports.version = '2.5.1';
//# sourceMappingURL=version.js.map

@@ -40,4 +40,8 @@ import { StorageError } from '../lib/errors';

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
* @returns newly created bucket id

@@ -47,4 +51,4 @@ */

public: boolean;
fileSizeLimit?: number | string;
allowedMimeTypes?: string[];
fileSizeLimit?: number | string | null;
allowedMimeTypes?: string[] | null;
}): Promise<{

@@ -62,9 +66,13 @@ data: Pick<Bucket, 'name'>;

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
*/
updateBucket(id: string, options: {
public: boolean;
fileSizeLimit?: number | string;
allowedMimeTypes?: string[];
fileSizeLimit?: number | string | null;
allowedMimeTypes?: string[] | null;
}): Promise<{

@@ -71,0 +79,0 @@ data: {

@@ -63,4 +63,8 @@ "use strict";

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
* @returns newly created bucket id

@@ -95,4 +99,8 @@ */

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
*/

@@ -99,0 +107,0 @@ updateBucket(id, options) {

@@ -40,5 +40,5 @@ /// <reference types="node" />

/**
* Upload a file with a token generated from `createUploadSignedUrl`.
* Upload a file with a token generated from `createSignedUploadUrl`.
* @param path The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
* @param token The token generated from `createUploadSignedUrl`
* @param token The token generated from `createSignedUploadUrl`
* @param fileBody The body of the file to be stored in the bucket.

@@ -57,3 +57,3 @@ */

* Creates a signed upload URL.
* Signed upload URLs can be used upload files to the bucket without further authentication.
* Signed upload URLs can be used to upload files to the bucket without further authentication.
* They are valid for one minute.

@@ -60,0 +60,0 @@ * @param path The file path, including the current file name. For example `folder/image.png`.

@@ -96,5 +96,5 @@ "use strict";

/**
* Upload a file with a token generated from `createUploadSignedUrl`.
* Upload a file with a token generated from `createSignedUploadUrl`.
* @param path The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
* @param token The token generated from `createUploadSignedUrl`
* @param token The token generated from `createSignedUploadUrl`
* @param fileBody The body of the file to be stored in the bucket.

@@ -152,3 +152,3 @@ */

* Creates a signed upload URL.
* Signed upload URLs can be used upload files to the bucket without further authentication.
* Signed upload URLs can be used to upload files to the bucket without further authentication.
* They are valid for one minute.

@@ -155,0 +155,0 @@ * @param path The file path, including the current file name. For example `folder/image.png`.

@@ -1,2 +0,2 @@

export declare const version = "2.5.0";
export declare const version = "2.5.1";
//# sourceMappingURL=version.d.ts.map
// generated by genversion
export const version = '2.5.0';
export const version = '2.5.1';
//# sourceMappingURL=version.js.map

@@ -40,4 +40,8 @@ import { StorageError } from '../lib/errors';

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
* @returns newly created bucket id

@@ -47,4 +51,4 @@ */

public: boolean;
fileSizeLimit?: number | string;
allowedMimeTypes?: string[];
fileSizeLimit?: number | string | null;
allowedMimeTypes?: string[] | null;
}): Promise<{

@@ -62,9 +66,13 @@ data: Pick<Bucket, 'name'>;

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
*/
updateBucket(id: string, options: {
public: boolean;
fileSizeLimit?: number | string;
allowedMimeTypes?: string[];
fileSizeLimit?: number | string | null;
allowedMimeTypes?: string[] | null;
}): Promise<{

@@ -71,0 +79,0 @@ data: {

@@ -61,4 +61,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
* @returns newly created bucket id

@@ -93,4 +97,8 @@ */

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
*/

@@ -97,0 +105,0 @@ updateBucket(id, options) {

@@ -40,5 +40,5 @@ /// <reference types="node" />

/**
* Upload a file with a token generated from `createUploadSignedUrl`.
* Upload a file with a token generated from `createSignedUploadUrl`.
* @param path The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
* @param token The token generated from `createUploadSignedUrl`
* @param token The token generated from `createSignedUploadUrl`
* @param fileBody The body of the file to be stored in the bucket.

@@ -57,3 +57,3 @@ */

* Creates a signed upload URL.
* Signed upload URLs can be used upload files to the bucket without further authentication.
* Signed upload URLs can be used to upload files to the bucket without further authentication.
* They are valid for one minute.

@@ -60,0 +60,0 @@ * @param path The file path, including the current file name. For example `folder/image.png`.

@@ -94,5 +94,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

/**
* Upload a file with a token generated from `createUploadSignedUrl`.
* Upload a file with a token generated from `createSignedUploadUrl`.
* @param path The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
* @param token The token generated from `createUploadSignedUrl`
* @param token The token generated from `createSignedUploadUrl`
* @param fileBody The body of the file to be stored in the bucket.

@@ -150,3 +150,3 @@ */

* Creates a signed upload URL.
* Signed upload URLs can be used upload files to the bucket without further authentication.
* Signed upload URLs can be used to upload files to the bucket without further authentication.
* They are valid for one minute.

@@ -153,0 +153,0 @@ * @param path The file path, including the current file name. For example `folder/image.png`.

{
"name": "@supabase/storage-js",
"version": "2.5.0",
"version": "2.5.1",
"description": "Isomorphic storage client for Supabase.",

@@ -5,0 +5,0 @@ "keywords": [

// generated by genversion
export const version = '2.5.0'
export const version = '2.5.1'

@@ -77,4 +77,8 @@ import { DEFAULT_HEADERS } from '../lib/constants'

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
* @returns newly created bucket id

@@ -84,3 +88,7 @@ */

id: string,
options: { public: boolean; fileSizeLimit?: number | string; allowedMimeTypes?: string[] } = {
options: {
public: boolean
fileSizeLimit?: number | string | null
allowedMimeTypes?: string[] | null
} = {
public: false,

@@ -126,8 +134,16 @@ }

* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations.
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
* The global file size limit takes precedence over this value.
* The default value is null, which doesn't set a per bucket file size limit.
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
* The default value is null, which allows files with all mime types to be uploaded.
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
*/
async updateBucket(
id: string,
options: { public: boolean; fileSizeLimit?: number | string; allowedMimeTypes?: string[] }
options: {
public: boolean
fileSizeLimit?: number | string | null
allowedMimeTypes?: string[] | null
}
): Promise<

@@ -134,0 +150,0 @@ | {

@@ -151,5 +151,5 @@ import { isStorageError, StorageError } from '../lib/errors'

/**
* Upload a file with a token generated from `createUploadSignedUrl`.
* Upload a file with a token generated from `createSignedUploadUrl`.
* @param path The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
* @param token The token generated from `createUploadSignedUrl`
* @param token The token generated from `createSignedUploadUrl`
* @param fileBody The body of the file to be stored in the bucket.

@@ -216,3 +216,3 @@ */

* Creates a signed upload URL.
* Signed upload URLs can be used upload files to the bucket without further authentication.
* Signed upload URLs can be used to upload files to the bucket without further authentication.
* They are valid for one minute.

@@ -219,0 +219,0 @@ * @param path The file path, including the current file name. For example `folder/image.png`.

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

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