@qaecy/cue-cli 0.0.36 → 0.0.37
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/main.js +2 -8
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -8143,8 +8143,6 @@ WHERE {
|
|
|
8143
8143
|
}
|
|
8144
8144
|
}
|
|
8145
8145
|
async _postFssBatch(items, spaceId) {
|
|
8146
|
-
const controller = new AbortController();
|
|
8147
|
-
const timeout = setTimeout(() => controller.abort(), 15e3);
|
|
8148
8146
|
const url = this._legacy ? `${this._gatewayUrl}${ENDPOINT_FSS_BATCH}?blob=true` : `${this._gatewayUrl}${ENDPOINT_FSS_BATCH}`;
|
|
8149
8147
|
let response;
|
|
8150
8148
|
try {
|
|
@@ -8154,14 +8152,10 @@ WHERE {
|
|
|
8154
8152
|
"Content-Type": "application/json",
|
|
8155
8153
|
"x-project-id": spaceId
|
|
8156
8154
|
},
|
|
8157
|
-
body: JSON.stringify({ items })
|
|
8158
|
-
signal: controller.signal
|
|
8155
|
+
body: JSON.stringify({ items })
|
|
8159
8156
|
});
|
|
8160
8157
|
} catch (err) {
|
|
8161
|
-
|
|
8162
|
-
throw new Error(`File structure batch POST failed: ${isTimeout ? "request timed out" : err instanceof Error ? err.message : String(err)}`);
|
|
8163
|
-
} finally {
|
|
8164
|
-
clearTimeout(timeout);
|
|
8158
|
+
throw new Error(`File structure batch POST failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
8165
8159
|
}
|
|
8166
8160
|
if (!response.ok) {
|
|
8167
8161
|
const body = await response.text().catch(() => "");
|