@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 +1 -1
- package/dist/js/timer.js +1 -1
- package/dist/js/timer.mjs +1 -1
- package/package.json +1 -1
- package/src/js/timer.ts +1 -1
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 ?
|
|
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 ?
|
|
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 ?
|
|
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
package/src/js/timer.ts
CHANGED