timestamp.js 538 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.timestamp = void 0;
  4. var dateTimestampProvider_1 = require("../scheduler/dateTimestampProvider");
  5. var map_1 = require("./map");
  6. function timestamp(timestampProvider) {
  7. if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider_1.dateTimestampProvider; }
  8. return map_1.map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); });
  9. }
  10. exports.timestamp = timestamp;
  11. //# sourceMappingURL=timestamp.js.map