Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@supabase/supabase-js

Package Overview
Dependencies
Maintainers
9
Versions
339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/supabase-js - npm Package Compare versions

Comparing version 2.39.5 to 2.39.6

2

dist/main/lib/version.d.ts

@@ -1,2 +0,2 @@

export declare const version = "2.39.5";
export declare const version = "2.39.6";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = '2.39.5';
exports.version = '2.39.6';
//# sourceMappingURL=version.js.map

@@ -55,3 +55,3 @@ import { FunctionsClient } from '@supabase/functions-js';

*/
from(relation: string): ReturnType<PostgrestClient<Database, SchemaName>['from']>;
from: PostgrestClient<Database, SchemaName>['from'];
/**

@@ -65,3 +65,3 @@ * Perform a query on a schema distinct from the default schema supplied via

*/
schema<DynamicSchema extends string & keyof Database>(schema: DynamicSchema): ReturnType<PostgrestClient<Database, SchemaName>['schema']>;
schema: PostgrestClient<Database, SchemaName>['schema'];
/**

@@ -88,6 +88,3 @@ * Perform a function call.

*/
rpc<FnName extends string & keyof Schema['Functions'], Fn extends Schema['Functions'][FnName]>(fn: FnName, args?: Fn['Args'], options?: {
head?: boolean;
count?: 'exact' | 'planned' | 'estimated';
}): ReturnType<PostgrestClient<Database, SchemaName>['rpc']>;
rpc: PostgrestClient<Database, SchemaName>['rpc'];
/**

@@ -94,0 +91,0 @@ * Creates a Realtime channel with Broadcast, Presence, and Postgres Changes.

@@ -42,2 +42,45 @@ "use strict";

this.supabaseKey = supabaseKey;
/**
* Perform a query on a table or a view.
*
* @param relation - The table or view name to query
*/
this.from = (relation) => {
return this.rest.from(relation);
};
/**
* Perform a query on a schema distinct from the default schema supplied via
* the `options.db.schema` constructor parameter.
*
* The schema needs to be on the list of exposed schemas inside Supabase.
*
* @param schema - The name of the schema to query
*/
this.schema = (schema) => {
return this.rest.schema(schema);
};
/**
* Perform a function call.
*
* @param fn - The function name to call
* @param args - The arguments to pass to the function call
* @param options - Named parameters
* @param options.head - When set to `true`, `data` will not be returned.
* Useful if you only need the count.
* @param options.count - Count algorithm to use to count rows returned by the
* function. Only applicable for [set-returning
* functions](https://www.postgresql.org/docs/current/functions-srf.html).
*
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
* hood.
*
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
* statistics under the hood.
*
* `"estimated"`: Uses exact count for low numbers and planned count for high
* numbers.
*/
this.rpc = (fn, args = {}, options) => {
return this.rest.rpc(fn, args, options);
};
if (!supabaseUrl)

@@ -89,45 +132,2 @@ throw new Error('supabaseUrl is required.');

/**
* Perform a query on a table or a view.
*
* @param relation - The table or view name to query
*/
from(relation) {
return this.rest.from(relation);
}
/**
* Perform a query on a schema distinct from the default schema supplied via
* the `options.db.schema` constructor parameter.
*
* The schema needs to be on the list of exposed schemas inside Supabase.
*
* @param schema - The name of the schema to query
*/
schema(schema) {
return this.rest.schema(schema);
}
/**
* Perform a function call.
*
* @param fn - The function name to call
* @param args - The arguments to pass to the function call
* @param options - Named parameters
* @param options.head - When set to `true`, `data` will not be returned.
* Useful if you only need the count.
* @param options.count - Count algorithm to use to count rows returned by the
* function. Only applicable for [set-returning
* functions](https://www.postgresql.org/docs/current/functions-srf.html).
*
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
* hood.
*
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
* statistics under the hood.
*
* `"estimated"`: Uses exact count for low numbers and planned count for high
* numbers.
*/
rpc(fn, args = {}, options) {
return this.rest.rpc(fn, args, options);
}
/**
* Creates a Realtime channel with Broadcast, Presence, and Postgres Changes.

@@ -134,0 +134,0 @@ *

@@ -1,2 +0,2 @@

export declare const version = "2.39.5";
export declare const version = "2.39.6";
//# sourceMappingURL=version.d.ts.map

@@ -1,2 +0,2 @@

export const version = '2.39.5';
export const version = '2.39.6';
//# sourceMappingURL=version.js.map

@@ -55,3 +55,3 @@ import { FunctionsClient } from '@supabase/functions-js';

*/
from(relation: string): ReturnType<PostgrestClient<Database, SchemaName>['from']>;
from: PostgrestClient<Database, SchemaName>['from'];
/**

@@ -65,3 +65,3 @@ * Perform a query on a schema distinct from the default schema supplied via

*/
schema<DynamicSchema extends string & keyof Database>(schema: DynamicSchema): ReturnType<PostgrestClient<Database, SchemaName>['schema']>;
schema: PostgrestClient<Database, SchemaName>['schema'];
/**

@@ -88,6 +88,3 @@ * Perform a function call.

*/
rpc<FnName extends string & keyof Schema['Functions'], Fn extends Schema['Functions'][FnName]>(fn: FnName, args?: Fn['Args'], options?: {
head?: boolean;
count?: 'exact' | 'planned' | 'estimated';
}): ReturnType<PostgrestClient<Database, SchemaName>['rpc']>;
rpc: PostgrestClient<Database, SchemaName>['rpc'];
/**

@@ -94,0 +91,0 @@ * Creates a Realtime channel with Broadcast, Presence, and Postgres Changes.

@@ -40,2 +40,45 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

this.supabaseKey = supabaseKey;
/**
* Perform a query on a table or a view.
*
* @param relation - The table or view name to query
*/
this.from = (relation) => {
return this.rest.from(relation);
};
/**
* Perform a query on a schema distinct from the default schema supplied via
* the `options.db.schema` constructor parameter.
*
* The schema needs to be on the list of exposed schemas inside Supabase.
*
* @param schema - The name of the schema to query
*/
this.schema = (schema) => {
return this.rest.schema(schema);
};
/**
* Perform a function call.
*
* @param fn - The function name to call
* @param args - The arguments to pass to the function call
* @param options - Named parameters
* @param options.head - When set to `true`, `data` will not be returned.
* Useful if you only need the count.
* @param options.count - Count algorithm to use to count rows returned by the
* function. Only applicable for [set-returning
* functions](https://www.postgresql.org/docs/current/functions-srf.html).
*
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
* hood.
*
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
* statistics under the hood.
*
* `"estimated"`: Uses exact count for low numbers and planned count for high
* numbers.
*/
this.rpc = (fn, args = {}, options) => {
return this.rest.rpc(fn, args, options);
};
if (!supabaseUrl)

