Skip to content

Commit fee9b66

Browse files
committedDec 7, 2022
deps: npm-registry-fetch@14.0.3
1 parent e940917 commit fee9b66

File tree

20 files changed

+1814
-32
lines changed

20 files changed

+1814
-32
lines changed
 

‎node_modules/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@
136136
!/libnpmversion
137137
!/lru-cache
138138
!/make-fetch-happen
139+
!/make-fetch-happen/node_modules/
140+
/make-fetch-happen/node_modules/*
141+
!/make-fetch-happen/node_modules/minipass
139142
!/minimatch
140143
!/minipass-collect
141144
!/minipass-fetch
@@ -187,6 +190,9 @@
187190
!/npm-pick-manifest
188191
!/npm-profile
189192
!/npm-registry-fetch
193+
!/npm-registry-fetch/node_modules/
194+
/npm-registry-fetch/node_modules/*
195+
!/npm-registry-fetch/node_modules/minipass
190196
!/npm-user-validate
191197
!/npmlog
192198
!/once
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
The ISC License
2+
3+
Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors
4+
5+
Permission to use, copy, modify, and/or distribute this software for any
6+
purpose with or without fee is hereby granted, provided that the above
7+
copyright notice and this permission notice appear in all copies.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
/// <reference types="node" />
2+
3+
// Note: marking anything protected or private in the exported
4+
// class will limit Minipass's ability to be used as the base
5+
// for mixin classes.
6+
import { EventEmitter } from 'events'
7+
import { Stream } from 'stream'
8+
9+
declare namespace Minipass {
10+
type Encoding = BufferEncoding | 'buffer' | null
11+
12+
interface Writable extends EventEmitter {
13+
end(): any
14+
write(chunk: any, ...args: any[]): any
15+
}
16+
17+
interface Readable extends EventEmitter {
18+
pause(): any
19+
resume(): any
20+
pipe(): any
21+
}
22+
23+
type DualIterable<T> = Iterable<T> & AsyncIterable<T>
24+
25+
type ContiguousData = Buffer | ArrayBufferLike | ArrayBufferView | string
26+
27+
type BufferOrString = Buffer | string
28+
29+
interface StringOptions {
30+
encoding: BufferEncoding
31+
objectMode?: boolean
32+
async?: boolean
33+
}
34+
35+
interface BufferOptions {
36+
encoding?: null | 'buffer'
37+
objectMode?: boolean
38+
async?: boolean
39+
}
40+
41+
interface ObjectModeOptions {
42+
objectMode: true
43+
async?: boolean
44+
}
45+
46+
interface PipeOptions {
47+
end?: boolean
48+
proxyErrors?: boolean
49+
}
50+
51+
type Options<T> = T extends string
52+
? StringOptions
53+
: T extends Buffer
54+
? BufferOptions
55+
: ObjectModeOptions
56+
}
57+
58+
declare class Minipass<
59+
RType extends any = Buffer,
60+
WType extends any = RType extends Minipass.BufferOrString
61+
? Minipass.ContiguousData
62+
: RType
63+
>
64+
extends Stream
65+
implements Minipass.DualIterable<RType>
66+
{
67+
static isStream(stream: any): stream is Minipass.Readable | Minipass.Writable
68+
69+
readonly bufferLength: number
70+
readonly flowing: boolean
71+
readonly writable: boolean
72+
readonly readable: boolean
73+
readonly paused: boolean
74+
readonly emittedEnd: boolean
75+
readonly destroyed: boolean
76+
77+
/**
78+
* Technically writable, but mutating it can change the type,
79+
* so is not safe to do in TypeScript.
80+
*/
81+
readonly objectMode: boolean
82+
async: boolean
83+
84+
/**
85+
* Note: encoding is not actually read-only, and setEncoding(enc)
86+
* exists. However, this type definition will insist that TypeScript
87+
* programs declare the type of a Minipass stream up front, and if
88+
* that type is string, then an encoding MUST be set in the ctor. If
89+
* the type is Buffer, then the encoding must be missing, or set to
90+
* 'buffer' or null. If the type is anything else, then objectMode
91+
* must be set in the constructor options. So there is effectively
92+
* no allowed way that a TS program can set the encoding after
93+
* construction, as doing so will destroy any hope of type safety.
94+
* TypeScript does not provide many options for changing the type of
95+
* an object at run-time, which is what changing the encoding does.
96+
*/
97+
readonly encoding: Minipass.Encoding
98+
// setEncoding(encoding: Encoding): void
99+
100+
// Options required if not reading buffers
101+
constructor(
102+
...args: RType extends Buffer
103+
? [] | [Minipass.Options<RType>]
104+
: [Minipass.Options<RType>]
105+
)
106+
107+
write(chunk: WType, cb?: () => void): boolean
108+
write(chunk: WType, encoding?: Minipass.Encoding, cb?: () => void): boolean
109+
read(size?: number): RType
110+
end(cb?: () => void): this
111+
end(chunk: any, cb?: () => void): this
112+
end(chunk: any, encoding?: Minipass.Encoding, cb?: () => void): this
113+
pause(): void
114+
resume(): void
115+
promise(): Promise<void>
116+
collect(): Promise<RType[]>
117+
118+
concat(): RType extends Minipass.BufferOrString ? Promise<RType> : never
119+
destroy(er?: any): void
120+
pipe<W extends Minipass.Writable>(dest: W, opts?: Minipass.PipeOptions): W
121+
unpipe<W extends Minipass.Writable>(dest: W): void
122+
123+
/**
124+
* alias for on()
125+
*/
126+
addEventHandler(event: string, listener: (...args: any[]) => any): this
127+
128+
on(event: string, listener: (...args: any[]) => any): this
129+
on(event: 'data', listener: (chunk: RType) => any): this
130+
on(event: 'error', listener: (error: any) => any): this
131+
on(
132+
event:
133+
| 'readable'
134+
| 'drain'
135+
| 'resume'
136+
| 'end'
137+
| 'prefinish'
138+
| 'finish'
139+
| 'close',
140+
listener: () => any
141+
): this
142+
143+
[Symbol.iterator](): Iterator<RType>
144+
[Symbol.asyncIterator](): AsyncIterator<RType>
145+
}
146+
147+
export = Minipass

