@mablhq/mabl-cli 1.42.7 → 1.43.1
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/api/basicApiClient.js +16 -2
- package/domUtil/index.js +1 -1
- package/execution/index.js +1 -1
- package/mablscript/steps/SyntheticStep.js +1 -1
- package/mablscriptFind/index.js +1 -1
- package/observers/mockObserver.js +3 -0
- package/package.json +1 -1
- package/providers/exportRequestProvider.js +8 -14
- package/resources/mablFind.js +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExportRequestProvider = void 0;
|
|
4
4
|
const mablApi_1 = require("../mablApi");
|
|
5
5
|
const loggingProvider_1 = require("./logging/loggingProvider");
|
|
6
|
-
const
|
|
6
|
+
const basicApiClient_1 = require("../api/basicApiClient");
|
|
7
7
|
const fs = require('fs');
|
|
8
8
|
const ora = require('ora');
|
|
9
9
|
const chalk = require('chalk');
|
|
@@ -119,20 +119,14 @@ class ExportRequestProvider {
|
|
|
119
119
|
prefixText: ' ',
|
|
120
120
|
text: `Downloading export artifact to [${chalk.magenta.bold(outputFilename)}]`,
|
|
121
121
|
}).start();
|
|
122
|
-
const
|
|
123
|
-
await
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
file.close(resolve);
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
catch (exception) {
|
|
133
|
-
reject(exception);
|
|
134
|
-
}
|
|
122
|
+
const client = await basicApiClient_1.BasicApiClient.create();
|
|
123
|
+
const response = await client.makeGetRequest(downloadUrl, undefined, {
|
|
124
|
+
headers: {
|
|
125
|
+
Accept: 'application/zip',
|
|
126
|
+
},
|
|
127
|
+
responseType: 'arraybuffer',
|
|
135
128
|
});
|
|
129
|
+
fs.writeFileSync(outputFilename, response);
|
|
136
130
|
updateSpinnerSuccessStop(this.exportDownloadSpinner);
|
|
137
131
|
return outputFilename;
|
|
138
132
|
}
|