🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

spex

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spex - npm Package Compare versions

Comparing version

to
0.2.10

24

lib/ext/stream/read.js

@@ -88,3 +88,3 @@ 'use strict';

if (!closable) {
finish();
success();
}

@@ -94,11 +94,7 @@ }

function onClose() {
if (closable) {
finish();
}
success();
}
function onError(error) {
stop = true;
cleanup();
reject(error);
fail(error);
}

@@ -138,4 +134,3 @@

} catch (e) {
stop = true;
reject(e);
fail(e);
return;

@@ -149,4 +144,3 @@ }

}, function (reason) {
stop = true;
reject(reason);
fail(reason);
});

@@ -159,3 +153,3 @@ } else {

function finish() {
function success() {
cleanup();

@@ -170,2 +164,8 @@ resolve({

function fail(error) {
stop = true;
cleanup();
reject(error);
}
function cleanup() {

@@ -172,0 +172,0 @@ stream.removeListener('readable', onReadable);

{
"name": "spex",
"version": "0.2.9",
"version": "0.2.10",
"description": "Specialized Promise Extensions",

@@ -5,0 +5,0 @@ "main": "lib/index.js",