Skip to content

Commit b5de7ab

Browse files
Fix vulnerabilities in sample apps (#2628)
* Activate Yarn Versions in image using corepack * fix CVEs in create-react-app-sample * fix CVEs in hexo-sample * fix vulnerabilities in gatsbysample * fix CVEs in blog-starter-nextjs * fix CVEs in webfrontend-yarnlock * fix CVEs in NodeAndTypeScriptHelloWorld * fix CVEs in angular14app * Fix CVEs in dotNetCoreReactApp * fix CVEs in gatsbysample * Fix CVEs in Flask-React-Post * fix CVEs in node-postgres * fix CVEs in node-mysql * fix CVEs in node-mssql * fix CVEs in monorepo-lerna-yarn * update monorepo-lerna-yarn app * fix CVEs in monorepo-lerna-npm * fix CVEs in hackernews-nuxtjs * fix CVEs in nextjs-yarn2-example * Created new Soundcloud app with angular 18 * Replaced soundcloud-ngrx with new angular 18 app * use latest app * fix CVE in NodeAndTypeScriptHelloWorld * fix CVEs in hackernews-nuxtjs
1 parent 8bbfadc commit b5de7ab

File tree

379 files changed

+35764
-69922
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+35764
-69922
lines changed

tests/Oryx.Integration.Tests/Node/NodeOtherEndtoEndTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public NodeOtherEndtoEndTests(ITestOutputHelper output, TestTempDirTestFixture t
2424
: base(output, testTempDirTestFixture)
2525
{
2626
}
27-
27+
2828

2929
[Fact]
3030
[Trait("category", "node-14-stretch-4")]
@@ -561,8 +561,8 @@ await EndToEndTestHelper.BuildRunAndAssertAppAsync(
561561
public async Task Node_SoundCloudNgrxAppAsync()
562562
{
563563
// Arrange
564-
var appName = "soundcloud-ngrx";
565-
var nodeVersion = "8.11";
564+
var appName = "soundcloud-ng18";
565+
var nodeVersion = "18.20.8";
566566
var osType = ImageTestHelperConstants.OsTypeDebianBullseye;
567567
var volume = CreateAppVolume(appName);
568568
var appDir = volume.ContainerDir;

tests/SampleApps/multilanguage/dotNetCoreReactApp/ClientApp/package-lock.json

Lines changed: 73 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import { Route } from 'react-router';
2+
import { Routes, Route } from 'react-router-dom';
33
import { Layout } from './components/Layout';
44
import { Home } from './components/Home';
55
import { FetchData } from './components/FetchData';
@@ -10,13 +10,15 @@ import './custom.css'
1010
export default class App extends Component {
1111
static displayName = App.name;
1212

13-
render () {
13+
render() {
1414
return (
1515
<Layout>
16-
<Route exact path='/' component={Home} />
17-
<Route path='/counter' component={Counter} />
18-
<Route path='/fetch-data' component={FetchData} />
16+
<Routes>
17+
<Route path='/' element={<Home />} />
18+
<Route path='/counter' element={<Counter />} />
19+
<Route path='/fetch-data' element={<FetchData />} />
20+
</Routes>
1921
</Layout>
2022
);
2123
}
22-
}
24+
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import 'bootstrap/dist/css/bootstrap.css';
22
import React from 'react';
3-
import ReactDOM from 'react-dom';
3+
import { createRoot } from 'react-dom/client';
44
import { BrowserRouter } from 'react-router-dom';
55
import App from './App';
66
import registerServiceWorker from './registerServiceWorker';
77

88
const baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');
99
const rootElement = document.getElementById('root');
1010

11-
ReactDOM.render(
11+
const root = createRoot(rootElement);
12+
root.render(
1213
<BrowserRouter basename={baseUrl}>
1314
<App />
14-
</BrowserRouter>,
15-
rootElement);
16-
17-
registerServiceWorker();
15+
</BrowserRouter>
16+
);
1817

18+
registerServiceWorker();

0 commit comments

Comments
 (0)