Skip to content

Commit 7292f85

Browse files
authored
chore: Upgrade react-code-blocks to 0.1.6 in Feast UI (#4645)
This is the only clear runtime dependency that had vulnerabilities listed in `yarn audit` output. Upgrading it to the latest version removes 4 high and 5 moderate level vulnerabilities. Signed-off-by: Harri Lehtola <peruukki@hotmail.com>
1 parent c40d539 commit 7292f85

File tree

3 files changed

+113
-187
lines changed

3 files changed

+113
-187
lines changed

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"moment": "^2.29.1",
3232
"protobufjs": "^7.1.1",
3333
"query-string": "^7.1.1",
34-
"react-code-blocks": "^0.0.9-0",
34+
"react-code-blocks": "^0.1.6",
3535
"react-query": "^3.39.3",
3636
"react-router-dom": "<6.4.0",
3737
"react-scripts": "^5.0.0",

ui/src/pages/data-sources/BatchSourcePropertiesView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ const BatchSourcePropertiesView = (props: BatchSourcePropertiesViewProps) => {
7070
{batchSource.bigqueryOptions.table}
7171
</EuiDescriptionListDescription>
7272
) : <CopyBlock
73-
text={batchSource.bigqueryOptions.query}
73+
text={batchSource.bigqueryOptions.query ?? ""}
7474
language="sql"
7575
showLineNumbers={false}
7676
theme={atomOneDark}
77-
wrapLines
77+
wrapLongLines
7878
/>
7979
}
8080

0 commit comments

Comments
 (0)