Socket
Socket
Sign inDemoInstall

react-hot-api

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.5 to 0.4.6

4

modules/requestForceUpdateAll.js

@@ -12,3 +12,3 @@ var deepForceUpdate = require('./deepForceUpdate');

* Forces deep re-render of all mounted React components.
* Hat's off to Omar Skalli (@Chetane) for suggesting this approach:
* Hats off to Omar Skalli (@Chetane) for suggesting this approach:
* https://gist.github.com/Chetane/9a230a9fdcdca21a4e29

@@ -34,2 +34,2 @@ */

setTimeout(forceUpdateAll);
};
};
{
"name": "react-hot-api",
"version": "0.4.5",
"version": "0.4.6",
"description": "A generic library implementing hot reload for React components without unmounting or losing their state.",

@@ -20,3 +20,3 @@ "main": "modules/index.js",

"peerDependencies": {
"react": ">=0.11.0 || 0.13.0-beta.1 || 0.13.0-rc1 || 0.13.0-rc2 || 0.14.0-beta1"
"react": ">=0.11.0 || 0.13.0-beta.1 || 0.13.0-rc1 || 0.13.0-rc2 || ^0.14.0-alpha"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -101,3 +101,3 @@ React Hot API

// The user still doesn't need to know these lines are being inserted by the tool:
var module.makeHot = SOME_STORAGE_SHARED_BETWEEN_VERSIONS_OF_SAME_MODULE.makeHot;
module.makeHot = SOME_STORAGE_SHARED_BETWEEN_VERSIONS_OF_SAME_MODULE.makeHot;
if (!module.makeHot) {

@@ -104,0 +104,0 @@ // put the function into some sane place (e.g. module.makeHot) without relying on hidden variables

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