@supabase/functions-js
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -25,2 +25,11 @@ "use strict"; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -34,3 +43,3 @@ exports.resolveFetch = void 0; | ||
else if (typeof fetch === 'undefined') { | ||
_fetch = (...args) => Promise.resolve().then(() => __importStar(require('@supabase/node-fetch'))).then(({ default: fetch }) => fetch(...args)); | ||
_fetch = (...args) => __awaiter(void 0, void 0, void 0, function* () { return yield (yield Promise.resolve().then(() => __importStar(require('cross-fetch')))).fetch(...args); }); | ||
} | ||
@@ -37,0 +46,0 @@ else { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.1.3"; | ||
export declare const version = "2.1.4"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '2.1.3'; | ||
exports.version = '2.1.4'; | ||
//# sourceMappingURL=version.js.map |
@@ -0,1 +1,10 @@ | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
export const resolveFetch = (customFetch) => { | ||
@@ -7,3 +16,3 @@ let _fetch; | ||
else if (typeof fetch === 'undefined') { | ||
_fetch = (...args) => import('@supabase/node-fetch').then(({ default: fetch }) => fetch(...args)); | ||
_fetch = (...args) => __awaiter(void 0, void 0, void 0, function* () { return yield (yield import('cross-fetch')).fetch(...args); }); | ||
} | ||
@@ -10,0 +19,0 @@ else { |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.1.3"; | ||
export declare const version = "2.1.4"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = '2.1.3'; | ||
export const version = '2.1.4'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/functions-js", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "JS Client library to interact with Supabase Functions.", | ||
@@ -39,3 +39,3 @@ "main": "dist/main/index.js", | ||
"dependencies": { | ||
"@supabase/node-fetch": "^2.6.13" | ||
"cross-fetch": "^3.1.5" | ||
}, | ||
@@ -42,0 +42,0 @@ "devDependencies": { |
@@ -8,4 +8,3 @@ import { Fetch } from './types' | ||
} else if (typeof fetch === 'undefined') { | ||
_fetch = (...args) => | ||
import('@supabase/node-fetch' as any).then(({ default: fetch }) => fetch(...args)) | ||
_fetch = async (...args) => await (await import('cross-fetch')).fetch(...args) | ||
} else { | ||
@@ -12,0 +11,0 @@ _fetch = fetch |
@@ -1,1 +0,1 @@ | ||
export const version = '2.1.3' | ||
export const version = '2.1.4' |
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
44009
674
4
+ Addedcross-fetch@^3.1.5
+ Addedcross-fetch@3.1.8(transitive)
+ Addednode-fetch@2.7.0(transitive)
- Removed@supabase/node-fetch@^2.6.13
- Removed@supabase/node-fetch@2.6.15(transitive)