File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " aspnet-webpack" ,
3
- "version" : " 1.0.20 " ,
3
+ "version" : " 1.0.21 " ,
4
4
"description" : " Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ function getPath(publicPath: string) {
231
231
function firstIndexOfStringStartingWith ( array : string [ ] , prefixToFind : string ) {
232
232
for ( let index = 0 ; index < array . length ; index ++ ) {
233
233
const candidate = array [ index ] ;
234
- if ( candidate . substring ( 0 , prefixToFind . length ) === prefixToFind ) {
234
+ if ( ( typeof candidate === 'string' ) && ( candidate . substring ( 0 , prefixToFind . length ) === prefixToFind ) ) {
235
235
return index ;
236
236
}
237
237
}
You can’t perform that action at this time.
0 commit comments