Skip to content

Commit 62b1e65

Browse files
author
Albert González
committed
v1.0.2
1 parent 2083a78 commit 62b1e65

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
dist/example/
3+
dist/test/
34
.eslintcache

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
example/*
22
dist/example/*
3+
dist/test/*
34
.github/*
45
index.html
56
rollup.config.js

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* easytimer-react-hook
3-
* Generated: 2021-03-10
4-
* Version: 1.0.1
3+
* Generated: 2021-03-11
4+
* Version: 1.0.2
55
*/
66

77
(function (global, factory) {
@@ -12,6 +12,7 @@
1212

1313
var useTimer = function (_a) {
1414
var _b = _a === void 0 ? {} : _a, startValues = _b.startValues, target = _b.target, precision = _b.precision, countdown = _b.countdown, updateWhenTargetAchieved = _b.updateWhenTargetAchieved;
15+
var unitsToSave = ['days', 'hours', 'minutes', 'seconds', 'secondTenths'];
1516
var updateCallback = function (timer) {
1617
setTimerValues(timer.getTimeValues().toString(unitsToSave));
1718
};
@@ -32,7 +33,6 @@
3233
timer.off('reset', onStarted);
3334
timer.off('targetAchieved', onTargetAchieved);
3435
};
35-
var unitsToSave = ['days', 'hours', 'minutes', 'seconds', 'secondTenths'];
3636
var timer = react.useState(new easytimer_js.Timer({
3737
startValues: startValues,
3838
target: target,

dist/index.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "easytimer-react-hook",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "EasyTimer React Hook",
55
"main": "dist/index.min.js",
66
"types": "dist/src/index.d.ts",

0 commit comments

Comments
 (0)