superagent-as-promised
Advanced tools
Comparing version 3.1.1 to 3.2.0
SuperAgent as Promised | ||
====================== | ||
Promise = require 'bluebird' | ||
# Request.Request.prototype.end = Promise.promisify Request.Request.prototype.end | ||
module.exports = (Request) -> | ||
module.exports = (Request,Promise = require 'bluebird') -> | ||
Request.Request.prototype.endAsync = -> | ||
@@ -10,0 +8,0 @@ new Promise (resolve,reject) => |
11
index.js
@@ -1,8 +0,7 @@ | ||
// Generated by CoffeeScript 1.9.1 | ||
// Generated by CoffeeScript 1.9.3 | ||
(function() { | ||
var Promise; | ||
Promise = require('bluebird'); | ||
module.exports = function(Request) { | ||
module.exports = function(Request, Promise) { | ||
if (Promise == null) { | ||
Promise = require('bluebird'); | ||
} | ||
Request.Request.prototype.endAsync = function() { | ||
@@ -9,0 +8,0 @@ return new Promise((function(_this) { |
{ | ||
"name": "superagent-as-promised", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "SuperAgent with a Promise twist", | ||
@@ -18,12 +18,12 @@ "main": "index.js", | ||
"dependencies": { | ||
"bluebird": "^2.9.24" | ||
"bluebird": "^2.9.34" | ||
}, | ||
"devDependencies": { | ||
"superagent": "^1.1.0", | ||
"chai": "^2.2.0", | ||
"chai-as-promised": "^4.3.0", | ||
"coffee-script": "^1.9.1", | ||
"express": "^4.12.3", | ||
"mocha": "^2.2.1" | ||
"superagent": "^1.3.0", | ||
"chai": "^3.2.0", | ||
"chai-as-promised": "^5.1.0", | ||
"coffee-script": "^1.9.3", | ||
"express": "^4.13.3", | ||
"mocha": "^2.2.5" | ||
} | ||
} |
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
6379
8
40
Updatedbluebird@^2.9.34