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.4 to 0.8.5

2

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

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

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

var when = promise.when;
var resolve = promise.Promise.resolve;
var delayed = promise.delay;

@@ -72,3 +73,3 @@ var never = promise.never;

: stepSkipPast(epsilon, scheduler, stepper, i.state);
}, Promise.resolve(s).then(stepper));
}, resolve(s).then(stepper));
}

@@ -75,0 +76,0 @@

@@ -1,4 +0,5 @@

var WhenPromise = require('when/es6-shim/Promise');
var unhandledRejection = require('when/lib/decorators/unhandledRejection');
var PromiseImpl = unhandledRejection(require('when/lib/Promise'));
exports.Promise = WhenPromise;
exports.Promise = PromiseImpl;
exports.defer = defer;

@@ -8,4 +9,4 @@ exports.delay = delay;

exports.raceIndex = raceIndex;
exports.never = WhenPromise.never;
exports.getStatus = WhenPromise._handler;
exports.never = PromiseImpl.never;
exports.getStatus = PromiseImpl._handler;

@@ -18,3 +19,3 @@ /**

var d = { promise: void 0, resolve: void 0, reject: void 0 };
d.promise = new WhenPromise(function(resolve, reject) {
d.promise = new PromiseImpl(function(resolve, reject) {
d.resolve = resolve;

@@ -35,3 +36,3 @@ d.reject = reject;

function delay(delayTime, x, scheduler) {
return new Promise(function(resolve) {
return new PromiseImpl(function(resolve) {
scheduler.delayed(delayTime, resolve, x);

@@ -55,3 +56,3 @@ });

return x !== null
&& (typeof x === 'object' || typeof x === 'function' )
&& (typeof x === 'object' || typeof x === 'function')
&& typeof x.then === 'function';

@@ -70,3 +71,3 @@ }

var done = false;
return new WhenPromise(runRaceIndex);
return new PromiseImpl(runRaceIndex);

@@ -80,3 +81,3 @@ function runRaceIndex(resolve, reject) {

function settleOne(resolve, reject, i, p) {
WhenPromise.resolve(p).then(function(x) {
PromiseImpl.resolve(p).then(function(x) {
if(!done) {

@@ -83,0 +84,0 @@ done = true;

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

Stream.prototype.head = function() {
return Promise.resolve(streamNext(this)).then(getValueOrFail);
return resolve(streamNext(this)).then(getValueOrFail);
};

@@ -130,0 +130,0 @@

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

exports.forEach = exports.observe = observe;
exports.forEachUntil = exports.observeUntil = observeUntil;
exports.forEach = exports.observe = observe;

@@ -107,0 +106,0 @@ /**

{
"name": "most",
"version": "0.8.4",
"version": "0.8.5",
"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