‎node_modules/make-fetch-happen/node_modules/minipass/index.js

+657
Large diffs are not rendered by default.

‎node_modules/make-fetch-happen/node_modules/minipass/package.json

+56
Original file line numberDiff line numberDiff line change

‎node_modules/make-fetch-happen/package.json

+4-4
Original file line numberDiff line numberDiff line change

‎node_modules/npm-registry-fetch/node_modules/minipass/LICENSE

+15
Original file line numberDiff line numberDiff line change

‎node_modules/npm-registry-fetch/node_modules/minipass/index.d.ts

+147
Original file line numberDiff line numberDiff line change

‎node_modules/npm-registry-fetch/node_modules/minipass/index.js

+657
Large diffs are not rendered by default.

‎node_modules/npm-registry-fetch/node_modules/minipass/package.json

+56
Original file line numberDiff line numberDiff line change

‎node_modules/npm-registry-fetch/package.json

+4-4
Original file line numberDiff line numberDiff line change

‎package-lock.json

+41-15
Original file line numberDiff line numberDiff line change

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"libnpmsearch": "^6.0.0",
8787
"libnpmteam": "^5.0.0",
8888
"libnpmversion": "^4.0.1",
89-
"make-fetch-happen": "^11.0.1",
89+
"make-fetch-happen": "^11.0.2",
9090
"minimatch": "^5.1.0",
9191
"minipass": "^3.1.6",
9292
"minipass-pipeline": "^1.2.4",
@@ -99,7 +99,7 @@
9999
"npm-package-arg": "^10.1.0",
100100
"npm-pick-manifest": "^8.0.1",
101101
"npm-profile": "^7.0.1",
102-
"npm-registry-fetch": "^14.0.2",
102+
"npm-registry-fetch": "^14.0.3",
103103
"npm-user-validate": "^1.0.1",
104104
"npmlog": "^7.0.1",
105105
"p-map": "^4.0.0",

‎workspaces/arborist/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"npm-install-checks": "^6.0.0",
2525
"npm-package-arg": "^10.1.0",
2626
"npm-pick-manifest": "^8.0.1",
27-
"npm-registry-fetch": "^14.0.2",
27+
"npm-registry-fetch": "^14.0.3",
2828
"npmlog": "^7.0.1",
2929
"pacote": "^15.0.2",
3030
"parse-conflict-json": "^3.0.0",

‎workspaces/libnpmaccess/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"homepage": "https://npmjs.com/package/libnpmaccess",
3131
"dependencies": {
3232
"npm-package-arg": "^10.1.0",
33-
"npm-registry-fetch": "^14.0.2"
33+
"npm-registry-fetch": "^14.0.3"
3434
},
3535
"engines": {
3636
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"

‎workspaces/libnpmhook/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"license": "ISC",
3434
"dependencies": {
3535
"aproba": "^2.0.0",
36-
"npm-registry-fetch": "^14.0.2"
36+
"npm-registry-fetch": "^14.0.3"
3737
},
3838
"devDependencies": {
3939
"@npmcli/eslint-config": "^4.0.0",

‎workspaces/libnpmorg/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"homepage": "https://npmjs.com/package/libnpmorg",
4343
"dependencies": {
4444
"aproba": "^2.0.0",
45-
"npm-registry-fetch": "^14.0.2"
45+
"npm-registry-fetch": "^14.0.3"
4646
},
4747
"engines": {
4848
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"

‎workspaces/libnpmpublish/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"dependencies": {
4242
"normalize-package-data": "^5.0.0",
4343
"npm-package-arg": "^10.1.0",
44-
"npm-registry-fetch": "^14.0.2",
44+
"npm-registry-fetch": "^14.0.3",
4545
"semver": "^7.3.7",
4646
"ssri": "^10.0.0"
4747
},

‎workspaces/libnpmsearch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"bugs": "https://github.com/npm/libnpmsearch/issues",
3939
"homepage": "https://npmjs.com/package/libnpmsearch",
4040
"dependencies": {
41-
"npm-registry-fetch": "^14.0.2"
41+
"npm-registry-fetch": "^14.0.3"
4242
},
4343
"engines": {
4444
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"

‎workspaces/libnpmteam/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"homepage": "https://npmjs.com/package/libnpmteam",
3333
"dependencies": {
3434
"aproba": "^2.0.0",
35-
"npm-registry-fetch": "^14.0.2"
35+
"npm-registry-fetch": "^14.0.3"
3636
},
3737
"engines": {
3838
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"

0 commit comments

Comments
 (0)
Please sign in to comment.