angular-meteor-promiser
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -18,4 +18,4 @@ "use strict"; | ||
}, | ||
onStop: function () { | ||
reject(); | ||
onStop: function (error) { | ||
reject(error); | ||
} | ||
@@ -60,3 +60,3 @@ }])); | ||
try { | ||
var result = fn(resolve); | ||
var result = fn(resolve, reject); | ||
if (typeof result !== 'undefined') { | ||
@@ -63,0 +63,0 @@ resolve(result); |
@@ -20,4 +20,4 @@ import * as angular from 'angular'; | ||
}, | ||
onStop() { | ||
reject(); | ||
onStop(error) { | ||
reject(error); | ||
} | ||
@@ -55,3 +55,3 @@ }); | ||
try { | ||
const result = fn(resolve); | ||
const result = fn(resolve, reject); | ||
@@ -58,0 +58,0 @@ if (typeof result !== 'undefined') { |
{ | ||
"name": "angular-meteor-promiser", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Turns Meteor subscribe, call, apply callbacks into AngularJS promises", | ||
@@ -5,0 +5,0 @@ "main": "angular-meteor-promiser.js", |
@@ -62,6 +62,6 @@ # angular-meteor-promiser | ||
$promiser.any((done) => { | ||
$promiser.any((resolve, reject) => { | ||
setTimeout(() => { | ||
done(foo('async')); | ||
resolve(foo('async')); | ||
}, 500); | ||
@@ -68,0 +68,0 @@ |
Sorry, the diff of this file is not supported yet
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
8126