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

spex

Package Overview
Dependencies
Maintainers
1
Versions
105
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 0.2.9 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",

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