Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 551c707

Browse files
committed
fix(@schematics/update): Allow usage strict SSL configuration
fixes #10596
1 parent eeb615f commit 551c707

File tree

1 file changed

+8
-0
lines changed
  • packages/schematics/update/update

1 file changed

+8
-0
lines changed

Diff for: packages/schematics/update/update/npm.ts

+8
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export function getNpmPackageJson(
9191
return concat(
9292
getNpmConfigOption('proxy'),
9393
getNpmConfigOption('https-proxy'),
94+
getNpmConfigOption('strict-ssl'),
9495
).pipe(
9596
toArray(),
9697
concatMap(options => {
@@ -101,6 +102,13 @@ export function getNpmPackageJson(
101102
http: options[0],
102103
https: options[1],
103104
},
105+
ssl: {
106+
...(options[2] === 'false'
107+
? { strict: false }
108+
: (options[2] === 'true'
109+
? { strict: true }
110+
: {})),
111+
},
104112
});
105113
client.log.level = 'silent';
106114
const params = {

0 commit comments

Comments
 (0)