@oscarpalmer/atoms 0.47.0 → 0.47.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.
package/dist/js/index.js CHANGED
@@ -985,7 +985,7 @@ var work2 = function(type, timer2, state, options, isRepeated2) {
985
985
  let index = type === "continue" ? +(state.index ?? 0) : 0;
986
986
  state.elapsed = elapsed;
987
987
  state.index = index;
988
- const total = (count === Number.POSITIVE_INFINITY ? timeout : (count - index) * (interval > 0 ? interval : 62.5)) - elapsed;
988
+ const total = (count === Number.POSITIVE_INFINITY ? Number.POSITIVE_INFINITY : (count - index) * (interval > 0 ? interval : 62.5)) - elapsed;
989
989
  let current;
990
990
  let start;
991
991
  function finish(finished, error) {
package/dist/js/timer.js CHANGED
@@ -144,7 +144,7 @@ var work = function(type, timer2, state, options, isRepeated2) {
144
144
  let index = type === "continue" ? +(state.index ?? 0) : 0;
145
145
  state.elapsed = elapsed;
146
146
  state.index = index;
147
- const total = (count === Number.POSITIVE_INFINITY ? timeout : (count - index) * (interval > 0 ? interval : 62.5)) - elapsed;
147
+ const total = (count === Number.POSITIVE_INFINITY ? Number.POSITIVE_INFINITY : (count - index) * (interval > 0 ? interval : 62.5)) - elapsed;
148
148
  let current;
149
149
  let start;
150
150
  function finish(finished, error) {
package/dist/js/timer.mjs CHANGED
@@ -144,7 +144,7 @@ var work = function(type, timer2, state, options, isRepeated2) {
144
144
  let index = type === "continue" ? +(state.index ?? 0) : 0;
145
145
  state.elapsed = elapsed;
146
146
  state.index = index;
147
- const total = (count === Number.POSITIVE_INFINITY ? timeout : (count - index) * (interval > 0 ? interval : 62.5)) - elapsed;
147
+ const total = (count === Number.POSITIVE_INFINITY ? Number.POSITIVE_INFINITY : (count - index) * (interval > 0 ? interval : 62.5)) - elapsed;
148
148
  let current;
149
149
  let start;
150
150
  function finish(finished, error) {
package/package.json CHANGED
@@ -127,5 +127,5 @@
127
127
  },
128
128
  "type": "module",
129
129
  "types": "./types/index.d.ts",
130
- "version": "0.47.0"
130
+ "version": "0.47.1"
131
131
  }
package/src/js/timer.ts CHANGED
@@ -387,7 +387,7 @@ function work(
387
387
 
388
388
  const total =
389
389
  (count === Number.POSITIVE_INFINITY
390
- ? timeout
390
+ ? Number.POSITIVE_INFINITY
391
391
  : (count - index) * (interval > 0 ? interval : 1000 / 16)) - elapsed;
392
392
 
393
393
  let current: DOMHighResTimeStamp | null;