flowforge-client 0.3.3 → 0.3.4
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/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1068,6 +1068,9 @@ function createClient(baseUrl, options = {}) {
|
|
|
1068
1068
|
};
|
|
1069
1069
|
return { data: null, error };
|
|
1070
1070
|
}
|
|
1071
|
+
if (response.status === 204) {
|
|
1072
|
+
return { data: { success: true, message: "Deleted" }, error: null };
|
|
1073
|
+
}
|
|
1071
1074
|
const data = await response.json();
|
|
1072
1075
|
return { data, error: null };
|
|
1073
1076
|
} catch (err) {
|
package/dist/index.mjs
CHANGED
|
@@ -1030,6 +1030,9 @@ function createClient(baseUrl, options = {}) {
|
|
|
1030
1030
|
};
|
|
1031
1031
|
return { data: null, error };
|
|
1032
1032
|
}
|
|
1033
|
+
if (response.status === 204) {
|
|
1034
|
+
return { data: { success: true, message: "Deleted" }, error: null };
|
|
1035
|
+
}
|
|
1033
1036
|
const data = await response.json();
|
|
1034
1037
|
return { data, error: null };
|
|
1035
1038
|
} catch (err) {
|