@supabase/functions-js 2.108.2 → 2.108.3-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/main/FunctionsClient.d.ts.map +1 -1
- package/dist/main/FunctionsClient.js +4 -2
- package/dist/main/FunctionsClient.js.map +1 -1
- package/dist/main/version.d.ts +1 -1
- package/dist/main/version.d.ts.map +1 -1
- package/dist/main/version.js +1 -1
- package/dist/main/version.js.map +1 -1
- package/dist/module/FunctionsClient.d.ts.map +1 -1
- package/dist/module/FunctionsClient.js +4 -2
- package/dist/module/FunctionsClient.js.map +1 -1
- package/dist/module/version.d.ts +1 -1
- package/dist/module/version.d.ts.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/FunctionsClient.ts +5 -4
- package/src/version.ts +1 -1
package/package.json
CHANGED
package/src/FunctionsClient.ts
CHANGED
|
@@ -220,10 +220,11 @@ export class FunctionsClient {
|
|
|
220
220
|
url.searchParams.set('forceFunctionRegion', region)
|
|
221
221
|
}
|
|
222
222
|
let body: any
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
// HTTP header names are case-insensitive, so detect a caller-supplied Content-Type
|
|
224
|
+
// regardless of casing — otherwise the SDK injects a second, conflicting Content-Type.
|
|
225
|
+
const hasContentTypeHeader =
|
|
226
|
+
!!headers && Object.keys(headers).some((key) => key.toLowerCase() === 'content-type')
|
|
227
|
+
if (functionArgs && !hasContentTypeHeader) {
|
|
227
228
|
if (
|
|
228
229
|
(typeof Blob !== 'undefined' && functionArgs instanceof Blob) ||
|
|
229
230
|
functionArgs instanceof ArrayBuffer
|
package/src/version.ts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
// - Debugging and support (identifying which version is running)
|
|
5
5
|
// - Telemetry and logging (version reporting in errors/analytics)
|
|
6
6
|
// - Ensuring build artifacts match the published package version
|
|
7
|
-
export const version = '2.108.
|
|
7
|
+
export const version = '2.108.3-canary.1'
|