@vercel/client 12.2.10 → 12.2.11

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.
Files changed (2) hide show
  1. package/dist/upload.js +5 -2
  2. package/package.json +2 -2
package/dist/upload.js CHANGED
@@ -4,7 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.upload = void 0;
7
- const https_1 = require("https");
7
+ const http_1 = __importDefault(require("http"));
8
+ const https_1 = __importDefault(require("https"));
8
9
  const stream_1 = require("stream");
9
10
  const events_1 = require("events");
10
11
  const async_retry_1 = __importDefault(require("async-retry"));
@@ -63,7 +64,9 @@ async function* upload(files, clientOptions, deploymentOptions) {
63
64
  const uploadList = {};
64
65
  debug('Building an upload list...');
65
66
  const semaphore = new async_sema_1.Sema(50, { capacity: 50 });
66
- const agent = new https_1.Agent({ keepAlive: true });
67
+ const agent = apiUrl?.startsWith('https://')
68
+ ? new https_1.default.Agent({ keepAlive: true })
69
+ : new http_1.default.Agent({ keepAlive: true });
67
70
  shas.forEach((sha, index) => {
68
71
  const uploadProgress = uploads[index];
69
72
  uploadList[sha] = async_retry_1.default(async (bail) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "12.2.10",
3
+ "version": "12.2.11",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "homepage": "https://vercel.com",
@@ -57,5 +57,5 @@
57
57
  "sleep-promise": "8.0.1",
58
58
  "tar-fs": "1.16.3"
59
59
  },
60
- "gitHead": "8814fc15159c78432375d7bb6a99c2e42125de5d"
60
+ "gitHead": "053c185481b1fa0f980e3f54c9ecbeda53e7d72b"
61
61
  }