@supabase/functions-js
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -11,8 +11,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FunctionsClient = void 0; | ||
const cross_fetch_1 = __importDefault(require("cross-fetch")); | ||
const helper_1 = require("./helper"); | ||
class FunctionsClient { | ||
@@ -22,11 +19,3 @@ constructor(url, headers, customFetch) { | ||
this.headers = headers; | ||
if (customFetch) { | ||
this.fetch = customFetch; | ||
} | ||
else if (typeof fetch !== 'undefined') { | ||
this.fetch = fetch; | ||
} | ||
else { | ||
this.fetch = cross_fetch_1.default; | ||
} | ||
this.fetch = (0, helper_1.resolveFetch)(fetch); | ||
} | ||
@@ -33,0 +22,0 @@ /** |
@@ -10,3 +10,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import crossFetch from 'cross-fetch'; | ||
import { resolveFetch } from './helper'; | ||
export class FunctionsClient { | ||
@@ -16,11 +16,3 @@ constructor(url, headers, customFetch) { | ||
this.headers = headers; | ||
if (customFetch) { | ||
this.fetch = customFetch; | ||
} | ||
else if (typeof fetch !== 'undefined') { | ||
this.fetch = fetch; | ||
} | ||
else { | ||
this.fetch = crossFetch; | ||
} | ||
this.fetch = resolveFetch(fetch); | ||
} | ||
@@ -27,0 +19,0 @@ /** |
{ | ||
"name": "@supabase/functions-js", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "JS Client library to interact with Supabase Functions.", | ||
@@ -5,0 +5,0 @@ "main": "dist/main/index.js", |
@@ -1,3 +0,3 @@ | ||
import crossFetch from 'cross-fetch' | ||
import { Fetch, FunctionInvokeOptions, ResponseType } from './types' | ||
import { resolveFetch } from './helper' | ||
import { Fetch, FunctionInvokeOptions } from './types' | ||
@@ -13,9 +13,3 @@ export class FunctionsClient { | ||
if (customFetch) { | ||
this.fetch = customFetch | ||
} else if (typeof fetch !== 'undefined') { | ||
this.fetch = fetch | ||
} else { | ||
this.fetch = crossFetch | ||
} | ||
this.fetch = resolveFetch(fetch) | ||
} | ||
@@ -22,0 +16,0 @@ |
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
35286
39
375
6