summaryrefslogtreecommitdiff
path: root/together/node_modules/superagent/lib/node
diff options
context:
space:
mode:
Diffstat (limited to 'together/node_modules/superagent/lib/node')
-rw-r--r--together/node_modules/superagent/lib/node/agent.js130
-rw-r--r--together/node_modules/superagent/lib/node/http2wrapper.js210
-rw-r--r--together/node_modules/superagent/lib/node/index.js1409
-rw-r--r--together/node_modules/superagent/lib/node/parsers/image.js13
-rw-r--r--together/node_modules/superagent/lib/node/parsers/index.js13
-rw-r--r--together/node_modules/superagent/lib/node/parsers/json.js26
-rw-r--r--together/node_modules/superagent/lib/node/parsers/text.js11
-rw-r--r--together/node_modules/superagent/lib/node/parsers/urlencoded.js22
-rw-r--r--together/node_modules/superagent/lib/node/response.js139
-rw-r--r--together/node_modules/superagent/lib/node/unzip.js72
10 files changed, 0 insertions, 2045 deletions
diff --git a/together/node_modules/superagent/lib/node/agent.js b/together/node_modules/superagent/lib/node/agent.js
deleted file mode 100644
index 30a4c1a..0000000
--- a/together/node_modules/superagent/lib/node/agent.js
+++ /dev/null
@@ -1,130 +0,0 @@
-"use strict";
-
-function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
-
-function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
-
-function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
-
-/**
- * Module dependencies.
- */
-// eslint-disable-next-line node/no-deprecated-api
-const _require = require('url'),
- parse = _require.parse;
-
-const _require2 = require('cookiejar'),
- CookieJar = _require2.CookieJar;
-
-const _require3 = require('cookiejar'),
- CookieAccessInfo = _require3.CookieAccessInfo;
-
-const methods = require('methods');
-
-const request = require('../..');
-
-const AgentBase = require('../agent-base');
-/**
- * Expose `Agent`.
- */
-
-
-module.exports = Agent;
-/**
- * Initialize a new `Agent`.
- *
- * @api public
- */
-
-function Agent(options) {
- if (!(this instanceof Agent)) {
- return new Agent(options);
- }
-
- AgentBase.call(this);
- this.jar = new CookieJar();
-
- if (options) {
- if (options.ca) {
- this.ca(options.ca);
- }
-
- if (options.key) {
- this.key(options.key);
- }
-
- if (options.pfx) {
- this.pfx(options.pfx);
- }
-
- if (options.cert) {
- this.cert(options.cert);
- }
-
- if (options.rejectUnauthorized === false) {
- this.disableTLSCerts();
- }
- }
-}
-
-Agent.prototype = Object.create(AgentBase.prototype);
-/**
- * Save the cookies in the given `res` to
- * the agent's cookie jar for persistence.
- *
- * @param {Response} res
- * @api private
- */
-
-Agent.prototype._saveCookies = function (res) {
- const cookies = res.headers['set-cookie'];
- if (cookies) this.jar.setCookies(cookies);
-};
-/**
- * Attach cookies when available to the given `req`.
- *
- * @param {Request} req
- * @api private
- */
-
-
-Agent.prototype._attachCookies = function (request_) {
- const url = parse(request_.url);
- const access = new CookieAccessInfo(url.hostname, url.pathname, url.protocol === 'https:');
- const cookies = this.jar.getCookies(access).toValueString();
- request_.cookies = cookies;
-};
-
-var _iterator = _createForOfIteratorHelper(methods),
- _step;
-
-try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- const name = _step.value;
- const method = name.toUpperCase();
-
- Agent.prototype[name] = function (url, fn) {
- const request_ = new request.Request(method, url);
- request_.on('response', this._saveCookies.bind(this));
- request_.on('redirect', this._saveCookies.bind(this));
- request_.on('redirect', this._attachCookies.bind(this, request_));
-
- this._setDefaults(request_);
-
- this._attachCookies(request_);
-
- if (fn) {
- request_.end(fn);
- }
-
- return request_;
- };
- }
-} catch (err) {
- _iterator.e(err);
-} finally {
- _iterator.f();
-}
-
-Agent.prototype.del = Agent.prototype.delete;
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJyZXF1aXJlIiwicGFyc2UiLCJDb29raWVKYXIiLCJDb29raWVBY2Nlc3NJbmZvIiwibWV0aG9kcyIsInJlcXVlc3QiLCJBZ2VudEJhc2UiLCJtb2R1bGUiLCJleHBvcnRzIiwiQWdlbnQiLCJvcHRpb25zIiwiY2FsbCIsImphciIsImNhIiwia2V5IiwicGZ4IiwiY2VydCIsInJlamVjdFVuYXV0aG9yaXplZCIsImRpc2FibGVUTFNDZXJ0cyIsInByb3RvdHlwZSIsIk9iamVjdCIsImNyZWF0ZSIsIl9zYXZlQ29va2llcyIsInJlcyIsImNvb2tpZXMiLCJoZWFkZXJzIiwic2V0Q29va2llcyIsIl9hdHRhY2hDb29raWVzIiwicmVxdWVzdF8iLCJ1cmwiLCJhY2Nlc3MiLCJob3N0bmFtZSIsInBhdGhuYW1lIiwicHJvdG9jb2wiLCJnZXRDb29raWVzIiwidG9WYWx1ZVN0cmluZyIsIm5hbWUiLCJtZXRob2QiLCJ0b1VwcGVyQ2FzZSIsImZuIiwiUmVxdWVzdCIsIm9uIiwiYmluZCIsIl9zZXREZWZhdWx0cyIsImVuZCIsImRlbCIsImRlbGV0ZSJdLCJzb3VyY2VzIjpbIi4uLy4uL3N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CMkIsTUFBdEMifQ== \ No newline at end of file
diff --git a/together/node_modules/superagent/lib/node/http2wrapper.js b/together/node_modules/superagent/lib/node/http2wrapper.js
deleted file mode 100644
index 52d0b11..0000000
--- a/together/node_modules/superagent/lib/node/http2wrapper.js
+++ /dev/null
@@ -1,210 +0,0 @@
-"use strict";
-
-function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
-
-function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
-
-function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
-
-const Stream = require('stream');
-
-const util = require('util');
-
-const net = require('net');
-
-const tls = require('tls'); // eslint-disable-next-line node/no-deprecated-api
-
-
-const _require = require('url'),
- parse = _require.parse;
-
-const process = require('process');
-
-const semverGte = require('semver/functions/gte');
-
-let http2;
-if (semverGte(process.version, 'v10.10.0')) http2 = require('http2');else throw new Error('superagent: this version of Node.js does not support http2');
-const _http2$constants = http2.constants,
- HTTP2_HEADER_PATH = _http2$constants.HTTP2_HEADER_PATH,
- HTTP2_HEADER_STATUS = _http2$constants.HTTP2_HEADER_STATUS,
- HTTP2_HEADER_METHOD = _http2$constants.HTTP2_HEADER_METHOD,
- HTTP2_HEADER_AUTHORITY = _http2$constants.HTTP2_HEADER_AUTHORITY,
- HTTP2_HEADER_HOST = _http2$constants.HTTP2_HEADER_HOST,
- HTTP2_HEADER_SET_COOKIE = _http2$constants.HTTP2_HEADER_SET_COOKIE,
- NGHTTP2_CANCEL = _http2$constants.NGHTTP2_CANCEL;
-
-function setProtocol(protocol) {
- return {
- request(options) {
- return new Request(protocol, options);
- }
-
- };
-}
-
-function Request(protocol, options) {
- Stream.call(this);
- const defaultPort = protocol === 'https:' ? 443 : 80;
- const defaultHost = 'localhost';
- const port = options.port || defaultPort;
- const host = options.host || defaultHost;
- delete options.port;
- delete options.host;
- this.method = options.method;
- this.path = options.path;
- this.protocol = protocol;
- this.host = host;
- delete options.method;
- delete options.path;
-
- const sessionOptions = _objectSpread({}, options);
-
- if (options.socketPath) {
- sessionOptions.socketPath = options.socketPath;
- sessionOptions.createConnection = this.createUnixConnection.bind(this);
- }
-
- this._headers = {};
- const session = http2.connect("".concat(protocol, "//").concat(host, ":").concat(port), sessionOptions);
- this.setHeader('host', "".concat(host, ":").concat(port));
- session.on('error', error => this.emit('error', error));
- this.session = session;
-}
-/**
- * Inherit from `Stream` (which inherits from `EventEmitter`).
- */
-
-
-util.inherits(Request, Stream);
-
-Request.prototype.createUnixConnection = function (authority, options) {
- switch (this.protocol) {
- case 'http:':
- return net.connect(options.socketPath);
-
- case 'https:':
- options.ALPNProtocols = ['h2'];
- options.servername = this.host;
- options.allowHalfOpen = true;
- return tls.connect(options.socketPath, options);
-
- default:
- throw new Error('Unsupported protocol', this.protocol);
- }
-}; // eslint-disable-next-line no-unused-vars
-
-
-Request.prototype.setNoDelay = function (bool) {// We can not use setNoDelay with HTTP/2.
- // Node 10 limits http2session.socket methods to ones safe to use with HTTP/2.
- // See also https://nodejs.org/api/http2.html#http2_http2session_socket
-};
-
-Request.prototype.getFrame = function () {
- if (this.frame) {
- return this.frame;
- }
-
- const method = {
- [HTTP2_HEADER_PATH]: this.path,
- [HTTP2_HEADER_METHOD]: this.method
- };
- let headers = this.mapToHttp2Header(this._headers);
- headers = Object.assign(headers, method);
- const frame = this.session.request(headers); // eslint-disable-next-line no-unused-vars
-
- frame.once('response', (headers, flags) => {
- headers = this.mapToHttpHeader(headers);
- frame.headers = headers;
- frame.statusCode = headers[HTTP2_HEADER_STATUS];
- frame.status = frame.statusCode;
- this.emit('response', frame);
- });
- this._headerSent = true;
- frame.once('drain', () => this.emit('drain'));
- frame.on('error', error => this.emit('error', error));
- frame.on('close', () => this.session.close());
- this.frame = frame;
- return frame;
-};
-
-Request.prototype.mapToHttpHeader = function (headers) {
- const keys = Object.keys(headers);
- const http2Headers = {};
-
- for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
- let key = _keys[_i];
- let value = headers[key];
- key = key.toLowerCase();
-
- switch (key) {
- case HTTP2_HEADER_SET_COOKIE:
- value = Array.isArray(value) ? value : [value];
- break;
-
- default:
- break;
- }
-
- http2Headers[key] = value;
- }
-
- return http2Headers;
-};
-
-Request.prototype.mapToHttp2Header = function (headers) {
- const keys = Object.keys(headers);
- const http2Headers = {};
-
- for (var _i2 = 0, _keys2 = keys; _i2 < _keys2.length; _i2++) {
- let key = _keys2[_i2];
- let value = headers[key];
- key = key.toLowerCase();
-
- switch (key) {
- case HTTP2_HEADER_HOST:
- key = HTTP2_HEADER_AUTHORITY;
- value = /^http:\/\/|^https:\/\//.test(value) ? parse(value).host : value;
- break;
-
- default:
- break;
- }
-
- http2Headers[key] = value;
- }
-
- return http2Headers;
-};
-
-Request.prototype.setHeader = function (name, value) {
- this._headers[name.toLowerCase()] = value;
-};
-
-Request.prototype.getHeader = function (name) {
- return this._headers[name.toLowerCase()];
-};
-
-Request.prototype.write = function (data, encoding) {
- const frame = this.getFrame();
- return frame.write(data, encoding);
-};
-
-Request.prototype.pipe = function (stream, options) {
- const frame = this.getFrame();
- return frame.pipe(stream, options);
-};
-
-Request.prototype.end = function (data) {
- const frame = this.getFrame();
- frame.end(data);
-}; // eslint-disable-next-line no-unused-vars
-
-
-Request.prototype.abort = function (data) {
- const frame = this.getFrame();
- frame.close(NGHTTP2_CANCEL);
- this.session.destroy();
-};
-
-exports.setProtocol = setProtocol;
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJTdHJlYW0iLCJyZXF1aXJlIiwidXRpbCIsIm5ldCIsInRscyIsInBhcnNlIiwicHJvY2VzcyIsInNlbXZlckd0ZSIsImh0dHAyIiwidmVyc2lvbiIsIkVycm9yIiwiY29uc3RhbnRzIiwiSFRUUDJfSEVBREVSX1BBVEgiLCJIVFRQMl9IRUFERVJfU1RBVFVTIiwiSFRUUDJfSEVBREVSX01FVEhPRCIsIkhUVFAyX0hFQURFUl9BVVRIT1JJVFkiLCJIVFRQMl9IRUFERVJfSE9TVCIsIkhUVFAyX0hFQURFUl9TRVRfQ09PS0lFIiwiTkdIVFRQMl9DQU5DRUwiLCJzZXRQcm90b2NvbCIsInByb3RvY29sIiwicmVxdWVzdCIsIm9wdGlvbnMiLCJSZXF1ZXN0IiwiY2FsbCIsImRlZmF1bHRQb3J0IiwiZGVmYXVsdEhvc3QiLCJwb3J0IiwiaG9zdCIsIm1ldGhvZCIsInBhdGgiLCJzZXNzaW9uT3B0aW9ucyIsInNvY2tldFBhdGgiLCJjcmVhdGVDb25uZWN0aW9uIiwiY3JlYXRlVW5peENvbm5lY3Rpb24iLCJiaW5kIiwiX2hlYWRlcnMiLCJzZXNzaW9uIiwiY29ubmVjdCIsInNldEhlYWRlciIsIm9uIiwiZXJyb3IiLCJlbWl0IiwiaW5oZXJpdHMiLCJwcm90b3R5cGUiLCJhdXRob3JpdHkiLCJBTFBOUHJvdG9jb2xzIiwic2VydmVybmFtZSIsImFsbG93SGFsZk9wZW4iLCJzZXROb0RlbGF5IiwiYm9vbCIsImdldEZyYW1lIiwiZnJhbWUiLCJoZWFkZXJzIiwibWFwVG9IdHRwMkhlYWRlciIsIk9iamVjdCIsImFzc2lnbiIsIm9uY2UiLCJmbGFncyIsIm1hcFRvSHR0cEhlYWRlciIsInN0YXR1c0NvZGUiLCJzdGF0dXMiLC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Q0FBa0I4QixLQUFsQixHQUEwQixVQUFVQyxJQUFWLEVBQWdCQyxRQUFoQixFQUEwQjtFQUNsRCxNQUFNeEIsS0FBSyxHQUFHLEtBQUtELFFBQUwsRUFBZDtFQUNBLE9BQU9DLEtBQUssQ0FBQ3NCLEtBQU4sQ0FBWUMsSUFBWixFQUFrQkMsUUFBbEIsQ0FBUDtBQUNELENBSEQ7O0FBS0FyRCxPQUFPLENBQUNxQixTQUFSLENBQWtCaUMsSUFBbEIsR0FBeUIsVUFBVUMsTUFBVixFQUFrQnhELE9BQWxCLEVBQTJCO0VBQ2xELE1BQU04QixLQUFLLEdBQUcsS0FBS0QsUUFBTCxFQUFkO0VBQ0EsT0FBT0MsS0FBSyxDQUFDeUIsSUFBTixDQUFXQyxNQUFYLEVBQW1CeEQsT0FBbkIsQ0FBUDtBQUNELENBSEQ7O0FBS0FDLE9BQU8sQ0FBQ3FCLFNBQVIsQ0FBa0JtQyxHQUFsQixHQUF3QixVQUFVSixJQUFWLEVBQWdCO0VBQ3RDLE1BQU12QixLQUFLLEdBQUcsS0FBS0QsUUFBTCxFQUFkO0VBQ0FDLEtBQUssQ0FBQzJCLEdBQU4sQ0FBVUosSUFBVjtBQUNELENBSEQsQyxDQUtBOzs7QUFDQXBELE9BQU8sQ0FBQ3FCLFNBQVIsQ0FBa0JvQyxLQUFsQixHQUEwQixVQUFVTCxJQUFWLEVBQWdCO0VBQ3hDLE1BQU12QixLQUFLLEdBQUcsS0FBS0QsUUFBTCxFQUFkO0VBQ0FDLEtBQUssQ0FBQ1csS0FBTixDQUFZN0MsY0FBWjtFQUNBLEtBQUttQixPQUFMLENBQWE0QyxPQUFiO0FBQ0QsQ0FKRDs7QUFNQUMsT0FBTyxDQUFDL0QsV0FBUixHQUFzQkEsV0FBdEIifQ== \ No newline at end of file
diff --git a/together/node_modules/superagent/lib/node/index.js b/together/node_modules/superagent/lib/node/index.js
deleted file mode 100644
index bb6da12..0000000
--- a/together/node_modules/superagent/lib/node/index.js
+++ /dev/null
@@ -1,1409 +0,0 @@
-"use strict";
-
-function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
-
-function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
-
-function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
-
-function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
-
-function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
-
-function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
-
-function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
-
-/**
- * Module dependencies.
- */
-// eslint-disable-next-line node/no-deprecated-api
-const _require = require('url'),
- parse = _require.parse,
- format = _require.format,
- resolve = _require.resolve;
-
-const Stream = require('stream');
-
-const https = require('https');
-
-const http = require('http');
-
-const fs = require('fs');
-
-const zlib = require('zlib');
-
-const util = require('util');
-
-const qs = require('qs');
-
-const mime = require('mime');
-
-let methods = require('methods');
-
-const FormData = require('form-data');
-
-const formidable = require('formidable');
-
-const debug = require('debug')('superagent');
-
-const CookieJar = require('cookiejar');
-
-const semverGte = require('semver/functions/gte');
-
-const safeStringify = require('fast-safe-stringify');
-
-const utils = require('../utils');
-
-const RequestBase = require('../request-base');
-
-const _require2 = require('./unzip'),
- unzip = _require2.unzip;
-
-const Response = require('./response');
-
-const mixin = utils.mixin,
- hasOwn = utils.hasOwn;
-let http2;
-if (semverGte(process.version, 'v10.10.0')) http2 = require('./http2wrapper');
-
-function request(method, url) {
- // callback
- if (typeof url === 'function') {
- return new exports.Request('GET', method).end(url);
- } // url first
-
-
- if (arguments.length === 1) {
- return new exports.Request('GET', method);
- }
-
- return new exports.Request(method, url);
-}
-
-module.exports = request;
-exports = module.exports;
-/**
- * Expose `Request`.
- */
-
-exports.Request = Request;
-/**
- * Expose the agent function
- */
-
-exports.agent = require('./agent');
-/**
- * Noop.
- */
-
-function noop() {}
-/**
- * Expose `Response`.
- */
-
-
-exports.Response = Response;
-/**
- * Define "form" mime type.
- */
-
-mime.define({
- 'application/x-www-form-urlencoded': ['form', 'urlencoded', 'form-data']
-}, true);
-/**
- * Protocol map.
- */
-
-exports.protocols = {
- 'http:': http,
- 'https:': https,
- 'http2:': http2
-};
-/**
- * Default serialization map.
- *
- * superagent.serialize['application/xml'] = function(obj){
- * return 'generated xml here';
- * };
- *
- */
-
-exports.serialize = {
- 'application/x-www-form-urlencoded': qs.stringify,
- 'application/json': safeStringify
-};
-/**
- * Default parsers.
- *
- * superagent.parse['application/xml'] = function(res, fn){
- * fn(null, res);
- * };
- *
- */
-
-exports.parse = require('./parsers');
-/**
- * Default buffering map. Can be used to set certain
- * response types to buffer/not buffer.
- *
- * superagent.buffer['application/xml'] = true;
- */
-
-exports.buffer = {};
-/**
- * Initialize internal header tracking properties on a request instance.
- *
- * @param {Object} req the instance
- * @api private
- */
-
-function _initHeaders(request_) {
- request_._header = {// coerces header names to lowercase
- };
- request_.header = {// preserves header name case
- };
-}
-/**
- * Initialize a new `Request` with the given `method` and `url`.
- *
- * @param {String} method
- * @param {String|Object} url
- * @api public
- */
-
-
-function Request(method, url) {
- Stream.call(this);
- if (typeof url !== 'string') url = format(url);
- this._enableHttp2 = Boolean(process.env.HTTP2_TEST); // internal only
-
- this._agent = false;
- this._formData = null;
- this.method = method;
- this.url = url;
-
- _initHeaders(this);
-
- this.writable = true;
- this._redirects = 0;
- this.redirects(method === 'HEAD' ? 0 : 5);
- this.cookies = '';
- this.qs = {};
- this._query = [];
- this.qsRaw = this._query; // Unused, for backwards compatibility only
-
- this._redirectList = [];
- this._streamRequest = false;
- this._lookup = undefined;
- this.once('end', this.clearTimeout.bind(this));
-}
-/**
- * Inherit from `Stream` (which inherits from `EventEmitter`).
- * Mixin `RequestBase`.
- */
-
-
-util.inherits(Request, Stream);
-mixin(Request.prototype, RequestBase.prototype);
-/**
- * Enable or Disable http2.
- *
- * Enable http2.
- *
- * ``` js
- * request.get('http://localhost/')
- * .http2()
- * .end(callback);
- *
- * request.get('http://localhost/')
- * .http2(true)
- * .end(callback);
- * ```
- *
- * Disable http2.
- *
- * ``` js
- * request = request.http2();
- * request.get('http://localhost/')
- * .http2(false)
- * .end(callback);
- * ```
- *
- * @param {Boolean} enable
- * @return {Request} for chaining
- * @api public
- */
-
-Request.prototype.http2 = function (bool) {
- if (exports.protocols['http2:'] === undefined) {
- throw new Error('superagent: this version of Node.js does not support http2');
- }
-
- this._enableHttp2 = bool === undefined ? true : bool;
- return this;
-};
-/**
- * Queue the given `file` as an attachment to the specified `field`,
- * with optional `options` (or filename).
- *
- * ``` js
- * request.post('http://localhost/upload')
- * .attach('field', Buffer.from('<b>Hello world</b>'), 'hello.html')
- * .end(callback);
- * ```
- *
- * A filename may also be used:
- *
- * ``` js
- * request.post('http://localhost/upload')
- * .attach('files', 'image.jpg')
- * .end(callback);
- * ```
- *
- * @param {String} field
- * @param {String|fs.ReadStream|Buffer} file
- * @param {String|Object} options
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.attach = function (field, file, options) {
- if (file) {
- if (this._data) {
- throw new Error("superagent can't mix .send() and .attach()");
- }
-
- let o = options || {};
-
- if (typeof options === 'string') {
- o = {
- filename: options
- };
- }
-
- if (typeof file === 'string') {
- if (!o.filename) o.filename = file;
- debug('creating `fs.ReadStream` instance for file: %s', file);
- file = fs.createReadStream(file);
- file.on('error', error => {
- const formData = this._getFormData();
-
- formData.emit('error', error);
- });
- } else if (!o.filename && file.path) {
- o.filename = file.path;
- }
-
- this._getFormData().append(field, file, o);
- }
-
- return this;
-};
-
-Request.prototype._getFormData = function () {
- if (!this._formData) {
- this._formData = new FormData();
-
- this._formData.on('error', error => {
- debug('FormData error', error);
-
- if (this.called) {
- // The request has already finished and the callback was called.
- // Silently ignore the error.
- return;
- }
-
- this.callback(error);
- this.abort();
- });
- }
-
- return this._formData;
-};
-/**
- * Gets/sets the `Agent` to use for this HTTP request. The default (if this
- * function is not called) is to opt out of connection pooling (`agent: false`).
- *
- * @param {http.Agent} agent
- * @return {http.Agent}
- * @api public
- */
-
-
-Request.prototype.agent = function (agent) {
- if (arguments.length === 0) return this._agent;
- this._agent = agent;
- return this;
-};
-/**
- * Gets/sets the `lookup` function to use custom DNS resolver.
- *
- * @param {Function} lookup
- * @return {Function}
- * @api public
- */
-
-
-Request.prototype.lookup = function (lookup) {
- if (arguments.length === 0) return this._lookup;
- this._lookup = lookup;
- return this;
-};
-/**
- * Set _Content-Type_ response header passed through `mime.getType()`.
- *
- * Examples:
- *
- * request.post('/')
- * .type('xml')
- * .send(xmlstring)
- * .end(callback);
- *
- * request.post('/')
- * .type('json')
- * .send(jsonstring)
- * .end(callback);
- *
- * request.post('/')
- * .type('application/json')
- * .send(jsonstring)
- * .end(callback);
- *
- * @param {String} type
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.type = function (type) {
- return this.set('Content-Type', type.includes('/') ? type : mime.getType(type));
-};
-/**
- * Set _Accept_ response header passed through `mime.getType()`.
- *
- * Examples:
- *
- * superagent.types.json = 'application/json';
- *
- * request.get('/agent')
- * .accept('json')
- * .end(callback);
- *
- * request.get('/agent')
- * .accept('application/json')
- * .end(callback);
- *
- * @param {String} accept
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.accept = function (type) {
- return this.set('Accept', type.includes('/') ? type : mime.getType(type));
-};
-/**
- * Add query-string `val`.
- *
- * Examples:
- *
- * request.get('/shoes')
- * .query('size=10')
- * .query({ color: 'blue' })
- *
- * @param {Object|String} val
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.query = function (value) {
- if (typeof value === 'string') {
- this._query.push(value);
- } else {
- Object.assign(this.qs, value);
- }
-
- return this;
-};
-/**
- * Write raw `data` / `encoding` to the socket.
- *
- * @param {Buffer|String} data
- * @param {String} encoding
- * @return {Boolean}
- * @api public
- */
-
-
-Request.prototype.write = function (data, encoding) {
- const request_ = this.request();
-
- if (!this._streamRequest) {
- this._streamRequest = true;
- }
-
- return request_.write(data, encoding);
-};
-/**
- * Pipe the request body to `stream`.
- *
- * @param {Stream} stream
- * @param {Object} options
- * @return {Stream}
- * @api public
- */
-
-
-Request.prototype.pipe = function (stream, options) {
- this.piped = true; // HACK...
-
- this.buffer(false);
- this.end();
- return this._pipeContinue(stream, options);
-};
-
-Request.prototype._pipeContinue = function (stream, options) {
- this.req.once('response', res => {
- // redirect
- if (isRedirect(res.statusCode) && this._redirects++ !== this._maxRedirects) {
- return this._redirect(res) === this ? this._pipeContinue(stream, options) : undefined;
- }
-
- this.res = res;
-
- this._emitResponse();
-
- if (this._aborted) return;
-
- if (this._shouldUnzip(res)) {
- const unzipObject = zlib.createUnzip();
- unzipObject.on('error', error => {
- if (error && error.code === 'Z_BUF_ERROR') {
- // unexpected end of file is ignored by browsers and curl
- stream.emit('end');
- return;
- }
-
- stream.emit('error', error);
- });
- res.pipe(unzipObject).pipe(stream, options);
- } else {
- res.pipe(stream, options);
- }
-
- res.once('end', () => {
- this.emit('end');
- });
- });
- return stream;
-};
-/**
- * Enable / disable buffering.
- *
- * @return {Boolean} [val]
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.buffer = function (value) {
- this._buffer = value !== false;
- return this;
-};
-/**
- * Redirect to `url
- *
- * @param {IncomingMessage} res
- * @return {Request} for chaining
- * @api private
- */
-
-
-Request.prototype._redirect = function (res) {
- let url = res.headers.location;
-
- if (!url) {
- return this.callback(new Error('No location header for redirect'), res);
- }
-
- debug('redirect %s -> %s', this.url, url); // location
-
- url = resolve(this.url, url); // ensure the response is being consumed
- // this is required for Node v0.10+
-
- res.resume();
- let headers = this.req.getHeaders ? this.req.getHeaders() : this.req._headers;
- const changesOrigin = parse(url).host !== parse(this.url).host; // implementation of 302 following defacto standard
-
- if (res.statusCode === 301 || res.statusCode === 302) {
- // strip Content-* related fields
- // in case of POST etc
- headers = utils.cleanHeader(headers, changesOrigin); // force GET
-
- this.method = this.method === 'HEAD' ? 'HEAD' : 'GET'; // clear data
-
- this._data = null;
- } // 303 is always GET
-
-
- if (res.statusCode === 303) {
- // strip Content-* related fields
- // in case of POST etc
- headers = utils.cleanHeader(headers, changesOrigin); // force method
-
- this.method = 'GET'; // clear data
-
- this._data = null;
- } // 307 preserves method
- // 308 preserves method
-
-
- delete headers.host;
- delete this.req;
- delete this._formData; // remove all add header except User-Agent
-
- _initHeaders(this); // redirect
-
-
- this._endCalled = false;
- this.url = url;
- this.qs = {};
- this._query.length = 0;
- this.set(headers);
- this.emit('redirect', res);
-
- this._redirectList.push(this.url);
-
- this.end(this._callback);
- return this;
-};
-/**
- * Set Authorization field value with `user` and `pass`.
- *
- * Examples:
- *
- * .auth('tobi', 'learnboost')
- * .auth('tobi:learnboost')
- * .auth('tobi')
- * .auth(accessToken, { type: 'bearer' })
- *
- * @param {String} user
- * @param {String} [pass]
- * @param {Object} [options] options with authorization type 'basic' or 'bearer' ('basic' is default)
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.auth = function (user, pass, options) {
- if (arguments.length === 1) pass = '';
-
- if (typeof pass === 'object' && pass !== null) {
- // pass is optional and can be replaced with options
- options = pass;
- pass = '';
- }
-
- if (!options) {
- options = {
- type: 'basic'
- };
- }
-
- const encoder = string => Buffer.from(string).toString('base64');
-
- return this._auth(user, pass, options, encoder);
-};
-/**
- * Set the certificate authority option for https request.
- *
- * @param {Buffer | Array} cert
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.ca = function (cert) {
- this._ca = cert;
- return this;
-};
-/**
- * Set the client certificate key option for https request.
- *
- * @param {Buffer | String} cert
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.key = function (cert) {
- this._key = cert;
- return this;
-};
-/**
- * Set the key, certificate, and CA certs of the client in PFX or PKCS12 format.
- *
- * @param {Buffer | String} cert
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.pfx = function (cert) {
- if (typeof cert === 'object' && !Buffer.isBuffer(cert)) {
- this._pfx = cert.pfx;
- this._passphrase = cert.passphrase;
- } else {
- this._pfx = cert;
- }
-
- return this;
-};
-/**
- * Set the client certificate option for https request.
- *
- * @param {Buffer | String} cert
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.cert = function (cert) {
- this._cert = cert;
- return this;
-};
-/**
- * Do not reject expired or invalid TLS certs.
- * sets `rejectUnauthorized=true`. Be warned that this allows MITM attacks.
- *
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype.disableTLSCerts = function () {
- this._disableTLSCerts = true;
- return this;
-};
-/**
- * Return an http[s] request.
- *
- * @return {OutgoingMessage}
- * @api private
- */
-// eslint-disable-next-line complexity
-
-
-Request.prototype.request = function () {
- if (this.req) return this.req;
- const options = {};
-
- try {
- const query = qs.stringify(this.qs, {
- indices: false,
- strictNullHandling: true
- });
-
- if (query) {
- this.qs = {};
-
- this._query.push(query);
- }
-
- this._finalizeQueryString();
- } catch (err) {
- return this.emit('error', err);
- }
-
- let url = this.url;
- const retries = this._retries; // Capture backticks as-is from the final query string built above.
- // Note: this'll only find backticks entered in req.query(String)
- // calls, because qs.stringify unconditionally encodes backticks.
-
- let queryStringBackticks;
-
- if (url.includes('`')) {
- const queryStartIndex = url.indexOf('?');
-
- if (queryStartIndex !== -1) {
- const queryString = url.slice(queryStartIndex + 1);
- queryStringBackticks = queryString.match(/`|%60/g);
- }
- } // default to http://
-
-
- if (url.indexOf('http') !== 0) url = "http://".concat(url);
- url = parse(url); // See https://github.com/visionmedia/superagent/issues/1367
-
- if (queryStringBackticks) {
- let i = 0;
- url.query = url.query.replace(/%60/g, () => queryStringBackticks[i++]);
- url.search = "?".concat(url.query);
- url.path = url.pathname + url.search;
- } // support unix sockets
-
-
- if (/^https?\+unix:/.test(url.protocol) === true) {
- // get the protocol
- url.protocol = "".concat(url.protocol.split('+')[0], ":"); // get the socket, path
-
- const unixParts = url.path.match(/^([^/]+)(.+)$/);
- options.socketPath = unixParts[1].replace(/%2F/g, '/');
- url.path = unixParts[2];
- } // Override IP address of a hostname
-
-
- if (this._connectOverride) {
- const _url = url,
- hostname = _url.hostname;
- const match = hostname in this._connectOverride ? this._connectOverride[hostname] : this._connectOverride['*'];
-
- if (match) {
- // backup the real host
- if (!this._header.host) {
- this.set('host', url.host);
- }
-
- let newHost;
- let newPort;
-
- if (typeof match === 'object') {
- newHost = match.host;
- newPort = match.port;
- } else {
- newHost = match;
- newPort = url.port;
- } // wrap [ipv6]
-
-
- url.host = /:/.test(newHost) ? "[".concat(newHost, "]") : newHost;
-
- if (newPort) {
- url.host += ":".concat(newPort);
- url.port = newPort;
- }
-
- url.hostname = newHost;
- }
- } // options
-
-
- options.method = this.method;
- options.port = url.port;
- options.path = url.path;
- options.host = url.hostname;
- options.ca = this._ca;
- options.key = this._key;
- options.pfx = this._pfx;
- options.cert = this._cert;
- options.passphrase = this._passphrase;
- options.agent = this._agent;
- options.lookup = this._lookup;
- options.rejectUnauthorized = typeof this._disableTLSCerts === 'boolean' ? !this._disableTLSCerts : process.env.NODE_TLS_REJECT_UNAUTHORIZED !== '0'; // Allows request.get('https://1.2.3.4/').set('Host', 'example.com')
-
- if (this._header.host) {
- options.servername = this._header.host.replace(/:\d+$/, '');
- }
-
- if (this._trustLocalhost && /^(?:localhost|127\.0\.0\.\d+|(0*:)+:0*1)$/.test(url.hostname)) {
- options.rejectUnauthorized = false;
- } // initiate request
-
-
- const module_ = this._enableHttp2 ? exports.protocols['http2:'].setProtocol(url.protocol) : exports.protocols[url.protocol]; // request
-
- this.req = module_.request(options);
- const req = this.req; // set tcp no delay
-
- req.setNoDelay(true);
-
- if (options.method !== 'HEAD') {
- req.setHeader('Accept-Encoding', 'gzip, deflate');
- }
-
- this.protocol = url.protocol;
- this.host = url.host; // expose events
-
- req.once('drain', () => {
- this.emit('drain');
- });
- req.on('error', error => {
- // flag abortion here for out timeouts
- // because node will emit a faux-error "socket hang up"
- // when request is aborted before a connection is made
- if (this._aborted) return; // if not the same, we are in the **old** (cancelled) request,
- // so need to continue (same as for above)
-
- if (this._retries !== retries) return; // if we've received a response then we don't want to let
- // an error in the request blow up the response
-
- if (this.response) return;
- this.callback(error);
- }); // auth
-
- if (url.auth) {
- const auth = url.auth.split(':');
- this.auth(auth[0], auth[1]);
- }
-
- if (this.username && this.password) {
- this.auth(this.username, this.password);
- }
-
- for (const key in this.header) {
- if (hasOwn(this.header, key)) req.setHeader(key, this.header[key]);
- } // add cookies
-
-
- if (this.cookies) {
- if (hasOwn(this._header, 'cookie')) {
- // merge
- const temporaryJar = new CookieJar.CookieJar();
- temporaryJar.setCookies(this._header.cookie.split(';'));
- temporaryJar.setCookies(this.cookies.split(';'));
- req.setHeader('Cookie', temporaryJar.getCookies(CookieJar.CookieAccessInfo.All).toValueString());
- } else {
- req.setHeader('Cookie', this.cookies);
- }
- }
-
- return req;
-};
-/**
- * Invoke the callback with `err` and `res`
- * and handle arity check.
- *
- * @param {Error} err
- * @param {Response} res
- * @api private
- */
-
-
-Request.prototype.callback = function (error, res) {
- if (this._shouldRetry(error, res)) {
- return this._retry();
- } // Avoid the error which is emitted from 'socket hang up' to cause the fn undefined error on JS runtime.
-
-
- const fn = this._callback || noop;
- this.clearTimeout();
- if (this.called) return console.warn('superagent: double callback bug');
- this.called = true;
-
- if (!error) {
- try {
- if (!this._isResponseOK(res)) {
- let message = 'Unsuccessful HTTP response';
-
- if (res) {
- message = http.STATUS_CODES[res.status] || message;
- }
-
- error = new Error(message);
- error.status = res ? res.status : undefined;
- }
- } catch (err) {
- error = err;
- error.status = error.status || (res ? res.status : undefined);
- }
- } // It's important that the callback is called outside try/catch
- // to avoid double callback
-
-
- if (!error) {
- return fn(null, res);
- }
-
- error.response = res;
- if (this._maxRetries) error.retries = this._retries - 1; // only emit error event if there is a listener
- // otherwise we assume the callback to `.end()` will get the error
-
- if (error && this.listeners('error').length > 0) {
- this.emit('error', error);
- }
-
- fn(error, res);
-};
-/**
- * Check if `obj` is a host object,
- *
- * @param {Object} obj host object
- * @return {Boolean} is a host object
- * @api private
- */
-
-
-Request.prototype._isHost = function (object) {
- return Buffer.isBuffer(object) || object instanceof Stream || object instanceof FormData;
-};
-/**
- * Initiate request, invoking callback `fn(err, res)`
- * with an instanceof `Response`.
- *
- * @param {Function} fn
- * @return {Request} for chaining
- * @api public
- */
-
-
-Request.prototype._emitResponse = function (body, files) {
- const response = new Response(this);
- this.response = response;
- response.redirects = this._redirectList;
-
- if (undefined !== body) {
- response.body = body;
- }
-
- response.files = files;
-
- if (this._endCalled) {
- response.pipe = function () {
- throw new Error("end() has already been called, so it's too late to start piping");
- };
- }
-
- this.emit('response', response);
- return response;
-};
-
-Request.prototype.end = function (fn) {
- this.request();
- debug('%s %s', this.method, this.url);
-
- if (this._endCalled) {
- throw new Error('.end() was called twice. This is not supported in superagent');
- }
-
- this._endCalled = true; // store callback
-
- this._callback = fn || noop;
-
- this._end();
-};
-
-Request.prototype._end = function () {
- if (this._aborted) return this.callback(new Error('The request has been aborted even before .end() was called'));
- let data = this._data;
- const req = this.req;
- const method = this.method;
-
- this._setTimeouts(); // body
-
-
- if (method !== 'HEAD' && !req._headerSent) {
- // serialize stuff
- if (typeof data !== 'string') {
- let contentType = req.getHeader('Content-Type'); // Parse out just the content type from the header (ignore the charset)
-
- if (contentType) contentType = contentType.split(';')[0];
- let serialize = this._serializer || exports.serialize[contentType];
-
- if (!serialize && isJSON(contentType)) {
- serialize = exports.serialize['application/json'];
- }
-
- if (serialize) data = serialize(data);
- } // content-length
-
-
- if (data && !req.getHeader('Content-Length')) {
- req.setHeader('Content-Length', Buffer.isBuffer(data) ? data.length : Buffer.byteLength(data));
- }
- } // response
- // eslint-disable-next-line complexity
-
-
- req.once('response', res => {
- debug('%s %s -> %s', this.method, this.url, res.statusCode);
-
- if (this._responseTimeoutTimer) {
- clearTimeout(this._responseTimeoutTimer);
- }
-
- if (this.piped) {
- return;
- }
-
- const max = this._maxRedirects;
- const mime = utils.type(res.headers['content-type'] || '') || 'text/plain';
- let type = mime.split('/')[0];
- if (type) type = type.toLowerCase().trim();
- const multipart = type === 'multipart';
- const redirect = isRedirect(res.statusCode);
- const responseType = this._responseType;
- this.res = res; // redirect
-
- if (redirect && this._redirects++ !== max) {
- return this._redirect(res);
- }
-
- if (this.method === 'HEAD') {
- this.emit('end');
- this.callback(null, this._emitResponse());
- return;
- } // zlib support
-
-
- if (this._shouldUnzip(res)) {
- unzip(req, res);
- }
-
- let buffer = this._buffer;
-
- if (buffer === undefined && mime in exports.buffer) {
- buffer = Boolean(exports.buffer[mime]);
- }
-
- let parser = this._parser;
-
- if (undefined === buffer && parser) {
- console.warn("A custom superagent parser has been set, but buffering strategy for the parser hasn't been configured. Call `req.buffer(true or false)` or set `superagent.buffer[mime] = true or false`");
- buffer = true;
- }
-
- if (!parser) {
- if (responseType) {
- parser = exports.parse.image; // It's actually a generic Buffer
-
- buffer = true;
- } else if (multipart) {
- const form = formidable();
- parser = form.parse.bind(form);
- buffer = true;
- } else if (isBinary(mime)) {
- parser = exports.parse.image;
- buffer = true; // For backwards-compatibility buffering default is ad-hoc MIME-dependent
- } else if (exports.parse[mime]) {
- parser = exports.parse[mime];
- } else if (type === 'text') {
- parser = exports.parse.text;
- buffer = buffer !== false; // everyone wants their own white-labeled json
- } else if (isJSON(mime)) {
- parser = exports.parse['application/json'];
- buffer = buffer !== false;
- } else if (buffer) {
- parser = exports.parse.text;
- } else if (undefined === buffer) {
- parser = exports.parse.image; // It's actually a generic Buffer
-
- buffer = true;
- }
- } // by default only buffer text/*, json and messed up thing from hell
-
-
- if (undefined === buffer && isText(mime) || isJSON(mime)) {
- buffer = true;
- }
-
- this._resBuffered = buffer;
- let parserHandlesEnd = false;
-
- if (buffer) {
- // Protectiona against zip bombs and other nuisance
- let responseBytesLeft = this._maxResponseSize || 200000000;
- res.on('data', buf => {
- responseBytesLeft -= buf.byteLength || buf.length > 0 ? buf.length : 0;
-
- if (responseBytesLeft < 0) {
- // This will propagate through error event
- const error = new Error('Maximum response size reached');
- error.code = 'ETOOLARGE'; // Parsers aren't required to observe error event,
- // so would incorrectly report success
-
- parserHandlesEnd = false; // Will not emit error event
-
- res.destroy(error); // so we do callback now
-
- this.callback(error, null);
- }
- });
- }
-
- if (parser) {
- try {
- // Unbuffered parsers are supposed to emit response early,
- // which is weird BTW, because response.body won't be there.
- parserHandlesEnd = buffer;
- parser(res, (error, object, files) => {
- if (this.timedout) {
- // Timeout has already handled all callbacks
- return;
- } // Intentional (non-timeout) abort is supposed to preserve partial response,
- // even if it doesn't parse.
-
-
- if (error && !this._aborted) {
- return this.callback(error);
- }
-
- if (parserHandlesEnd) {
- this.emit('end');
- this.callback(null, this._emitResponse(object, files));
- }
- });
- } catch (err) {
- this.callback(err);
- return;
- }
- }
-
- this.res = res; // unbuffered
-
- if (!buffer) {
- debug('unbuffered %s %s', this.method, this.url);
- this.callback(null, this._emitResponse());
- if (multipart) return; // allow multipart to handle end event
-
- res.once('end', () => {
- debug('end %s %s', this.method, this.url);
- this.emit('end');
- });
- return;
- } // terminating events
-
-
- res.once('error', error => {
- parserHandlesEnd = false;
- this.callback(error, null);
- });
- if (!parserHandlesEnd) res.once('end', () => {
- debug('end %s %s', this.method, this.url); // TODO: unless buffering emit earlier to stream
-
- this.emit('end');
- this.callback(null, this._emitResponse());
- });
- });
- this.emit('request', this);
-
- const getProgressMonitor = () => {
- const lengthComputable = true;
- const total = req.getHeader('Content-Length');
- let loaded = 0;
- const progress = new Stream.Transform();
-
- progress._transform = (chunk, encoding, callback) => {
- loaded += chunk.length;
- this.emit('progress', {
- direction: 'upload',
- lengthComputable,
- loaded,
- total
- });
- callback(null, chunk);
- };
-
- return progress;
- };
-
- const bufferToChunks = buffer => {
- const chunkSize = 16 * 1024; // default highWaterMark value
-
- const chunking = new Stream.Readable();
- const totalLength = buffer.length;
- const remainder = totalLength % chunkSize;
- const cutoff = totalLength - remainder;
-
- for (let i = 0; i < cutoff; i += chunkSize) {
- const chunk = buffer.slice(i, i + chunkSize);
- chunking.push(chunk);
- }
-
- if (remainder > 0) {
- const remainderBuffer = buffer.slice(-remainder);
- chunking.push(remainderBuffer);
- }
-
- chunking.push(null); // no more data
-
- return chunking;
- }; // if a FormData instance got created, then we send that as the request body
-
-
- const formData = this._formData;
-
- if (formData) {
- // set headers
- const headers = formData.getHeaders();
-
- for (const i in headers) {
- if (hasOwn(headers, i)) {
- debug('setting FormData header: "%s: %s"', i, headers[i]);
- req.setHeader(i, headers[i]);
- }
- } // attempt to get "Content-Length" header
-
-
- formData.getLength((error, length) => {
- // TODO: Add chunked encoding when no length (if err)
- if (error) debug('formData.getLength had error', error, length);
- debug('got FormData Content-Length: %s', length);
-
- if (typeof length === 'number') {
- req.setHeader('Content-Length', length);
- }
-
- formData.pipe(getProgressMonitor()).pipe(req);
- });
- } else if (Buffer.isBuffer(data)) {
- bufferToChunks(data).pipe(getProgressMonitor()).pipe(req);
- } else {
- req.end(data);
- }
-}; // Check whether response has a non-0-sized gzip-encoded body
-
-
-Request.prototype._shouldUnzip = res => {
- if (res.statusCode === 204 || res.statusCode === 304) {
- // These aren't supposed to have any body
- return false;
- } // header content is a string, and distinction between 0 and no information is crucial
-
-
- if (res.headers['content-length'] === '0') {
- // We know that the body is empty (unfortunately, this check does not cover chunked encoding)
- return false;
- } // console.log(res);
-
-
- return /^\s*(?:deflate|gzip)\s*$/.test(res.headers['content-encoding']);
-};
-/**
- * Overrides DNS for selected hostnames. Takes object mapping hostnames to IP addresses.
- *
- * When making a request to a URL with a hostname exactly matching a key in the object,
- * use the given IP address to connect, instead of using DNS to resolve the hostname.
- *
- * A special host `*` matches every hostname (keep redirects in mind!)
- *
- * request.connect({
- * 'test.example.com': '127.0.0.1',
- * 'ipv6.example.com': '::1',
- * })
- */
-
-
-Request.prototype.connect = function (connectOverride) {
- if (typeof connectOverride === 'string') {
- this._connectOverride = {
- '*': connectOverride
- };
- } else if (typeof connectOverride === 'object') {
- this._connectOverride = connectOverride;
- } else {
- this._connectOverride = undefined;
- }
-
- return this;
-};
-
-Request.prototype.trustLocalhost = function (toggle) {
- this._trustLocalhost = toggle === undefined ? true : toggle;
- return this;
-}; // generate HTTP verb methods
-
-
-if (!methods.includes('del')) {
- // create a copy so we don't cause conflicts with
- // other packages using the methods package and
- // npm 3.x
- methods = [...methods];
- methods.push('del');
-}
-
-var _iterator = _createForOfIteratorHelper(methods),
- _step;
-
-try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- let method = _step.value;
- const name = method;
- method = method === 'del' ? 'delete' : method;
- method = method.toUpperCase();
-
- request[name] = (url, data, fn) => {
- const request_ = request(method, url);
-
- if (typeof data === 'function') {
- fn = data;
- data = null;
- }
-
- if (data) {
- if (method === 'GET' || method === 'HEAD') {
- request_.query(data);
- } else {
- request_.send(data);
- }
- }
-
- if (fn) request_.end(fn);
- return request_;
- };
- }
- /**
- * Check if `mime` is text and should be buffered.
- *
- * @param {String} mime
- * @return {Boolean}
- * @api public
- */
-
-} catch (err) {
- _iterator.e(err);
-} finally {
- _iterator.f();
-}
-
-function isText(mime) {
- const parts = mime.split('/');
- let type = parts[0];
- if (type) type = type.toLowerCase().trim();
- let subtype = parts[1];
- if (subtype) subtype = subtype.toLowerCase().trim();
- return type === 'text' || subtype === 'x-www-form-urlencoded';
-} // This is not a catchall, but a start. It might be useful
-// in the long run to have file that includes all binary
-// content types from https://www.iana.org/assignments/media-types/media-types.xhtml
-
-
-function isBinary(mime) {
- let _mime$split = mime.split('/'),
- _mime$split2 = _slicedToArray(_mime$split, 2),
- registry = _mime$split2[0],
- name = _mime$split2[1];
-
- if (registry) registry = registry.toLowerCase().trim();
- if (name) name = name.toLowerCase().trim();
- return ['audio', 'font', 'image', 'video'].includes(registry) || ['gz', 'gzip'].includes(name);
-}
-/**
- * Check if `mime` is json or has +json structured syntax suffix.
- *
- * @param {String} mime
- * @return {Boolean}
- * @api private
- */
-
-
-function isJSON(mime) {
- // should match /json or +json
- // but not /json-seq
- return /[/+]json($|[^-\w])/i.test(mime);
-}
-/**
- * Check if we should follow the redirect `code`.
- *
- * @param {Number} code
- * @return {Boolean}
- * @api private
- */
-
-
-function isRedirect(code) {
- return [301, 302, 303, 305, 307, 308].includes(code);
-}
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJyZXF1aXJlIiwicGFyc2UiLCJmb3JtYXQiLCJyZXNvbHZlIiwiU3RyZWFtIiwiaHR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ent/lib/node/parsers/image.js b/together/node_modules/superagent/lib/node/parsers/image.js
deleted file mode 100644
index 504f1f3..0000000
--- a/together/node_modules/superagent/lib/node/parsers/image.js
+++ /dev/null
@@ -1,13 +0,0 @@
-"use strict";
-
-module.exports = (res, fn) => {
- const data = []; // Binary data needs binary storage
-
- res.on('data', chunk => {
- data.push(chunk);
- });
- res.on('end', () => {
- fn(null, Buffer.concat(data));
- });
-};
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwicmVzIiwiZm4iLCJkYXRhIiwib24iLCJjaHVuayIsInB1c2giLCJCdWZmZXIiLCJjb25jYXQiXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbm9kZS9wYXJzZXJzL2ltYWdlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKHJlcywgZm4pID0+IHtcbiAgY29uc3QgZGF0YSA9IFtdOyAvLyBCaW5hcnkgZGF0YSBuZWVkcyBiaW5hcnkgc3RvcmFnZVxuXG4gIHJlcy5vbignZGF0YScsIChjaHVuaykgPT4ge1xuICAgIGRhdGEucHVzaChjaHVuayk7XG4gIH0pO1xuICByZXMub24oJ2VuZCcsICgpID0+IHtcbiAgICBmbihudWxsLCBCdWZmZXIuY29uY2F0KGRhdGEpKTtcbiAgfSk7XG59O1xuIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxNQUFNLENBQUNDLE9BQVAsR0FBaUIsQ0FBQ0MsR0FBRCxFQUFNQyxFQUFOLEtBQWE7RUFDNUIsTUFBTUMsSUFBSSxHQUFHLEVBQWIsQ0FENEIsQ0FDWDs7RUFFakJGLEdBQUcsQ0FBQ0csRUFBSixDQUFPLE1BQVAsRUFBZ0JDLEtBQUQsSUFBVztJQUN4QkYsSUFBSSxDQUFDRyxJQUFMLENBQVVELEtBQVY7RUFDRCxDQUZEO0VBR0FKLEdBQUcsQ0FBQ0csRUFBSixDQUFPLEtBQVAsRUFBYyxNQUFNO0lBQ2xCRixFQUFFLENBQUMsSUFBRCxFQUFPSyxNQUFNLENBQUNDLE1BQVAsQ0FBY0wsSUFBZCxDQUFQLENBQUY7RUFDRCxDQUZEO0FBR0QsQ0FURCJ9 \ No newline at end of file
diff --git a/together/node_modules/superagent/lib/node/parsers/index.js b/together/node_modules/superagent/lib/node/parsers/index.js
deleted file mode 100644
index a0afdf1..0000000
--- a/together/node_modules/superagent/lib/node/parsers/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-"use strict";
-
-exports['application/x-www-form-urlencoded'] = require('./urlencoded');
-exports['application/json'] = require('./json');
-exports.text = require('./text');
-exports['application/json-seq'] = exports.text;
-
-const binary = require('./image');
-
-exports['application/octet-stream'] = binary;
-exports['application/pdf'] = binary;
-exports.image = binary;
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJleHBvcnRzIiwicmVxdWlyZSIsInRleHQiLCJiaW5hcnkiLCJpbWFnZSJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ub2RlL3BhcnNlcnMvaW5kZXguanMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0c1snYXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVkJ10gPSByZXF1aXJlKCcuL3VybGVuY29kZWQnKTtcbmV4cG9ydHNbJ2FwcGxpY2F0aW9uL2pzb24nXSA9IHJlcXVpcmUoJy4vanNvbicpO1xuZXhwb3J0cy50ZXh0ID0gcmVxdWlyZSgnLi90ZXh0Jyk7XG5cbmV4cG9ydHNbJ2FwcGxpY2F0aW9uL2pzb24tc2VxJ10gPSBleHBvcnRzLnRleHQ7XG5cbmNvbnN0IGJpbmFyeSA9IHJlcXVpcmUoJy4vaW1hZ2UnKTtcblxuZXhwb3J0c1snYXBwbGljYXRpb24vb2N0ZXQtc3RyZWFtJ10gPSBiaW5hcnk7XG5leHBvcnRzWydhcHBsaWNhdGlvbi9wZGYnXSA9IGJpbmFyeTtcbmV4cG9ydHMuaW1hZ2UgPSBiaW5hcnk7XG4iXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU8sQ0FBQyxtQ0FBRCxDQUFQLEdBQStDQyxPQUFPLENBQUMsY0FBRCxDQUF0RDtBQUNBRCxPQUFPLENBQUMsa0JBQUQsQ0FBUCxHQUE4QkMsT0FBTyxDQUFDLFFBQUQsQ0FBckM7QUFDQUQsT0FBTyxDQUFDRSxJQUFSLEdBQWVELE9BQU8sQ0FBQyxRQUFELENBQXRCO0FBRUFELE9BQU8sQ0FBQyxzQkFBRCxDQUFQLEdBQWtDQSxPQUFPLENBQUNFLElBQTFDOztBQUVBLE1BQU1DLE1BQU0sR0FBR0YsT0FBTyxDQUFDLFNBQUQsQ0FBdEI7O0FBRUFELE9BQU8sQ0FBQywwQkFBRCxDQUFQLEdBQXNDRyxNQUF0QztBQUNBSCxPQUFPLENBQUMsaUJBQUQsQ0FBUCxHQUE2QkcsTUFBN0I7QUFDQUgsT0FBTyxDQUFDSSxLQUFSLEdBQWdCRCxNQUFoQiJ9 \ No newline at end of file
diff --git a/together/node_modules/superagent/lib/node/parsers/json.js b/together/node_modules/superagent/lib/node/parsers/json.js
deleted file mode 100644
index ccf6d35..0000000
--- a/together/node_modules/superagent/lib/node/parsers/json.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-
-module.exports = function (res, fn) {
- res.text = '';
- res.setEncoding('utf8');
- res.on('data', chunk => {
- res.text += chunk;
- });
- res.on('end', () => {
- let body;
- let error;
-
- try {
- body = res.text && JSON.parse(res.text);
- } catch (err) {
- error = err; // issue #675: return the raw response if the response parsing fails
-
- error.rawResponse = res.text || null; // issue #876: return the http status code if the response parsing fails
-
- error.statusCode = res.statusCode;
- } finally {
- fn(error, body);
- }
- });
-};
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJtb2R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xNQUFNLENBQUNDLE9BQVAsR0FBaUIsVUFBVUMsR0FBVixFQUFlQyxFQUFmLEVBQW1CO0VBQ2xDRCxHQUFHLENBQUNFLElBQUosR0FBVyxFQUFYO0VBQ0FGLEdBQUcsQ0FBQ0csV0FBSixDQUFnQixNQUFoQjtFQUNBSCxHQUFHLENBQUNJLEVBQUosQ0FBTyxNQUFQLEVBQWdCQyxLQUFELElBQVc7SUFDeEJMLEdBQUcsQ0FBQ0UsSUFBSixJQUFZRyxLQUFaO0VBQ0QsQ0FGRDtFQUdBTCxHQUFHLENBQUNJLEVBQUosQ0FBTyxLQUFQLEVBQWMsTUFBTTtJQUNsQixJQUFJRSxJQUFKO0lBQ0EsSUFBSUMsS0FBSjs7SUFDQSxJQUFJO01BQ0ZELElBQUksR0FBR04sR0FBRyxDQUFDRSxJQUFKLElBQVlNLElBQUksQ0FBQ0MsS0FBTCxDQUFXVCxHQUFHLENBQUNFLElBQWYsQ0FBbkI7SUFDRCxDQUZELENBRUUsT0FBT1EsR0FBUCxFQUFZO01BQ1pILEtBQUssR0FBR0csR0FBUixDQURZLENBRVo7O01BQ0FILEtBQUssQ0FBQ0ksV0FBTixHQUFvQlgsR0FBRyxDQUFDRSxJQUFKLElBQVksSUFBaEMsQ0FIWSxDQUlaOztNQUNBSyxLQUFLLENBQUNLLFVBQU4sR0FBbUJaLEdBQUcsQ0FBQ1ksVUFBdkI7SUFDRCxDQVJELFNBUVU7TUFDUlgsRUFBRSxDQUFDTSxLQUFELEVBQVFELElBQVIsQ0FBRjtJQUNEO0VBQ0YsQ0FkRDtBQWVELENBckJEIn0= \ No newline at end of file
diff --git a/together/node_modules/superagent/lib/node/parsers/text.js b/together/node_modules/superagent/lib/node/parsers/text.js
deleted file mode 100644
index c8c3e16..0000000
--- a/together/node_modules/superagent/lib/node/parsers/text.js
+++ /dev/null
@@ -1,11 +0,0 @@
-"use strict";
-
-module.exports = (res, fn) => {
- res.text = '';
- res.setEncoding('utf8');
- res.on('data', chunk => {
- res.text += chunk;
- });
- res.on('end', fn);
-};
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwicmVzIiwiZm4iLCJ0ZXh0Iiwic2V0RW5jb2RpbmciLCJvbiIsImNodW5rIl0sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL25vZGUvcGFyc2Vycy90ZXh0LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gKHJlcywgZm4pID0+IHtcbiAgcmVzLnRleHQgPSAnJztcbiAgcmVzLnNldEVuY29kaW5nKCd1dGY4Jyk7XG4gIHJlcy5vbignZGF0YScsIChjaHVuaykgPT4ge1xuICAgIHJlcy50ZXh0ICs9IGNodW5rO1xuICB9KTtcbiAgcmVzLm9uKCdlbmQnLCBmbik7XG59O1xuIl0sIm1hcHBpbmdzIjoiOztBQUFBQSxNQUFNLENBQUNDLE9BQVAsR0FBaUIsQ0FBQ0MsR0FBRCxFQUFNQyxFQUFOLEtBQWE7RUFDNUJELEdBQUcsQ0FBQ0UsSUFBSixHQUFXLEVBQVg7RUFDQUYsR0FBRyxDQUFDRyxXQUFKLENBQWdCLE1BQWhCO0VBQ0FILEdBQUcsQ0FBQ0ksRUFBSixDQUFPLE1BQVAsRUFBZ0JDLEtBQUQsSUFBVztJQUN4QkwsR0FBRyxDQUFDRSxJQUFKLElBQVlHLEtBQVo7RUFDRCxDQUZEO0VBR0FMLEdBQUcsQ0FBQ0ksRUFBSixDQUFPLEtBQVAsRUFBY0gsRUFBZDtBQUNELENBUEQifQ== \ No newline at end of file
diff --git a/together/node_modules/superagent/lib/node/parsers/urlencoded.js b/together/node_modules/superagent/lib/node/parsers/urlencoded.js
deleted file mode 100644
index 88a2475..0000000
--- a/together/node_modules/superagent/lib/node/parsers/urlencoded.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-
-/**
- * Module dependencies.
- */
-const qs = require('qs');
-
-module.exports = (res, fn) => {
- res.text = '';
- res.setEncoding('ascii');
- res.on('data', chunk => {
- res.text += chunk;
- });
- res.on('end', () => {
- try {
- fn(null, qs.parse(res.text));
- } catch (err) {
- fn(err);
- }
- });
-};
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJxcyIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwicmVzIiwiZm4iLCJ0ZXh0Iiwic2V0RW5jb2RpbmciLCJvbiIsImNodW5rIiwicGFyc2UiLCJlcnIiXSwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbm9kZS9wYXJzZXJzL3VybGVuY29kZWQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBNb2R1bGUgZGVwZW5kZW5jaWVzLlxuICovXG5cbmNvbnN0IHFzID0gcmVxdWlyZSgncXMnKTtcblxubW9kdWxlLmV4cG9ydHMgPSAocmVzLCBmbikgPT4ge1xuICByZXMudGV4dCA9ICcnO1xuICByZXMuc2V0RW5jb2RpbmcoJ2FzY2lpJyk7XG4gIHJlcy5vbignZGF0YScsIChjaHVuaykgPT4ge1xuICAgIHJlcy50ZXh0ICs9IGNodW5rO1xuICB9KTtcbiAgcmVzLm9uKCdlbmQnLCAoKSA9PiB7XG4gICAgdHJ5IHtcbiAgICAgIGZuKG51bGwsIHFzLnBhcnNlKHJlcy50ZXh0KSk7XG4gICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICBmbihlcnIpO1xuICAgIH1cbiAgfSk7XG59O1xuIl0sIm1hcHBpbmdzIjoiOztBQUFBO0FBQ0E7QUFDQTtBQUVBLE1BQU1BLEVBQUUsR0FBR0MsT0FBTyxDQUFDLElBQUQsQ0FBbEI7O0FBRUFDLE1BQU0sQ0FBQ0MsT0FBUCxHQUFpQixDQUFDQyxHQUFELEVBQU1DLEVBQU4sS0FBYTtFQUM1QkQsR0FBRyxDQUFDRSxJQUFKLEdBQVcsRUFBWDtFQUNBRixHQUFHLENBQUNHLFdBQUosQ0FBZ0IsT0FBaEI7RUFDQUgsR0FBRyxDQUFDSSxFQUFKLENBQU8sTUFBUCxFQUFnQkMsS0FBRCxJQUFXO0lBQ3hCTCxHQUFHLENBQUNFLElBQUosSUFBWUcsS0FBWjtFQUNELENBRkQ7RUFHQUwsR0FBRyxDQUFDSSxFQUFKLENBQU8sS0FBUCxFQUFjLE1BQU07SUFDbEIsSUFBSTtNQUNGSCxFQUFFLENBQUMsSUFBRCxFQUFPTCxFQUFFLENBQUNVLEtBQUgsQ0FBU04sR0FBRyxDQUFDRSxJQUFiLENBQVAsQ0FBRjtJQUNELENBRkQsQ0FFRSxPQUFPSyxHQUFQLEVBQVk7TUFDWk4sRUFBRSxDQUFDTSxHQUFELENBQUY7SUFDRDtFQUNGLENBTkQ7QUFPRCxDQWJEIn0= \ No newline at end of file
diff --git a/together/node_modules/superagent/lib/node/response.js b/together/node_modules/superagent/lib/node/response.js
deleted file mode 100644
index 0208dfb..0000000
--- a/together/node_modules/superagent/lib/node/response.js
+++ /dev/null
@@ -1,139 +0,0 @@
-"use strict";
-
-/**
- * Module dependencies.
- */
-const util = require('util');
-
-const Stream = require('stream');
-
-const ResponseBase = require('../response-base');
-
-const _require = require('../utils'),
- mixin = _require.mixin;
-/**
- * Expose `Response`.
- */
-
-
-module.exports = Response;
-/**
- * Initialize a new `Response` with the given `xhr`.
- *
- * - set flags (.ok, .error, etc)
- * - parse header
- *
- * @param {Request} req
- * @param {Object} options
- * @constructor
- * @extends {Stream}
- * @implements {ReadableStream}
- * @api private
- */
-
-function Response(request) {
- Stream.call(this);
- this.res = request.res;
- const res = this.res;
- this.request = request;
- this.req = request.req;
- this.text = res.text;
- this.files = res.files || {};
- this.buffered = request._resBuffered;
- this.headers = res.headers;
- this.header = this.headers;
-
- this._setStatusProperties(res.statusCode);
-
- this._setHeaderProperties(this.header);
-
- this.setEncoding = res.setEncoding.bind(res);
- res.on('data', this.emit.bind(this, 'data'));
- res.on('end', this.emit.bind(this, 'end'));
- res.on('close', this.emit.bind(this, 'close'));
- res.on('error', this.emit.bind(this, 'error'));
-} // Lazy access res.body.
-// https://github.com/nodejs/node/pull/39520#issuecomment-889697136
-
-
-Object.defineProperty(Response.prototype, 'body', {
- get() {
- return this._body !== undefined ? this._body : this.res.body !== undefined ? this.res.body : {};
- },
-
- set(value) {
- this._body = value;
- }
-
-});
-/**
- * Inherit from `Stream`.
- */
-
-util.inherits(Response, Stream);
-mixin(Response.prototype, ResponseBase.prototype);
-/**
- * Implements methods of a `ReadableStream`
- */
-
-Response.prototype.destroy = function (error) {
- this.res.destroy(error);
-};
-/**
- * Pause.
- */
-
-
-Response.prototype.pause = function () {
- this.res.pause();
-};
-/**
- * Resume.
- */
-
-
-Response.prototype.resume = function () {
- this.res.resume();
-};
-/**
- * Return an `Error` representative of this response.
- *
- * @return {Error}
- * @api public
- */
-
-
-Response.prototype.toError = function () {
- const req = this.req;
- const method = req.method;
- const path = req.path;
- const message = "cannot ".concat(method, " ").concat(path, " (").concat(this.status, ")");
- const error = new Error(message);
- error.status = this.status;
- error.text = this.text;
- error.method = method;
- error.path = path;
- return error;
-};
-
-Response.prototype.setStatusProperties = function (status) {
- console.warn('In superagent 2.x setStatusProperties is a private method');
- return this._setStatusProperties(status);
-};
-/**
- * To json.
- *
- * @return {Object}
- * @api public
- */
-
-
-Response.prototype.toJSON = function () {
- return {
- req: this.request.toJSON(),
- header: this.header,
- status: this.status,
- text: this.text
- };
-};
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJ1dGlsIiwicmVxdWlyZSIsIlN0cmVhbSIsIlJlc3BvbnNlQmFzZSIsIm1peGluIiwibW9kdWxlIiwiZXhwb3J0cyIsIlJlc3BvbnNlIiwicmVxdWVzdCIsImNhbGwiLCJyZXMiLCJyZXEiLCJ0ZXh0IiwiZmlsZXMiLCJidWZmZXJlZCIsIl9yZXNCdWZm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QUF1QkMsSUFBdkIsZUFBZ0MsS0FBS0UsTUFBckMsTUFBYjtFQUNBLE1BQU1QLEtBQUssR0FBRyxJQUFJUSxLQUFKLENBQVVGLE9BQVYsQ0FBZDtFQUNBTixLQUFLLENBQUNPLE1BQU4sR0FBZSxLQUFLQSxNQUFwQjtFQUNBUCxLQUFLLENBQUN4QixJQUFOLEdBQWEsS0FBS0EsSUFBbEI7RUFDQXdCLEtBQUssQ0FBQ0ksTUFBTixHQUFlQSxNQUFmO0VBQ0FKLEtBQUssQ0FBQ0ssSUFBTixHQUFhQSxJQUFiO0VBRUEsT0FBT0wsS0FBUDtBQUNELENBYkQ7O0FBZUE3QixRQUFRLENBQUNvQixTQUFULENBQW1Ca0IsbUJBQW5CLEdBQXlDLFVBQVVGLE1BQVYsRUFBa0I7RUFDekRHLE9BQU8sQ0FBQ0MsSUFBUixDQUFhLDJEQUFiO0VBQ0EsT0FBTyxLQUFLN0Isb0JBQUwsQ0FBMEJ5QixNQUExQixDQUFQO0FBQ0QsQ0FIRDtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7O0FBRUFwQyxRQUFRLENBQUNvQixTQUFULENBQW1CcUIsTUFBbkIsR0FBNEIsWUFBWTtFQUN0QyxPQUFPO0lBQ0xyQyxHQUFHLEVBQUUsS0FBS0gsT0FBTCxDQUFhd0MsTUFBYixFQURBO0lBRUwvQixNQUFNLEVBQUUsS0FBS0EsTUFGUjtJQUdMMEIsTUFBTSxFQUFFLEtBQUtBLE1BSFI7SUFJTC9CLElBQUksRUFBRSxLQUFLQTtFQUpOLENBQVA7QUFNRCxDQVBEIn0= \ No newline at end of file
diff --git a/together/node_modules/superagent/lib/node/unzip.js b/together/node_modules/superagent/lib/node/unzip.js
deleted file mode 100644
index a15ffe1..0000000
--- a/together/node_modules/superagent/lib/node/unzip.js
+++ /dev/null
@@ -1,72 +0,0 @@
-"use strict";
-
-/**
- * Module dependencies.
- */
-const _require = require('string_decoder'),
- StringDecoder = _require.StringDecoder;
-
-const Stream = require('stream');
-
-const zlib = require('zlib');
-/**
- * Buffers response data events and re-emits when they're unzipped.
- *
- * @param {Request} req
- * @param {Response} res
- * @api private
- */
-
-
-exports.unzip = (request, res) => {
- const unzip = zlib.createUnzip();
- const stream = new Stream();
- let decoder; // make node responseOnEnd() happy
-
- stream.req = request;
- unzip.on('error', error => {
- if (error && error.code === 'Z_BUF_ERROR') {
- // unexpected end of file is ignored by browsers and curl
- stream.emit('end');
- return;
- }
-
- stream.emit('error', error);
- }); // pipe to unzip
-
- res.pipe(unzip); // override `setEncoding` to capture encoding
-
- res.setEncoding = type => {
- decoder = new StringDecoder(type);
- }; // decode upon decompressing with captured encoding
-
-
- unzip.on('data', buf => {
- if (decoder) {
- const string_ = decoder.write(buf);
- if (string_.length > 0) stream.emit('data', string_);
- } else {
- stream.emit('data', buf);
- }
- });
- unzip.on('end', () => {
- stream.emit('end');
- }); // override `on` to capture data listeners
-
- const _on = res.on;
-
- res.on = function (type, fn) {
- if (type === 'data' || type === 'end') {
- stream.on(type, fn.bind(res));
- } else if (type === 'error') {
- stream.on(type, fn.bind(res));
-
- _on.call(res, type, fn);
- } else {
- _on.call(res, type, fn);
- }
-
- return this;
- };
-};
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJyZXF1aXJlIiwiU3RyaW5nRGVjb2RlciIsIlN0cmVhbSIsInpsaWIiLCJleHBvcnRzIiwidW56aXAiLCJyZXF1ZXN0IiwicmVzIiwiY3JlYXRlVW56aXAiLCJzdHJlYW0iLCJkZWNvZGVyIiwicmVxIiwib24iLCJlcnJvciIsImNvZGUiLCJlbWl0IiwicGlwZSIsInNldEVuY29kaW5nIiwidHlwZSIsImJ1ZiIsInN0cmluZ18iLCJ3cml0ZSIsImxlbmd0aCIsIl9vbiIsImZuIiwiYmluZCIsImNhbGwiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvbm9kZS91bnppcC5qcyJdLC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