Socket
Socket
Sign inDemoInstall

react-timer-hoc

Package Overview
Dependencies
43
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

11

CHANGELOG.md

@@ -0,1 +1,12 @@

<a name="1.0.5"></a>
## [1.0.5](https://github.com/troch/react-timer-hoc/compare/v1.0.4...v1.0.5) (2015-11-30)
### Bug Fixes
* fix typo in componentWillUnmount ([12eadac](https://github.com/troch/react-timer-hoc/commit/12eadac))
* fix typo in package.json property ([1bbfeef](https://github.com/troch/react-timer-hoc/commit/1bbfeef))
<a name="1.0.4"></a>

@@ -2,0 +13,0 @@ ## [1.0.4](https://github.com/troch/react-timer-hoc/compare/v1.0.3...v1.0.4) (2015-11-28)

4

dist/commonjs/timer.js

@@ -80,4 +80,4 @@ 'use strict';

}, {
key: 'componentWillUnmout',
value: function componentWillUnmout() {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.stop();

@@ -84,0 +84,0 @@ }

@@ -151,4 +151,4 @@ 'use strict';

}, {
key: 'componentWillUnmout',
value: function componentWillUnmout() {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.stop();

@@ -155,0 +155,0 @@ }

@@ -38,3 +38,3 @@ import React from 'react';

componentWillUnmout() {
componentWillUnmount() {
this.stop();

@@ -41,0 +41,0 @@ }

{
"name": "react-timer-hoc",
"version": "1.0.4",
"version": "1.0.5",
"description": "A React timer higher-order component",
"main": "dist/commmonjs/timer.js",
"main": "dist/commonjs/timer.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "mocha --compilers js:babel-core/register modules/timer.test.js",

@@ -0,1 +1,4 @@

[![npm version](https://badge.fury.io/js/react-timer-hoc.svg)](https://badge.fury.io/js/react-timer-hoc)
[![Build Status](https://travis-ci.org/troch/react-timer-hoc.svg?branch=v1.0.4)](https://travis-ci.org/troch/react-timer-hoc)
# React timer component (higher-order)

@@ -32,3 +35,12 @@

__Important notice with ES5__
> babel 6 changed the way transpiled default exports work. See [Babel 6 changes how it exports default](http://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default/33506169#33506169) on stack overflow.
```javascript
// ES5
var timer = require('react-timer-hoc').default;
```
```javascript
import React from 'react';

@@ -35,0 +47,0 @@ import ReactDOM from 'react-dom';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc