@folklore/hooks 0.0.53 → 0.0.54

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/cjs.js CHANGED
@@ -401,7 +401,7 @@ function useDailymotionPlayer() {
401
401
  const {
402
402
  playing
403
403
  } = playState;
404
- const getCurrentTime = react.useCallback(player => player.videoTime, []);
404
+ const getCurrentTime = react.useCallback(player => player.videoTime || 0, []);
405
405
  const currentTime = usePlayerCurrentTime(playerRef.current, {
406
406
  id: videoId,
407
407
  disabled: !playing || timeUpdateInterval === null,
package/dist/es.js CHANGED
@@ -390,7 +390,7 @@ function useDailymotionPlayer() {
390
390
  const {
391
391
  playing
392
392
  } = playState;
393
- const getCurrentTime = useCallback(player => player.videoTime, []);
393
+ const getCurrentTime = useCallback(player => player.videoTime || 0, []);
394
394
  const currentTime = usePlayerCurrentTime(playerRef.current, {
395
395
  id: videoId,
396
396
  disabled: !playing || timeUpdateInterval === null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@folklore/hooks",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "React hooks",
5
5
  "keywords": [
6
6
  "javascript",
@@ -49,7 +49,7 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "366fadd7e10892a27ee589e2eeab73c5c851100a",
52
+ "gitHead": "782dc0475b4b57c501ed3da370fbf0950807f7eb",
53
53
  "dependencies": {
54
54
  "@folklore/events": "^0.0.5",
55
55
  "@folklore/services": "^0.1.40",