Comparing version 1.0.12 to 1.0.13
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); | ||
var _Reflect$construct = require("@babel/runtime-corejs3/core-js-stable/reflect/construct"); | ||
var _construct = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/reflect/construct")); | ||
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator")); | ||
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs3/regenerator")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator")); | ||
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator")); | ||
var _setImmediate2 = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/set-immediate")); | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/classCallCheck")); | ||
var _assign = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/assign")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/createClass")); | ||
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise")); | ||
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/inherits")); | ||
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/parse-int")); | ||
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/possibleConstructorReturn")); | ||
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify")); | ||
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/getPrototypeOf")); | ||
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck")); | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/typeof")); | ||
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass")); | ||
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter")); | ||
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits")); | ||
var _some = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/some")); | ||
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn")); | ||
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array")); | ||
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf")); | ||
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys")); | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/typeof")); | ||
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each")); | ||
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys")); | ||
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat")); | ||
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/array/is-array")); | ||
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify")); | ||
var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice")); | ||
var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/values")); | ||
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map")); | ||
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of")); | ||
var _parseInt2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/parse-int")); | ||
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise")); | ||
var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign")); | ||
var _setImmediate2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set-immediate")); | ||
var _events = _interopRequireDefault(require("events")); | ||
@@ -49,5 +65,5 @@ | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = (0, _construct["default"])(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_construct["default"]) return false; if (_construct["default"].sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call((0, _construct["default"])(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
@@ -111,3 +127,3 @@ var DEFAULTS = { | ||
return args.filter(function (value) { | ||
return (0, _filter["default"])(args).call(args, function (value) { | ||
return !isEmpty(value); | ||
@@ -130,3 +146,5 @@ })[0]; | ||
function isEmpty(value) { | ||
return value === null || [typeof value === 'undefined', typeof value === 'string' && !value.length, (0, _isArray["default"])(value) && !value.length, isObject(value) && !(0, _keys["default"])(value).length].some(function (result) { | ||
var _context; | ||
return value === null || (0, _some["default"])(_context = [typeof value === 'undefined', typeof value === 'string' && !value.length, (0, _isArray["default"])(value) && !value.length, isObject(value) && !(0, _keys["default"])(value).length]).call(_context, function (result) { | ||
return result; | ||
@@ -137,3 +155,5 @@ }); | ||
function isObject(value) { | ||
return ![value === null, typeof value === 'undefined', (0, _typeof2["default"])(value) !== 'object', (0, _isArray["default"])(value), value && value.toString && !/^\[object\sObject\]$/.test(value.toString())].some(function (result) { | ||
var _context2; | ||
return !(0, _some["default"])(_context2 = [value === null, typeof value === 'undefined', (0, _typeof2["default"])(value) !== 'object', (0, _isArray["default"])(value), value && value.toString && !/^\[object\sObject\]$/.test(value.toString())]).call(_context2, function (result) { | ||
return result; | ||
@@ -149,3 +169,3 @@ }); | ||
request.options = request.options || {}; | ||
SUPPORTED_REQUEST_OPTIONS.forEach(function (option) { | ||
(0, _forEach["default"])(SUPPORTED_REQUEST_OPTIONS).call(SUPPORTED_REQUEST_OPTIONS, function (option) { | ||
var value = coalesce(options[option], request.options[option]); | ||
@@ -166,6 +186,8 @@ | ||
if (!isEmpty(result.query)) { | ||
var _context3; | ||
// format objects using square-bracket notation | ||
result.query = squareBracketNotation(result.query); // serialization adjustments for querystring | ||
(0, _keys["default"])(result.query).forEach(function (param) { | ||
(0, _forEach["default"])(_context3 = (0, _keys["default"])(result.query)).call(_context3, function (param) { | ||
// ensure arrays in querystring are properly serialized... | ||
@@ -191,6 +213,10 @@ if ((0, _isArray["default"])(result.query[param]) && result.query[param].length > 1) { | ||
function parseUrlPattern(urlPattern) { | ||
var _context4; | ||
var parts = new _url.URL(urlPattern); // determine parameters within the URL (if applicable) | ||
parts.path.match(RE_URL_PARAMETERS) // .filter((match) => RE_URL_PARAMETERS.test(match)) | ||
.forEach(function (match) { | ||
(0, _forEach["default"])(_context4 = parts.path.match(RE_URL_PARAMETERS) // .filter((match) => RE_URL_PARAMETERS.test(match)) | ||
).call(_context4, function (match) { | ||
var _context5; | ||
var parameters = match.split(RE_URL_PARAMETERS); | ||
@@ -205,5 +231,5 @@ | ||
parameters.filter(function (parameter) { | ||
(0, _forEach["default"])(_context5 = (0, _filter["default"])(parameters).call(parameters, function (parameter) { | ||
return !isEmpty(parameter); | ||
}).forEach(function (parameter) { | ||
})).call(_context5, function (parameter) { | ||
// isolate the parameters from the URL | ||
@@ -227,4 +253,8 @@ if (!/^\//.test(parameter)) { | ||
var buldSerializedQueryParam = function buldSerializedQueryParam(document) { | ||
var _context6; | ||
var serializedKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
return (0, _keys["default"])(document).forEach(function (key) { | ||
return (0, _forEach["default"])(_context6 = (0, _keys["default"])(document)).call(_context6, function (key) { | ||
var _context8; | ||
if (isEmpty(document[key])) { | ||
@@ -235,7 +265,9 @@ return; | ||
if (!isObject(document[key])) { | ||
resultQuery[serializedKey ? "".concat(serializedKey, "[").concat(key, "]") : key] = document[key]; | ||
var _context7; | ||
resultQuery[serializedKey ? (0, _concat["default"])(_context7 = "".concat(serializedKey, "[")).call(_context7, key, "]") : key] = document[key]; | ||
return; | ||
} | ||
return buldSerializedQueryParam(document[key], serializedKey ? "".concat(serializedKey, "[").concat(key, "]") : key); | ||
return buldSerializedQueryParam(document[key], serializedKey ? (0, _concat["default"])(_context8 = "".concat(serializedKey, "[")).call(_context8, key, "]") : key); | ||
}); | ||
@@ -273,2 +305,4 @@ }, | ||
value: function call(options, data, callback) { | ||
var _context9; | ||
var executeRequest, | ||
@@ -330,8 +364,10 @@ requestContentType, | ||
['host', 'hostname', 'hostnames', 'hosts'].forEach(function (field) { | ||
var key = RE_ENDS_WITH_S.test(field) ? field.slice(0, -1) : field; // if the host or hostname field value is an Array | ||
(0, _forEach["default"])(_context9 = ['host', 'hostname', 'hostnames', 'hosts']).call(_context9, function (field) { | ||
var key = RE_ENDS_WITH_S.test(field) ? (0, _slice["default"])(field).call(field, 0, -1) : field; // if the host or hostname field value is an Array | ||
// map the values into the state.failover | ||
if ((0, _isArray["default"])(options[field])) { | ||
state.failover.values = state.failover.values.concat(options[field].map(function (value) { | ||
var _context10, _context11; | ||
state.failover.values = (0, _concat["default"])(_context10 = (0, _values["default"])(state.failover)).call(_context10, (0, _map["default"])(_context11 = options[field]).call(_context11, function (value) { | ||
return { | ||
@@ -347,4 +383,4 @@ key: key, | ||
if (state.failover.values.length) { | ||
options[state.failover.values[state.failover.index].key] = state.failover.values[state.failover.index].value; | ||
if ((0, _values["default"])(state.failover).length) { | ||
options[(0, _values["default"])(state.failover)[state.failover.index].key] = (0, _values["default"])(state.failover)[state.failover.index].value; | ||
} // correct for port in the hostname field... | ||
@@ -354,4 +390,6 @@ | ||
if (!isEmpty(options.hostname)) { | ||
var portIndex = options.hostname.indexOf(':'); | ||
var _context12; | ||
var portIndex = (0, _indexOf["default"])(_context12 = options.hostname).call(_context12, ':'); | ||
if (portIndex > 0) { | ||
@@ -373,2 +411,4 @@ // set port, host and hostname correctly | ||
if (!isEmpty(options.proxy)) { | ||
var _context13; | ||
var host = options.host || options.hostname, | ||
@@ -379,4 +419,6 @@ proxy = new _url.URL(options.proxy); // set Host header value to destination server for web proxy request | ||
if (options.path.indexOf(host) < 0) { | ||
if (options.port && [DEFAULTS.HTTP_PORT, DEFAULTS.HTTPS_PORT].indexOf(options.port) < 0) { | ||
if ((0, _indexOf["default"])(_context13 = options.path).call(_context13, host) < 0) { | ||
var _context14; | ||
if (options.port && (0, _indexOf["default"])(_context14 = [DEFAULTS.HTTP_PORT, DEFAULTS.HTTPS_PORT]).call(_context14, options.port) < 0) { | ||
host = [host, options.port].join(':'); | ||
@@ -412,6 +454,8 @@ } | ||
var client = (RE_TLS_PROTOCOL.test(options.protocol) ? _https["default"] : _http["default"]).request(options, function (response) { | ||
var _context15; | ||
var chunks = [], | ||
contentType = coalesce(response.headers[HTTP_HEADERS.CONTENT_TYPE], response.headers[HTTP_HEADERS.CONTENT_TYPE.toLowerCase()]), | ||
json = RE_CONTENT_TYPE_JSON.test(contentType), | ||
redirect = [HTTP_STATUS_CODES.REDIRECT_CODE_PERM, HTTP_STATUS_CODES.REDIRECT_CODE_TEMP, HTTP_STATUS_CODES.REDIRECT_NEW_CODE_PERM, HTTP_STATUS_CODES.REDIRECT_NEW_CODE_TEMP].some(function (code) { | ||
redirect = (0, _some["default"])(_context15 = [HTTP_STATUS_CODES.REDIRECT_CODE_PERM, HTTP_STATUS_CODES.REDIRECT_CODE_TEMP, HTTP_STATUS_CODES.REDIRECT_NEW_CODE_PERM, HTTP_STATUS_CODES.REDIRECT_NEW_CODE_TEMP]).call(_context15, function (code) { | ||
return code === response.statusCode; | ||
@@ -554,13 +598,15 @@ }); // track response headers and status | ||
client.on(EVENTS.error, function (err) { | ||
var failover = state.failover.values.length && err.code && DEFAULTS.FAILOVER_ERROR_CODES.indexOf(err.code) !== -1; // check for failover | ||
var _context16; | ||
var failover = (0, _values["default"])(state.failover).length && err.code && (0, _indexOf["default"])(_context16 = DEFAULTS.FAILOVER_ERROR_CODES).call(_context16, err.code) !== -1; // check for failover | ||
if (failover) { | ||
state.tries += 1; | ||
state.failover.index = state.failover.index === state.failover.values.length - 1 ? 0 : state.failover.index + 1; | ||
state.failover.index = state.failover.index === (0, _values["default"])(state.failover).length - 1 ? 0 : state.failover.index + 1; | ||
if (state.tries <= state.failover.values.length) { | ||
if (state.tries <= (0, _values["default"])(state.failover).length) { | ||
// remove host and hostname from options to prevent conflict with prior request | ||
delete options.hostname; | ||
delete options.host; | ||
options[state.failover.values[state.failover.index].key] = state.failover.values[state.failover.index].value; | ||
options[(0, _values["default"])(state.failover)[state.failover.index].key] = (0, _values["default"])(state.failover)[state.failover.index].value; | ||
return (0, _setImmediate2["default"])(clientRequest); | ||
@@ -623,5 +669,5 @@ } | ||
_args = arguments; | ||
return _regenerator["default"].wrap(function _callee$(_context) { | ||
return _regenerator["default"].wrap(function _callee$(_context17) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
switch (_context17.prev = _context17.next) { | ||
case 0: | ||
@@ -638,11 +684,11 @@ options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {}; | ||
options.method = 'DELETE'; | ||
_context.next = 7; | ||
_context17.next = 7; | ||
return this.call(options, callback); | ||
case 7: | ||
return _context.abrupt("return", _context.sent); | ||
return _context17.abrupt("return", _context17.sent); | ||
case 8: | ||
case "end": | ||
return _context.stop(); | ||
return _context17.stop(); | ||
} | ||
@@ -667,5 +713,5 @@ } | ||
_args2 = arguments; | ||
return _regenerator["default"].wrap(function _callee2$(_context2) { | ||
return _regenerator["default"].wrap(function _callee2$(_context18) { | ||
while (1) { | ||
switch (_context2.prev = _context2.next) { | ||
switch (_context18.prev = _context18.next) { | ||
case 0: | ||
@@ -682,11 +728,11 @@ options = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}; | ||
options.method = 'GET'; | ||
_context2.next = 7; | ||
_context18.next = 7; | ||
return this.call(options, callback); | ||
case 7: | ||
return _context2.abrupt("return", _context2.sent); | ||
return _context18.abrupt("return", _context18.sent); | ||
case 8: | ||
case "end": | ||
return _context2.stop(); | ||
return _context18.stop(); | ||
} | ||
@@ -711,5 +757,5 @@ } | ||
_args3 = arguments; | ||
return _regenerator["default"].wrap(function _callee3$(_context3) { | ||
return _regenerator["default"].wrap(function _callee3$(_context19) { | ||
while (1) { | ||
switch (_context3.prev = _context3.next) { | ||
switch (_context19.prev = _context19.next) { | ||
case 0: | ||
@@ -726,11 +772,11 @@ options = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}; | ||
options.method = 'HEAD'; | ||
_context3.next = 7; | ||
_context19.next = 7; | ||
return this.call(options, callback); | ||
case 7: | ||
return _context3.abrupt("return", _context3.sent); | ||
return _context19.abrupt("return", _context19.sent); | ||
case 8: | ||
case "end": | ||
return _context3.stop(); | ||
return _context19.stop(); | ||
} | ||
@@ -756,5 +802,5 @@ } | ||
_args4 = arguments; | ||
return _regenerator["default"].wrap(function _callee4$(_context4) { | ||
return _regenerator["default"].wrap(function _callee4$(_context20) { | ||
while (1) { | ||
switch (_context4.prev = _context4.next) { | ||
switch (_context20.prev = _context20.next) { | ||
case 0: | ||
@@ -777,11 +823,11 @@ options = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {}; | ||
options.method = 'PATCH'; | ||
_context4.next = 9; | ||
_context20.next = 9; | ||
return this.call(options, data, callback); | ||
case 9: | ||
return _context4.abrupt("return", _context4.sent); | ||
return _context20.abrupt("return", _context20.sent); | ||
case 10: | ||
case "end": | ||
return _context4.stop(); | ||
return _context20.stop(); | ||
} | ||
@@ -807,5 +853,5 @@ } | ||
_args5 = arguments; | ||
return _regenerator["default"].wrap(function _callee5$(_context5) { | ||
return _regenerator["default"].wrap(function _callee5$(_context21) { | ||
while (1) { | ||
switch (_context5.prev = _context5.next) { | ||
switch (_context21.prev = _context21.next) { | ||
case 0: | ||
@@ -828,11 +874,11 @@ options = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {}; | ||
options.method = 'POST'; | ||
_context5.next = 9; | ||
_context21.next = 9; | ||
return this.call(options, data, callback); | ||
case 9: | ||
return _context5.abrupt("return", _context5.sent); | ||
return _context21.abrupt("return", _context21.sent); | ||
case 10: | ||
case "end": | ||
return _context5.stop(); | ||
return _context21.stop(); | ||
} | ||
@@ -858,5 +904,5 @@ } | ||
_args6 = arguments; | ||
return _regenerator["default"].wrap(function _callee6$(_context6) { | ||
return _regenerator["default"].wrap(function _callee6$(_context22) { | ||
while (1) { | ||
switch (_context6.prev = _context6.next) { | ||
switch (_context22.prev = _context22.next) { | ||
case 0: | ||
@@ -879,11 +925,11 @@ options = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}; | ||
options.method = 'PUT'; | ||
_context6.next = 9; | ||
_context22.next = 9; | ||
return this.call(options, data, callback); | ||
case 9: | ||
return _context6.abrupt("return", _context6.sent); | ||
return _context22.abrupt("return", _context22.sent); | ||
case 10: | ||
case "end": | ||
return _context6.stop(); | ||
return _context22.stop(); | ||
} | ||
@@ -921,16 +967,16 @@ } | ||
var options; | ||
return _regenerator["default"].wrap(function _callee7$(_context7) { | ||
return _regenerator["default"].wrap(function _callee7$(_context23) { | ||
while (1) { | ||
switch (_context7.prev = _context7.next) { | ||
switch (_context23.prev = _context23.next) { | ||
case 0: | ||
options = this.urlParts; | ||
_context7.next = 3; | ||
_context23.next = 3; | ||
return this.request.post(options, data, callback); | ||
case 3: | ||
return _context7.abrupt("return", _context7.sent); | ||
return _context23.abrupt("return", _context23.sent); | ||
case 4: | ||
case "end": | ||
return _context7.stop(); | ||
return _context23.stop(); | ||
} | ||
@@ -958,5 +1004,5 @@ } | ||
return _regenerator["default"].wrap(function _callee8$(_context8) { | ||
return _regenerator["default"].wrap(function _callee8$(_context24) { | ||
while (1) { | ||
switch (_context8.prev = _context8.next) { | ||
switch (_context24.prev = _context24.next) { | ||
case 0: | ||
@@ -970,11 +1016,11 @@ for (_len2 = _args8.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | ||
options.query = args; | ||
_context8.next = 5; | ||
_context24.next = 5; | ||
return this.request["delete"](options, callback); | ||
case 5: | ||
return _context8.abrupt("return", _context8.sent); | ||
return _context24.abrupt("return", _context24.sent); | ||
case 6: | ||
case "end": | ||
return _context8.stop(); | ||
return _context24.stop(); | ||
} | ||
@@ -1002,5 +1048,5 @@ } | ||
return _regenerator["default"].wrap(function _callee9$(_context9) { | ||
return _regenerator["default"].wrap(function _callee9$(_context25) { | ||
while (1) { | ||
switch (_context9.prev = _context9.next) { | ||
switch (_context25.prev = _context25.next) { | ||
case 0: | ||
@@ -1014,11 +1060,11 @@ for (_len3 = _args9.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { | ||
options.query = args; | ||
_context9.next = 5; | ||
_context25.next = 5; | ||
return this.request.get(options, callback); | ||
case 5: | ||
return _context9.abrupt("return", _context9.sent); | ||
return _context25.abrupt("return", _context25.sent); | ||
case 6: | ||
case "end": | ||
return _context9.stop(); | ||
return _context25.stop(); | ||
} | ||
@@ -1040,16 +1086,16 @@ } | ||
var options; | ||
return _regenerator["default"].wrap(function _callee10$(_context10) { | ||
return _regenerator["default"].wrap(function _callee10$(_context26) { | ||
while (1) { | ||
switch (_context10.prev = _context10.next) { | ||
switch (_context26.prev = _context26.next) { | ||
case 0: | ||
options = this.urlParts; | ||
_context10.next = 3; | ||
_context26.next = 3; | ||
return this.request.put(options, data, callback); | ||
case 3: | ||
return _context10.abrupt("return", _context10.sent); | ||
return _context26.abrupt("return", _context26.sent); | ||
case 4: | ||
case "end": | ||
return _context10.stop(); | ||
return _context26.stop(); | ||
} | ||
@@ -1056,0 +1102,0 @@ } |
@@ -0,1 +1,5 @@ | ||
# v1.0.13 - 06/22/2021 | ||
* Updated dependencies | ||
# v1.0.12 - 01/17/2021 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "reqlib", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "A library to simplify REST API requests and to provide utilities for handling common REST API consumer scenarios ", | ||
@@ -33,13 +33,16 @@ "main": "dist", | ||
"homepage": "https://github.com/brozeph/reqlib#readme", | ||
"dependencies": { | ||
"@babel/runtime-corejs3": "^7.14.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.12.10", | ||
"@babel/core": "^7.12.10", | ||
"@babel/eslint-parser": "^7.12.1", | ||
"@babel/eslint-plugin": "^7.12.1", | ||
"@babel/plugin-transform-runtime": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
"@babel/register": "^7.12.10", | ||
"chai": "^4.2.0", | ||
"@babel/cli": "^7.14.5", | ||
"@babel/core": "^7.14.6", | ||
"@babel/eslint-parser": "^7.14.7", | ||
"@babel/eslint-plugin": "^7.14.5", | ||
"@babel/plugin-transform-runtime": "^7.14.5", | ||
"@babel/preset-env": "^7.14.7", | ||
"@babel/register": "^7.14.5", | ||
"chai": "^4.3.4", | ||
"coveralls": "^3.1.0", | ||
"eslint": "^7.18.0", | ||
"eslint": "^7.29.0", | ||
"gulp": "^4.0.2", | ||
@@ -50,9 +53,6 @@ "gulp-babel": "^8.0.0", | ||
"gulp-sourcemaps": "^3.0.0", | ||
"mocha": "^8.2.1", | ||
"nock": "^13.0.5", | ||
"mocha": "^9.0.1", | ||
"nock": "^13.1.0", | ||
"nyc": "^15.1.0" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime-corejs2": "^7.12.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
95100
846
+ Added@babel/runtime-corejs3@7.26.0(transitive)
+ Addedcore-js-pure@3.39.0(transitive)
- Removed@babel/runtime-corejs2@^7.12.5
- Removed@babel/runtime-corejs2@7.26.0(transitive)
- Removedcore-js@2.6.12(transitive)