@supabase/postgrest-js
Advanced tools
Comparing version 0.25.0 to 0.26.0
@@ -41,3 +41,4 @@ "use strict"; | ||
const key = typeof foreignTable === 'undefined' ? 'order' : `${foreignTable}.order`; | ||
this.url.searchParams.set(key, `${column}.${ascending ? 'asc' : 'desc'}.${nullsFirst ? 'nullsfirst' : 'nullslast'}`); | ||
const existingOrder = this.url.searchParams.get(key); | ||
this.url.searchParams.set(key, `${existingOrder ? `${existingOrder},` : ''}${column}.${ascending ? 'asc' : 'desc'}.${nullsFirst ? 'nullsfirst' : 'nullslast'}`); | ||
return this; | ||
@@ -44,0 +45,0 @@ } |
@@ -39,3 +39,4 @@ import { PostgrestBuilder } from './types'; | ||
const key = typeof foreignTable === 'undefined' ? 'order' : `${foreignTable}.order`; | ||
this.url.searchParams.set(key, `${column}.${ascending ? 'asc' : 'desc'}.${nullsFirst ? 'nullsfirst' : 'nullslast'}`); | ||
const existingOrder = this.url.searchParams.get(key); | ||
this.url.searchParams.set(key, `${existingOrder ? `${existingOrder},` : ''}${column}.${ascending ? 'asc' : 'desc'}.${nullsFirst ? 'nullsfirst' : 'nullslast'}`); | ||
return this; | ||
@@ -42,0 +43,0 @@ } |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "0.25.0", | ||
"version": "0.26.0", | ||
"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
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
136307
2235