Comparing version 0.2.9 to 0.2.10
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
63293
1640