windmill-components 1.665.0 → 1.665.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -219,7 +219,6 @@ onDestroy(() => {
219
219
  <HighlightCode
220
220
  language={recording.language as Script['language']}
221
221
  code={recording.code}
222
- lines
223
222
  className="text-2xs"
224
223
  />
225
224
  </div>
@@ -1,6 +1,7 @@
1
1
  import { get } from 'svelte/store';
2
2
  import { dbClockDrift } from './stores';
3
3
  import { JobService } from './gen';
4
+ import { getActiveReplay } from './components/recording/flowRecording.svelte';
4
5
  import pLimit from 'p-limit';
5
6
  function subtractSeconds(date, seconds) {
6
7
  date.setSeconds(date.getSeconds() - seconds);
@@ -21,6 +22,9 @@ export function forLater(scheduledString) {
21
22
  }
22
23
  const limit = pLimit(1);
23
24
  export function getDbClockNow() {
25
+ if (getActiveReplay()) {
26
+ return new Date();
27
+ }
24
28
  let drift = get(dbClockDrift);
25
29
  if (drift == undefined) {
26
30
  limit(() => computeDrift());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.665.0",
3
+ "version": "1.665.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",