Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
fix(@schematics/update): Allow usage strict SSL configuration
Browse files Browse the repository at this point in the history
fixes #10596
  • Loading branch information
Brocco authored and hansl committed May 14, 2018
1 parent c77c7b0 commit 9859277
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/schematics/update/update/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export function getNpmPackageJson(
return concat(
getNpmConfigOption('proxy'),
getNpmConfigOption('https-proxy'),
getNpmConfigOption('strict-ssl'),
).pipe(
toArray(),
concatMap(options => {
Expand All @@ -101,6 +102,13 @@ export function getNpmPackageJson(
http: options[0],
https: options[1],
},
ssl: {
...(options[2] === 'false'
? { strict: false }
: (options[2] === 'true'
? { strict: true }
: {})),
},
});
client.log.level = 'silent';
const params = {
Expand Down

0 comments on commit 9859277

Please sign in to comment.