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

@supabase/postgrest-js

Package Overview
Dependencies
Maintainers
5
Versions
139
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 1.0.0-next.3 to 1.0.0-next.4

4

dist/main/PostgrestBuilder.d.ts

@@ -18,8 +18,6 @@ import type { Fetch, PostgrestResponse } from './types';

* {@link https://github.com/supabase/supabase-js/issues/92}
*
* @deprecated Use `throwOnError` in the `PostgrestClient` constructor instead.
*/
throwOnError(throwOnError?: boolean): this;
throwOnError(): this;
then<TResult1 = PostgrestResponse<Result>, TResult2 = never>(onfulfilled?: ((value: PostgrestResponse<Result>) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
//# sourceMappingURL=PostgrestBuilder.d.ts.map

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

constructor(builder) {
this.shouldThrowOnError = false;
this.method = builder.method;

@@ -42,7 +43,5 @@ this.url = builder.url;

* {@link https://github.com/supabase/supabase-js/issues/92}
*
* @deprecated Use `throwOnError` in the `PostgrestClient` constructor instead.
*/
throwOnError(throwOnError) {
this.shouldThrowOnError = throwOnError !== null && throwOnError !== void 0 ? throwOnError : true;
throwOnError() {
this.shouldThrowOnError = true;
return this;

@@ -49,0 +48,0 @@ }

@@ -9,3 +9,2 @@ import PostgrestQueryBuilder from './PostgrestQueryBuilder';

fetch?: Fetch;
shouldThrowOnError: boolean;
/**

@@ -18,7 +17,6 @@ * Creates a PostgREST client.

*/
constructor(url: string, { headers, schema, fetch, throwOnError, }?: {
constructor(url: string, { headers, schema, fetch, }?: {
headers?: Record<string, string>;
schema?: SchemaName;
fetch?: Fetch;
throwOnError?: boolean;
});

@@ -25,0 +23,0 @@ /**

@@ -10,2 +10,3 @@ "use strict";

class PostgrestClient {
// TODO: Add back shouldThrowOnError once we figure out the typings
/**

@@ -18,3 +19,3 @@ * Creates a PostgREST client.

*/
constructor(url, { headers = {}, schema, fetch, throwOnError = false, } = {}) {
constructor(url, { headers = {}, schema, fetch, } = {}) {
this.url = url;

@@ -24,3 +25,2 @@ this.headers = Object.assign(Object.assign({}, constants_1.DEFAULT_HEADERS), headers);

this.fetch = fetch;
this.shouldThrowOnError = throwOnError;
}

@@ -49,3 +49,2 @@ /**

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
});

@@ -87,3 +86,2 @@ }

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -90,0 +88,0 @@ });

@@ -8,10 +8,8 @@ import PostgrestFilterBuilder from './PostgrestFilterBuilder';

schema?: string;
shouldThrowOnError: boolean;
signal?: AbortSignal;
fetch?: Fetch;
constructor(url: URL, { headers, schema, fetch, shouldThrowOnError, }: {
constructor(url: URL, { headers, schema, fetch, }: {
headers?: Record<string, string>;
schema?: string;
fetch?: Fetch;
shouldThrowOnError: boolean;
});

@@ -18,0 +16,0 @@ /**

@@ -8,3 +8,3 @@ "use strict";

class PostgrestQueryBuilder {
constructor(url, { headers = {}, schema, fetch, shouldThrowOnError, }) {
constructor(url, { headers = {}, schema, fetch, }) {
this.url = url;

@@ -14,3 +14,2 @@ this.headers = headers;

this.fetch = fetch;
this.shouldThrowOnError = shouldThrowOnError;
}

@@ -50,3 +49,2 @@ /**

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -86,3 +84,2 @@ });

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -120,3 +117,2 @@ });

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -149,3 +145,2 @@ });

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -175,3 +170,2 @@ });

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -178,0 +172,0 @@ });

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

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

@@ -18,8 +18,6 @@ import type { Fetch, PostgrestResponse } from './types';

* {@link https://github.com/supabase/supabase-js/issues/92}
*
* @deprecated Use `throwOnError` in the `PostgrestClient` constructor instead.
*/
throwOnError(throwOnError?: boolean): this;
throwOnError(): this;
then<TResult1 = PostgrestResponse<Result>, TResult2 = never>(onfulfilled?: ((value: PostgrestResponse<Result>) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
//# sourceMappingURL=PostgrestBuilder.d.ts.map

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

constructor(builder) {
this.shouldThrowOnError = false;
this.method = builder.method;

@@ -37,7 +38,5 @@ this.url = builder.url;

* {@link https://github.com/supabase/supabase-js/issues/92}
*
* @deprecated Use `throwOnError` in the `PostgrestClient` constructor instead.
*/
throwOnError(throwOnError) {
this.shouldThrowOnError = throwOnError !== null && throwOnError !== void 0 ? throwOnError : true;
throwOnError() {
this.shouldThrowOnError = true;
return this;

@@ -44,0 +43,0 @@ }

@@ -9,3 +9,2 @@ import PostgrestQueryBuilder from './PostgrestQueryBuilder';

fetch?: Fetch;
shouldThrowOnError: boolean;
/**

@@ -18,7 +17,6 @@ * Creates a PostgREST client.

*/
constructor(url: string, { headers, schema, fetch, throwOnError, }?: {
constructor(url: string, { headers, schema, fetch, }?: {
headers?: Record<string, string>;
schema?: SchemaName;
fetch?: Fetch;
throwOnError?: boolean;
});

@@ -25,0 +23,0 @@ /**

@@ -5,2 +5,3 @@ import PostgrestQueryBuilder from './PostgrestQueryBuilder';

export default class PostgrestClient {
// TODO: Add back shouldThrowOnError once we figure out the typings
/**

@@ -13,3 +14,3 @@ * Creates a PostgREST client.

*/
constructor(url, { headers = {}, schema, fetch, throwOnError = false, } = {}) {
constructor(url, { headers = {}, schema, fetch, } = {}) {
this.url = url;

@@ -19,3 +20,2 @@ this.headers = Object.assign(Object.assign({}, DEFAULT_HEADERS), headers);

this.fetch = fetch;
this.shouldThrowOnError = throwOnError;
}

@@ -44,3 +44,2 @@ /**

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
});

@@ -82,3 +81,2 @@ }

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -85,0 +83,0 @@ });

@@ -8,10 +8,8 @@ import PostgrestFilterBuilder from './PostgrestFilterBuilder';

schema?: string;
shouldThrowOnError: boolean;
signal?: AbortSignal;
fetch?: Fetch;
constructor(url: URL, { headers, schema, fetch, shouldThrowOnError, }: {
constructor(url: URL, { headers, schema, fetch, }: {
headers?: Record<string, string>;
schema?: string;
fetch?: Fetch;
shouldThrowOnError: boolean;
});

@@ -18,0 +16,0 @@ /**

import PostgrestFilterBuilder from './PostgrestFilterBuilder';
export default class PostgrestQueryBuilder {
constructor(url, { headers = {}, schema, fetch, shouldThrowOnError, }) {
constructor(url, { headers = {}, schema, fetch, }) {
this.url = url;

@@ -8,3 +8,2 @@ this.headers = headers;

this.fetch = fetch;
this.shouldThrowOnError = shouldThrowOnError;
}

@@ -44,3 +43,2 @@ /**

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -80,3 +78,2 @@ });

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -114,3 +111,2 @@ });

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -143,3 +139,2 @@ });

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -169,3 +164,2 @@ });

fetch: this.fetch,
shouldThrowOnError: this.shouldThrowOnError,
allowEmpty: false,

@@ -172,0 +166,0 @@ });

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

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

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

export const version = '1.0.0-next.3';
export const version = '1.0.0-next.4';
//# sourceMappingURL=version.js.map
{
"name": "@supabase/postgrest-js",
"version": "1.0.0-next.3",
"version": "1.0.0-next.4",
"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

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