Updates
This commit is contained in:
@@ -48,8 +48,7 @@ export default async function fetchApi<
|
||||
let fetchData;
|
||||
let fetchOptions: RequestInit = {};
|
||||
|
||||
if (options.method.match(/get/i) || !options.method) {
|
||||
} else {
|
||||
if (options.method.match(/post|put|delete|patch/i)) {
|
||||
if (options.body && typeof options.body === "object") {
|
||||
fetchOptions.body = JSON.stringify(options.body);
|
||||
}
|
||||
|
||||
Vendored
+1
-3
@@ -52,9 +52,7 @@ function fetchApi(url, options) {
|
||||
try {
|
||||
let fetchData;
|
||||
let fetchOptions = {};
|
||||
if (options.method.match(/get/i) || !options.method) {
|
||||
}
|
||||
else {
|
||||
if (options.method.match(/post|put|delete|patch/i)) {
|
||||
if (options.body && typeof options.body === "object") {
|
||||
fetchOptions.body = JSON.stringify(options.body);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "5.7.11",
|
||||
"version": "5.7.12",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
||||
Reference in New Issue
Block a user