angular-bluebird-promises
Advanced tools
Comparing version 0.3.3 to 0.3.4
{ | ||
"name": "angular-bluebird-promises", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"homepage": "https://github.com/mattlewis92/angular-bluebird-promises", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -1,2 +0,2 @@ | ||
(function(angular, P) { | ||
(function(angular, window) { | ||
@@ -7,3 +7,3 @@ 'use strict'; | ||
.module('mwl.bluebird', []) | ||
.constant('Bluebird', P.noConflict()) | ||
.constant('Bluebird', window.P.noConflict()) | ||
.config(function($provide, Bluebird) { | ||
@@ -68,2 +68,2 @@ | ||
}(angular, P)); | ||
}(angular, window)); |
/** | ||
* angular-bluebird-promises - Replaces $q with bluebirds promise API | ||
* @version v0.3.3 | ||
* @version v0.3.4 | ||
* @link https://github.com/mattlewis92/angular-bluebird-promises | ||
* @license MIT | ||
*/ | ||
!function(n,e){"use strict";n.module("mwl.bluebird",[]).constant("Bluebird",e.noConflict()).config(["$provide","Bluebird",function(e,r){r.defer=function(){var e=r.pending();return e.resolve=n.bind(e,e.fulfill),e.reject=n.bind(e,e.reject),e.notify=n.bind(e,e.progress),e},r.reject=r.rejected,r.when=r.cast;var t=r.all;r.all=function(e){if(n.isObject(e)&&!n.isArray(e)){var r=[],o=[];return n.forEach(e,function(n,e){o.push(e),r.push(n)}),t(r).then(function(e){var r={};return n.forEach(e,function(n,e){r[o[e]]=n}),r})}return t(e)},r.onPossiblyUnhandledRejection(n.noop),e.decorator("$q",function(){return r})}]).run(["$rootScope","Bluebird",function(n,e){e.setScheduler(function(e){n.$evalAsync(e)})}])}(angular,P); | ||
!function(n,e){"use strict";n.module("mwl.bluebird",[]).constant("Bluebird",e.P.noConflict()).config(["$provide","Bluebird",function(e,r){r.defer=function(){var e=r.pending();return e.resolve=n.bind(e,e.fulfill),e.reject=n.bind(e,e.reject),e.notify=n.bind(e,e.progress),e},r.reject=r.rejected,r.when=r.cast;var o=r.all;r.all=function(e){if(n.isObject(e)&&!n.isArray(e)){var r=[],t=[];return n.forEach(e,function(n,e){t.push(e),r.push(n)}),o(r).then(function(e){var r={};return n.forEach(e,function(n,e){r[t[e]]=n}),r})}return o(e)},r.onPossiblyUnhandledRejection(n.noop),e.decorator("$q",function(){return r})}]).run(["$rootScope","Bluebird",function(n,e){e.setScheduler(function(e){n.$evalAsync(e)})}])}(angular,window); | ||
//# sourceMappingURL=angular-bluebird-promises.min.js.map |
{ | ||
"name": "angular-bluebird-promises", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Replaces $q with bluebirds promise API", | ||
@@ -5,0 +5,0 @@ "browser": "dist/angular-bluebird-promises.js", |
@@ -1,2 +0,2 @@ | ||
(function(angular, P) { | ||
(function(angular, window) { | ||
@@ -7,3 +7,3 @@ 'use strict'; | ||
.module('mwl.bluebird', []) | ||
.constant('Bluebird', P.noConflict()) | ||
.constant('Bluebird', window.P.noConflict()) | ||
.config(function($provide, Bluebird) { | ||
@@ -68,2 +68,2 @@ | ||
}(angular, P)); | ||
}(angular, window)); |
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
28545