diff --git a/dist/index.js b/dist/index.js index dbdb7a1..7a3b6a2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2205,19 +2205,6 @@ class HttpClientResponse { })); }); } - readBodyBuffer() { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { - const chunks = []; - this.message.on('data', (chunk) => { - chunks.push(chunk); - }); - this.message.on('end', () => { - resolve(Buffer.concat(chunks)); - }); - })); - }); - } } exports.HttpClientResponse = HttpClientResponse; function isHttps(requestUrl) { @@ -2722,13 +2709,7 @@ function getProxyUrl(reqUrl) { } })(); if (proxyVar) { - try { - return new URL(proxyVar); - } - catch (_a) { - if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) - return new URL(`http://${proxyVar}`); - } + return new URL(proxyVar); } else { return undefined; @@ -2739,10 +2720,6 @@ function checkBypass(reqUrl) { if (!reqUrl.hostname) { return false; } - const reqHost = reqUrl.hostname; - if (isLoopbackAddress(reqHost)) { - return true; - } const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; if (!noProxy) { return false; @@ -2768,24 +2745,13 @@ function checkBypass(reqUrl) { .split(',') .map(x => x.trim().toUpperCase()) .filter(x => x)) { - if (upperNoProxyItem === '*' || - upperReqHosts.some(x => x === upperNoProxyItem || - x.endsWith(`.${upperNoProxyItem}`) || - (upperNoProxyItem.startsWith('.') && - x.endsWith(`${upperNoProxyItem}`)))) { + if (upperReqHosts.some(x => x === upperNoProxyItem)) { return true; } } return false; } exports.checkBypass = checkBypass; -function isLoopbackAddress(host) { - const hostLower = host.toLowerCase(); - return (hostLower === 'localhost' || - hostLower.startsWith('127.') || - hostLower.startsWith('[::1]') || - hostLower.startsWith('[0:0:0:0:0:0:0:1]')); -} //# sourceMappingURL=proxy.js.map /***/ }), @@ -2890,31 +2856,6 @@ Object.defineProperty(apiLoader.services['acmpca'], '2017-08-22', { module.exports = AWS.ACMPCA; -/***/ }), - -/***/ 14578: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(73639); -var AWS = __nccwpck_require__(28437); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['alexaforbusiness'] = {}; -AWS.AlexaForBusiness = Service.defineService('alexaforbusiness', ['2017-11-09']); -Object.defineProperty(apiLoader.services['alexaforbusiness'], '2017-11-09', { - get: function get() { - var model = __nccwpck_require__(69786); - model.paginators = (__nccwpck_require__(21009)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.AlexaForBusiness; - - /***/ }), /***/ 26296: @@ -3048,7 +2989,6 @@ module.exports = { SageMaker: __nccwpck_require__(77657), Translate: __nccwpck_require__(72544), ResourceGroups: __nccwpck_require__(58756), - AlexaForBusiness: __nccwpck_require__(14578), Cloud9: __nccwpck_require__(85473), ServerlessApplicationRepository: __nccwpck_require__(62402), ServiceDiscovery: __nccwpck_require__(91569), @@ -3145,7 +3085,6 @@ module.exports = { IoTSiteWise: __nccwpck_require__(89690), Macie2: __nccwpck_require__(57330), CodeArtifact: __nccwpck_require__(91983), - Honeycode: __nccwpck_require__(38889), IVS: __nccwpck_require__(67701), Braket: __nccwpck_require__(35429), IdentityStore: __nccwpck_require__(60222), @@ -3242,7 +3181,6 @@ module.exports = { ResourceExplorer2: __nccwpck_require__(74071), Scheduler: __nccwpck_require__(94840), ChimeSDKVoice: __nccwpck_require__(349), - IoTRoboRunner: __nccwpck_require__(22163), SsmSap: __nccwpck_require__(44552), OAM: __nccwpck_require__(9319), ARCZonalShift: __nccwpck_require__(54280), @@ -3280,7 +3218,33 @@ module.exports = { BedrockRuntime: __nccwpck_require__(99177), DataZone: __nccwpck_require__(31763), LaunchWizard: __nccwpck_require__(71060), - TrustedAdvisor: __nccwpck_require__(4992) + TrustedAdvisor: __nccwpck_require__(4992), + InspectorScan: __nccwpck_require__(25467), + BCMDataExports: __nccwpck_require__(56703), + CostOptimizationHub: __nccwpck_require__(55443), + EKSAuth: __nccwpck_require__(66164), + FreeTier: __nccwpck_require__(11681), + Repostspace: __nccwpck_require__(21154), + WorkSpacesThinClient: __nccwpck_require__(22033), + B2bi: __nccwpck_require__(91065), + BedrockAgent: __nccwpck_require__(9025), + BedrockAgentRuntime: __nccwpck_require__(16946), + QBusiness: __nccwpck_require__(26842), + QConnect: __nccwpck_require__(39094), + CleanRoomsML: __nccwpck_require__(47594), + MarketplaceAgreement: __nccwpck_require__(50379), + MarketplaceDeployment: __nccwpck_require__(56811), + NetworkMonitor: __nccwpck_require__(77614), + SupplyChain: __nccwpck_require__(39674), + Artifact: __nccwpck_require__(63151), + Chatbot: __nccwpck_require__(14373), + TimestreamInfluxDB: __nccwpck_require__(13610), + CodeConnections: __nccwpck_require__(19123), + Deadline: __nccwpck_require__(29242), + ControlCatalog: __nccwpck_require__(87324), + Route53Profiles: __nccwpck_require__(13907), + MailManager: __nccwpck_require__(46253), + TaxSettings: __nccwpck_require__(44688) }; /***/ }), @@ -3797,6 +3761,31 @@ Object.defineProperty(apiLoader.services['arczonalshift'], '2022-10-30', { module.exports = AWS.ARCZonalShift; +/***/ }), + +/***/ 63151: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['artifact'] = {}; +AWS.Artifact = Service.defineService('artifact', ['2018-05-10']); +Object.defineProperty(apiLoader.services['artifact'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(76591); + model.paginators = (__nccwpck_require__(2961)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Artifact; + + /***/ }), /***/ 29434: @@ -3922,6 +3911,31 @@ Object.defineProperty(apiLoader.services['autoscalingplans'], '2018-01-06', { module.exports = AWS.AutoScalingPlans; +/***/ }), + +/***/ 91065: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['b2bi'] = {}; +AWS.B2bi = Service.defineService('b2bi', ['2022-06-23']); +Object.defineProperty(apiLoader.services['b2bi'], '2022-06-23', { + get: function get() { + var model = __nccwpck_require__(93012); + model.paginators = (__nccwpck_require__(13608)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.B2bi; + + /***/ }), /***/ 82455: @@ -4022,6 +4036,31 @@ Object.defineProperty(apiLoader.services['batch'], '2016-08-10', { module.exports = AWS.Batch; +/***/ }), + +/***/ 56703: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['bcmdataexports'] = {}; +AWS.BCMDataExports = Service.defineService('bcmdataexports', ['2023-11-26']); +Object.defineProperty(apiLoader.services['bcmdataexports'], '2023-11-26', { + get: function get() { + var model = __nccwpck_require__(81311); + model.paginators = (__nccwpck_require__(56228)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.BCMDataExports; + + /***/ }), /***/ 88808: @@ -4048,6 +4087,56 @@ Object.defineProperty(apiLoader.services['bedrock'], '2023-04-20', { module.exports = AWS.Bedrock; +/***/ }), + +/***/ 9025: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['bedrockagent'] = {}; +AWS.BedrockAgent = Service.defineService('bedrockagent', ['2023-06-05']); +Object.defineProperty(apiLoader.services['bedrockagent'], '2023-06-05', { + get: function get() { + var model = __nccwpck_require__(30755); + model.paginators = (__nccwpck_require__(7041)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.BedrockAgent; + + +/***/ }), + +/***/ 16946: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['bedrockagentruntime'] = {}; +AWS.BedrockAgentRuntime = Service.defineService('bedrockagentruntime', ['2023-07-26']); +Object.defineProperty(apiLoader.services['bedrockagentruntime'], '2023-07-26', { + get: function get() { + var model = __nccwpck_require__(65069); + model.paginators = (__nccwpck_require__(79273)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.BedrockAgentRuntime; + + /***/ }), /***/ 99177: @@ -4064,6 +4153,7 @@ Object.defineProperty(apiLoader.services['bedrockruntime'], '2023-09-30', { get: function get() { var model = __nccwpck_require__(38801); model.paginators = (__nccwpck_require__(89474)/* .pagination */ .o); + model.waiters = (__nccwpck_require__(34859)/* .waiters */ .V); return model; }, enumerable: true, @@ -4149,6 +4239,31 @@ Object.defineProperty(apiLoader.services['budgets'], '2016-10-20', { module.exports = AWS.Budgets; +/***/ }), + +/***/ 14373: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['chatbot'] = {}; +AWS.Chatbot = Service.defineService('chatbot', ['2017-10-11']); +Object.defineProperty(apiLoader.services['chatbot'], '2017-10-11', { + get: function get() { + var model = __nccwpck_require__(39802); + model.paginators = (__nccwpck_require__(81040)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Chatbot; + + /***/ }), /***/ 84646: @@ -4325,6 +4440,31 @@ Object.defineProperty(apiLoader.services['cleanrooms'], '2022-02-17', { module.exports = AWS.CleanRooms; +/***/ }), + +/***/ 47594: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['cleanroomsml'] = {}; +AWS.CleanRoomsML = Service.defineService('cleanroomsml', ['2023-09-06']); +Object.defineProperty(apiLoader.services['cleanroomsml'], '2023-09-06', { + get: function get() { + var model = __nccwpck_require__(1867); + model.paginators = (__nccwpck_require__(89767)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.CleanRoomsML; + + /***/ }), /***/ 85473: @@ -4859,6 +4999,31 @@ Object.defineProperty(apiLoader.services['codecommit'], '2015-04-13', { module.exports = AWS.CodeCommit; +/***/ }), + +/***/ 19123: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['codeconnections'] = {}; +AWS.CodeConnections = Service.defineService('codeconnections', ['2023-12-01']); +Object.defineProperty(apiLoader.services['codeconnections'], '2023-12-01', { + get: function get() { + var model = __nccwpck_require__(21781); + model.paginators = (__nccwpck_require__(96720)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.CodeConnections; + + /***/ }), /***/ 54599: @@ -5361,6 +5526,31 @@ Object.defineProperty(apiLoader.services['connectparticipant'], '2018-09-07', { module.exports = AWS.ConnectParticipant; +/***/ }), + +/***/ 87324: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['controlcatalog'] = {}; +AWS.ControlCatalog = Service.defineService('controlcatalog', ['2018-05-10']); +Object.defineProperty(apiLoader.services['controlcatalog'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(65015); + model.paginators = (__nccwpck_require__(31095)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.ControlCatalog; + + /***/ }), /***/ 77574: @@ -5411,6 +5601,31 @@ Object.defineProperty(apiLoader.services['costexplorer'], '2017-10-25', { module.exports = AWS.CostExplorer; +/***/ }), + +/***/ 55443: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['costoptimizationhub'] = {}; +AWS.CostOptimizationHub = Service.defineService('costoptimizationhub', ['2022-07-26']); +Object.defineProperty(apiLoader.services['costoptimizationhub'], '2022-07-26', { + get: function get() { + var model = __nccwpck_require__(56073); + model.paginators = (__nccwpck_require__(70563)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.CostOptimizationHub; + + /***/ }), /***/ 5026: @@ -5612,6 +5827,32 @@ Object.defineProperty(apiLoader.services['dax'], '2017-04-19', { module.exports = AWS.DAX; +/***/ }), + +/***/ 29242: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['deadline'] = {}; +AWS.Deadline = Service.defineService('deadline', ['2023-10-12']); +Object.defineProperty(apiLoader.services['deadline'], '2023-10-12', { + get: function get() { + var model = __nccwpck_require__(27799); + model.paginators = (__nccwpck_require__(60855)/* .pagination */ .o); + model.waiters = (__nccwpck_require__(54096)/* .waiters */ .V); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Deadline; + + /***/ }), /***/ 60674: @@ -6157,6 +6398,32 @@ Object.defineProperty(apiLoader.services['eks'], '2017-11-01', { module.exports = AWS.EKS; +/***/ }), + +/***/ 66164: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['eksauth'] = {}; +AWS.EKSAuth = Service.defineService('eksauth', ['2023-11-26']); +Object.defineProperty(apiLoader.services['eksauth'], '2023-11-26', { + get: function get() { + var model = __nccwpck_require__(92414); + model.paginators = (__nccwpck_require__(8222)/* .pagination */ .o); + model.waiters = (__nccwpck_require__(33480)/* .waiters */ .V); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.EKSAuth; + + /***/ }), /***/ 81065: @@ -6689,6 +6956,31 @@ Object.defineProperty(apiLoader.services['frauddetector'], '2019-11-15', { module.exports = AWS.FraudDetector; +/***/ }), + +/***/ 11681: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['freetier'] = {}; +AWS.FreeTier = Service.defineService('freetier', ['2023-09-07']); +Object.defineProperty(apiLoader.services['freetier'], '2023-09-07', { + get: function get() { + var model = __nccwpck_require__(50797); + model.paginators = (__nccwpck_require__(52266)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.FreeTier; + + /***/ }), /***/ 60642: @@ -6991,31 +7283,6 @@ Object.defineProperty(apiLoader.services['healthlake'], '2017-07-01', { module.exports = AWS.HealthLake; -/***/ }), - -/***/ 38889: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(73639); -var AWS = __nccwpck_require__(28437); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['honeycode'] = {}; -AWS.Honeycode = Service.defineService('honeycode', ['2020-03-01']); -Object.defineProperty(apiLoader.services['honeycode'], '2020-03-01', { - get: function get() { - var model = __nccwpck_require__(27577); - model.paginators = (__nccwpck_require__(12243)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.Honeycode; - - /***/ }), /***/ 50058: @@ -7167,6 +7434,31 @@ Object.defineProperty(apiLoader.services['inspector2'], '2020-06-08', { module.exports = AWS.Inspector2; +/***/ }), + +/***/ 25467: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['inspectorscan'] = {}; +AWS.InspectorScan = Service.defineService('inspectorscan', ['2023-08-08']); +Object.defineProperty(apiLoader.services['inspectorscan'], '2023-08-08', { + get: function get() { + var model = __nccwpck_require__(17875); + model.paginators = (__nccwpck_require__(35037)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.InspectorScan; + + /***/ }), /***/ 84099: @@ -7469,31 +7761,6 @@ Object.defineProperty(apiLoader.services['iotjobsdataplane'], '2017-09-29', { module.exports = AWS.IoTJobsDataPlane; -/***/ }), - -/***/ 22163: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -__nccwpck_require__(73639); -var AWS = __nccwpck_require__(28437); -var Service = AWS.Service; -var apiLoader = AWS.apiLoader; - -apiLoader.services['iotroborunner'] = {}; -AWS.IoTRoboRunner = Service.defineService('iotroborunner', ['2018-05-10']); -Object.defineProperty(apiLoader.services['iotroborunner'], '2018-05-10', { - get: function get() { - var model = __nccwpck_require__(11483); - model.paginators = (__nccwpck_require__(82393)/* .pagination */ .o); - return model; - }, - enumerable: true, - configurable: true -}); - -module.exports = AWS.IoTRoboRunner; - - /***/ }), /***/ 98562: @@ -8513,6 +8780,31 @@ Object.defineProperty(apiLoader.services['macie2'], '2020-01-01', { module.exports = AWS.Macie2; +/***/ }), + +/***/ 46253: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['mailmanager'] = {}; +AWS.MailManager = Service.defineService('mailmanager', ['2023-10-17']); +Object.defineProperty(apiLoader.services['mailmanager'], '2023-10-17', { + get: function get() { + var model = __nccwpck_require__(69303); + model.paginators = (__nccwpck_require__(14795)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.MailManager; + + /***/ }), /***/ 85143: @@ -8564,6 +8856,31 @@ Object.defineProperty(apiLoader.services['managedblockchainquery'], '2023-05-04' module.exports = AWS.ManagedBlockchainQuery; +/***/ }), + +/***/ 50379: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['marketplaceagreement'] = {}; +AWS.MarketplaceAgreement = Service.defineService('marketplaceagreement', ['2020-03-01']); +Object.defineProperty(apiLoader.services['marketplaceagreement'], '2020-03-01', { + get: function get() { + var model = __nccwpck_require__(35188); + model.paginators = (__nccwpck_require__(99220)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.MarketplaceAgreement; + + /***/ }), /***/ 2609: @@ -8614,6 +8931,31 @@ Object.defineProperty(apiLoader.services['marketplacecommerceanalytics'], '2015- module.exports = AWS.MarketplaceCommerceAnalytics; +/***/ }), + +/***/ 56811: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['marketplacedeployment'] = {}; +AWS.MarketplaceDeployment = Service.defineService('marketplacedeployment', ['2023-01-25']); +Object.defineProperty(apiLoader.services['marketplacedeployment'], '2023-01-25', { + get: function get() { + var model = __nccwpck_require__(9966); + model.paginators = (__nccwpck_require__(31372)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.MarketplaceDeployment; + + /***/ }), /***/ 53707: @@ -9320,6 +9662,32 @@ Object.defineProperty(apiLoader.services['networkmanager'], '2019-07-05', { module.exports = AWS.NetworkManager; +/***/ }), + +/***/ 77614: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['networkmonitor'] = {}; +AWS.NetworkMonitor = Service.defineService('networkmonitor', ['2023-08-01']); +Object.defineProperty(apiLoader.services['networkmonitor'], '2023-08-01', { + get: function get() { + var model = __nccwpck_require__(37278); + model.paginators = (__nccwpck_require__(76488)/* .pagination */ .o); + model.waiters = (__nccwpck_require__(61551)/* .waiters */ .V); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.NetworkMonitor; + + /***/ }), /***/ 89428: @@ -9615,6 +9983,7 @@ Object.defineProperty(apiLoader.services['paymentcryptography'], '2021-09-14', { get: function get() { var model = __nccwpck_require__(86072); model.paginators = (__nccwpck_require__(17819)/* .pagination */ .o); + model.waiters = (__nccwpck_require__(60238)/* .waiters */ .V); return model; }, enumerable: true, @@ -9889,6 +10258,7 @@ Object.defineProperty(apiLoader.services['pipes'], '2015-10-07', { get: function get() { var model = __nccwpck_require__(40616); model.paginators = (__nccwpck_require__(17710)/* .pagination */ .o); + model.waiters = (__nccwpck_require__(95823)/* .waiters */ .V); return model; }, enumerable: true, @@ -10001,6 +10371,57 @@ Object.defineProperty(apiLoader.services['proton'], '2020-07-20', { module.exports = AWS.Proton; +/***/ }), + +/***/ 26842: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['qbusiness'] = {}; +AWS.QBusiness = Service.defineService('qbusiness', ['2023-11-27']); +Object.defineProperty(apiLoader.services['qbusiness'], '2023-11-27', { + get: function get() { + var model = __nccwpck_require__(12388); + model.paginators = (__nccwpck_require__(51051)/* .pagination */ .o); + model.waiters = (__nccwpck_require__(81994)/* .waiters */ .V); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.QBusiness; + + +/***/ }), + +/***/ 39094: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['qconnect'] = {}; +AWS.QConnect = Service.defineService('qconnect', ['2020-10-19']); +Object.defineProperty(apiLoader.services['qconnect'], '2020-10-19', { + get: function get() { + var model = __nccwpck_require__(72266); + model.paginators = (__nccwpck_require__(95945)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.QConnect; + + /***/ }), /***/ 71266: @@ -10318,6 +10739,31 @@ Object.defineProperty(apiLoader.services['rekognition'], '2016-06-27', { module.exports = AWS.Rekognition; +/***/ }), + +/***/ 21154: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['repostspace'] = {}; +AWS.Repostspace = Service.defineService('repostspace', ['2022-05-13']); +Object.defineProperty(apiLoader.services['repostspace'], '2022-05-13', { + get: function get() { + var model = __nccwpck_require__(59766); + model.paginators = (__nccwpck_require__(10997)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Repostspace; + + /***/ }), /***/ 21173: @@ -10520,6 +10966,31 @@ Object.defineProperty(apiLoader.services['route53domains'], '2014-05-15', { module.exports = AWS.Route53Domains; +/***/ }), + +/***/ 13907: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['route53profiles'] = {}; +AWS.Route53Profiles = Service.defineService('route53profiles', ['2018-05-10']); +Object.defineProperty(apiLoader.services['route53profiles'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(38685); + model.paginators = (__nccwpck_require__(18297)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.Route53Profiles; + + /***/ }), /***/ 35738: @@ -11682,6 +12153,31 @@ Object.defineProperty(apiLoader.services['sts'], '2011-06-15', { module.exports = AWS.STS; +/***/ }), + +/***/ 39674: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['supplychain'] = {}; +AWS.SupplyChain = Service.defineService('supplychain', ['2024-01-01']); +Object.defineProperty(apiLoader.services['supplychain'], '2024-01-01', { + get: function get() { + var model = __nccwpck_require__(78323); + model.paginators = (__nccwpck_require__(25916)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.SupplyChain; + + /***/ }), /***/ 1099: @@ -11783,6 +12279,31 @@ Object.defineProperty(apiLoader.services['synthetics'], '2017-10-11', { module.exports = AWS.Synthetics; +/***/ }), + +/***/ 44688: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['taxsettings'] = {}; +AWS.TaxSettings = Service.defineService('taxsettings', ['2018-05-10']); +Object.defineProperty(apiLoader.services['taxsettings'], '2018-05-10', { + get: function get() { + var model = __nccwpck_require__(82948); + model.paginators = (__nccwpck_require__(60890)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.TaxSettings; + + /***/ }), /***/ 58523: @@ -11808,6 +12329,31 @@ Object.defineProperty(apiLoader.services['textract'], '2018-06-27', { module.exports = AWS.Textract; +/***/ }), + +/***/ 13610: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['timestreaminfluxdb'] = {}; +AWS.TimestreamInfluxDB = Service.defineService('timestreaminfluxdb', ['2023-01-27']); +Object.defineProperty(apiLoader.services['timestreaminfluxdb'], '2023-01-27', { + get: function get() { + var model = __nccwpck_require__(63987); + model.paginators = (__nccwpck_require__(25823)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.TimestreamInfluxDB; + + /***/ }), /***/ 24529: @@ -12310,6 +12856,31 @@ Object.defineProperty(apiLoader.services['workspaces'], '2015-04-08', { module.exports = AWS.WorkSpaces; +/***/ }), + +/***/ 22033: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +__nccwpck_require__(73639); +var AWS = __nccwpck_require__(28437); +var Service = AWS.Service; +var apiLoader = AWS.apiLoader; + +apiLoader.services['workspacesthinclient'] = {}; +AWS.WorkSpacesThinClient = Service.defineService('workspacesthinclient', ['2023-08-22']); +Object.defineProperty(apiLoader.services['workspacesthinclient'], '2023-08-22', { + get: function get() { + var model = __nccwpck_require__(24229); + model.paginators = (__nccwpck_require__(52084)/* .pagination */ .o); + return model; + }, + enumerable: true, + configurable: true +}); + +module.exports = AWS.WorkSpacesThinClient; + + /***/ }), /***/ 94124: @@ -13436,7 +14007,7 @@ AWS.util.update(AWS, { /** * @constant */ - VERSION: '2.1499.0', + VERSION: '2.1636.0', /** * @api private @@ -15122,13 +15693,16 @@ AWS.ProcessCredentials = AWS.util.inherit(AWS.Credentials, { /***/ 88764: /***/ ((__unused_webpack_module, __unused_webpack_exports, __nccwpck_require__) => { +var fs = __nccwpck_require__(57147); + var AWS = __nccwpck_require__(28437), ENV_RELATIVE_URI = 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI', ENV_FULL_URI = 'AWS_CONTAINER_CREDENTIALS_FULL_URI', ENV_AUTH_TOKEN = 'AWS_CONTAINER_AUTHORIZATION_TOKEN', + ENV_AUTH_TOKEN_FILE = 'AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE', FULL_URI_UNRESTRICTED_PROTOCOLS = ['https:'], FULL_URI_ALLOWED_PROTOCOLS = ['http:', 'https:'], - FULL_URI_ALLOWED_HOSTNAMES = ['localhost', '127.0.0.1'], + FULL_URI_ALLOWED_HOSTNAMES = ['localhost', '127.0.0.1', '169.254.170.23'], RELATIVE_URI_HOST = '169.254.170.2'; /** @@ -15237,7 +15811,16 @@ AWS.RemoteCredentials = AWS.util.inherit(AWS.Credentials, { * @api private */ getECSAuthToken: function getECSAuthToken() { - if (process && process.env && process.env[ENV_FULL_URI]) { + if (process && process.env && (process.env[ENV_FULL_URI] || process.env[ENV_AUTH_TOKEN_FILE])) { + if (!process.env[ENV_AUTH_TOKEN] && process.env[ENV_AUTH_TOKEN_FILE]) { + try { + var data = fs.readFileSync(process.env[ENV_AUTH_TOKEN_FILE]).toString(); + return data; + } catch (error) { + console.error('Error reading token file:', error); + throw error; // Re-throw the error to propagate it + } + } return process.env[ENV_AUTH_TOKEN]; } }, @@ -15907,7 +16490,7 @@ AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, { var ssoTokenProvider = new AWS.SSOTokenProvider({ profile: profileName, }); - ssoTokenProvider.load(function (err) { + ssoTokenProvider.get(function (err) { if (err) { return callback(err); } @@ -19242,6 +19825,7 @@ AWS.EventListeners = { this.httpRequest.endpoint = new AWS.Endpoint(resp.httpResponse.headers['location']); this.httpRequest.headers['Host'] = this.httpRequest.endpoint.host; + this.httpRequest.path = this.httpRequest.endpoint.path; resp.error.redirect = true; resp.error.retryable = true; } @@ -19990,12 +20574,17 @@ function translateStructure(structure, shape) { var struct = {}; var shapeMembers = shape.members; + var isAwsQueryCompatible = shape.api && shape.api.awsQueryCompatible; util.each(shapeMembers, function(name, memberShape) { var locationName = memberShape.isLocationName ? memberShape.name : name; if (Object.prototype.hasOwnProperty.call(structure, locationName)) { var value = structure[locationName]; var result = translate(value, memberShape); if (result !== undefined) struct[name] = result; + } else if (isAwsQueryCompatible && memberShape.defaultValue) { + if (memberShape.type === 'list') { + struct[name] = typeof memberShape.defaultValue === 'function' ? memberShape.defaultValue() : memberShape.defaultValue; + } } }); return struct; @@ -20041,9 +20630,10 @@ module.exports = JsonParser; /***/ ((module) => { var warning = [ - 'We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.\n', + 'The AWS SDK for JavaScript (v2) will enter maintenance mode', + 'on September 8, 2024 and reach end-of-support on September 8, 2025.\n', 'Please migrate your code to use AWS SDK for JavaScript (v3).', - 'For more information, check the migration guide at https://a.co/7PzMCcy' + 'For more information, check blog post at https://a.co/cUPnyil' ].join('\n'); module.exports = { @@ -20216,9 +20806,8 @@ AWS.MetadataService = inherit({ loadCredentialsCallbacks: [], /** - * Fetches metadata token used for getting credentials + * Fetches metadata token used for authenticating against the instance metadata service. * - * @api private * @callback callback function(err, token) * Called when token is loaded from the resource */ @@ -22299,6 +22888,7 @@ module.exports = { /***/ 5883: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +var AWS = __nccwpck_require__(28437); var util = __nccwpck_require__(77985); var Rest = __nccwpck_require__(98200); var Json = __nccwpck_require__(30083); @@ -22376,7 +22966,7 @@ function extractData(resp) { var body = resp.httpResponse.body; if (payloadMember.isEventStream) { parser = new JsonParser(); - resp.data[payload] = util.createEventStream( + resp.data[rules.payload] = util.createEventStream( AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body, parser, payloadMember @@ -22792,7 +23382,9 @@ function serializeList(name, list, rules, fn) { var memberRules = rules.member || {}; if (list.length === 0) { - fn.call(this, name, null); + if (rules.api.protocol !== 'ec2') { + fn.call(this, name, null); + } return; } @@ -26457,6 +27049,9 @@ AWS.util.update(AWS.CloudSearchDomain.prototype, { */ convertGetToPost: function(request) { var httpRequest = request.httpRequest; + if (httpRequest.method === 'POST') { + return; + } // convert queries to POST to avoid length restrictions var path = httpRequest.path.split('?'); httpRequest.method = 'POST'; @@ -27271,6 +27866,7 @@ AWS.util.update(AWS.S3.prototype, { * @api private */ setupRequestListeners: function setupRequestListeners(request) { + request.addListener('validateResponse', this.setExpiresString); var prependListener = true; request.addListener('validate', this.validateScheme); request.addListener('validate', this.validateBucketName, prependListener); @@ -27430,7 +28026,7 @@ AWS.util.update(AWS.S3.prototype, { req.httpRequest.endpoint.hostname.indexOf('s3.amazonaws.com') >= 0 ) { var insertPoint = config.endpoint.indexOf('.amazonaws.com'); - regionalEndpoint = config.endpoint.substring(0, insertPoint) + + var regionalEndpoint = config.endpoint.substring(0, insertPoint) + '.us-east-1' + config.endpoint.substring(insertPoint); req.httpRequest.updateEndpoint(regionalEndpoint); } @@ -28436,6 +29032,30 @@ AWS.util.update(AWS.S3.prototype, { var uploader = new AWS.S3.ManagedUpload(options); if (typeof callback === 'function') uploader.send(callback); return uploader; + }, + + /** + * @api private + */ + setExpiresString: function setExpiresString(response) { + // Check if response contains Expires value, and populate ExpiresString. + if (response && response.httpResponse && response.httpResponse.headers) { + if ('expires' in response.httpResponse.headers) { + response.httpResponse.headers.expiresstring = response.httpResponse.headers.expires; + } + } + + // Check if value in Expires is not a Date using parseTimestamp. + try { + if (response && response.httpResponse && response.httpResponse.headers) { + if ('expires' in response.httpResponse.headers) { + AWS.util.date.parseTimestamp(response.httpResponse.headers.expires); + } + } + } catch (e) { + console.log('AWS SDK', '(warning)', e); + delete response.httpResponse.headers.expires; + } } }); @@ -34328,3018 +34948,3030 @@ exports.LRUCache = LRUCache; /***/ }), -/***/ 74294: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -module.exports = __nccwpck_require__(54219); - - -/***/ }), - -/***/ 54219: +/***/ 72043: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; +;(function (sax) { // wrapper for non-node envs + sax.parser = function (strict, opt) { return new SAXParser(strict, opt) } + sax.SAXParser = SAXParser + sax.SAXStream = SAXStream + sax.createStream = createStream + // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns. + // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)), + // since that's the earliest that a buffer overrun could occur. This way, checks are + // as rare as required, but as often as necessary to ensure never crossing this bound. + // Furthermore, buffers are only tested at most once per write(), so passing a very + // large string into write() might have undesirable effects, but this is manageable by + // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme + // edge case, result in creating at most one complete copy of the string passed in. + // Set to Infinity to have unlimited buffers. + sax.MAX_BUFFER_LENGTH = 64 * 1024 -var net = __nccwpck_require__(41808); -var tls = __nccwpck_require__(24404); -var http = __nccwpck_require__(13685); -var https = __nccwpck_require__(95687); -var events = __nccwpck_require__(82361); -var assert = __nccwpck_require__(39491); -var util = __nccwpck_require__(73837); + var buffers = [ + 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype', + 'procInstName', 'procInstBody', 'entity', 'attribName', + 'attribValue', 'cdata', 'script' + ] + sax.EVENTS = [ + 'text', + 'processinginstruction', + 'sgmldeclaration', + 'doctype', + 'comment', + 'opentagstart', + 'attribute', + 'opentag', + 'closetag', + 'opencdata', + 'cdata', + 'closecdata', + 'error', + 'end', + 'ready', + 'script', + 'opennamespace', + 'closenamespace' + ] -exports.httpOverHttp = httpOverHttp; -exports.httpsOverHttp = httpsOverHttp; -exports.httpOverHttps = httpOverHttps; -exports.httpsOverHttps = httpsOverHttps; + function SAXParser (strict, opt) { + if (!(this instanceof SAXParser)) { + return new SAXParser(strict, opt) + } + var parser = this + clearBuffers(parser) + parser.q = parser.c = '' + parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH + parser.opt = opt || {} + parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags + parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase' + parser.tags = [] + parser.closed = parser.closedRoot = parser.sawRoot = false + parser.tag = parser.error = null + parser.strict = !!strict + parser.noscript = !!(strict || parser.opt.noscript) + parser.state = S.BEGIN + parser.strictEntities = parser.opt.strictEntities + parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES) + parser.attribList = [] -function httpOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - return agent; -} + // namespaces form a prototype chain. + // it always points at the current tag, + // which protos to its parent tag. + if (parser.opt.xmlns) { + parser.ns = Object.create(rootNS) + } -function httpsOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} + // mostly just for error reporting + parser.trackPosition = parser.opt.position !== false + if (parser.trackPosition) { + parser.position = parser.line = parser.column = 0 + } + emit(parser, 'onready') + } -function httpOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - return agent; -} + if (!Object.create) { + Object.create = function (o) { + function F () {} + F.prototype = o + var newf = new F() + return newf + } + } -function httpsOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} + if (!Object.keys) { + Object.keys = function (o) { + var a = [] + for (var i in o) if (o.hasOwnProperty(i)) a.push(i) + return a + } + } + function checkBufferLength (parser) { + var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10) + var maxActual = 0 + for (var i = 0, l = buffers.length; i < l; i++) { + var len = parser[buffers[i]].length + if (len > maxAllowed) { + // Text/cdata nodes can get big, and since they're buffered, + // we can get here under normal conditions. + // Avoid issues by emitting the text node now, + // so at least it won't get any bigger. + switch (buffers[i]) { + case 'textNode': + closeText(parser) + break -function TunnelingAgent(options) { - var self = this; - self.options = options || {}; - self.proxyOptions = self.options.proxy || {}; - self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; - self.requests = []; - self.sockets = []; + case 'cdata': + emitNode(parser, 'oncdata', parser.cdata) + parser.cdata = '' + break - self.on('free', function onFree(socket, host, port, localAddress) { - var options = toOptions(host, port, localAddress); - for (var i = 0, len = self.requests.length; i < len; ++i) { - var pending = self.requests[i]; - if (pending.host === options.host && pending.port === options.port) { - // Detect the request to connect same origin server, - // reuse the connection. - self.requests.splice(i, 1); - pending.request.onSocket(socket); - return; + case 'script': + emitNode(parser, 'onscript', parser.script) + parser.script = '' + break + + default: + error(parser, 'Max buffer length exceeded: ' + buffers[i]) + } } + maxActual = Math.max(maxActual, len) } - socket.destroy(); - self.removeSocket(socket); - }); -} -util.inherits(TunnelingAgent, events.EventEmitter); - -TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { - var self = this; - var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); - - if (self.sockets.length >= this.maxSockets) { - // We are over limit so we'll add it to the queue. - self.requests.push(options); - return; + // schedule the next check for the earliest possible buffer overrun. + var m = sax.MAX_BUFFER_LENGTH - maxActual + parser.bufferCheckPosition = m + parser.position } - // If we are under maxSockets create a new one. - self.createSocket(options, function(socket) { - socket.on('free', onFree); - socket.on('close', onCloseOrRemove); - socket.on('agentRemove', onCloseOrRemove); - req.onSocket(socket); - - function onFree() { - self.emit('free', socket, options); + function clearBuffers (parser) { + for (var i = 0, l = buffers.length; i < l; i++) { + parser[buffers[i]] = '' } + } - function onCloseOrRemove(err) { - self.removeSocket(socket); - socket.removeListener('free', onFree); - socket.removeListener('close', onCloseOrRemove); - socket.removeListener('agentRemove', onCloseOrRemove); + function flushBuffers (parser) { + closeText(parser) + if (parser.cdata !== '') { + emitNode(parser, 'oncdata', parser.cdata) + parser.cdata = '' } - }); -}; - -TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self = this; - var placeholder = {}; - self.sockets.push(placeholder); - - var connectOptions = mergeOptions({}, self.proxyOptions, { - method: 'CONNECT', - path: options.host + ':' + options.port, - agent: false, - headers: { - host: options.host + ':' + options.port + if (parser.script !== '') { + emitNode(parser, 'onscript', parser.script) + parser.script = '' } - }); - if (options.localAddress) { - connectOptions.localAddress = options.localAddress; } - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {}; - connectOptions.headers['Proxy-Authorization'] = 'Basic ' + - new Buffer(connectOptions.proxyAuth).toString('base64'); - } - - debug('making CONNECT request'); - var connectReq = self.request(connectOptions); - connectReq.useChunkedEncodingByDefault = false; // for v0.6 - connectReq.once('response', onResponse); // for v0.6 - connectReq.once('upgrade', onUpgrade); // for v0.6 - connectReq.once('connect', onConnect); // for v0.7 or later - connectReq.once('error', onError); - connectReq.end(); - function onResponse(res) { - // Very hacky. This is necessary to avoid http-parser leaks. - res.upgrade = true; + SAXParser.prototype = { + end: function () { end(this) }, + write: write, + resume: function () { this.error = null; return this }, + close: function () { return this.write(null) }, + flush: function () { flushBuffers(this) } } - function onUpgrade(res, socket, head) { - // Hacky. - process.nextTick(function() { - onConnect(res, socket, head); - }); + var Stream + try { + Stream = (__nccwpck_require__(12781).Stream) + } catch (ex) { + Stream = function () {} } - function onConnect(res, socket, head) { - connectReq.removeAllListeners(); - socket.removeAllListeners(); + var streamWraps = sax.EVENTS.filter(function (ev) { + return ev !== 'error' && ev !== 'end' + }) - if (res.statusCode !== 200) { - debug('tunneling socket could not be established, statusCode=%d', - res.statusCode); - socket.destroy(); - var error = new Error('tunneling socket could not be established, ' + - 'statusCode=' + res.statusCode); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - if (head.length > 0) { - debug('got illegal response body from proxy'); - socket.destroy(); - var error = new Error('got illegal response body from proxy'); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - debug('tunneling connection has established'); - self.sockets[self.sockets.indexOf(placeholder)] = socket; - return cb(socket); + function createStream (strict, opt) { + return new SAXStream(strict, opt) } - function onError(cause) { - connectReq.removeAllListeners(); + function SAXStream (strict, opt) { + if (!(this instanceof SAXStream)) { + return new SAXStream(strict, opt) + } - debug('tunneling socket could not be established, cause=%s\n', - cause.message, cause.stack); - var error = new Error('tunneling socket could not be established, ' + - 'cause=' + cause.message); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - } -}; + Stream.apply(this) -TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket) - if (pos === -1) { - return; - } - this.sockets.splice(pos, 1); + this._parser = new SAXParser(strict, opt) + this.writable = true + this.readable = true - var pending = this.requests.shift(); - if (pending) { - // If we have pending requests and a socket gets closed a new one - // needs to be created to take over in the pool for the one that closed. - this.createSocket(pending, function(socket) { - pending.request.onSocket(socket); - }); - } -}; + var me = this -function createSecureSocket(options, cb) { - var self = this; - TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { - var hostHeader = options.request.getHeader('host'); - var tlsOptions = mergeOptions({}, self.options, { - socket: socket, - servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host - }); + this._parser.onend = function () { + me.emit('end') + } - // 0 is dummy port for v0.6 - var secureSocket = tls.connect(0, tlsOptions); - self.sockets[self.sockets.indexOf(socket)] = secureSocket; - cb(secureSocket); - }); -} + this._parser.onerror = function (er) { + me.emit('error', er) + + // if didn't throw, then means error was handled. + // go ahead and clear error, so we can write again. + me._parser.error = null + } + this._decoder = null -function toOptions(host, port, localAddress) { - if (typeof host === 'string') { // since v0.10 - return { - host: host, - port: port, - localAddress: localAddress - }; + streamWraps.forEach(function (ev) { + Object.defineProperty(me, 'on' + ev, { + get: function () { + return me._parser['on' + ev] + }, + set: function (h) { + if (!h) { + me.removeAllListeners(ev) + me._parser['on' + ev] = h + return h + } + me.on(ev, h) + }, + enumerable: true, + configurable: false + }) + }) } - return host; // for v0.11 or later -} -function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i]; - if (typeof overrides === 'object') { - var keys = Object.keys(overrides); - for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { - var k = keys[j]; - if (overrides[k] !== undefined) { - target[k] = overrides[k]; - } + SAXStream.prototype = Object.create(Stream.prototype, { + constructor: { + value: SAXStream + } + }) + + SAXStream.prototype.write = function (data) { + if (typeof Buffer === 'function' && + typeof Buffer.isBuffer === 'function' && + Buffer.isBuffer(data)) { + if (!this._decoder) { + var SD = (__nccwpck_require__(71576).StringDecoder) + this._decoder = new SD('utf8') } + data = this._decoder.write(data) } + + this._parser.write(data.toString()) + this.emit('data', data) + return true } - return target; -} + SAXStream.prototype.end = function (chunk) { + if (chunk && chunk.length) { + this.write(chunk) + } + this._parser.end() + return true + } -var debug; -if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments); - if (typeof args[0] === 'string') { - args[0] = 'TUNNEL: ' + args[0]; - } else { - args.unshift('TUNNEL:'); + SAXStream.prototype.on = function (ev, handler) { + var me = this + if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) { + me._parser['on' + ev] = function () { + var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments) + args.splice(0, 0, ev) + me.emit.apply(me, args) + } } - console.error.apply(console, args); + + return Stream.prototype.on.call(me, ev, handler) } -} else { - debug = function() {}; -} -exports.debug = debug; // for test + // character classes and tokens + var whitespace = '\r\n\t ' -/***/ }), + // this really needs to be replaced with character classes. + // XML allows all manner of ridiculous numbers and digits. + var number = '0124356789' + var letter = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' -/***/ 75971: -/***/ ((__unused_webpack_module, exports) => { + // (Letter | "_" | ":") + var quote = '\'"' + var attribEnd = whitespace + '>' + var CDATA = '[CDATA[' + var DOCTYPE = 'DOCTYPE' + var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace' + var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/' + var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE } -"use strict"; + // turn all the string character sets into character class objects. + whitespace = charClass(whitespace) + number = charClass(number) + letter = charClass(letter) + // http://www.w3.org/TR/REC-xml/#NT-NameStartChar + // This implementation works on strings, a single character at a time + // as such, it cannot ever support astral-plane characters (10000-EFFFF) + // without a significant breaking change to either this parser, or the + // JavaScript language. Implementation of an emoji-capable xml parser + // is left as an exercise for the reader. + var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/ -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; + var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/ -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -var byteToHex = []; + var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/ + var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/ -for (var i = 0; i < 256; ++i) { - byteToHex[i] = (i + 0x100).toString(16).substr(1); -} + quote = charClass(quote) + attribEnd = charClass(attribEnd) -function bytesToUuid(buf, offset) { - var i = offset || 0; - var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 + function charClass (str) { + return str.split('').reduce(function (s, c) { + s[c] = true + return s + }, {}) + } - return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join(''); -} + function isRegExp (c) { + return Object.prototype.toString.call(c) === '[object RegExp]' + } -var _default = bytesToUuid; -exports["default"] = _default; - -/***/ }), - -/***/ 75840: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; -var __webpack_unused_export__; - - -__webpack_unused_export__ = ({ - value: true -}); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v.default; - } -}); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v2.default; - } -}); -Object.defineProperty(exports, "v4", ({ - enumerable: true, - get: function () { - return _v3.default; + function is (charclass, c) { + return isRegExp(charclass) ? !!c.match(charclass) : charclass[c] } -})); -__webpack_unused_export__ = ({ - enumerable: true, - get: function () { - return _v4.default; + + function not (charclass, c) { + return !is(charclass, c) } -}); -var _v = _interopRequireDefault(__nccwpck_require__(78628)); + var S = 0 + sax.STATE = { + BEGIN: S++, // leading byte order mark or whitespace + BEGIN_WHITESPACE: S++, // leading whitespace + TEXT: S++, // general stuff + TEXT_ENTITY: S++, // & and such. + OPEN_WAKA: S++, // < + SGML_DECL: S++, // + SCRIPT: S++, //