@supabase/postgrest-js 2.103.0-canary.0 → 2.103.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -11
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +39 -11
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PostgrestBuilder.ts +10 -1
- package/src/select-query-parser/result.ts +33 -7
- package/src/select-query-parser/utils.ts +53 -25
- package/src/types/types.ts +2 -0
- package/src/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -260,6 +260,7 @@ var PostgrestBuilder = class {
|
|
|
260
260
|
if (urlLength > this.urlLengthLimit) hint += `. Your request URL is ${urlLength} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`;
|
|
261
261
|
}
|
|
262
262
|
return {
|
|
263
|
+
success: false,
|
|
263
264
|
error: {
|
|
264
265
|
message: `${(_fetchError$name2 = fetchError === null || fetchError === void 0 ? void 0 : fetchError.name) !== null && _fetchError$name2 !== void 0 ? _fetchError$name2 : "FetchError"}: ${fetchError === null || fetchError === void 0 ? void 0 : fetchError.message}`,
|
|
265
266
|
details: errorDetails,
|
|
@@ -328,6 +329,7 @@ var PostgrestBuilder = class {
|
|
|
328
329
|
if (error && _this2.shouldThrowOnError) throw new PostgrestError(error);
|
|
329
330
|
}
|
|
330
331
|
return {
|
|
332
|
+
success: error === null,
|
|
331
333
|
error,
|
|
332
334
|
data,
|
|
333
335
|
count,
|