File tree 1 file changed +10
-3
lines changed
packages/schematics/update/update
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ import { logging } from '@angular-devkit/core';
9
9
import { existsSync , readFileSync } from 'fs' ;
10
10
import { homedir } from 'os' ;
11
11
import * as path from 'path' ;
12
- import { Observable , from } from 'rxjs' ;
13
- import { shareReplay } from 'rxjs/operators' ;
12
+ import { EMPTY , Observable , from } from 'rxjs' ;
13
+ import { catchError , shareReplay } from 'rxjs/operators' ;
14
14
import { NpmRepositoryPackageJson } from './npm-package-json' ;
15
15
16
16
const ini = require ( 'ini' ) ;
@@ -133,7 +133,14 @@ export function getNpmPackageJson(
133
133
} ,
134
134
) ;
135
135
136
- const response = from < NpmRepositoryPackageJson > ( resultPromise ) . pipe ( shareReplay ( ) ) ;
136
+ const response = from < NpmRepositoryPackageJson > ( resultPromise ) . pipe (
137
+ shareReplay ( ) ,
138
+ catchError ( err => {
139
+ logger . warn ( err ) ;
140
+
141
+ return EMPTY ;
142
+ } ) ,
143
+ ) ;
137
144
npmPackageJsonCache . set ( packageName , response ) ;
138
145
139
146
return response ;
You can’t perform that action at this time.
0 commit comments