Skip to content

Commit

Permalink
Update packages with vulnerability as reported by npm (caraml-dev#36)
Browse files Browse the repository at this point in the history
* Update packages with vulnerability as reported by npm

Applied with: npm audit fix --force

* Remove eslintcache

* Fix eslint error

- import/no-anonymous-default-export
- react-hooks/exhaustive-deps
  • Loading branch information
davidheryanto authored Dec 17, 2020
1 parent e5ffe90 commit df9b327
Show file tree
Hide file tree
Showing 8 changed files with 12,704 additions and 7,992 deletions.
20,670 changes: 12,686 additions & 7,984 deletions ui/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"react": "16.13.1",
"react-dom": "16.13.1",
"react-lazylog": "github:romanwozniak/react-lazylog",
"react-scripts": "^3.4.3",
"react-scripts": "^4.0.1",
"react-scroll": "^1.7.16",
"react-scroll-to-bottom": "^3.0.0",
"react-scroll-to-bottom": "^4.0.0",
"react-spinners": "^0.9.0",
"react-sticky": "^6.0.3",
"resize-observer-polyfill": "^1.5.1",
Expand Down
4 changes: 3 additions & 1 deletion ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { RouterDetailsView } from "./router/details/RouterDetailsView";
import { RouterVersionDetailsView } from "./router/versions/details/RouterVersionDetailsView";
import { PrivateLayout } from "./PrivateLayout";

export default () => (
const App = () => (
<ErrorBoundary>
<MlpApiContextProvider
mlpApiUrl={apiConfig.mlpApiUrl}
Expand Down Expand Up @@ -73,3 +73,5 @@ export default () => (
</MlpApiContextProvider>
</ErrorBoundary>
);

export default App;
2 changes: 1 addition & 1 deletion ui/src/components/form/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const FormContextProvider = ({ data: initData, ...props }) => {
[setData]
);

const rootHandler = useCallback(new StackableFunction([], handleChanges), [
const rootHandler = useCallback(() => new StackableFunction([], handleChanges), [
handleChanges
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const percentageMetricSchema = yup
}
});

export default {
const schema = {
team: yup.object().shape({
team: yup.string().required("Team name is required.")
}),
Expand Down Expand Up @@ -88,3 +88,5 @@ export default {
})
})
};

export default schema;
4 changes: 3 additions & 1 deletion ui/src/router/components/form/validation/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const kafkaConfigSchema = yup.object().shape({
.oneOf(["json", "protobuf"], "Valid serialzation format should be selected")
});

export default [
const schema = [
yup.object().shape({
name: yup
.string()
Expand Down Expand Up @@ -302,3 +302,5 @@ export default [
})
})
];

export default schema;
4 changes: 3 additions & 1 deletion ui/src/router/logs/hooks/useEventEmitter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useMemo, useState } from "react";
import mitt from "mitt";

export default () => {
const useEventEmitter = () => {
const [doPoll, setDoPoll] = useState(false);

const emitter = useMemo(() => {
Expand All @@ -25,3 +25,5 @@ export default () => {

return { emitter, isActive: doPoll };
};

export default useEventEmitter;
4 changes: 3 additions & 1 deletion ui/src/router/logs/hooks/useEventEmitterLogsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useEventEmitter from "./useEventEmitter";
const POLLING_INTERVAL = 5000;
const BATCH_SIZE = 500;

export default (projectId, routerId, params, formatMessage) => {
const useEventEmitterLogsApi = (projectId, routerId, params, formatMessage) => {
const { emitter, isActive } = useEventEmitter();

const [query, setQuery] = useState();
Expand Down Expand Up @@ -71,3 +71,5 @@ export default (projectId, routerId, params, formatMessage) => {

return { emitter };
};

export default useEventEmitterLogsApi;

0 comments on commit df9b327

Please sign in to comment.