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

horizon-react

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

horizon-react - npm Package Compare versions

Comparing version 0.0.1-alpha4 to 0.0.1-alpha5

2

lib/components/subscribe.js

@@ -123,3 +123,3 @@ 'use strict';

value: function render() {
return React.createElement(TargetComponent, _extends({}, this.props, this.state.data, {
return (0, _react.createElement)(TargetComponent, _extends({}, this.props, this.state.data, {
horizon: this.context.horizon

@@ -126,0 +126,0 @@ }));

{
"name": "horizon-react",
"version": "0.0.1-alpha4",
"version": "0.0.1-alpha5",
"description": "React bindings for horizon",

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

@@ -1,2 +0,2 @@

import { Component, PropTypes } from 'react';
import { Component, PropTypes, createElement } from 'react';
import hoistStatics from 'hoist-non-react-statics';

@@ -66,9 +66,7 @@

render() {
return (
<TargetComponent
{...this.props}
{...this.state.data}
horizon={this.context.horizon}
/>
);
return createElement(TargetComponent, {
...this.props,
...this.state.data,
horizon: this.context.horizon
});
}

@@ -75,0 +73,0 @@ }

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