restura-cli 0.2.14 → 0.2.15
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/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -214,6 +214,7 @@ var require_oauth_1_0a = __commonJS({
|
|
|
214
214
|
|
|
215
215
|
// src/index.ts
|
|
216
216
|
import { Command } from "commander";
|
|
217
|
+
import { EnvHttpProxyAgent, setGlobalDispatcher } from "undici";
|
|
217
218
|
|
|
218
219
|
// src/runner/collectionLoader.ts
|
|
219
220
|
import { readFile as readFile2, readdir as readdir2, stat as stat2 } from "fs/promises";
|
|
@@ -5572,9 +5573,12 @@ function buildOne(name, outputPath) {
|
|
|
5572
5573
|
}
|
|
5573
5574
|
|
|
5574
5575
|
// package.json
|
|
5575
|
-
var version = "0.2.
|
|
5576
|
+
var version = "0.2.15";
|
|
5576
5577
|
|
|
5577
5578
|
// src/index.ts
|
|
5579
|
+
if (process.env.HTTP_PROXY || process.env.http_proxy || process.env.HTTPS_PROXY || process.env.https_proxy) {
|
|
5580
|
+
setGlobalDispatcher(new EnvHttpProxyAgent());
|
|
5581
|
+
}
|
|
5578
5582
|
var program = new Command();
|
|
5579
5583
|
program.name("restura").description("Restura CLI \u2014 run API collections in CI").version(version);
|
|
5580
5584
|
registerRunCommand(program);
|