MCPcopy Create free account
hub / github.com/angular/dev-infra / _transform

Method _transform

github-actions/browserstack/set-browserstack-env.js:4919–4931  ·  view source on GitHub ↗
(chunk, encoding, callback)

Source from the content-addressed store, hash-verified

4917 }
4918 var _zlibOptions;
4919 var InflateStream = class extends Transform {
4920 /** @param {zlib.ZlibOptions} [zlibOptions] */
4921 constructor(zlibOptions) {
4922 super();
4923 __privateAdd(this, _zlibOptions, void 0);
4924 __privateSet(this, _zlibOptions, zlibOptions);
4925 }
4926 _transform(chunk, encoding, callback) {
4927 if (!this._inflateStream) {
4928 if (chunk.length === 0) {
4929 callback();
4930 return;
4931 }
4932 this._inflateStream = (chunk[0] & 15) === 8 ? zlib.createInflate(__privateGet(this, _zlibOptions)) : zlib.createInflateRaw(__privateGet(this, _zlibOptions));
4933 this._inflateStream.on("data", this.push.bind(this));
4934 this._inflateStream.on("end", () => this.push(null));

Callers

nothing calls this directly

Calls 8

__privateGetFunction · 0.70
onMethod · 0.45
pushMethod · 0.45
destroyMethod · 0.45
writeMethod · 0.45
processEventMethod · 0.45
clearEventMethod · 0.45
parseLineMethod · 0.45

Tested by

no test coverage detected