@supabase/postgrest-js
Advanced tools
Comparing version 1.15.8 to 1.16.0
@@ -20,4 +20,8 @@ import type { Fetch, PostgrestSingleResponse } from './types'; | ||
throwOnError(): this; | ||
/** | ||
* Set an HTTP header for the request. | ||
*/ | ||
setHeader(name: string, value: string): this; | ||
then<TResult1 = PostgrestSingleResponse<Result>, TResult2 = never>(onfulfilled?: ((value: PostgrestSingleResponse<Result>) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>; | ||
} | ||
//# sourceMappingURL=PostgrestBuilder.d.ts.map |
@@ -40,2 +40,10 @@ "use strict"; | ||
} | ||
/** | ||
* Set an HTTP header for the request. | ||
*/ | ||
setHeader(name, value) { | ||
this.headers = Object.assign({}, this.headers); | ||
this.headers[name] = value; | ||
return this; | ||
} | ||
then(onfulfilled, onrejected) { | ||
@@ -42,0 +50,0 @@ // https://postgrest.org/en/stable/api.html#switching-schemas |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "1.15.8", | ||
"version": "1.16.0", | ||
"description": "Isomorphic PostgREST client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -50,2 +50,11 @@ // @ts-ignore | ||
/** | ||
* Set an HTTP header for the request. | ||
*/ | ||
setHeader(name: string, value: string): this { | ||
this.headers = { ...this.headers } | ||
this.headers[name] = value | ||
return this | ||
} | ||
then<TResult1 = PostgrestSingleResponse<Result>, TResult2 = never>( | ||
@@ -52,0 +61,0 @@ onfulfilled?: |
@@ -1,1 +0,1 @@ | ||
export const version = '1.15.8' | ||
export const version = '1.16.0' |
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
239664
4438