Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adastradev/aws-api-gateway-client

Package Overview
Dependencies
Maintainers
35
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adastradev/aws-api-gateway-client - npm Package Compare versions

Comparing version 1.0.8-beta.1701722287034 to 1.0.8-beta.1701727358747

22

dist/apigClient.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _urlTemplate = _interopRequireDefault(require("url-template"));
var _apiGatewayClient = _interopRequireDefault(require("./lib/apiGatewayCore/apiGatewayClient"));
/*

@@ -25,3 +19,6 @@ * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.

*/
var _require = require('uritemplate'),
uritemplate = _require.uritemplate;
var _require2 = require('apiGatewayClientFactory'),
apiGatewayClientFactory = _require2.apiGatewayClientFactory;
var apigClientFactory = {};

@@ -84,3 +81,3 @@ var removeEmpty = function removeEmpty(obj) {

};
var apiGatewayClient = _apiGatewayClient["default"].newClient(simpleHttpClientConfig, sigV4ClientConfig);
var apiGatewayClient = apiGatewayClientFactory.newClient(simpleHttpClientConfig, sigV4ClientConfig);
apigClient.invokeApi = function (params, pathTemplate, method, additionalParams, body) {

@@ -91,3 +88,3 @@ if (additionalParams === undefined) additionalParams = {};

verb: method.toUpperCase(),
path: pathComponent + _urlTemplate["default"].parse(pathTemplate).expand(params),
path: pathComponent + uritemplate.parse(pathTemplate).expand(params),
headers: additionalParams.headers || {},

@@ -102,3 +99,6 @@ timeout: additionalParams.timeout || 0,

};
var _default = exports["default"] = apigClientFactory;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfdXJsVGVtcGxhdGUiLCJfaW50ZXJvcFJlcX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FUSxnQkFBZ0IsRUFBRWxDLE1BQU0sQ0FBQ1MsTUFBTSxDQUFDO0VBQ3pGLENBQUM7RUFFRCxPQUFPTixVQUFVO0FBQ25CLENBQUM7QUFBQyxJQUFBMkMsUUFBQSxHQUFBQyxPQUFBLGNBRWF6RCxpQkFBaUIifQ==
module.exports = {
apigClientFactory: apigClientFactory,
"default": apigClientFactory
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVxdWlyZSIsInJlcXVpcmUiLCJ1cml0ZW1wbGF0ZSIsIl9yZXF1aXJlMiIsImFwaUdhdGV3YXlDbGllbnRGYWN0b3J5IiwiYXBpZ0NsaWVudEZhY3RvcnkiLCJyZW1vdmVFbXB0eSIsIm9iaiIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwia2V5IiwiX3R5cGVvZjIiLCJ1bmRlZmluZWQiLCJuZXdDbGllbnQiLCJjb25maWciLCJhcmd1bWVudHMiLCJsZW5ndGgiLCJhcGlnQ2xpZW50IiwiYXNzaWduIiwiYWNjZXNzS2V5Iiwic2VjcmV0S2V5Iiwic2Vzc2lvblRva2VuIiwicmVnaW9uIiwiYXBpS2V5IiwiaW52b2tlVXJsIiwic2VydmljZSIsImRlZmF1bHRDb250ZW50VHlwZSIsImRlZmF1bHRBY2NlcHRUeXBlIiwic3lzdGVtQ2xvY2tPZmZzZXQiLCJoZWFkZXJzIiwiaG9zdCIsImVuZHBvaW50IiwiZXhlYyIsInBhdGhDb21wb25lbnQiLCJzdWJzdHJpbmciLCJzaWdWNENsaWVudENvbmZpZyIsInNlcnZpY2VOYW1lIiwicmV0cmllcyIsInJldHJ5Q29uZGl0aW9uIiwicmV0cnlEZWxheSIsImF1dGhUeXBlIiwic2ltcGxlSHR0cENsaWVudENvbmZpZyIsImFwaUdhdGV3YXlDbGllbnQiLCJpbnZva2VBcGkiLCJwYXJhbXMiLCJwYXRoVGVtcGxhdGUiLCJtZXRob2QiL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zFCQyxJQUFJLEVBQUVuQixhQUFhLEdBQUdoQyxXQUFXLENBQUNvRCxLQUFLLENBQUNSLFlBQVksQ0FBQyxDQUFDUyxNQUFNLENBQUNWLE1BQU0sQ0FBQztNQUNwRWYsT0FBTyxFQUFFa0IsZ0JBQWdCLENBQUNsQixPQUFPLElBQUksQ0FBQyxDQUFDO01BQ3ZDMEIsT0FBTyxFQUFFUixnQkFBZ0IsQ0FBQ1EsT0FBTyxJQUFJLENBQUM7TUFDdENDLFdBQVcsRUFBRVQsZ0JBQWdCLENBQUNTLFdBQVc7TUFDekNSLElBQUksRUFBRUE7SUFDVixDQUFDO0lBRUQsT0FBT04sZ0JBQWdCLENBQUNlLFdBQVcsQ0FBQ1IsT0FBTyxFQUFFVCxRQUFRLEVBQUVPLGdCQUFnQixFQUFFakMsTUFBTSxDQUFDUyxNQUFNLENBQUM7RUFDekYsQ0FBQztFQUVELE9BQU9OLFVBQVU7QUFDbkIsQ0FBQztBQUVEeUMsTUFBTSxDQUFDQyxPQUFPLEdBQUc7RUFDZnZELGlCQUFpQixFQUFqQkEsaUJBQWlCO0VBQ2pCLFdBQVNBO0FBQ1gsQ0FBQyJ9
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _utils = _interopRequireDefault(require("./utils"));
var _sigV4Client = _interopRequireDefault(require("./sigV4Client.js"));
var _simpleHttpClient = _interopRequireDefault(require("./simpleHttpClient.js"));
/*

@@ -25,2 +17,11 @@ * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.

*/
var _require = require('./utils'),
utils = _require.utils;
var _require2 = require('./sigV4Client.js'),
sigV4ClientFactory = _require2.sigV4ClientFactory;
var _require3 = require('./simpleHttpClient.js'),
simpleHttpClientFactory = _require3.simpleHttpClientFactory;
// import utils from './utils';
// import sigV4ClientFactory from './sigV4Client.js';
// import simpleHttpClientFactory from './simpleHttpClient.js';

@@ -31,4 +32,4 @@ var apiGatewayClientFactory = {};

// Spin up 2 httpClients, one for simple requests, one for SigV4
var sigV4Client = _sigV4Client["default"].newClient(sigV4ClientConfig);
var simpleHttpClient = _simpleHttpClient["default"].newClient(simpleHttpClientConfig);
var sigV4Client = sigV4ClientFactory.newClient(sigV4ClientConfig);
var simpleHttpClient = simpleHttpClientFactory.newClient(simpleHttpClientConfig);
apiGatewayClient.makeRequest = function (request, authType, additionalParams, apiKey) {

@@ -48,5 +49,5 @@ // Default the request to use the simple http client

// merge them into the appropriate request properties
request.headers = _utils["default"].mergeInto(request.headers, additionalParams.headers);
request.queryParams = _utils["default"].mergeInto(request.queryParams, additionalParams.queryParams);
request.timeout = _utils["default"].mergeInto(request.timeout, additionalParams.timeout);
request.headers = utils.mergeInto(request.headers, additionalParams.headers);
request.queryParams = utils.mergeInto(request.queryParams, additionalParams.queryParams);
request.timeout = utils.mergeInto(request.timeout, additionalParams.timeout);

@@ -64,3 +65,6 @@ // If an auth type was specified inject the appropriate auth client

};
var _default = exports["default"] = apiGatewayClientFactory;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfdXRpbHMiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9zaWdWNENsaWVudCIsIl9zaW1wbGVIdHRwQ2xpZW50IiwiYXBpR2F0ZXdheUNsaWVudEZhY3RvcnkiLCJuZXdDbGllbnQiLCJzaW1wbGVIdHRwQ2xpZW50Q29uZmlnIiwic2lnVjRDbGllbnRDb25maWciLCJhcGlHYXRld2F5Q2xpZW50Iiwic2lnVjRDbGllbnQiLCJzaWdWNENsaWVudEZhY3RvcnkiLCJzaW1wbGVIdHRwQ2xpZW50Iiwic2ltcGxlSHR0cENsaWVudEZhY3RvcnkiLCJtYWtlUmVxdWVzdCIsInJlcXVlc3QiLCJhdXRoVHlwZSIsImFkZGl0aW9uYWxQYXJhbXMiLCJhcGlLZXkiLCJjb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xFQUFFWixnQkFBZ0IsQ0FBQ1ksT0FBTyxDQUFDOztJQUU1RTtJQUNBLElBQUliLFFBQVEsS0FBSyxTQUFTLEVBQUU7TUFDMUJHLFdBQVcsR0FBR1QsV0FBVztJQUMzQjs7SUFFQTtJQUNBO0lBQ0EsT0FBT1MsV0FBVyxDQUFDTCxXQUFXLENBQUNDLE9BQU8sQ0FBQztFQUN6QyxDQUFDO0VBQ0QsT0FBT04sZ0JBQWdCO0FBQ3pCLENBQUM7QUFBQyxJQUFBcUIsUUFBQSxHQUFBQyxPQUFBLGNBRWExQix1QkFBdUIifQ==
module.exports = {
apiGatewayClientFactory: apiGatewayClientFactory,
"default": apiGatewayClientFactory
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVxdWlyZSIsInJlcXVpcmUiLCJ1dGlscyIsIl9yZXF1aXJlMiIsInNpZ1Y0Q2xpZW50RmFjdG9yeSIsIl9yZXF1aXJlMyIsInNpbXBsZUh0dHBDbGllbnRGYWN0b3J5IiwiYXBpR2F0ZXdheUNsaWVudEZhY3RvcnkiLCJuZXdDbGllbnQiLCJzaW1wbGVIdHRwQ2xpZW50Q29uZmlnIiwic2lnVjRDbGllbnRDb25maWciLCJhcGlHYXRld2F5Q2xpZW50Iiwic2lnVjRDbGllbnQiLCJzaW1wbGVIdHRwQ2xpZW50IiwibWFrZVJlcXVlc3QiLCJyZXF1ZXN0IiwiYXV0aFR5cGUiLCJhZGRpdGlvbmFsUGFyYW1zIiwiYXBpS2V5IiwiY2xpZW50VG9Vc2UiLCJ1bmRlZmluZWQiLCJoZWFkZXJzIiwiYm9keSIsIk9iamVjdCIsImtleXMiLCJsZW5ndGgiLCJtZXJnZUludG8iLCJxdWVyeVBhcmFtcyIsInRpbWVvdXQiLCJtb2R1bGUiLCJleHBvcnRzIl0sInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9hcGlHYXRld2F5Q29yZS9hcGlH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sQ0FBQ1ksV0FBVyxHQUFHekIsS0FBSyxDQUFDd0IsU0FBUyxDQUFDWCxPQUFPLENBQUNZLFdBQVcsRUFBRVYsZ0JBQWdCLENBQUNVLFdBQVcsQ0FBQztJQUN4RlosT0FBTyxDQUFDYSxPQUFPLEdBQUcxQixLQUFLLENBQUN3QixTQUFTLENBQUNYLE9BQU8sQ0FBQ2EsT0FBTyxFQUFFWCxnQkFBZ0IsQ0FBQ1csT0FBTyxDQUFDOztJQUU1RTtJQUNBLElBQUlaLFFBQVEsS0FBSyxTQUFTLEVBQUU7TUFDMUJHLFdBQVcsR0FBR1AsV0FBVztJQUMzQjs7SUFFQTtJQUNBO0lBQ0EsT0FBT08sV0FBVyxDQUFDTCxXQUFXLENBQUNDLE9BQU8sQ0FBQztFQUN6QyxDQUFDO0VBQ0QsT0FBT0osZ0JBQWdCO0FBQ3pCLENBQUM7QUFDRGtCLE1BQU0sQ0FBQ0MsT0FBTyxHQUFHO0VBQUV2Qix1QkFBdUIsRUFBdkJBLHVCQUF1QjtFQUN4QyxXQUFTQTtBQUF3QixDQUFDIn0=
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _axios = _interopRequireDefault(require("axios"));
var _axiosRetry = _interopRequireDefault(require("axios-retry"));
var _sha = _interopRequireDefault(require("crypto-js/sha256"));
var _encHex = _interopRequireDefault(require("crypto-js/enc-hex"));
var _hmacSha = _interopRequireDefault(require("crypto-js/hmac-sha256"));
var _url = _interopRequireDefault(require("url"));
var _utils = _interopRequireDefault(require("./utils"));
/*

@@ -29,2 +17,23 @@ * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.

*/
var _require = require('axios'),
axios = _require.axios;
var _require2 = require('axiosRetry'),
axiosRetry = _require2.axiosRetry;
var _require3 = require('crypto-js/sha256'),
SHA256 = _require3.SHA256;
var _require4 = require('crypto-js/enc-hex'),
encHex = _require4.encHex;
var _require5 = require('crypto-js/hmac-sha256'),
HmacSHA256 = _require5.HmacSHA256;
var _require6 = require('url'),
urlParser = _require6.urlParser;
var _require7 = require('./utils'),
utils = _require7.utils;
// import axios from 'axios';
// import axiosRetry from 'axios-retry';
// import SHA256 from 'crypto-js/sha256';
// import encHex from 'crypto-js/enc-hex';
// import HmacSHA256 from 'crypto-js/hmac-sha256';
// import urlParser from 'url';
// import utils from './utils';

@@ -41,9 +50,9 @@ var sigV4ClientFactory = {};

function hash(value) {
return (0, _sha["default"])(value); // eslint-disable-line
return SHA256(value); // eslint-disable-line
}
function hexEncode(value) {
return value.toString(_encHex["default"]);
return value.toString(encHex);
}
function hmac(secret, value) {
return (0, _hmacSha["default"])(value, secret, {
return HmacSHA256(value, secret, {
asBytes: true

@@ -126,8 +135,8 @@ }); // eslint-disable-line

}
awsSigV4Client.accessKey = _utils["default"].assertDefined(config.accessKey, 'accessKey');
awsSigV4Client.secretKey = _utils["default"].assertDefined(config.secretKey, 'secretKey');
awsSigV4Client.accessKey = utils.assertDefined(config.accessKey, 'accessKey');
awsSigV4Client.secretKey = utils.assertDefined(config.secretKey, 'secretKey');
awsSigV4Client.sessionToken = config.sessionToken;
awsSigV4Client.serviceName = _utils["default"].assertDefined(config.serviceName, 'serviceName');
awsSigV4Client.region = _utils["default"].assertDefined(config.region, 'region');
awsSigV4Client.endpoint = _utils["default"].assertDefined(config.endpoint, 'endpoint');
awsSigV4Client.serviceName = utils.assertDefined(config.serviceName, 'serviceName');
awsSigV4Client.region = utils.assertDefined(config.region, 'region');
awsSigV4Client.endpoint = utils.assertDefined(config.endpoint, 'endpoint');
awsSigV4Client.retries = config.retries;

@@ -138,6 +147,6 @@ awsSigV4Client.retryCondition = config.retryCondition;

awsSigV4Client.makeRequest = function (request) {
var verb = _utils["default"].assertDefined(request.verb, 'verb');
var path = _utils["default"].assertDefined(request.path, 'path');
var queryParams = _utils["default"].copy(request.queryParams);
var timeout = _utils["default"].copy(request.timeout);
var verb = utils.assertDefined(request.verb, 'verb');
var path = utils.assertDefined(request.path, 'path');
var queryParams = utils.copy(request.queryParams);
var timeout = utils.copy(request.timeout);
if (queryParams === undefined) {

@@ -149,3 +158,3 @@ queryParams = {};

}
var headers = _utils["default"].copy(request.headers);
var headers = utils.copy(request.headers);
if (headers === undefined) {

@@ -164,3 +173,3 @@ headers = {};

}
var body = _utils["default"].copy(request.body);
var body = utils.copy(request.body);

@@ -181,3 +190,3 @@ // stringify request body if content type is JSON

} else {
var parser = _url["default"].parse(awsSigV4Client.endpoint);
var parser = urlParser.parse(awsSigV4Client.endpoint);
headers[HOST] = parser.hostname;

@@ -215,3 +224,3 @@ }

signedRequest.baseURL = url;
var client = _axios["default"].create(signedRequest);
var client = axios.create(signedRequest);

@@ -223,3 +232,3 @@ // Allow user configurable delay, or built-in exponential delay

if (config.retryDelay === 'exponential') {
retryDelay = _axiosRetry["default"].exponentialDelay;
retryDelay = axiosRetry.exponentialDelay;
} else if (typeof config.retryDelay === 'number') {

@@ -232,3 +241,3 @@ retryDelay = function retryDelay() {

}
(0, _axiosRetry["default"])(client, {
axiosRetry(client, {
retries: config.retries,

@@ -240,7 +249,9 @@ retryCondition: config.retryCondition,

}
return (0, _axios["default"])(signedRequest);
return axios(signedRequest);
};
return awsSigV4Client;
};
var _default = exports["default"] = sigV4ClientFactory;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfYXhpb3MiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9heGlvc1JldHJ5IiwiX3NoYSIsIl9lbmNIZXgiLCJfaG1hY1NoYSIsIl91cmwiLCJfdXRpbHMiLCJzaWdWNENsaWVudEZhY3RvcnkiLCJuZXdDbGllbnQiLCJjb25maWciLCJBV1NfU0hBXzI1NiIsIkFXUzRfUkVRVUVTVCIsIkFXUzQiLCJYX0FNWl9EQVRFIiwiWF9BTVpfU0VDVVJJVFlfVE9LRU4iLCJ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UFjLEVBQUUxRSxNQUFNLENBQUMwRSxjQUFjO1FBQ3JDQyxVQUFVLEVBQVZBO01BQ0YsQ0FBQyxDQUFDO01BQ0YsT0FBT3lCLE1BQU0sQ0FBQzFFLE9BQU8sQ0FBQ3VFLGFBQWEsQ0FBQztJQUN0QztJQUVBLE9BQU9oSCxLQUFLLENBQUNnSCxhQUFhLENBQUM7RUFDN0IsQ0FBQztFQUVELE9BQU85QixjQUFjO0FBQ3ZCLENBQUM7QUFDRHFDLE1BQU0sQ0FBQ0MsT0FBTyxHQUFHO0VBQUUzRyxrQkFBa0IsRUFBbEJBO0FBQW1CLENBQUMifQ==
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _axios = _interopRequireDefault(require("axios"));
var _axiosRetry = _interopRequireDefault(require("axios-retry"));
var _utils = _interopRequireDefault(require("./utils"));
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.

@@ -27,2 +21,13 @@ *

*/
var _require = require('axios'),
axios = _require.axios;
var _require2 = require('axiosRetry'),
axiosRetry = _require2.axiosRetry;
var _require3 = require('./utils'),
utils = _require3.utils;
// import axios from 'axios';
// import axiosRetry from 'axios-retry';
// import utils from './utils';
var simpleHttpClientFactory = {};

@@ -44,8 +49,8 @@ simpleHttpClientFactory.newClient = function (config) {

var simpleHttpClient = {};
simpleHttpClient.endpoint = _utils["default"].assertDefined(config.endpoint, 'endpoint');
simpleHttpClient.endpoint = utils.assertDefined(config.endpoint, 'endpoint');
simpleHttpClient.makeRequest = function (request) {
var verb = _utils["default"].assertDefined(request.verb, 'verb');
var path = _utils["default"].assertDefined(request.path, 'path');
var queryParams = _utils["default"].copy(request.queryParams);
var timeout = _utils["default"].copy(request.timeout);
var verb = utils.assertDefined(request.verb, 'verb');
var path = utils.assertDefined(request.path, 'path');
var queryParams = utils.copy(request.queryParams);
var timeout = utils.copy(request.timeout);
if (queryParams === undefined) {

@@ -57,3 +62,3 @@ queryParams = {};

}
var headers = _objectSpread(_objectSpread({}, _utils["default"].copy(request.headers)), config.headers);
var headers = _objectSpread(_objectSpread({}, utils.copy(request.headers)), config.headers);

@@ -69,3 +74,3 @@ // If the user has not specified an override for Content type the use default

}
var body = _utils["default"].copy(request.body);
var body = utils.copy(request.body);
var url = config.endpoint + path;

@@ -85,3 +90,3 @@ var queryString = buildCanonicalQueryString(queryParams);

simpleHttpRequest.baseURL = url;
var client = _axios["default"].create(simpleHttpRequest);
var client = axios.create(simpleHttpRequest);

@@ -93,3 +98,3 @@ // Allow user configurable delay, or built-in exponential delay

if (config.retryDelay === 'exponential') {
retryDelay = _axiosRetry["default"].exponentialDelay;
retryDelay = axiosRetry.exponentialDelay;
} else if (typeof config.retryDelay === 'number') {

@@ -102,5 +107,5 @@ retryDelay = function retryDelay() {

}
(0, _axiosRetry["default"])(client, {
axiosRetry(client, {
retries: config.retries,
retryCondition: typeof config.retryCondition === 'function' ? config.retryCondition : _axiosRetry["default"].isNetworkOrIdempotentRequestError,
retryCondition: typeof config.retryCondition === 'function' ? config.retryCondition : axiosRetry.isNetworkOrIdempotentRequestError,
retryDelay: retryDelay

@@ -110,7 +115,10 @@ });

}
return (0, _axios["default"])(simpleHttpRequest);
return axios(simpleHttpRequest);
};
return simpleHttpClient;
};
var _default = exports["default"] = simpleHttpClientFactory;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfYXhpb3MiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9heGlvc1JldHJ5IiwiX3V0aWxzIiwib3duS2V5cyIsImUiLCJyIiwidCIsIk9iamVjdCIsImtleXMiLCJnZXRPd25Qcm9wZXJ0eVN5bWJvbHMiLCJvIiwiZmlsdGVyIiwiZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yIiwiZW51bWVyYWJsZSIsInB1c2giLCJhcHBseSIsIl9vYmplY3RTcHJlYWQiLCJhcmd1bWVudHMiLCJsZW5ndGgiLCJmb3JFYWNoIiwiX2RlZmluZVByb3BlcnR5MiIsImdldE93blByb3BlcnR5RGVzY3JpcHRvcnMiLCJkZWZpbmVQcm9wZXJ0aWVzIiwiZGVmaW5lUHJvcGVydHkiLCJzaW1wbGVIdHRwQ2xpZW50RmFjdG9yeSIsIm5ld0NsaWVudCIsImNvbmZpZyIsImJ1aWxkQ2Fub25pY2FsUXVlcnlTdHJpbmciLCJxdWVyeVBhcmFtcyIsImNhbm9uaWNhbFF1ZXJ5U3RyaW5nIiwicHJvcGVydHkiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJlbmNvZGVVUklDb21wb25lbnQiLCJzdWJzdHIiLC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FBQUMsSUFBQStCLFFBQUEsR0FBQUMsT0FBQSxjQUVhNUMsdUJBQXVCIn0=
module.exports = {
simpleHttpClientFactory: simpleHttpClientFactory,
"default": simpleHttpClientFactory
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVxdWlyZSIsInJlcXVpcmUiLCJheGlvcyIsIl9yZXF1aXJlMiIsImF4aW9zUmV0cnkiLCJfcmVxdWlyZTMiLCJ1dGlscyIsInNpbXBsZUh0dHBDbGllbnRGYWN0b3J5IiwibmV3Q2xpZW50IiwiY29uZmlnIiwiYnVpbGRDYW5vbmljYWxRdWVyeVN0cmluZyIsInF1ZXJ5UGFyYW1zIiwiT2JqZWN0Iiwia2V5cyIsImxlbmd0aCIsImNhbm9uaWNhbFF1ZXJ5U3RyaW5nIiwicHJvcGVydHkiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZXJ0eSIsImNhbGwiLCJlbmNvZGVVUklDb21wb25lbnQiLCJzdWJzdHIiLCJzaW1wbGVIdHRwQ2xpZW50IiwiZW5kcG9pbnQiLCJhc3NlcnREZWZpbmVkIiwibWFrZVJlcXVlc3QiLCJyZXF1ZXN0IiwidmVyYiIsInBhdGgiLCJjb3B5IiwidGltZW91dCIsInVuZGVmaW5lZCIsImhlYWRlcnMiLCJfb2JqZWN0U3ByZWFkIiwiZGVmYXVsdENvbnRlbnRUeXBlIiwiZGVmYXVsdEFjY2VwdFR5cGUiLCJib2R5IiwidXJsIiwicXVlcnlTdHJpbmciLCJzaW1wbGVIdHRwUmVxdWVzdCIsImRhdGEiLCJtZXRob2QiLCJyZXRyaWVzIiwiYmFzZVVSTCIsImNsaWVudCIsImNyZWF0ZSIsInJldHJ5RGVsYXkiLCJleHBvbmVudGlhbERlbGF5IiwicGFyc2VJbnQiLCJyZXRyeUNvbmRpdGlvbiIsImlzTmV0d29ya09ySWRlbXBvdGVudFJlcXVlc3RFcnJvciIsIm1vZHVsZSIsIm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ckMsTUFBTSxDQUFDcUMsVUFBVSxLQUFLLGFBQWEsRUFBRTtRQUN2Q0EsVUFBVSxHQUFHMUMsVUFBVSxDQUFDMkMsZ0JBQWdCO01BQzFDLENBQUMsTUFBTSxJQUFJLE9BQU90QyxNQUFNLENBQUNxQyxVQUFVLEtBQUssUUFBUSxFQUFFO1FBQ2hEQSxVQUFVLEdBQUcsU0FBQUEsV0FBQTtVQUFBLE9BQU1FLFFBQVEsQ0FBQ3ZDLE1BQU0sQ0FBQ3FDLFVBQVUsQ0FBQztRQUFBO01BQ2hELENBQUMsTUFBTSxJQUFJLE9BQU9yQyxNQUFNLENBQUNxQyxVQUFVLEtBQUssVUFBVSxFQUFFO1FBQ2xEQSxVQUFVLEdBQUdyQyxNQUFNLENBQUNxQyxVQUFVO01BQ2hDO01BRUExQyxVQUFVLENBQUN3QyxNQUFNLEVBQUU7UUFDakJGLE9BQU8sRUFBRWpDLE1BQU0sQ0FBQ2lDLE9BQU87UUFDdkJPLGNBQWMsRUFBRyxPQUFPeEMsTUFBTSxDQUFDd0MsY0FBYyxLQUFLLFVBQVUsR0FBSXhDLE1BQU0sQ0FBQ3dDLGNBQWMsR0FBRzdDLFVBQVUsQ0FBQzhDLGlDQUFpQztRQUNwSUosVUFBVSxFQUFWQTtNQUNGLENBQUMsQ0FBQztNQUNGLE9BQU9GLE1BQU0sQ0FBQ2xCLE9BQU8sQ0FBQ2EsaUJBQWlCLENBQUM7SUFDMUM7SUFDQSxPQUFPckMsS0FBSyxDQUFDcUMsaUJBQWlCLENBQUM7RUFDakMsQ0FBQztFQUVELE9BQU9qQixnQkFBZ0I7QUFDekIsQ0FBQztBQUNENkIsTUFBTSxDQUFDQyxPQUFPLEdBQUc7RUFBRTdDLHVCQUF1QixFQUF2QkEsdUJBQXVCO0VBQ3hDLFdBQVNBO0FBQXdCLENBQUMifQ==
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));

@@ -94,3 +90,6 @@ /*

};
var _default = exports["default"] = utils;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJ1dGlscyIsImFzc2VydERlZmluZWQiLCJvYmplY3QiLCJuYW1lIiwidW5kZWZpbmVkIiwiRXJyb3IiLCJjb25jYXQiLCJhc3NlcnRQYXJhbWV0ZXJzRGVmaW5lZCIsInBhcmFtcyIsImtleXMiLCJpZ25vcmUiLCJsZW5ndGgiLCJpIiwiY29udGFpbnMiLCJwYXJzZVBhcmFtZXRlcnNUb09iamVjdCIsImEiLCJvYmoiLCJjb3B5IiwiX3R5cGVvZjIiLCJCdWZmZXIiLCJyZXF1aXJlIiwiaXNCdWZmZXIiLCJmcm9tIiwiY29uc3RydWN0b3IiLCJhdHRyIiwiT2JqZWN0IiwicHJvdG90eXBlIiwiaGFzT3duUHJvcGVydHkiLCJjYWxsIiwibWVyZ2VJbnRvIiwiYmFzZU9iaiIsImFkZGl0aW9uYWxQcm9wcyIsIm1lcmdlZCIsIl9kZWZhdWx0IiwiZXhwb3J0cyJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvYXBpR2F0ZXdheUNvcmUvdXRpbHMuanMiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAyMDEwLTIwMTYgQW1hem9uLmNvbSwgSW5jLiBvciBpdHMgYWZmaWxpYXRlcy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpLlxuICogWW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogQSBjb3B5IG9mIHRoZSBMa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0UsT0FBTyxFQUFFTixJQUFJLENBQUMsRUFBRVEsTUFBTSxDQUFDUixJQUFJLENBQUMsR0FBR00sT0FBTyxDQUFDTixJQUFJLENBQUM7SUFDdkY7SUFDQSxJQUFJLElBQUksSUFBSU8sZUFBZSxJQUFJLFFBQVEsUUFBQWIsUUFBQSxhQUFXYSxlQUFlLEdBQUUsT0FBT0QsT0FBTztJQUNqRixLQUFLTixJQUFJLElBQUlPLGVBQWUsRUFBRTtNQUM1QixJQUFJTixNQUFNLENBQUNDLFNBQVMsQ0FBQ0MsY0FBYyxDQUFDQyxJQUFJLENBQUNHLGVBQWUsRUFBRVAsSUFBSSxDQUFDLEVBQUU7UUFDL0RRLE1BQU0sQ0FBQ1IsSUFBSSxDQUFDLEdBQUdPLGVBQWUsQ0FBQ1AsSUFBSSxDQUFDO01BQ3RDO0lBQ0Y7SUFDQSxPQUFPUSxNQUFNO0VBQ2Y7QUFDRixDQUFDO0FBQ0RDLE1BQU0sQ0FBQ0MsT0FBTyxHQUFHO0VBQUVsQyxLQUFLLEVBQUxBLEtBQUs7RUFDdEIsV0FBU0E7QUFBTSxDQUFDIn0=
{
"name": "@adastradev/aws-api-gateway-client",
"version": "1.0.8-beta.1701722287034",
"version": "1.0.8-beta.1701727358747",
"description": "A module for AWS API Gateway client",

@@ -5,0 +5,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc