@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.
@@ -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 { success: true, units: ret };
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 { success: true, repos: ret };
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 { success: true, keys: ret };
129
+ return ret;
130
130
  };
131
131
  this.baseURL = baseURL;
132
132
  this.headers = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },