@supabase/postgrest-js
Advanced tools
Comparing version 1.0.0-next.1 to 1.0.0-next.2
@@ -38,6 +38,6 @@ "use strict"; | ||
} | ||
order(column, { ascending = true, nullsFirst = true, foreignTable, } = {}) { | ||
order(column, { ascending = true, nullsFirst, foreignTable, } = {}) { | ||
const key = foreignTable ? `${foreignTable}.order` : 'order'; | ||
const existingOrder = this.url.searchParams.get(key); | ||
this.url.searchParams.set(key, `${existingOrder ? `${existingOrder},` : ''}${column}.${ascending ? 'asc' : 'desc'}.${nullsFirst ? 'nullsfirst' : 'nullslast'}`); | ||
this.url.searchParams.set(key, `${existingOrder ? `${existingOrder},` : ''}${column}.${ascending ? 'asc' : 'desc'}${nullsFirst === undefined ? '' : nullsFirst ? '.nullsfirst' : '.nullslast'}`); | ||
return this; | ||
@@ -44,0 +44,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const version = "1.0.0-next.1"; | ||
export declare const version = "1.0.0-next.2"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '1.0.0-next.1'; | ||
exports.version = '1.0.0-next.2'; | ||
//# sourceMappingURL=version.js.map |
@@ -33,6 +33,6 @@ import PostgrestBuilder from './PostgrestBuilder'; | ||
} | ||
order(column, { ascending = true, nullsFirst = true, foreignTable, } = {}) { | ||
order(column, { ascending = true, nullsFirst, foreignTable, } = {}) { | ||
const key = foreignTable ? `${foreignTable}.order` : 'order'; | ||
const existingOrder = this.url.searchParams.get(key); | ||
this.url.searchParams.set(key, `${existingOrder ? `${existingOrder},` : ''}${column}.${ascending ? 'asc' : 'desc'}.${nullsFirst ? 'nullsfirst' : 'nullslast'}`); | ||
this.url.searchParams.set(key, `${existingOrder ? `${existingOrder},` : ''}${column}.${ascending ? 'asc' : 'desc'}${nullsFirst === undefined ? '' : nullsFirst ? '.nullsfirst' : '.nullslast'}`); | ||
return this; | ||
@@ -39,0 +39,0 @@ } |
@@ -1,2 +0,2 @@ | ||
export declare const version = "1.0.0-next.1"; | ||
export declare const version = "1.0.0-next.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = '1.0.0-next.1'; | ||
export const version = '1.0.0-next.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/postgrest-js", | ||
"version": "1.0.0-next.1", | ||
"version": "1.0.0-next.2", | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
190182
8