Skip to content

Commit

Permalink
Fix cli 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amvanbaren committed Nov 20, 2024
1 parent 375d136 commit ba353a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"eslint": "^9.15.0",
"limiter": "^2.1.0",
"rimraf": "^6.0.1",
"typescript": "^4.3.2"
"typescript": "^5.6.3"
},
"scripts": {
"clean": "rimraf lib",
Expand Down
6 changes: 1 addition & 5 deletions cli/src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
********************************************************************************/

import * as http from 'http';
import * as https from 'https';
import * as fs from 'fs';
import * as querystring from 'querystring';
import * as followRedirects from 'follow-redirects';
Expand Down Expand Up @@ -167,10 +166,7 @@ export class Registry {
}

private getProtocol(url: URL) {
if (url.protocol === 'https:')
return followRedirects.https
else
return followRedirects.http
return url.protocol === 'https:' ? followRedirects.https : followRedirects.http;
}

private getRequestOptions(method?: string, headers?: http.OutgoingHttpHeaders, maxBodyLength?: number): http.RequestOptions {
Expand Down
18 changes: 9 additions & 9 deletions cli/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2658,7 +2658,7 @@ __metadata:
rimraf: "npm:^6.0.1"
semver: "npm:^7.6.0"
tmp: "npm:^0.2.3"
typescript: "npm:^4.3.2"
typescript: "npm:^5.6.3"
yauzl: "npm:^3.1.3"
bin:
ovsx: lib/ovsx
Expand Down Expand Up @@ -3309,23 +3309,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.3.2":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
"typescript@npm:^5.6.3":
version: 5.6.3
resolution: "typescript@npm:5.6.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/458f7220ab11e0fc191514cc41be1707645ec9a8c2d609448a448e18c522cef9646f58728f6811185a4c35613dacdf6c98cf8965c88b3541d0288c47291e4300
checksum: 10/c328e418e124b500908781d9f7b9b93cf08b66bf5936d94332b463822eea2f4e62973bfb3b8a745fdc038785cb66cf59d1092bac3ec2ac6a3e5854687f7833f1
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^4.3.2#optional!builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#optional!builtin<compat/typescript>::version=4.9.5&hash=289587"
"typescript@patch:typescript@npm%3A^5.6.3#optional!builtin<compat/typescript>":
version: 5.6.3
resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=379a07"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/5659316360b5cc2d6f5931b346401fa534107b68b60179cf14970e27978f0936c1d5c46f4b5b8175f8cba0430f522b3ce355b4b724c0ea36ce6c0347fab25afd
checksum: 10/dc4bec403cd33a204b655b1152a096a08e7bad2c931cb59ef8ff26b6f2aa541bf98f09fc157958a60c921b1983a8dde9a85b692f9de60fa8f574fd131e3ae4dd
languageName: node
linkType: hard

Expand Down

0 comments on commit ba353a3

Please sign in to comment.