Skip to content

Commit 975a401

Browse files
committed
bump .NET nuget packages; bump npm packages
1 parent 487085c commit 975a401

File tree

6 files changed

+41
-44
lines changed

6 files changed

+41
-44
lines changed

FullStackTesting/FullStackTesting.Web.Api/ClientApp/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@
1111
},
1212
"dependencies": {
1313
"axios": "^0.21.1",
14-
"bulma": "^0.9.2",
14+
"bulma": "^0.9.3",
1515
"register-service-worker": "^1.7.2",
16-
"vue": "^2.6.12",
16+
"vue": "^2.6.14",
1717
"vue-class-component": "^7.2.6",
1818
"vue-js-modal": "^1.3.35",
1919
"vue-property-decorator": "^9.1.2",
20-
"vue-router": "^3.5.1",
20+
"vue-router": "^3.5.2",
2121
"vue-snotify": "^3.2.1",
2222
"vuex": "^3.6.2"
2323
},
2424
"devDependencies": {
25-
"@testing-library/jest-dom": "^5.11.10",
26-
"@types/jest": "^26.0.22",
27-
"@vue/cli-plugin-babel": "^4.5.12",
28-
"@vue/cli-plugin-e2e-nightwatch": "^4.5.12",
29-
"@vue/cli-plugin-pwa": "^4.5.12",
30-
"@vue/cli-plugin-typescript": "^4.5.12",
31-
"@vue/cli-plugin-unit-jest": "^4.5.12",
32-
"@vue/cli-service": "^4.5.12",
33-
"@vue/test-utils": "1.1.3",
34-
"node-sass": "^5.0.0",
25+
"@testing-library/jest-dom": "^5.14.1",
26+
"@types/jest": "^26.0.24",
27+
"@vue/cli-plugin-babel": "^4.5.13",
28+
"@vue/cli-plugin-e2e-nightwatch": "^4.5.13",
29+
"@vue/cli-plugin-pwa": "^4.5.13",
30+
"@vue/cli-plugin-typescript": "^4.5.13",
31+
"@vue/cli-plugin-unit-jest": "^4.5.13",
32+
"@vue/cli-service": "^4.5.13",
33+
"@vue/test-utils": "1.2.1",
34+
"node-sass": "^6.0.1",
3535
"sass-loader": "^10.1.1",
36-
"ts-jest": "^26.5.4",
37-
"typescript": "^4.2.4",
38-
"vue-template-compiler": "^2.6.12",
36+
"ts-jest": "^27.0.3",
37+
"typescript": "^4.3.5",
38+
"vue-template-compiler": "^2.6.14",
3939
"vuex-module-decorators": "^1.0.1"
4040
}
4141
}

FullStackTesting/FullStackTesting.Web.Api/ClientApp/src/views/Employees.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ export default class Employees extends Vue {
106106
}
107107
108108
public async deleteEmployee(employee: IEmployee): Promise<void> {
109-
if (this.loading) return;
109+
if (this.loading) {
110+
return;
111+
}
110112
111113
this.loading = true;
112114
@@ -122,7 +124,9 @@ export default class Employees extends Vue {
122124
}
123125
124126
public async handleGetEmployees(): Promise<void> {
125-
if (this.loading) return;
127+
if (this.loading) {
128+
return;
129+
}
126130
127131
this.loading = true;
128132

FullStackTesting/FullStackTesting.Web.Api/ClientApp/vue.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable no-param-reassign,import/no-extraneous-dependencies */
22

33
module.exports = {
4-
configureWebpack: (config) => {
4+
configureWebpack: () => {
55
if (process.env.NODE_ENV !== 'production') {
66
return {};
77
}

FullStackTesting/FullStackTesting.Web.Api/FullStackTesting.Web.Api.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.5" />
22-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.5" />
21+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.8" />
22+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.8" />
2323
<PackageReference Include="VueCliMiddleware" Version="5.0.0" />
2424
</ItemGroup>
2525

FullStackTesting/FullStackTesting.Web.Api/Startup.cs

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ public class Startup
1919
private readonly string _spaSourcePath;
2020
private readonly string _corsPolicyName;
2121

22+
public IConfiguration Configuration { get; }
23+
2224
public Startup(IConfiguration configuration)
2325
{
2426
Configuration = configuration;
2527
_spaSourcePath = Configuration.GetValue<string>("SPA:SourcePath");
2628
_corsPolicyName = Configuration.GetValue<string>("CORS:PolicyName");
2729
}
2830

29-
public IConfiguration Configuration { get; }
30-
3131
public void ConfigureServices(IServiceCollection services)
3232
{
3333
// Register the in-memory db (Data is seeded in Main method of the Program.cs now).
@@ -42,14 +42,14 @@ public void ConfigureServices(IServiceCollection services)
4242
.AllowAnyHeader()
4343
.AllowAnyMethod()));
4444

45-
// Register RazorPages/Controllers
46-
services.AddControllers();
47-
4845
// IMPORTANT CONFIG CHANGE IN 3.0 - 'Async' suffix in action names get stripped by default - so, to access them by full name with 'Async' part - opt out of this feature'.
4946
services.AddMvc(options => options.SuppressAsyncSuffixInActionNames = false);
5047

5148
// In production, the Vue files will be served from this directory
52-
services.AddSpaStaticFiles(configuration => configuration.RootPath = $"{_spaSourcePath}/dist");
49+
services.AddSpaStaticFiles(opt => opt.RootPath = $"{_spaSourcePath}/dist");
50+
51+
// Register RazorPages/Controllers
52+
services.AddControllers();
5353
}
5454

5555
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
@@ -84,27 +84,20 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
8484
app.UseCors(_corsPolicyName);
8585

8686
app.UseHttpsRedirection();
87-
app.UseStaticFiles();
87+
// app.UseStaticFiles();
8888
app.UseSpaStaticFiles();
8989
app.UseRouting();
9090

9191
app.UseEndpoints(endpoints => {
9292
endpoints.MapControllers();
9393

94-
if (System.Diagnostics.Debugger.IsAttached)
95-
{
96-
endpoints.MapToVueCliProxy(
97-
"{*path}",
98-
new SpaOptions { SourcePath = _spaSourcePath },
99-
npmScript: "serve",
100-
regex: "running at",
101-
forceKill: true
102-
);
103-
}
104-
else
105-
{
106-
endpoints.MapFallbackToFile("index.html");
107-
}
94+
endpoints.MapToVueCliProxy(
95+
"{*path}",
96+
new SpaOptions { SourcePath = _spaSourcePath },
97+
npmScript: System.Diagnostics.Debugger.IsAttached ? "serve" : null,
98+
regex: "Compiled successfully",
99+
forceKill: true
100+
);
108101
});
109102
}
110103
}

FullStackTesting/tests/FullStackTesting.Web.Api.IntegrationTests/FullStackTesting.Web.Api.IntegrationTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
<ItemGroup>
1111
<FrameworkReference Include="Microsoft.AspNetCore.App" />
12-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.5" />
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
12+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.8" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
1414
<PackageReference Include="xunit" Version="2.4.1" />
1515
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
1616
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)