superagent 1.8.4 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/node/index.js +1 -1
- package/package.json +1 -1
- package/yarn-error.log +3713 -0
- package/yarn.lock +2631 -0
- package/test.js +0 -6
package/lib/node/index.js
CHANGED
|
@@ -672,7 +672,7 @@ Request.prototype.callback = function(err, res){
|
|
|
672
672
|
// Avoid the error which is emitted from 'socket hang up' to cause the fn undefined error on JS runtime.
|
|
673
673
|
var fn = this._callback || noop;
|
|
674
674
|
this.clearTimeout();
|
|
675
|
-
if (this.called) return console.warn('double callback
|
|
675
|
+
if (this.called) return console.warn('superagent: double callback bug. Upgrade to v3.2+ to fix this');
|
|
676
676
|
this.called = true;
|
|
677
677
|
|
|
678
678
|
if (err) {
|