Skip to content

Commit 5aa61a6

Browse files
📦 1.5.0
1 parent 215a2b1 commit 5aa61a6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎README.md‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# React Idle Timer
22
> React.js port of jQuery.idleTimer with some extras.
33
4-
:rocket: **Now with [Babel 6](https://github.com/babel/babel) and [react-transform](https://github.com/gaearon/babel-plugin-react-transform) support**
4+
:rocket: ** Now Supports Isomorphic React!**
55

66
[![NPM](https://nodei.co/npm/react-idle-timer.png?downloads=true&stars=true)](https://npmjs.org/package/react-idle-timer/)
77

@@ -10,7 +10,7 @@
1010

1111
# Usage
1212

13-
> check the examples directory for a working example
13+
> Run `npm run build` to build the examples found in `src_examples`
1414
1515
```javascript
1616
import React from 'react'
@@ -62,5 +62,3 @@ module.exports = YourApp
6262
- **getElapsedTime()** *{Number}* - Returns the elapsed time in milliseconds
6363
- **lastActiveTime()** *{String}* - Returns the last active time as a number or a formatted string if the `format` prop is defined
6464
- **isIdle()** {*Boolean*} - Returns whether or not user is idle
65-
66-

‎build/index.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4+
35
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
46

57
Object.defineProperty(exports, "__esModule", {
@@ -277,7 +279,7 @@ IdleTimer.defaultProps = {
277279
events: ['mousemove', 'keydown', 'wheel', 'DOMMouseScroll', 'mouseWheel', 'mousedown', 'touchstart', 'touchmove', 'MSPointerDown', 'MSPointerMove'],
278280
idleAction: function idleAction() {},
279281
activeAction: function activeAction() {},
280-
element: (typeof window === 'undefined' ? 'undefined' : typeof (window)) === 'object' ? document : {},
282+
element: (typeof window === 'undefined' ? 'undefined' : typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' ? document : {},
281283
startOnLoad: true
282284
};
283285
exports.default = IdleTimer;

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-idle-timer",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "Activity detection for React.js",
55
"main": "build/index.js",
66
"files": [

0 commit comments

Comments
 (0)