superagent-as-promised
Advanced tools
Comparing version 3.2.1 to 4.0.0
@@ -5,4 +5,5 @@ SuperAgent as Promised | ||
# Request.Request.prototype.end = Promise.promisify Request.Request.prototype.end | ||
NativePromise = Promise | ||
module.exports = (Request,Promise = require 'bluebird') -> | ||
module.exports = (Request,Promise = NativePromise) -> | ||
Request.Request.prototype.endAsync = -> | ||
@@ -9,0 +10,0 @@ new Promise (resolve,reject) => |
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
var NativePromise; | ||
NativePromise = Promise; | ||
module.exports = function(Request, Promise) { | ||
if (Promise == null) { | ||
Promise = require('bluebird'); | ||
Promise = NativePromise; | ||
} | ||
@@ -7,0 +11,0 @@ Request.Request.prototype.endAsync = function() { |
{ | ||
"name": "superagent-as-promised", | ||
"version": "3.2.1", | ||
"version": "4.0.0", | ||
"description": "SuperAgent with a Promise twist", | ||
@@ -17,6 +17,4 @@ "main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"bluebird": "^3.0.5" | ||
}, | ||
"devDependencies": { | ||
"bluebird": "^3.0.5", | ||
"chai": "^3.4.1", | ||
@@ -23,0 +21,0 @@ "chai-as-promised": "^5.1.0", |
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
6723
0
42
7
- Removedbluebird@^3.0.5
- Removedbluebird@3.7.2(transitive)