@supabase/functions-js
Advanced tools
Comparing version 1.4.0-next.1 to 1.4.0-next.2
@@ -41,3 +41,4 @@ "use strict"; | ||
let body; | ||
if (functionArgs instanceof Blob || functionArgs instanceof ArrayBuffer) { | ||
if ((typeof Blob !== 'undefined' && functionArgs instanceof Blob) || | ||
functionArgs instanceof ArrayBuffer) { | ||
// will work for File as File inherits Blob | ||
@@ -53,3 +54,3 @@ // also works for ArrayBuffer as it is the same underlying structure as a Blob | ||
} | ||
else if (functionArgs instanceof FormData) { | ||
else if (typeof FormData !== 'undefined' && functionArgs instanceof FormData) { | ||
// don't set content-type headers | ||
@@ -56,0 +57,0 @@ // Request will automatically add the right boundary value |
@@ -1,2 +0,2 @@ | ||
export declare const version = "1.4.0-next.1"; | ||
export declare const version = "1.4.0-next.2"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '1.4.0-next.1'; | ||
exports.version = '1.4.0-next.2'; | ||
//# sourceMappingURL=version.js.map |
@@ -38,3 +38,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
let body; | ||
if (functionArgs instanceof Blob || functionArgs instanceof ArrayBuffer) { | ||
if ((typeof Blob !== 'undefined' && functionArgs instanceof Blob) || | ||
functionArgs instanceof ArrayBuffer) { | ||
// will work for File as File inherits Blob | ||
@@ -50,3 +51,3 @@ // also works for ArrayBuffer as it is the same underlying structure as a Blob | ||
} | ||
else if (functionArgs instanceof FormData) { | ||
else if (typeof FormData !== 'undefined' && functionArgs instanceof FormData) { | ||
// don't set content-type headers | ||
@@ -53,0 +54,0 @@ // Request will automatically add the right boundary value |
@@ -1,2 +0,2 @@ | ||
export declare const version = "1.4.0-next.1"; | ||
export declare const version = "1.4.0-next.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = '1.4.0-next.1'; | ||
export const version = '1.4.0-next.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/functions-js", | ||
"version": "1.4.0-next.1", | ||
"version": "1.4.0-next.2", | ||
"description": "JS Client library to interact with Supabase Functions.", | ||
@@ -5,0 +5,0 @@ "main": "dist/main/index.js", |
@@ -57,3 +57,6 @@ import { resolveFetch } from './helper' | ||
let body: any | ||
if (functionArgs instanceof Blob || functionArgs instanceof ArrayBuffer) { | ||
if ( | ||
(typeof Blob !== 'undefined' && functionArgs instanceof Blob) || | ||
functionArgs instanceof ArrayBuffer | ||
) { | ||
// will work for File as File inherits Blob | ||
@@ -67,3 +70,3 @@ // also works for ArrayBuffer as it is the same underlying structure as a Blob | ||
body = functionArgs | ||
} else if (functionArgs instanceof FormData) { | ||
} else if (typeof FormData !== 'undefined' && functionArgs instanceof FormData) { | ||
// don't set content-type headers | ||
@@ -70,0 +73,0 @@ // Request will automatically add the right boundary value |
@@ -1,1 +0,1 @@ | ||
export const version = '1.4.0-next.1' | ||
export const version = '1.4.0-next.2' |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
40593
626
4