angular-bluebird-promises
Advanced tools
Comparing version 0.5.1 to 0.5.2
{ | ||
"name": "angular-bluebird-promises", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"homepage": "https://github.com/mattlewis92/angular-bluebird-promises", | ||
@@ -5,0 +5,0 @@ "authors": [ |
/** | ||
* angular-bluebird-promises - Replaces $q with bluebirds promise API | ||
* @version v0.5.1 | ||
* @version v0.5.2 | ||
* @link https://github.com/mattlewis92/angular-bluebird-promises | ||
@@ -10,7 +10,7 @@ * @license MIT | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(require("angular"), require("Promise")); | ||
module.exports = factory(require("angular"), require("bluebird")); | ||
else if(typeof define === 'function' && define.amd) | ||
define(["angular", "Promise"], factory); | ||
define(["angular", "bluebird"], factory); | ||
else { | ||
var a = typeof exports === 'object' ? factory(require("angular"), require("Promise")) : factory(root["angular"], root["Promise"]); | ||
var a = typeof exports === 'object' ? factory(require("angular"), require("bluebird")) : factory(root["angular"], root["Promise"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
@@ -17,0 +17,0 @@ } |
/** | ||
* angular-bluebird-promises - Replaces $q with bluebirds promise API | ||
* @version v0.5.1 | ||
* @version v0.5.2 | ||
* @link https://github.com/mattlewis92/angular-bluebird-promises | ||
* @license MIT | ||
*/ | ||
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("Promise"),require("angular"));else if("function"==typeof define&&define.amd)define(["Promise","angular"],r);else{var o="object"==typeof exports?r(require("Promise"),require("angular")):r(e.Promise,e.angular);for(var t in o)("object"==typeof exports?exports:e)[t]=o[t]}}(this,function(e,r){return function(e){function r(t){if(o[t])return o[t].exports;var n=o[t]={exports:{},id:t,loaded:!1};return e[t].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}var o={};return r.m=e,r.c=o,r.p="",r(0)}([function(e,r,o){"use strict";var t=o(2),n=o(1),i="mwl.bluebird";t.module(i,[]).constant("Bluebird",n).config(["$provide","Bluebird",function(e,r){r.defer=function(){var e=r.pending();return e.resolve=t.bind(e,e.fulfill),e.reject=t.bind(e,e.reject),e.notify=t.bind(e,e.progress),e},r.reject=r.rejected,r.when=r.cast;var o=r.all;r.all=function(e){return t.isObject(e)&&!t.isArray(e)?r.props(e):o.call(r,e)};var n=r.prototype["finally"];r.prototype["finally"]=function(e,r){return this.progressed(r),n.call(this,e)},r.onPossiblyUnhandledRejection(t.noop),e.decorator("$q",function(){return r})}]).run(["$rootScope","Bluebird",function(e,r){r.setScheduler(function(r){e.$evalAsync(r)})}]),e.exports=i},function(r,o){r.exports=e},function(e,o){e.exports=r}])}); | ||
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("angular"),require("bluebird"));else if("function"==typeof define&&define.amd)define(["angular","bluebird"],r);else{var t="object"==typeof exports?r(require("angular"),require("bluebird")):r(e.angular,e.Promise);for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(this,function(e,r){return function(e){function r(o){if(t[o])return t[o].exports;var n=t[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}var t={};return r.m=e,r.c=t,r.p="",r(0)}([function(e,r,t){"use strict";var o=t(1),n=t(2),i="mwl.bluebird";o.module(i,[]).constant("Bluebird",n).config(["$provide","Bluebird",function(e,r){r.defer=function(){var e=r.pending();return e.resolve=o.bind(e,e.fulfill),e.reject=o.bind(e,e.reject),e.notify=o.bind(e,e.progress),e},r.reject=r.rejected,r.when=r.cast;var t=r.all;r.all=function(e){return o.isObject(e)&&!o.isArray(e)?r.props(e):t.call(r,e)};var n=r.prototype["finally"];r.prototype["finally"]=function(e,r){return this.progressed(r),n.call(this,e)},r.onPossiblyUnhandledRejection(o.noop),e.decorator("$q",function(){return r})}]).run(["$rootScope","Bluebird",function(e,r){r.setScheduler(function(r){e.$evalAsync(r)})}]),e.exports=i},function(r,t){r.exports=e},function(e,t){e.exports=r}])}); | ||
//# sourceMappingURL=angular-bluebird-promises.min.js.map |
{ | ||
"name": "angular-bluebird-promises", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Replaces $q with bluebirds promise API", | ||
@@ -5,0 +5,0 @@ "browser": "src/angular-bluebird-promises.js", |
@@ -26,3 +26,8 @@ var webpack = require('webpack'); | ||
angular: 'angular', | ||
bluebird: 'Promise' | ||
bluebird: { | ||
root: 'Promise', | ||
commonjs: 'bluebird', | ||
commonjs2: 'bluebird', | ||
amd: 'bluebird' | ||
} | ||
}, | ||
@@ -29,0 +34,0 @@ devtool: MIN ? 'source-map' : null, |
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
38405
536