@vercel/client 13.0.6 → 13.0.8

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.
@@ -202,6 +202,10 @@ const fetch = async (url, token, opts = {}, debugEnabled, useNodeFetch) => {
202
202
  let time;
203
203
  url = `${opts.apiUrl || "https://api.vercel.com"}${url}`;
204
204
  delete opts.apiUrl;
205
+ const { VERCEL_TEAM_ID } = process.env;
206
+ if (VERCEL_TEAM_ID) {
207
+ url += `${url.includes("?") ? "&" : "?"}teamId=${VERCEL_TEAM_ID}`;
208
+ }
205
209
  if (opts.teamId) {
206
210
  const parsedUrl = new import_url.URL(url);
207
211
  parsedUrl.searchParams.set("teamId", opts.teamId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "13.0.6",
3
+ "version": "13.0.8",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "homepage": "https://vercel.com",
@@ -30,7 +30,7 @@
30
30
  "typescript": "4.9.5"
31
31
  },
32
32
  "dependencies": {
33
- "@vercel/build-utils": "7.2.2",
33
+ "@vercel/build-utils": "7.2.4",
34
34
  "@vercel/routing-utils": "3.1.0",
35
35
  "@zeit/fetch": "5.2.0",
36
36
  "async-retry": "1.2.3",