@@ -87,45 +130,2 @@ throw new Error('supabaseUrl is required.');

/**
* Perform a query on a table or a view.
*
* @param relation - The table or view name to query
*/
from(relation) {
return this.rest.from(relation);
}
/**
* Perform a query on a schema distinct from the default schema supplied via
* the `options.db.schema` constructor parameter.
*
* The schema needs to be on the list of exposed schemas inside Supabase.
*
* @param schema - The name of the schema to query
*/
schema(schema) {
return this.rest.schema(schema);
}
/**
* Perform a function call.
*
* @param fn - The function name to call
* @param args - The arguments to pass to the function call
* @param options - Named parameters
* @param options.head - When set to `true`, `data` will not be returned.
* Useful if you only need the count.
* @param options.count - Count algorithm to use to count rows returned by the
* function. Only applicable for [set-returning
* functions](https://www.postgresql.org/docs/current/functions-srf.html).
*
* `"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the
* hood.
*
* `"planned"`: Approximated but fast count algorithm. Uses the Postgres
* statistics under the hood.
*
* `"estimated"`: Uses exact count for low numbers and planned count for high
* numbers.
*/
rpc(fn, args = {}, options) {
return this.rest.rpc(fn, args, options);
}
/**
* Creates a Realtime channel with Broadcast, Presence, and Postgres Changes.

@@ -132,0 +132,0 @@ *

{
"name": "@supabase/supabase-js",
"version": "2.39.5",
"version": "2.39.6",
"description": "Isomorphic Javascript client for Supabase",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,1 +0,1 @@

export const version = '2.39.5'
export const version = '2.39.6'

@@ -133,3 +133,3 @@ import { FunctionsClient } from '@supabase/functions-js'

*/
from(relation: string): ReturnType<PostgrestClient<Database, SchemaName>['from']> {
from: PostgrestClient<Database, SchemaName>['from'] = (relation: string) => {
return this.rest.from(relation)

@@ -146,5 +146,7 @@ }

*/
schema<DynamicSchema extends string & keyof Database>(
schema: PostgrestClient<Database, SchemaName>['schema'] = <
DynamicSchema extends string & keyof Database
>(
schema: DynamicSchema
): ReturnType<PostgrestClient<Database, SchemaName>['schema']> {
) => {
return this.rest.schema<DynamicSchema>(schema)

@@ -174,5 +176,8 @@ }

*/
rpc<FnName extends string & keyof Schema['Functions'], Fn extends Schema['Functions'][FnName]>(
fn: FnName,
args: Fn['Args'] = {},
rpc: PostgrestClient<Database, SchemaName>['rpc'] = <
FunctionName extends string & keyof Schema['Functions'],
Function_ extends Schema['Functions'][FunctionName]
>(
fn: FunctionName,
args: Function_['Args'] = {},
options?: {

@@ -182,3 +187,3 @@ head?: boolean

}
): ReturnType<PostgrestClient<Database, SchemaName>['rpc']> {
) => {
return this.rest.rpc(fn, args, options)

@@ -185,0 +190,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

Sorry, the diff of this file is too big to display

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