Skip to content

Commit

Permalink
Update npm packages (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Martinez Gotor authored Jun 3, 2019
1 parent 8288c33 commit fa53902
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 29 deletions.
3 changes: 2 additions & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"@types/react-select": "^1.2.6",
"@types/semver": "^5.5.0",
"@types/ws": "^6.0.0",
"axios": "^0.17.1",
"axios": "^0.19.0",
"connected-react-router": "^4.5.0",
"enzyme-adapter-react-16": "^1.1.1",
"fstream": "^1.0.12",
"js-yaml": "^3.10.0",
"lodash": "^4.17.11",
"moniker-native": "^0.1.6",
Expand Down
5 changes: 3 additions & 2 deletions dashboard/src/shared/App.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { IAppOverview } from "./types";

describe("App", () => {
beforeEach(() => {
moxios.install(axiosWithAuth);
// Import as "any" to avoid typescript syntax error
moxios.install(axiosWithAuth as any);
});
afterEach(() => {
moxios.uninstall(axiosWithAuth);
moxios.uninstall(axiosWithAuth as any);
});
describe("getResourceURL", () => {
[
Expand Down
5 changes: 3 additions & 2 deletions dashboard/src/shared/AxiosInstance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ describe("createAxiosInterceptorWithAuth", () => {
});

beforeEach(() => {
moxios.install(axios);
// Import as "any" to avoid typescript syntax error
moxios.install(axios as any);
});

afterEach(() => {
moxios.uninstall(axios);
moxios.uninstall(axios as any);
store.clearActions();
});

Expand Down
5 changes: 3 additions & 2 deletions dashboard/src/shared/Config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ describe("Config", () => {

beforeEach(() => {
initialEnv = { ...process.env };
moxios.install(axios);
// Import as "any" to avoid typescript syntax error
moxios.install(axios as any);

defaultJSON = require("../../public/config.json");

Expand All @@ -17,7 +18,7 @@ describe("Config", () => {

afterEach(() => {
process.env = initialEnv;
moxios.uninstall(axios);
moxios.uninstall(axios as any);
});

it("returns default namespace if no override provided", async () => {
Expand Down
5 changes: 3 additions & 2 deletions dashboard/src/shared/Kube.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { APIBase, Kube, WebSocketAPIBase } from "./Kube";

describe("App", () => {
beforeEach(() => {
moxios.install(axiosWithAuth);
// Import as "any" to avoid typescript syntax error
moxios.install(axiosWithAuth as any);
});
afterEach(() => {
moxios.uninstall(axiosWithAuth);
moxios.uninstall(axiosWithAuth as any);
});
describe("getResourceURL", () => {
[
Expand Down
55 changes: 35 additions & 20 deletions dashboard/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -808,13 +808,13 @@ axios@^0.16.1:
follow-redirects "^1.2.3"
is-buffer "^1.1.5"

axios@^0.17.1:
version "0.17.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.17.1.tgz#2d8e3e5d0bdbd7327f91bc814f5c57660f81824d"
integrity sha1-LY4+XQvb1zJ/kbyBT1xXZg+Bgk0=
axios@^0.19.0:
version "0.19.0"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.0.tgz#8e09bff3d9122e133f7b8101c8fbdd00ed3d2ab8"
integrity sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ==
dependencies:
follow-redirects "^1.2.5"
is-buffer "^1.1.5"
follow-redirects "1.5.10"
is-buffer "^2.0.2"

babel-code-frame@6.26.0, babel-code-frame@^6.11.0, babel-code-frame@^6.22.0, babel-code-frame@^6.26.0:
version "6.26.0"
Expand Down Expand Up @@ -2813,10 +2813,10 @@ debug@=3.1.0, debug@^3.0.0:
dependencies:
ms "2.0.0"

debug@^3.1.0:
version "3.2.5"
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.5.tgz#c2418fbfd7a29f4d4f70ff4cea604d4b64c46407"
integrity sha512-D61LaDQPQkxJ5AUM2mbSJRbPkNs/TmdmOeLAi1hgDkpDfIfetSrjmWhccwtuResSwMbACjx/xXQofvM9CE/aeg==
debug@^3.1.0, debug@^3.2.6:
version "3.2.6"
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b"
integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==
dependencies:
ms "^2.1.1"

Expand Down Expand Up @@ -3959,19 +3959,19 @@ flush-write-stream@^1.0.0:
inherits "^2.0.1"
readable-stream "^2.0.4"

follow-redirects@^1.2.3:
version "1.5.7"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.7.tgz#a39e4804dacb90202bca76a9e2ac10433ca6a69a"
integrity sha512-NONJVIFiX7Z8k2WxfqBjtwqMifx7X42ORLFrOZ2LTKGj71G3C0kfdyTqGqr8fx5zSX6Foo/D95dgGWbPUiwnew==
follow-redirects@1.5.10:
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"
debug "=3.1.0"

follow-redirects@^1.2.5:
version "1.5.8"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.8.tgz#1dbfe13e45ad969f813e86c00e5296f525c885a1"
integrity sha512-sy1mXPmv7kLAMKW/8XofG7o9T+6gAjzdZK4AJF6ryqQYUa/hnzgiypoeUecZ53x7XiqKNEpNqLtS97MshW2nxg==
follow-redirects@^1.2.3:
version "1.7.0"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.7.0.tgz#489ebc198dc0e7f64167bd23b03c4c19b5784c76"
integrity sha512-m/pZQy4Gj287eNy94nivy5wchN3Kp+Q5WgUPNy5lJSZ3sgkVKSYV/ZChMAQVIgx1SqfZ2zBZtPA2YlXIWxxJOQ==
dependencies:
debug "=3.1.0"
debug "^3.2.6"

for-in@^1.0.1, for-in@^1.0.2:
version "1.0.2"
Expand Down Expand Up @@ -4121,6 +4121,16 @@ fstream@^1.0.0, fstream@^1.0.2:
mkdirp ">=0.5 0"
rimraf "2"

fstream@^1.0.12:
version "1.0.12"
resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045"
integrity sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==
dependencies:
graceful-fs "^4.1.2"
inherits "~2.0.0"
mkdirp ">=0.5 0"
rimraf "2"

function-bind@^1.0.2, function-bind@^1.1.0, function-bind@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
Expand Down Expand Up @@ -4965,6 +4975,11 @@ is-buffer@^1.1.4, is-buffer@^1.1.5:
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==

is-buffer@^2.0.2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.3.tgz#4ecf3fcf749cbd1e472689e109ac66261a25e725"
integrity sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==

is-builtin-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
Expand Down

0 comments on commit fa53902

Please sign in to comment.