Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

react-r2d2

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-r2d2 - npm Package Compare versions

Comparing version
0.3.0
to
0.4.0
+2
-5
dist/r2d2.js

@@ -172,7 +172,3 @@ (function (global, factory) {

if (!Alt.displayName) {
Alt.displayName = 'AltComponent';
}
if (!Alt || valid) {
if (valid) {
return React__default.createElement(WrappedComponent, _extends({}, passThroughProps, {

@@ -184,2 +180,3 @@ data: data

if (Alt) return React__default.createElement(Alt, null);
return null;

@@ -186,0 +183,0 @@ }

@@ -166,7 +166,3 @@ import React, { Component } from 'react';

if (!Alt.displayName) {
Alt.displayName = 'AltComponent';
}
if (!Alt || valid) {
if (valid) {
return React.createElement(WrappedComponent, _extends({}, passThroughProps, {

@@ -178,2 +174,3 @@ data: data

if (Alt) return React.createElement(Alt, null);
return null;

@@ -180,0 +177,0 @@ }

@@ -171,7 +171,3 @@ 'use strict';

if (!Alt.displayName) {
Alt.displayName = 'AltComponent';
}
if (!Alt || valid) {
if (valid) {
return React__default.createElement(WrappedComponent, _extends({}, passThroughProps, {

@@ -183,2 +179,3 @@ data: data

if (Alt) return React__default.createElement(Alt, null);
return null;

@@ -185,0 +182,0 @@ }

{
"name": "react-r2d2",
"version": "0.3.0",
"version": "0.4.0",
"description": "HOC for dispatching an action automatically on component render",

@@ -14,3 +14,4 @@ "keywords": ["react", "higher", "order", "component", "redux", "dispatch", "store"],

"build:umd": "rollup -c -f umd -n r2d2 -o dist/r2d2.js",
"build": "npm run build:commonjs && npm run build:es && npm run build:umd"
"build": "npm run build:commonjs && npm run build:es && npm run build:umd",
"publish": "npm run build && npm publish"
},

@@ -17,0 +18,0 @@ "author": "Tom Arrell <me@tomarrell.com> (https://github.com/tomarrell)",

@@ -120,7 +120,3 @@ import React, { Component } from 'react';

if (!Alt.displayName) {
Alt.displayName = 'AltComponent';
}
if (!Alt || valid) {
if (valid) {
return (

@@ -135,2 +131,3 @@ <WrappedComponent

if (Alt) return <Alt />;
return null;

@@ -137,0 +134,0 @@ }