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

conclure-quarx

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conclure-quarx - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

6

package.json
{
"name": "conclure-quarx",
"version": "0.4.2",
"description": "Reactive flows",
"type": "module",

@@ -18,5 +21,2 @@ "dependencies": {

},
"name": "conclure-quarx",
"version": "0.4.1",
"description": "Reactive flows",
"main": "src/index.js",

@@ -23,0 +23,0 @@ "module": "src/index.js",

import { createAtom, autorun, Quarx } from 'quarx';
import { conclude, inProgress, isFlow, isIterator } from 'conclure';
import { conclude, inProgress, isFlow, isIterator, isEffect } from 'conclure';
import * as Combinators from 'conclure/combinators';

@@ -8,6 +9,18 @@ if (!Quarx.reactiveFlows) {

const supportedEffects = new Set(Object.values(Combinators));
export const reactiveFlow = it => {
if (isIterator(it)) {
const flowType = isFlow(it);
if (flowType === isIterator) {
makeReactive(it).reportObserved();
}
else if (flowType === isEffect && supportedEffects.has(it.fn)) {
const flows = it.args[0];
for (let flow of (Array.isArray(flows) ? flows : Object.values(flows))) {
reactiveFlow(flow);
}
}
return it;

@@ -14,0 +27,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