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

reactive-di

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactive-di - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

6

package.json
{
"name": "reactive-di",
"version": "7.0.2",
"version": "7.0.3",
"description": "Reactive dependency injection",

@@ -68,3 +68,3 @@ "publishConfig": {

"flow-bin": "^0.66.0",
"lom_atom": "^4.0.1",
"lom_atom": "^4.0.3",
"mobx": "^3.5.1",

@@ -83,4 +83,4 @@ "mocha": "^5.0.1",

"dependencies": {
"urc": "^1.0.6"
"urc": "^1.0.8"
}
}

@@ -21,3 +21,3 @@ # Reactive DI [![Build Status](https://secure.travis-ci.org/zerkalica/reactive-di.png)](http://travis-ci.org/zerkalica/reactive-di)

* [todomvc benchmark](http://mol.js.org/app/bench/#bench=https%3A%2F%2Fzerkalica.github.io%2Futb%2Fbenchmark%2F/sample=preact-lom_atom~preact-mobx~preact-raw~preact-reactive-di)
* [fiddle](https://jsfiddle.net/zerkalica/jxo6hqf8/9/) example with loading and error handling demo.
* [fiddle](https://jsfiddle.net/zerkalica/jxo6hqf8/) example with loading and error handling demo.

@@ -93,3 +93,3 @@ ## TOC

// @flow
import {ReactAtom, mem, AtomWait, action} from 'lom_atom'
import {ReactAtom, mem, action} from 'lom_atom'
import {createReactWrapper, createCreateElement} from 'reactive-di'

@@ -100,3 +100,3 @@ import {render, h, Component} from 'preact'

return <div>
{error instanceof AtomWait
{!(error instanceof Error)
? <div>

@@ -170,3 +170,3 @@ Loading...

return <div>
{error instanceof AtomWait
{!(error instanceof Error)
? <div>

@@ -299,3 +299,3 @@ Loading...

return <div>
{error instanceof AtomWait
{!(error instanceof Error)
? <div>

@@ -373,8 +373,8 @@ Loading...

In ReactiveDI pending/complete status realized via exceptions. Special user defined "Wait" exception can be handled in ErrorableView.
In ReactiveDI pending/complete status realized via Promise exception.
```js
function ErrorableView({error}: {error: Error}) {
function ErrorableView({error}: {error: Error | Promise<*>}) {
return <div>
{error instanceof AtomWait
{!(error instanceof Error)
? <div>

@@ -389,3 +389,3 @@ Loading...

In component model ``` throw new AtomWait() ``` catched in HelloComponent wrapper and default ErrorableView shows ``` Loading... ``` instead of HelloView.
In component model ``` throw new Promise() ``` catched in HelloComponent wrapper and default ErrorableView shows ``` Loading... ``` instead of HelloView.

@@ -392,0 +392,0 @@ ```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