Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-hot-api

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hot-api - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

13

modules/makePatchReactClass.js

@@ -15,14 +15,3 @@ 'use strict';

return function patchReactClass(NextClass) {
if (!NextClass) {
return NextClass;
}
var nextPrototype = (NextClass.type || NextClass).prototype,
typeHasReactClassPrototype = nextPrototype && typeof nextPrototype.render === 'function',
isReactElement = typeHasReactClassPrototype && NextClass.props;
if (!typeHasReactClassPrototype || isReactElement) {
return NextClass;
}
var nextPrototype = (NextClass.type || NextClass).prototype;
assimilatePrototype(nextPrototype);

@@ -29,0 +18,0 @@

2

package.json
{
"name": "react-hot-api",
"version": "0.2.2",
"version": "0.3.0",
"description": "A generic library implementing hot reload for React components without unmounting or losing their state.",

@@ -5,0 +5,0 @@ "main": "modules/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc