File tree Expand file tree Collapse file tree 5 files changed +0
-110
lines changed Expand file tree Collapse file tree 5 files changed +0
-110
lines changed Original file line number Diff line number Diff line change @@ -147,10 +147,6 @@ async function checkNpm(
147
147
}
148
148
}
149
149
150
- export async function packageHasTypes ( packageName : string ) : Promise < boolean > {
151
- return versionHasTypes ( await pacote . manifest ( packageName , { cache : cacheDir , fullMetadata : true } ) ) ;
152
- }
153
-
154
150
function getRegularVersions (
155
151
versions : pacote . Packument [ "versions" ]
156
152
) : readonly { readonly version : semver . SemVer ; readonly hasTypes : boolean } [ ] {
Original file line number Diff line number Diff line change 20
20
"fstream" : " ^1.0.12" ,
21
21
"hh-mm-ss" : " ^1.2.0" ,
22
22
"longjohn" : " ^0.2.11" ,
23
- "oboe" : " ^2.1.3" ,
24
23
"pacote" : " ^13.6.1" ,
25
24
"semver" : " ^7.3.7" ,
26
25
"source-map-support" : " ^0.4.0" ,
31
30
"@types/fs-extra" : " ^9.0.8" ,
32
31
"@types/hh-mm-ss" : " ^1.2.1" ,
33
32
"@types/mz" : " ^0.0.31" ,
34
- "@types/oboe" : " ^2.0.28" ,
35
33
"@types/pacote" : " ^11.1.5" ,
36
34
"@types/source-map-support" : " ^0.4.0" ,
37
35
"@types/yargs" : " ^15.0.4"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -77,24 +77,3 @@ class UpdatableConsole {
77
77
this . charm . end ( ) ;
78
78
}
79
79
}
80
-
81
- const firstLetter = "a" . charCodeAt ( 0 ) ;
82
- const lastLetter = "z" . charCodeAt ( 0 ) ;
83
- const charWidth = lastLetter - firstLetter ;
84
- const strProgressTotal = charWidth * charWidth ; // 2 characters
85
-
86
- /** Tracks a string's progress through the alphabet. */
87
- export function strProgress ( str : string ) : number {
88
- const x = charProgress ( str . charCodeAt ( 0 ) ) * charWidth + charProgress ( str . charCodeAt ( 1 ) ) ;
89
- return x / strProgressTotal ;
90
-
91
- function charProgress ( ch : number ) : number {
92
- if ( Number . isNaN ( ch ) || ch <= firstLetter ) {
93
- return 0 ;
94
- }
95
- if ( ch >= lastLetter ) {
96
- return charWidth ;
97
- }
98
- return ch - firstLetter ;
99
- }
100
- }
Original file line number Diff line number Diff line change 1993
1993
resolved "https://registry.yarnpkg.com/@types/npmlog/-/npmlog-4.1.4.tgz#30eb872153c7ead3e8688c476054ddca004115f6"
1994
1994
integrity sha512-WKG4gTr8przEZBiJ5r3s8ZIAoMXNbOgQ+j/d5O4X3x6kZJRLNvyUJuUK/KoG3+8BaOHPhp2m7WC6JKKeovDSzQ==
1995
1995
1996
- " @types/oboe@^2.0.28 " :
1997
- version "2.0.28"
1998
- resolved "https://registry.yarnpkg.com/@types/oboe/-/oboe-2.0.28.tgz#3afcb0cc949fcdf777861d96e8571f3b486f0fa7"
1999
- integrity sha1-OvywzJSfzfd3hh2W6FcfO0hvD6c=
2000
- dependencies :
2001
- " @types/node" " *"
2002
-
2003
1996
" @types/pacote@^11.1.5 " :
2004
1997
version "11.1.5"
2005
1998
resolved "https://registry.yarnpkg.com/@types/pacote/-/pacote-11.1.5.tgz#3efc5eb49069206a678f5483a7e008af06788a66"
@@ -4849,11 +4842,6 @@ http-cache-semantics@^4.1.0:
4849
4842
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
4850
4843
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
4851
4844
4852
- http-https@^1.0.0 :
4853
- version "1.0.0"
4854
- resolved "https://registry.yarnpkg.com/http-https/-/http-https-1.0.0.tgz#2f908dd5f1db4068c058cd6e6d4ce392c913389b"
4855
- integrity sha1-L5CN1fHbQGjAWM1ubUzjkskTOJs=
4856
-
4857
4845
http-proxy-agent@^4.0.1 :
4858
4846
version "4.0.1"
4859
4847
resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a"
@@ -7132,13 +7120,6 @@ object.values@^1.1.3:
7132
7120
define-properties "^1.1.3"
7133
7121
es-abstract "^1.18.2"
7134
7122
7135
- oboe@^2.1.3 :
7136
- version "2.1.5"
7137
- resolved "https://registry.yarnpkg.com/oboe/-/oboe-2.1.5.tgz#5554284c543a2266d7a38f17e073821fbde393cd"
7138
- integrity sha1-VVQoTFQ6ImbXo48X4HOCH73jk80=
7139
- dependencies :
7140
- http-https "^1.0.0"
7141
-
7142
7123
octokit-pagination-methods@^1.1.0 :
7143
7124
version "1.1.0"
7144
7125
resolved "https://registry.yarnpkg.com/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz#cf472edc9d551055f9ef73f6e42b4dbb4c80bea4"
You can’t perform that action at this time.
0 commit comments