Dev (#12)
* health check * Update Dockerfile * simplifying the deployment * Update Bot.js makes the find team command public * test (#9) * Dev (#7) * health check * Update Dockerfile * simplifying the deployment * Dev (#8) * health check * Update Dockerfile * simplifying the deployment * Update Bot.js makes the find team command public * Update PlayerService.js * massive update???? could break stuff * Update Bot.js update
This commit is contained in:
20
node_modules/undici/lib/web/fetch/util.js
generated
vendored
20
node_modules/undici/lib/web/fetch/util.js
generated
vendored
@@ -1340,6 +1340,14 @@ function buildContentRange (rangeStart, rangeEnd, fullLength) {
|
||||
// interpreted as a zlib stream, otherwise it's interpreted as a
|
||||
// raw deflate stream.
|
||||
class InflateStream extends Transform {
|
||||
#zlibOptions
|
||||
|
||||
/** @param {zlib.ZlibOptions} [zlibOptions] */
|
||||
constructor (zlibOptions) {
|
||||
super()
|
||||
this.#zlibOptions = zlibOptions
|
||||
}
|
||||
|
||||
_transform (chunk, encoding, callback) {
|
||||
if (!this._inflateStream) {
|
||||
if (chunk.length === 0) {
|
||||
@@ -1347,8 +1355,8 @@ class InflateStream extends Transform {
|
||||
return
|
||||
}
|
||||
this._inflateStream = (chunk[0] & 0x0F) === 0x08
|
||||
? zlib.createInflate()
|
||||
: zlib.createInflateRaw()
|
||||
? zlib.createInflate(this.#zlibOptions)
|
||||
: zlib.createInflateRaw(this.#zlibOptions)
|
||||
|
||||
this._inflateStream.on('data', this.push.bind(this))
|
||||
this._inflateStream.on('end', () => this.push(null))
|
||||
@@ -1367,8 +1375,12 @@ class InflateStream extends Transform {
|
||||
}
|
||||
}
|
||||
|
||||
function createInflate () {
|
||||
return new InflateStream()
|
||||
/**
|
||||
* @param {zlib.ZlibOptions} [zlibOptions]
|
||||
* @returns {InflateStream}
|
||||
*/
|
||||
function createInflate (zlibOptions) {
|
||||
return new InflateStream(zlibOptions)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user