@sfutureapps/db-sdk 0.3.17 → 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 +1 -1
- package/src/client.js +1 -2
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
|
|
|
@@ -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
|
|