Skip to content

Commit 21be37e

Browse files
authored
fix: move @cypress/schematic npm registry query to https (#32390)
* fix: move @cypress/schematic npm registry query to https
1 parent 30f8bc3 commit 21be37e

File tree

1 file changed

+2
-2
lines changed
  • npm/cypress-schematic/src/schematics/utils

1 file changed

+2
-2
lines changed

npm/cypress-schematic/src/schematics/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { readdirSync } from 'fs'
22
import { resolve } from 'path'
33
import { getSystemPath, normalize, strings } from '@angular-devkit/core'
44
import { Tree, apply, url, applyTemplates, move, Rule } from '@angular-devkit/schematics'
5-
import { get } from 'http'
5+
import { get } from 'https'
66
import { Schema } from '../ng-generate/cypress-test/schema'
77

88
import { getPackageJsonDependency } from './dependencies'
@@ -30,7 +30,7 @@ export function getLatestNodeVersion (packageName: string): Promise<NodePackage>
3030
const DEFAULT_VERSION = 'latest'
3131

3232
return new Promise((resolve) => {
33-
return get(`http://registry.npmjs.org/${packageName}`, (res) => {
33+
return get(`https://registry.npmjs.org/${packageName}`, (res) => {
3434
let rawData = ''
3535

3636
res.on('data', (chunk) => (rawData += chunk))

0 commit comments

Comments
 (0)