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

refract-callbag

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refract-callbag - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

12

index.es.js

@@ -101,2 +101,3 @@ import $$observable from 'symbol-observable';

var filter = require('callbag-filter');
var startWith = require('callbag-start-with');
var subscribeToSink = function (sink, next, error) {

@@ -138,3 +139,12 @@ return toObs(sink).subscribe({

pushEvent: pushEvent,
useEvent: function (eventName) { return [fromEvent(eventName), pushEvent(eventName)]; }
useEvent: function (eventName, seedValue) {
var events$ = fromEvent(eventName);
var pushEventValue = pushEvent(eventName);
return [
seedValue === undefined
? events$
: events$.pipe(startWith(seedValue)),
pushEventValue
];
}
};

@@ -141,0 +151,0 @@ };

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

var filter = require('callbag-filter');
var startWith = require('callbag-start-with');
var subscribeToSink = function (sink, next, error) {

@@ -144,3 +145,12 @@ return toObs(sink).subscribe({

pushEvent: pushEvent,
useEvent: function (eventName) { return [fromEvent(eventName), pushEvent(eventName)]; }
useEvent: function (eventName, seedValue) {
var events$ = fromEvent(eventName);
var pushEventValue = pushEvent(eventName);
return [
seedValue === undefined
? events$
: events$.pipe(startWith(seedValue)),
pushEventValue
];
}
};

@@ -147,0 +157,0 @@ };

3

package.json
{
"name": "refract-callbag",
"description": "Refract bindings for React with Callbag: harness the power of reactive programming to supercharge your components!",
"version": "2.1.0",
"version": "2.2.0",
"main": "index.js",

@@ -21,2 +21,3 @@ "jsnext:main": "index.es.js",

"callbag-pipe": "~1.1.1",
"callbag-start-with": "~3.1.0",
"callbag-to-obs": "~1.0.0",

@@ -23,0 +24,0 @@ "symbol-observable": "~1.2.0"

@@ -37,3 +37,3 @@ import { Callbag, Source, Sink } from 'callbag'

dataObservable: any,
pushEvent: any
pushEvent: PushEvent
) => ObservableComponent
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