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 });
18873
18874 //
18875 var require_util8 = __commonJS({
18876 ""(exports, module) {
18877 "use strict";
18878 function isValidLastEventId(value) {
18879 return value.indexOf("\0") === -1;
18880 }
18881 function isASCIINumber(value) {
18882 if (value.length === 0)
18883 return false;
18884 for (let i = 0; i < value.length; i++) {
18885 if (value.charCodeAt(i) < 48 || value.charCodeAt(i) > 57)
18886 return false;
18887 }
18888 return true;
18889 }
18890 function delay(ms) {
18891 return new Promise((resolve2) => {
18892 setTimeout(resolve2, ms).unref();
18893 });
18894 }

Callers 1

_transformMethod · 0.45

Calls 3

isASCIINumberFunction · 0.70
isValidLastEventIdFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected