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

callbag-flatten

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callbag-flatten - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

7

index.cjs.js

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

if (start !== 0) return;
let outerEnded = false;
let outerTalkback;

@@ -13,3 +12,3 @@ let innerTalkback;

innerTalkback && innerTalkback(2);
if (!outerEnded) outerTalkback(2);
outerTalkback && outerTalkback(2);
}

@@ -33,3 +32,3 @@ }

} else if (t === 2) {
if (outerEnded) sink(2);
if (!outerTalkback) sink(2);
else {

@@ -46,3 +45,3 @@ innerTalkback = void 0;

if (!innerTalkback) sink(2);
else outerEnded = true;
else outerTalkback = void 0;
}

@@ -49,0 +48,0 @@ });

const flatten = source => (start, sink) => {
if (start !== 0) return;
let outerEnded = false;
let outerTalkback;

@@ -10,3 +9,3 @@ let innerTalkback;

innerTalkback && innerTalkback(2);
if (!outerEnded) outerTalkback(2);
outerTalkback && outerTalkback(2);
}

@@ -30,3 +29,3 @@ }

} else if (t === 2) {
if (outerEnded) sink(2);
if (!outerTalkback) sink(2);
else {

@@ -43,3 +42,3 @@ innerTalkback = void 0;

if (!innerTalkback) sink(2);
else outerEnded = true;
else outerTalkback = void 0;
}

@@ -46,0 +45,0 @@ });

{
"name": "callbag-flatten",
"version": "1.5.0",
"version": "1.6.0",
"description": "Callbag operator that flattens a higher-order callbag source",

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

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