@swmansion/argent 0.34.1-next.1 → 0.34.1-next.2
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/cli-cmds.mjs +9 -2
- package/dist/client.js +9 -2
- package/dist/mcp-server.mjs +9 -2
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -31186,17 +31186,24 @@ function uploadFailure(url2, res, text2, bytes) {
|
|
|
31186
31186
|
}
|
|
31187
31187
|
async function uploadTar(tarPath, format, endpoint, signal) {
|
|
31188
31188
|
const { size } = await stat3(tarPath);
|
|
31189
|
+
const stream = createReadStream2(tarPath);
|
|
31189
31190
|
const init2 = {
|
|
31190
31191
|
method: "POST",
|
|
31191
31192
|
headers: {
|
|
31192
31193
|
"content-type": ARCHIVE_CONTENT_TYPES[format],
|
|
31193
31194
|
...endpoint.token ? { Authorization: `Bearer ${endpoint.token}` } : {}
|
|
31194
31195
|
},
|
|
31195
|
-
body:
|
|
31196
|
+
body: stream,
|
|
31196
31197
|
duplex: "half",
|
|
31197
31198
|
signal
|
|
31198
31199
|
};
|
|
31199
|
-
|
|
31200
|
+
let res;
|
|
31201
|
+
try {
|
|
31202
|
+
res = await fetch(`${endpoint.url}/upload`, init2);
|
|
31203
|
+
} catch (err) {
|
|
31204
|
+
stream.destroy();
|
|
31205
|
+
throw err;
|
|
31206
|
+
}
|
|
31200
31207
|
if (!res.ok) {
|
|
31201
31208
|
let text2 = "";
|
|
31202
31209
|
try {
|
package/dist/client.js
CHANGED
|
@@ -9932,17 +9932,24 @@ function uploadFailure(url, res, text, bytes) {
|
|
|
9932
9932
|
}
|
|
9933
9933
|
async function uploadTar(tarPath, format, endpoint, signal) {
|
|
9934
9934
|
const { size } = await stat3(tarPath);
|
|
9935
|
+
const stream = createReadStream2(tarPath);
|
|
9935
9936
|
const init = {
|
|
9936
9937
|
method: "POST",
|
|
9937
9938
|
headers: {
|
|
9938
9939
|
"content-type": ARCHIVE_CONTENT_TYPES[format],
|
|
9939
9940
|
...endpoint.token ? { Authorization: `Bearer ${endpoint.token}` } : {}
|
|
9940
9941
|
},
|
|
9941
|
-
body:
|
|
9942
|
+
body: stream,
|
|
9942
9943
|
duplex: "half",
|
|
9943
9944
|
signal
|
|
9944
9945
|
};
|
|
9945
|
-
|
|
9946
|
+
let res;
|
|
9947
|
+
try {
|
|
9948
|
+
res = await fetch(`${endpoint.url}/upload`, init);
|
|
9949
|
+
} catch (err) {
|
|
9950
|
+
stream.destroy();
|
|
9951
|
+
throw err;
|
|
9952
|
+
}
|
|
9946
9953
|
if (!res.ok) {
|
|
9947
9954
|
let text = "";
|
|
9948
9955
|
try {
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -26686,17 +26686,24 @@ function uploadFailure(url, res, text, bytes) {
|
|
|
26686
26686
|
}
|
|
26687
26687
|
async function uploadTar(tarPath, format, endpoint, signal) {
|
|
26688
26688
|
const { size } = await stat3(tarPath);
|
|
26689
|
+
const stream = createReadStream2(tarPath);
|
|
26689
26690
|
const init = {
|
|
26690
26691
|
method: "POST",
|
|
26691
26692
|
headers: {
|
|
26692
26693
|
"content-type": ARCHIVE_CONTENT_TYPES[format],
|
|
26693
26694
|
...endpoint.token ? { Authorization: `Bearer ${endpoint.token}` } : {}
|
|
26694
26695
|
},
|
|
26695
|
-
body:
|
|
26696
|
+
body: stream,
|
|
26696
26697
|
duplex: "half",
|
|
26697
26698
|
signal
|
|
26698
26699
|
};
|
|
26699
|
-
|
|
26700
|
+
let res;
|
|
26701
|
+
try {
|
|
26702
|
+
res = await fetch(`${endpoint.url}/upload`, init);
|
|
26703
|
+
} catch (err) {
|
|
26704
|
+
stream.destroy();
|
|
26705
|
+
throw err;
|
|
26706
|
+
}
|
|
26700
26707
|
if (!res.ok) {
|
|
26701
26708
|
let text = "";
|
|
26702
26709
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swmansion/argent",
|
|
3
|
-
"version": "0.34.1-next.
|
|
3
|
+
"version": "0.34.1-next.2",
|
|
4
4
|
"mcpName": "io.github.software-mansion/argent",
|
|
5
5
|
"description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
|
|
6
6
|
"license": "Apache-2.0",
|