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) /usr/local/lib/node_modules/strapi/node_modules/rxjs/_esm5/internal/operators/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /** PURE_IMPORTS_START _scheduler_async,_scan,_observable_defer,_map PURE_IMPORTS_END */
import { async } from '../scheduler/async';
import { scan } from './scan';
import { defer } from '../observable/defer';
import { map } from './map';
export function timeInterval(scheduler) {
if (scheduler === void 0) {
scheduler = async;
}
return function (source) {
return defer(function () {
return source.pipe(scan(function (_a, value) {
var current = _a.current;
return ({ value: value, current: scheduler.now(), last: current });
}, { current: scheduler.now(), value: undefined, last: undefined }), map(function (_a) {
var current = _a.current, last = _a.last, value = _a.value;
return new TimeInterval(value, current - last);
}));
});
};
}
var TimeInterval = /*@__PURE__*/ (function () {
function TimeInterval(value, interval) {
this.value = value;
this.interval = interval;
}
return TimeInterval;
}());
export { TimeInterval };
//# sourceMappingURL=timeInterval.js.map
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |