@sfutureapps/db-sdk 0.3.17 → 0.3.18
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/package.json +1 -1
- package/src/client.js +1 -1
- package/src/query-builder.js +1 -1
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -38,7 +38,7 @@ const ADD_TOKEN_TO_GET = [ "true", "1", "yes" ].includes(INCLUDE_TOKEN_IN_GET);
|
|
|
38
38
|
|
|
39
39
|
if (!API_URL) {
|
|
40
40
|
throw new Error(
|
|
41
|
-
"API_URL
|
|
41
|
+
"API_URL is required. For Vite use VITE_API_URL, for Next use NEXT_PUBLIC_API_URL, for CRA use REACT_APP_API_URL."
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
|
package/src/query-builder.js
CHANGED
|
@@ -113,7 +113,7 @@ export class QueryBuilder {
|
|
|
113
113
|
const payload = {
|
|
114
114
|
table: this.tableName,
|
|
115
115
|
select: this._select,
|
|
116
|
-
filters: this._filters,
|
|
116
|
+
filters: JSON.stringify(this._filters),
|
|
117
117
|
order: this._order,
|
|
118
118
|
limit: this._limit ?? 20,
|
|
119
119
|
count: this._withCount,
|