@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfutureapps/db-sdk",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "SfutureApps JS SDK for ThinkPHP DB Gateway (MySQL)",
5
5
  "license": "MIT",
6
6
  "type": "module",
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 (or BASE_URL) is required. For Vite use VITE_API_URL, for Next use NEXT_PUBLIC_API_URL, for CRA use REACT_APP_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
 
@@ -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,