Skip to content

Commit 3d881fc

Browse files
committed
chore(release): 1.1.1
1 parent 31b0951 commit 3d881fc

File tree

8 files changed

+1887
-238
lines changed

8 files changed

+1887
-238
lines changed

.versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
2+
33
44
55
@@ -32,7 +32,7 @@ [email protected]
3232
3333
3434
35-
local-test:[email protected].0
35+
local-test:[email protected].1
3636
3737
3838

dist/angular-meteor-auth.bundle.js

Lines changed: 1858 additions & 215 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-meteor-auth.bundle.min.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-meteor-auth.js

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angular-meteor-auth v1.1.0 */
1+
/*! angular-meteor-auth v1.1.1 */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -71,7 +71,7 @@ return /******/ (function(modules) { // webpackBootstrap
7171
This mixin comes in a seperate package called `angular-meteor-auth`. Note that `accounts-base`
7272
package needs to be installed in order for this module to work, otherwise an error will be thrown.
7373
*/
74-
.factory('$$Auth', ['$Mixer', '$log', function ($Mixer, $log) {
74+
.factory('$$Auth', ['$Mixer', '$log', '$q', function ($Mixer, $log, $q) {
7575
var Accounts = (Package['accounts-base'] || {}).Accounts;
7676

7777
if (!Accounts) {
@@ -133,19 +133,24 @@ return /******/ (function(modules) { // webpackBootstrap
133133

134134
if (!_this.currentUser) return _this.$$afterFlush(deferred.reject, errors.required);
135135

136-
var isValid = validate(_this.currentUser);
137-
// Resolve the promise if validation has passed
138-
if (isValid === true) return _this.$$afterFlush(deferred.resolve, _this.currentUser);
139-
140-
var error = void 0;
141-
142-
if (_.isString(isValid) || isValid instanceof Error) {
143-
error = isValid;
144-
} else {
145-
error = errors.forbidden;
146-
}
147-
148-
return _this.$$afterFlush(deferred.reject, error);
136+
$q.when(validate(_this.currentUser)).then(function (isValid) {
137+
// Resolve the promise if validation has passed
138+
if (isValid === true) {
139+
_this.$$afterFlush(deferred.resolve, _this.currentUser);
140+
} else {
141+
return $q.reject(isValid);
142+
}
143+
}).catch(function (isValid) {
144+
var error = void 0;
145+
146+
if (_.isString(isValid) || isValid instanceof Error) {
147+
error = isValid;
148+
} else {
149+
error = errors.forbidden;
150+
}
151+
152+
_this.$$afterFlush(deferred.reject, error);
153+
});
149154
});
150155

151156
deferred.promise.stop = computation.stop.bind(computation);

dist/angular-meteor-auth.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-meteor-auth.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package.describe({
22
name: "angular-meteor-auth",
33
summary: "Angular-Meteor authentication module",
4-
version: "1.1.0",
4+
version: "1.1.1",
55
git: "https://github.com/urigo/angular-meteor-auth.git",
66
documentation: null
77
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-meteor-auth",
33
"main": "./dist/angular-meteor-auth.js",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"description": "Angular-Meteor authentication module",
66
"keywords": [
77
"AngularJS",

0 commit comments

Comments
 (0)