@flashbacktech/flashbackclient 0.0.39 → 0.0.40
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/api/client.js +3 -3
- package/package.json +1 -1
package/dist/api/client.js
CHANGED
|
@@ -80,7 +80,7 @@ class ApiClient {
|
|
|
80
80
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
81
81
|
}
|
|
82
82
|
const ret = await response.json();
|
|
83
|
-
return
|
|
83
|
+
return ret;
|
|
84
84
|
};
|
|
85
85
|
this.createRepo = async (data) => {
|
|
86
86
|
const response = await fetch(`${this.baseURL}/repo`, {
|
|
@@ -103,7 +103,7 @@ class ApiClient {
|
|
|
103
103
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
104
104
|
}
|
|
105
105
|
const ret = await response.json();
|
|
106
|
-
return
|
|
106
|
+
return ret;
|
|
107
107
|
};
|
|
108
108
|
this.createRepoKey = async (data) => {
|
|
109
109
|
const response = await fetch(`${this.baseURL}/repo/${data.repoId}/apikey`, {
|
|
@@ -126,7 +126,7 @@ class ApiClient {
|
|
|
126
126
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
127
127
|
}
|
|
128
128
|
const ret = await response.json();
|
|
129
|
-
return
|
|
129
|
+
return ret;
|
|
130
130
|
};
|
|
131
131
|
this.baseURL = baseURL;
|
|
132
132
|
this.headers = {
|