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

most

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

most - npm Package Compare versions

Comparing version 0.8.0 to 0.8.2

2

bower.json
{
"name": "most",
"main": "most.js",
"version": "0.8.0",
"version": "0.8.2",
"homepage": "https://github.com/cujojs/most",

@@ -6,0 +6,0 @@ "authors": [

@@ -829,2 +829,9 @@ most.js API

```
s: -a-b-c-d-e-f->
t: -1-2-3-4-5-6->
stream: -s-----t----->
stream.switch(): -a-b-c-4-5-6->
```
*TODO: Example*

@@ -837,4 +844,11 @@

Flatten a higher-order stream one level.
Given a higher-order stream, return a new stream that merges all the inner streams as they arrive.
```
s: ---a---b---c---d-->
t: -1--2--3--4--5--6->
stream: -s------t--------->
stream.join(): ---a---b--4c-5-d6->
```
*TODO: Example*

@@ -841,0 +855,0 @@

@@ -46,3 +46,3 @@ /** @license MIT License (c) copyright 2010-2014 original author or authors */

if(i.done) {
return s.length === 1 ? i : stepJoin(replace(endOuter(s[0].stream), 0, s));
return s.length === 1 ? i : stepJoin(replace(endOuter(i, s[0].stream), 0, s));
}

@@ -77,4 +77,4 @@

function endOuter(stream) {
return { stream: stream, i: neverP };
function endOuter(i, stream) {
return { stream: stream, i: disposeOuter(i, stream) };
}

@@ -95,2 +95,8 @@

function disposeOuter (i, stream) {
return when(function () {
return neverP;
}, stream.dispose(i.time, i.value, i.state));
}
function disposeInners(t, x, s) {

@@ -97,0 +103,0 @@ return all(map(function(si) {

{
"name": "most",
"version": "0.8.0",
"version": "0.8.2",
"description": "Monadic streams",

@@ -5,0 +5,0 @@ "main": "most.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