Socket
Socket
Sign inDemoInstall

@supabase/functions-js

Package Overview
Dependencies
Maintainers
5
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/functions-js - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

dist/main/helper.d.ts

15

dist/main/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc