Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/sites/node_modules/@aws-sdk/eventstream-serde-node/dist-es/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import { __asyncGenerator, __await, __generator } from "tslib";
export function readabletoIterable(readStream) {
return __asyncGenerator(this, arguments, function readabletoIterable_1() {
var streamEnded, generationEnded, records, value;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
streamEnded = false;
generationEnded = false;
records = new Array();
readStream.on("error", function (err) {
if (!streamEnded) {
streamEnded = true;
}
if (err) {
throw err;
}
});
readStream.on("data", function (data) {
records.push(data);
});
readStream.on("end", function () {
streamEnded = true;
});
_a.label = 1;
case 1:
if (!!generationEnded) return [3, 6];
return [4, __await(new Promise(function (resolve) { return setTimeout(function () { return resolve(records.shift()); }, 0); }))];
case 2:
value = _a.sent();
if (!value) return [3, 5];
return [4, __await(value)];
case 3: return [4, _a.sent()];
case 4:
_a.sent();
_a.label = 5;
case 5:
generationEnded = streamEnded && records.length === 0;
return [3, 1];
case 6: return [2];
}
});
});
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]-- |