From 2fb735d33f3f010549597b2c02e5d89842a0c185 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Fri, 13 Oct 2023 16:25:13 -0400 Subject: [PATCH] feat(core): update version of axios used (#19607) --- package.json | 2 +- packages/create-nx-workspace/package.json | 2 +- packages/nx/package.json | 2 +- packages/nx/src/nx-cloud/update-manager.ts | 14 ++++++-------- pnpm-lock.yaml | 18 +++++++++--------- 5 files changed, 18 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 31f72674c7ad6..644c3a1adac30 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/create-nx-workspace/package.json b/packages/create-nx-workspace/package.json index 4fdf734b9879d..606ef43484e88 100644 --- a/packages/create-nx-workspace/package.json +++ b/packages/create-nx-workspace/package.json @@ -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" diff --git a/packages/nx/package.json b/packages/nx/package.json index 70ecf6d6aa37b..a2d5acd0f541a 100644 --- a/packages/nx/package.json +++ b/packages/nx/package.json @@ -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", diff --git a/packages/nx/src/nx-cloud/update-manager.ts b/packages/nx/src/nx-cloud/update-manager.ts index 6d8fadae9070f..ffdf014237311 100644 --- a/packages/nx/src/nx-cloud/update-manager.ts +++ b/packages/nx/src/nx-cloud/update-manager.ts @@ -215,14 +215,12 @@ async function verifyCurrentBundle( currentBundle: CloudBundleInstall | null ): Promise> { 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 { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd11267477090..f0e34e4e1eefb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,8 +58,8 @@ dependencies: specifier: 0.0.6 version: 0.0.6 axios: - specifier: 1.0.0 - version: 1.0.0 + specifier: ^1.5.1 + version: 1.5.1 classnames: specifier: ^2.3.1 version: 2.3.2 @@ -11696,24 +11696,24 @@ packages: - debug dev: true - /axios@1.0.0: - resolution: {integrity: sha512-SsHsGFN1qNPFT5QhSoSD37SHDfGyLSW5AESmyLk2JeCMHv5g0I9g0Hz/zQHx2KNe0jGXh2q2hAm7OdkXm360CA==} + /axios@1.1.3: + resolution: {integrity: sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==} dependencies: follow-redirects: 1.15.2(debug@4.3.2) form-data: 4.0.0 proxy-from-env: 1.1.0 transitivePeerDependencies: - debug + dev: true - /axios@1.1.3: - resolution: {integrity: sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==} + /axios@1.5.1: + resolution: {integrity: sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==} dependencies: follow-redirects: 1.15.2(debug@4.3.2) form-data: 4.0.0 proxy-from-env: 1.1.0 transitivePeerDependencies: - debug - dev: true /axobject-query@2.2.0: resolution: {integrity: sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==} @@ -20836,7 +20836,7 @@ packages: '@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.2 cli-cursor: 3.1.0 cli-spinners: 2.6.1 @@ -20899,7 +20899,7 @@ packages: '@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.2 cli-cursor: 3.1.0 cli-spinners: 2.6.1