@supabase/storage-js 2.95.3 → 2.95.4-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +1 -1
- package/src/lib/common/BaseApiClient.ts +13 -0
- package/src/lib/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -390,6 +390,18 @@ var BaseApiClient = class {
|
|
|
390
390
|
return this;
|
|
391
391
|
}
|
|
392
392
|
/**
|
|
393
|
+
* Set an HTTP header for the request.
|
|
394
|
+
* Creates a shallow copy of headers to avoid mutating shared state.
|
|
395
|
+
*
|
|
396
|
+
* @param name - Header name
|
|
397
|
+
* @param value - Header value
|
|
398
|
+
* @returns this - For method chaining
|
|
399
|
+
*/
|
|
400
|
+
setHeader(name, value) {
|
|
401
|
+
this.headers = _objectSpread2(_objectSpread2({}, this.headers), {}, { [name]: value });
|
|
402
|
+
return this;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
393
405
|
* Handles API operation with standardized error handling
|
|
394
406
|
* Eliminates repetitive try-catch blocks across all API methods
|
|
395
407
|
*
|
|
@@ -1284,7 +1296,7 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1284
1296
|
|
|
1285
1297
|
//#endregion
|
|
1286
1298
|
//#region src/lib/version.ts
|
|
1287
|
-
const version = "2.95.
|
|
1299
|
+
const version = "2.95.4-canary.1";
|
|
1288
1300
|
|
|
1289
1301
|
//#endregion
|
|
1290
1302
|
//#region src/lib/constants.ts
|