Skip to content

Commit 15b9cea

Browse files
committed
Version 1.9.8
1 parent 1c2d804 commit 15b9cea

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

dist/index.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -46583,33 +46583,6 @@ class ApiClient {
4658346583
this.projectId = projectId;
4658446584
}
4658546585
cloudUploadRequest(request, appFile, workspaceZip, mappingFile) {
46586-
return __awaiter(this, void 0, void 0, function* () {
46587-
const formData = new node_fetch_1.FormData();
46588-
if (appFile) {
46589-
formData.set('app_binary', (0, node_fetch_1.fileFromSync)(appFile));
46590-
}
46591-
if (workspaceZip) {
46592-
formData.set('workspace', (0, node_fetch_1.fileFromSync)(workspaceZip));
46593-
}
46594-
if (mappingFile) {
46595-
formData.set('mapping', (0, node_fetch_1.fileFromSync)(mappingFile));
46596-
}
46597-
formData.set('request', JSON.stringify(request));
46598-
const res = yield (0, node_fetch_1.default)(`${this.apiUrl}/v2/upload`, {
46599-
method: 'POST',
46600-
headers: {
46601-
Authorization: `Bearer ${this.apiKey}`
46602-
},
46603-
body: formData
46604-
});
46605-
if (!res.ok) {
46606-
const body = yield res.text();
46607-
throw new Error(`Request to ${res.url} failed (${res.status}): ${body}`);
46608-
}
46609-
return (yield res.json());
46610-
});
46611-
}
46612-
robinUploadRequest(request, appFile, workspaceZip, mappingFile) {
4661346586
return __awaiter(this, void 0, void 0, function* () {
4661446587
const formData = new node_fetch_1.FormData();
4661546588
if (appFile) {

0 commit comments

Comments
 (0)