ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/make-fetch-happen/lib
/
lib
node_modules
npm
node_modules
make-fetch-happen
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
cache
-
chmod
Open
Rename
Delete
agent.js
5.74 MB
chmod
View
DL
Edit
Rename
Delete
dns.js
1.26 MB
chmod
View
DL
Edit
Rename
Delete
fetch.js
3.85 MB
chmod
View
DL
Edit
Rename
Delete
index.js
1.15 MB
chmod
View
DL
Edit
Rename
Delete
options.js
1.43 MB
chmod
View
DL
Edit
Rename
Delete
pipeline.js
1.09 MB
chmod
View
DL
Edit
Rename
Delete
remote.js
4.02 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/make-fetch-happen/lib/pipeline.js
'use strict' const MinipassPipeline = require('minipass-pipeline') class CachingMinipassPipeline extends MinipassPipeline { #events = [] #data = new Map() constructor (opts, ...streams) { // CRITICAL: do NOT pass the streams to the call to super(), this will start // the flow of data and potentially cause the events we need to catch to emit // before we've finished our own setup. instead we call super() with no args, // finish our setup, and then push the streams into ourselves to start the // data flow super() this.#events = opts.events /* istanbul ignore next - coverage disabled because this is pointless to test here */ if (streams.length) { this.push(...streams) } } on (event, handler) { if (this.#events.includes(event) && this.#data.has(event)) { return handler(...this.#data.get(event)) } return super.on(event, handler) } emit (event, ...data) { if (this.#events.includes(event)) { this.#data.set(event, data) } return super.emit(event, ...data) } } module.exports = CachingMinipassPipeline
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply