@supabase/postgrest-js
Advanced tools
Comparing version
@@ -59,2 +59,7 @@ "use strict"; | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
if (Array.isArray(values)) { | ||
const columns = values.reduce((acc, x) => acc.concat(Object.keys(x)), []); | ||
const uniqueColumns = [...new Set(columns)]; | ||
this.url.searchParams.set('columns', uniqueColumns.join(',')); | ||
} | ||
return new PostgrestFilterBuilder_1.default(this); | ||
@@ -61,0 +66,0 @@ } |
@@ -54,2 +54,7 @@ import { PostgrestBuilder } from './types'; | ||
this.headers['Prefer'] = prefersHeaders.join(','); | ||
if (Array.isArray(values)) { | ||
const columns = values.reduce((acc, x) => acc.concat(Object.keys(x)), []); | ||
const uniqueColumns = [...new Set(columns)]; | ||
this.url.searchParams.set('columns', uniqueColumns.join(',')); | ||
} | ||
return new PostgrestFilterBuilder(this); | ||
@@ -56,0 +61,0 @@ } |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "0.28.1", | ||
"version": "0.28.2", | ||
"description": "Isomorphic PostgREST client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -110,2 +110,8 @@ import { PostgrestBuilder } from './types' | ||
if (Array.isArray(values)) { | ||
const columns = values.reduce((acc, x) => acc.concat(Object.keys(x)), [] as string[]) | ||
const uniqueColumns = [...new Set(columns)] | ||
this.url.searchParams.set('columns', uniqueColumns.join(',')) | ||
} | ||
return new PostgrestFilterBuilder(this) | ||
@@ -112,0 +118,0 @@ } |
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
183623
0.83%3396
0.44%