Skip to content

Commit

Permalink
feat(core): update version of axios used (#19607)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Oct 13, 2023
1 parent d36194a commit 2fb735d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
"@yarnpkg/lockfile": "^1.1.0",
"@yarnpkg/parsers": "3.0.0-rc.46",
"@zkochan/js-yaml": "0.0.6",
"axios": "1.0.0",
"axios": "^1.5.1",
"classnames": "^2.3.1",
"cliui": "^8.0.1",
"core-js": "^3.6.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-nx-workspace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"tmp": "~0.2.1",
"tslib": "^2.3.0",
"yargs": "^17.6.2",
"axios": "^1.0.0"
"axios": "^1.5.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/nx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@yarnpkg/lockfile": "^1.1.0",
"@yarnpkg/parsers": "3.0.0-rc.46",
"@zkochan/js-yaml": "0.0.6",
"axios": "^1.0.0",
"axios": "^1.5.1",
"chalk": "^4.1.0",
"cli-cursor": "3.1.0",
"cli-spinners": "2.6.1",
Expand Down
14 changes: 6 additions & 8 deletions packages/nx/src/nx-cloud/update-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,12 @@ async function verifyCurrentBundle(
currentBundle: CloudBundleInstall | null
): Promise<AxiosResponse<VerifyClientBundleResponse>> {
const contentHash = getBundleContentHash(currentBundle);
const queryParams =
currentBundle && contentHash
? `?${new URLSearchParams({
version: currentBundle.version,
contentHash: contentHash,
}).toString()}`
: '';
return axios.get('/nx-cloud/client/verify' + queryParams);
return axios.get('/nx-cloud/client/verify', {
params: {
version: currentBundle.version,
contentHash: contentHash,
},
});
}

function getLatestBundleVerificationTimestamp(): number | null {
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 2fb735d

@vercel
Copy link

@vercel vercel bot commented on 2fb735d Oct 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.