@supabase/postgrest-js
Advanced tools
Comparing version
@@ -11,3 +11,3 @@ import { PostgrestBuilder } from './types'; | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
*/ | ||
@@ -14,0 +14,0 @@ rpc(params?: object, { count, }?: { |
@@ -16,3 +16,3 @@ "use strict"; | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
*/ | ||
@@ -19,0 +19,0 @@ rpc(params, { count = null, } = {}) { |
@@ -88,4 +88,4 @@ "use strict"; | ||
_this.then = ((onfulfilled, onrejected) => this.then((res) => { | ||
var _a; | ||
if ((_a = res.error) === null || _a === void 0 ? void 0 : _a.details.includes('Results contain 0 rows')) { | ||
var _a, _b; | ||
if ((_b = (_a = res.error) === null || _a === void 0 ? void 0 : _a.details) === null || _b === void 0 ? void 0 : _b.includes('Results contain 0 rows')) { | ||
return onfulfilled({ | ||
@@ -92,0 +92,0 @@ error: null, |
@@ -35,3 +35,3 @@ import PostgrestQueryBuilder from './lib/PostgrestQueryBuilder'; | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
* | ||
@@ -38,0 +38,0 @@ * @param fn The function name to call. |
@@ -40,3 +40,3 @@ "use strict"; | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
* | ||
@@ -43,0 +43,0 @@ * @param fn The function name to call. |
@@ -11,3 +11,3 @@ import { PostgrestBuilder } from './types'; | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
*/ | ||
@@ -14,0 +14,0 @@ rpc(params?: object, { count, }?: { |
@@ -11,3 +11,3 @@ import { PostgrestBuilder } from './types'; | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
*/ | ||
@@ -14,0 +14,0 @@ rpc(params, { count = null, } = {}) { |
@@ -86,4 +86,4 @@ import { PostgrestBuilder } from './types'; | ||
_this.then = ((onfulfilled, onrejected) => this.then((res) => { | ||
var _a; | ||
if ((_a = res.error) === null || _a === void 0 ? void 0 : _a.details.includes('Results contain 0 rows')) { | ||
var _a, _b; | ||
if ((_b = (_a = res.error) === null || _a === void 0 ? void 0 : _a.details) === null || _b === void 0 ? void 0 : _b.includes('Results contain 0 rows')) { | ||
return onfulfilled({ | ||
@@ -90,0 +90,0 @@ error: null, |
@@ -35,3 +35,3 @@ import PostgrestQueryBuilder from './lib/PostgrestQueryBuilder'; | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
* | ||
@@ -38,0 +38,0 @@ * @param fn The function name to call. |
@@ -35,3 +35,3 @@ import PostgrestQueryBuilder from './lib/PostgrestQueryBuilder'; | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
* | ||
@@ -38,0 +38,0 @@ * @param fn The function name to call. |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "0.33.1", | ||
"version": "0.33.2", | ||
"description": "Isomorphic PostgREST client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -16,3 +16,3 @@ import { PostgrestBuilder } from './types' | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
*/ | ||
@@ -19,0 +19,0 @@ rpc( |
@@ -107,3 +107,3 @@ import { PostgrestBuilder, PostgrestMaybeSingleResponse, PostgrestSingleResponse } from './types' | ||
this.then((res: any): any => { | ||
if (res.error?.details.includes('Results contain 0 rows')) { | ||
if (res.error?.details?.includes('Results contain 0 rows')) { | ||
return onfulfilled({ | ||
@@ -110,0 +110,0 @@ error: null, |
@@ -47,3 +47,3 @@ import PostgrestQueryBuilder from './lib/PostgrestQueryBuilder' | ||
/** | ||
* Perform a stored procedure call. | ||
* Perform a function call. | ||
* | ||
@@ -50,0 +50,0 @@ * @param fn The function name to call. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
195487
0.01%