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

Method processEvent

github-actions/browserstack/set-browserstack-env.js:18874–18891  ·  view source on GitHub ↗

* @param {EventSourceStreamEvent} event

(event)

Source from the content-addressed store, hash-verified

18872 * @param {Buffer} chunk
18873 * @param {string} _encoding
18874 * @param {Function} callback
18875 * @returns {void}
18876 */
18877 _transform(chunk, _encoding, callback) {
18878 if (chunk.length === 0) {
18879 callback();
18880 return;
18881 }
18882 this.chunks.push(chunk);
18883 if (this.checkBOM) {
18884 if (this.handleBOM()) {
18885 callback();
18886 return;
18887 }
18888 }
18889 while (this.hasCurrentByte()) {
18890 const byte = this.currentByte();
18891 if (this.eventEndCheck) {
18892 if (this.crlfCheck) {
18893 if (byte === LF) {
18894 this.crlfCheck = false;

Callers 1

_transformMethod · 0.45

Calls 3

isASCIINumberFunction · 0.70
isValidLastEventIdFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected