🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@supabase/postgrest-js

Package Overview
Dependencies
Maintainers
5
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/postgrest-js - npm Package Compare versions

Comparing version

to
1.0.0-next.5

9

dist/main/PostgrestClient.d.ts

@@ -22,10 +22,2 @@ import PostgrestQueryBuilder from './PostgrestQueryBuilder';

/**
* Authenticates the request with JWT.
*
* @param token The JWT token to use.
*
* @deprecated Use `headers` in constructor instead.
*/
auth(token: string): this;
/**
* Perform a table operation.

@@ -36,2 +28,3 @@ *

from<TableName extends string & keyof Schema['Tables'], Table extends Schema['Tables'][TableName]>(table: TableName): PostgrestQueryBuilder<Table>;
from(table: string): PostgrestQueryBuilder<any>;
/**

@@ -38,0 +31,0 @@ * Perform a function call.

@@ -24,18 +24,2 @@ "use strict";

}
/**
* Authenticates the request with JWT.
*
* @param token The JWT token to use.
*
* @deprecated Use `headers` in constructor instead.
*/
auth(token) {
this.headers['Authorization'] = `Bearer ${token}`;
return this;
}
/**
* Perform a table operation.
*
* @param table The table name to operate on.
*/
from(table) {

@@ -42,0 +26,0 @@ const url = new URL(`${this.url}/${table}`);

2

dist/main/version.d.ts

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

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

@@ -22,10 +22,2 @@ import PostgrestQueryBuilder from './PostgrestQueryBuilder';

/**
* Authenticates the request with JWT.
*
* @param token The JWT token to use.
*
* @deprecated Use `headers` in constructor instead.
*/
auth(token: string): this;
/**
* Perform a table operation.

@@ -36,2 +28,3 @@ *

from<TableName extends string & keyof Schema['Tables'], Table extends Schema['Tables'][TableName]>(table: TableName): PostgrestQueryBuilder<Table>;
from(table: string): PostgrestQueryBuilder<any>;
/**

@@ -38,0 +31,0 @@ * Perform a function call.

@@ -19,18 +19,2 @@ import PostgrestQueryBuilder from './PostgrestQueryBuilder';

}
/**
* Authenticates the request with JWT.
*
* @param token The JWT token to use.
*
* @deprecated Use `headers` in constructor instead.
*/
auth(token) {
this.headers['Authorization'] = `Bearer ${token}`;
return this;
}
/**
* Perform a table operation.
*
* @param table The table name to operate on.
*/
from(table) {

@@ -37,0 +21,0 @@ const url = new URL(`${this.url}/${table}`);

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

export declare const version = "1.0.0-next.4";
export declare const version = "1.0.0-next.5";
//# sourceMappingURL=version.d.ts.map

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

export const version = '1.0.0-next.4';
export const version = '1.0.0-next.5';
//# sourceMappingURL=version.js.map
{
"name": "@supabase/postgrest-js",
"version": "1.0.0-next.4",
"version": "1.0.0-next.5",
"description": "Isomorphic PostgREST client",

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

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