@sfutureapps/db-sdk 0.3.18 → 0.3.19

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.18",
3
+ "version": "0.3.19",
4
4
  "description": "SfutureApps JS SDK for ThinkPHP DB Gateway (MySQL)",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/client.js CHANGED
@@ -162,7 +162,6 @@ export default async function post({ endpoint, data, params } = {}) {
162
162
 
163
163
  const headers = {
164
164
  "Content-Type": "application/x-www-form-urlencoded",
165
- Accept: "application/json",
166
165
  ...(API_KEY ? { "X-API-Key": API_KEY } : {}),
167
166
  };
168
167
 
@@ -113,7 +113,7 @@ export class QueryBuilder {
113
113
  const payload = {
114
114
  table: this.tableName,
115
115
  select: this._select,
116
- filters: JSON.stringify(this._filters),
116
+ filters: this._filters,
117
117
  order: this._order,
118
118
  limit: this._limit ?? 20,
119
119
  count: this._withCount,