Commit 8efc127a authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

Update lock file

parent e388b130
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.superagent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.superagent = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
function Agent() { function Agent() {
this._defaults = []; this._defaults = [];
} }
...@@ -284,7 +284,7 @@ RequestBase.prototype.then = function then(resolve, reject) { ...@@ -284,7 +284,7 @@ RequestBase.prototype.then = function then(resolve, reject) {
return this._fullfilledPromise.then(resolve, reject); return this._fullfilledPromise.then(resolve, reject);
}; };
RequestBase.prototype.catch = function(cb) { RequestBase.prototype['catch'] = function(cb) {
return this.then(undefined, cb); return this.then(undefined, cb);
}; };
...@@ -860,6 +860,7 @@ ResponseBase.prototype._setStatusProperties = function(status){ ...@@ -860,6 +860,7 @@ ResponseBase.prototype._setStatusProperties = function(status){
: false; : false;
// sugar // sugar
this.created = 201 == status;
this.accepted = 202 == status; this.accepted = 202 == status;
this.noContent = 204 == status; this.noContent = 204 == status;
this.badRequest = 400 == status; this.badRequest = 400 == status;
...@@ -867,6 +868,7 @@ ResponseBase.prototype._setStatusProperties = function(status){ ...@@ -867,6 +868,7 @@ ResponseBase.prototype._setStatusProperties = function(status){
this.notAcceptable = 406 == status; this.notAcceptable = 406 == status;
this.forbidden = 403 == status; this.forbidden = 403 == status;
this.notFound = 404 == status; this.notFound = 404 == status;
this.unprocessableEntity = 422 == status;
}; };
},{"./utils":5}],5:[function(require,module,exports){ },{"./utils":5}],5:[function(require,module,exports){
...@@ -1296,7 +1298,7 @@ request.types = { ...@@ -1296,7 +1298,7 @@ request.types = {
request.serialize = { request.serialize = {
'application/x-www-form-urlencoded': serialize, 'application/x-www-form-urlencoded': serialize,
'application/json': JSON.stringify, 'application/json': JSON.stringify
}; };
/** /**
...@@ -1310,7 +1312,7 @@ request.serialize = { ...@@ -1310,7 +1312,7 @@ request.serialize = {
request.parse = { request.parse = {
'application/x-www-form-urlencoded': parseString, 'application/x-www-form-urlencoded': parseString,
'application/json': JSON.parse, 'application/json': JSON.parse
}; };
/** /**
...@@ -2030,4 +2032,4 @@ request.put = function(url, data, fn) { ...@@ -2030,4 +2032,4 @@ request.put = function(url, data, fn) {
}; };
},{"./agent-base":1,"./is-object":2,"./request-base":3,"./response-base":4,"component-emitter":6}]},{},[7])(7) },{"./agent-base":1,"./is-object":2,"./request-base":3,"./response-base":4,"component-emitter":6}]},{},[7])(7)
}); });
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment