Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a475aa49
Commit
a475aa49
authored
Sep 02, 2020
by
Tim Zallmann
Committed by
Nicolò Maria Mezzopera
Sep 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Update axios to 0.20.0"
parent
573bc5f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
app/assets/javascripts/deploy_keys/service/index.js
app/assets/javascripts/deploy_keys/service/index.js
+4
-6
package.json
package.json
+1
-1
yarn.lock
yarn.lock
+12
-8
No files found.
app/assets/javascripts/deploy_keys/service/index.js
View file @
a475aa49
...
...
@@ -2,20 +2,18 @@ import axios from '~/lib/utils/axios_utils';
export
default
class
DeployKeysService
{
constructor
(
endpoint
)
{
this
.
axios
=
axios
.
create
({
baseURL
:
endpoint
,
});
this
.
endpoint
=
endpoint
;
}
getKeys
()
{
return
this
.
axios
.
get
(
).
then
(
response
=>
response
.
data
);
return
axios
.
get
(
this
.
endpoint
).
then
(
response
=>
response
.
data
);
}
enableKey
(
id
)
{
return
this
.
axios
.
put
(
`
${
id
}
/enable`
).
then
(
response
=>
response
.
data
);
return
axios
.
put
(
`
${
this
.
endpoint
}
/
${
id
}
/enable`
).
then
(
response
=>
response
.
data
);
}
disableKey
(
id
)
{
return
this
.
axios
.
put
(
`
${
id
}
/disable`
).
then
(
response
=>
response
.
data
);
return
axios
.
put
(
`
${
this
.
endpoint
}
/
${
id
}
/disable`
).
then
(
response
=>
response
.
data
);
}
}
package.json
View file @
a475aa49
...
...
@@ -57,7 +57,7 @@
"
apollo-upload-client
"
:
"
^13.0.0
"
,
"
autosize
"
:
"
^4.0.2
"
,
"
aws-sdk
"
:
"
^2.637.0
"
,
"
axios
"
:
"
^0.
19
.0
"
,
"
axios
"
:
"
^0.
20
.0
"
,
"
babel-loader
"
:
"
^8.0.6
"
,
"
babel-plugin-lodash
"
:
"
^3.3.4
"
,
"
bootstrap
"
:
"
4.4.1
"
,
...
...
yarn.lock
View file @
a475aa49
...
...
@@ -2085,13 +2085,12 @@ axios-mock-adapter@^1.15.0:
dependencies:
deep-equal "^1.0.1"
axios@^0.
19
.0:
version "0.
19
.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.
19.0.tgz#8e09bff3d9122e133f7b8101c8fbdd00ed3d2ab8
"
integrity sha512-
1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ
==
axios@^0.
20
.0:
version "0.
20
.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.
20.0.tgz#057ba30f04884694993a8cd07fa394cff11c50bd
"
integrity sha512-
ANA4rr2BDcmmAQLOKft2fufrtuvlqR+cXNNinUmvfeSNCOF98PZL+7M/v1zIdGo7OLjEA9J2gXJL+j4zGsl0bA
==
dependencies:
follow-redirects "1.5.10"
is-buffer "^2.0.2"
follow-redirects "^1.10.0"
babel-eslint@^10.0.3:
version "10.0.3"
...
...
@@ -5139,13 +5138,18 @@ flush-write-stream@^1.0.0:
inherits "^2.0.3"
readable-stream "^2.3.6"
follow-redirects@
1.5.10, follow-redirects@
^1.0.0:
follow-redirects@^1.0.0:
version "1.5.10"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.10.tgz#7b7a9f9aea2fdff36786a94ff643ed07f4ff5e2a"
integrity sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==
dependencies:
debug "=3.1.0"
follow-redirects@^1.10.0:
version "1.13.0"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db"
integrity sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==
font-awesome@4.7.0:
version "4.7.0"
resolved "https://registry.yarnpkg.com/font-awesome/-/font-awesome-4.7.0.tgz#8fa8cf0411a1a31afd07b06d2902bb9fc815a133"
...
...
@@ -6194,7 +6198,7 @@ is-buffer@^1.1.5, is-buffer@~1.1.1:
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==
is-buffer@^2.0.0
, is-buffer@^2.0.2
:
is-buffer@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.3.tgz#4ecf3fcf749cbd1e472689e109ac66261a25e725"
integrity sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment