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

urc

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urc - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Change Log

<a name="1.0.8"></a>
## [1.0.8](https://github.com/zerkalica/lom_atom/compare/v1.0.7...v1.0.8) (2018-03-26)
<a name="1.0.7"></a>

@@ -7,0 +12,0 @@ ## [1.0.7](https://github.com/zerkalica/lom_atom/compare/v1.0.6...v1.0.7) (2018-03-15)

6

dist/urc.es.js

@@ -103,3 +103,3 @@ function _inheritsLoose(subClass, superClass) {

_proto.__value = function __value(propsChanged) {
_proto.render = function render() {
var data = null;

@@ -109,3 +109,3 @@

if (this._lastError) throw this._lastError;
data = this.__render(this.props, this._getContext(this.constructor, propsChanged));
data = this.__atom.value().valueOf();
this._lastData = data;

@@ -120,3 +120,3 @@ } catch (error) {

origProps: this.props
}, this._getContext(this._renderError, propsChanged));
}, this._getContext(this._renderError, false));
} else {

@@ -123,0 +123,0 @@ throw error;

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

_proto.__value = function __value(propsChanged) {
_proto.render = function render() {
var data = null;

@@ -113,3 +113,3 @@

if (this._lastError) throw this._lastError;
data = this.__render(this.props, this._getContext(this.constructor, propsChanged));
data = this.__atom.value().valueOf();
this._lastData = data;

@@ -124,3 +124,3 @@ } catch (error) {

origProps: this.props
}, this._getContext(this._renderError, propsChanged));
}, this._getContext(this._renderError, false));
} else {

@@ -127,0 +127,0 @@ throw error;

@@ -109,3 +109,3 @@ (function (global, factory) {

_proto.__value = function __value(propsChanged) {
_proto.render = function render() {
var data = null;

@@ -115,3 +115,3 @@

if (this._lastError) throw this._lastError;
data = this.__render(this.props, this._getContext(this.constructor, propsChanged));
data = this.__atom.value().valueOf();
this._lastData = data;

@@ -126,3 +126,3 @@ } catch (error) {

origProps: this.props
}, this._getContext(this._renderError, propsChanged));
}, this._getContext(this._renderError, false));
} else {

@@ -129,0 +129,0 @@ throw error;

{
"name": "urc",
"version": "1.0.7",
"version": "1.0.8",
"description": "Universal react connect decorator builder",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -5,2 +5,4 @@ # Universal react connect

[Fiddle example with lom_atom](https://jsfiddle.net/zerkalica/j8ds07mm/28/)
## Mobx simple example

@@ -7,0 +9,0 @@

@@ -6,3 +6,3 @@ // @flow

export default class CatchableComponent<Props: Object, State, Context, Element>
export default class CatchableComponent<Props: Object, State, Context, Element: Object>
extends ObserverComponent<Props, State, Context, Element> {

@@ -29,10 +29,7 @@ _lastError: ?Error

__value(propsChanged: boolean): Element {
render(): Element {
let data: Element = (null: any)
try {
if (this._lastError) throw this._lastError
data = this.__render(
this.props,
this._getContext(this.constructor, propsChanged)
)
data = this.__atom.value().valueOf()
this._lastData = data

@@ -44,3 +41,3 @@ } catch (error) {

{error, children: this._lastData, origProps: this.props},
this._getContext(this._renderError, propsChanged)
this._getContext(this._renderError, false)
)

@@ -54,2 +51,3 @@ } else {

}
}

@@ -5,3 +5,3 @@ // @flow

export default class ObserverComponent<Props: Object, State, Context, Element> implements IReactHost<Element> {
export default class ObserverComponent<Props: Object, State, Context, Element: Object> implements IReactHost<Element> {
static displayName: string

@@ -8,0 +8,0 @@ props: Props

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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