feat(core): update version of axios used (#19607)

This commit is contained in:
Jason Jean 2023-10-13 16:25:13 -04:00 committed by GitHub
parent d36194ad17
commit 2fb735d33f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 24 deletions

View File

@ -324,7 +324,7 @@
"@yarnpkg/lockfile": "^1.1.0", "@yarnpkg/lockfile": "^1.1.0",
"@yarnpkg/parsers": "3.0.0-rc.46", "@yarnpkg/parsers": "3.0.0-rc.46",
"@zkochan/js-yaml": "0.0.6", "@zkochan/js-yaml": "0.0.6",
"axios": "1.0.0", "axios": "^1.5.1",
"classnames": "^2.3.1", "classnames": "^2.3.1",
"cliui": "^8.0.1", "cliui": "^8.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",

View File

@ -36,7 +36,7 @@
"tmp": "~0.2.1", "tmp": "~0.2.1",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"yargs": "^17.6.2", "yargs": "^17.6.2",
"axios": "^1.0.0" "axios": "^1.5.1"
}, },
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"

View File

@ -37,7 +37,7 @@
"@yarnpkg/lockfile": "^1.1.0", "@yarnpkg/lockfile": "^1.1.0",
"@yarnpkg/parsers": "3.0.0-rc.46", "@yarnpkg/parsers": "3.0.0-rc.46",
"@zkochan/js-yaml": "0.0.6", "@zkochan/js-yaml": "0.0.6",
"axios": "^1.0.0", "axios": "^1.5.1",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"cli-cursor": "3.1.0", "cli-cursor": "3.1.0",
"cli-spinners": "2.6.1", "cli-spinners": "2.6.1",

View File

@ -215,14 +215,12 @@ async function verifyCurrentBundle(
currentBundle: CloudBundleInstall | null currentBundle: CloudBundleInstall | null
): Promise<AxiosResponse<VerifyClientBundleResponse>> { ): Promise<AxiosResponse<VerifyClientBundleResponse>> {
const contentHash = getBundleContentHash(currentBundle); const contentHash = getBundleContentHash(currentBundle);
const queryParams = return axios.get('/nx-cloud/client/verify', {
currentBundle && contentHash params: {
? `?${new URLSearchParams({
version: currentBundle.version, version: currentBundle.version,
contentHash: contentHash, contentHash: contentHash,
}).toString()}` },
: ''; });
return axios.get('/nx-cloud/client/verify' + queryParams);
} }
function getLatestBundleVerificationTimestamp(): number | null { function getLatestBundleVerificationTimestamp(): number | null {

26
pnpm-lock.yaml generated
View File

@ -58,8 +58,8 @@ dependencies:
specifier: 0.0.6 specifier: 0.0.6
version: 0.0.6 version: 0.0.6
axios: axios:
specifier: 1.0.0 specifier: ^1.5.1
version: 1.0.0 version: 1.5.1
classnames: classnames:
specifier: ^2.3.1 specifier: ^2.3.1
version: 2.3.2 version: 2.3.2
@ -11696,15 +11696,6 @@ packages:
- debug - debug
dev: true dev: true
/axios@1.0.0:
resolution: {integrity: sha512-SsHsGFN1qNPFT5QhSoSD37SHDfGyLSW5AESmyLk2JeCMHv5g0I9g0Hz/zQHx2KNe0jGXh2q2hAm7OdkXm360CA==}
dependencies:
follow-redirects: 1.15.2(debug@4.3.2)
form-data: 4.0.0
proxy-from-env: 1.1.0
transitivePeerDependencies:
- debug
/axios@1.1.3: /axios@1.1.3:
resolution: {integrity: sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==} resolution: {integrity: sha512-00tXVRwKx/FZr/IDVFt4C+f9FYairX517WoGCL6dpOntqLkZofjhu43F/Xl44UOpqa+9sLFDrG/XAnFsUYgkDA==}
dependencies: dependencies:
@ -11715,6 +11706,15 @@ packages:
- debug - debug
dev: true dev: true
/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
/axobject-query@2.2.0: /axobject-query@2.2.0:
resolution: {integrity: sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==} resolution: {integrity: sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==}
dev: true dev: true
@ -20836,7 +20836,7 @@ packages:
'@yarnpkg/lockfile': 1.1.0 '@yarnpkg/lockfile': 1.1.0
'@yarnpkg/parsers': 3.0.0-rc.46 '@yarnpkg/parsers': 3.0.0-rc.46
'@zkochan/js-yaml': 0.0.6 '@zkochan/js-yaml': 0.0.6
axios: 1.0.0 axios: 1.5.1
chalk: 4.1.2 chalk: 4.1.2
cli-cursor: 3.1.0 cli-cursor: 3.1.0
cli-spinners: 2.6.1 cli-spinners: 2.6.1
@ -20899,7 +20899,7 @@ packages:
'@yarnpkg/lockfile': 1.1.0 '@yarnpkg/lockfile': 1.1.0
'@yarnpkg/parsers': 3.0.0-rc.46 '@yarnpkg/parsers': 3.0.0-rc.46
'@zkochan/js-yaml': 0.0.6 '@zkochan/js-yaml': 0.0.6
axios: 1.0.0 axios: 1.5.1
chalk: 4.1.2 chalk: 4.1.2
cli-cursor: 3.1.0 cli-cursor: 3.1.0
cli-spinners: 2.6.1 cli-spinners: 2.6.1