diff --git a/dist/restore/index.js b/dist/restore/index.js index 1b91c2a..6cfaca0 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -390,7 +390,220 @@ function copyFile(srcFile, destFile, force) { //# sourceMappingURL=io.js.map /***/ }), -/* 2 */, +/* 2 */ +/***/ (function(module, __unusedexports, __webpack_require__) { + +var util = __webpack_require__(669); +var Stream = __webpack_require__(794).Stream; +var DelayedStream = __webpack_require__(33); + +module.exports = CombinedStream; +function CombinedStream() { + this.writable = false; + this.readable = true; + this.dataSize = 0; + this.maxDataSize = 2 * 1024 * 1024; + this.pauseStreams = true; + + this._released = false; + this._streams = []; + this._currentStream = null; + this._insideLoop = false; + this._pendingNext = false; +} +util.inherits(CombinedStream, Stream); + +CombinedStream.create = function(options) { + var combinedStream = new this(); + + options = options || {}; + for (var option in options) { + combinedStream[option] = options[option]; + } + + return combinedStream; +}; + +CombinedStream.isStreamLike = function(stream) { + return (typeof stream !== 'function') + && (typeof stream !== 'string') + && (typeof stream !== 'boolean') + && (typeof stream !== 'number') + && (!Buffer.isBuffer(stream)); +}; + +CombinedStream.prototype.append = function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + + if (isStreamLike) { + if (!(stream instanceof DelayedStream)) { + var newStream = DelayedStream.create(stream, { + maxDataSize: Infinity, + pauseStream: this.pauseStreams, + }); + stream.on('data', this._checkDataSize.bind(this)); + stream = newStream; + } + + this._handleErrors(stream); + + if (this.pauseStreams) { + stream.pause(); + } + } + + this._streams.push(stream); + return this; +}; + +CombinedStream.prototype.pipe = function(dest, options) { + Stream.prototype.pipe.call(this, dest, options); + this.resume(); + return dest; +}; + +CombinedStream.prototype._getNext = function() { + this._currentStream = null; + + if (this._insideLoop) { + this._pendingNext = true; + return; // defer call + } + + this._insideLoop = true; + try { + do { + this._pendingNext = false; + this._realGetNext(); + } while (this._pendingNext); + } finally { + this._insideLoop = false; + } +}; + +CombinedStream.prototype._realGetNext = function() { + var stream = this._streams.shift(); + + + if (typeof stream == 'undefined') { + this.end(); + return; + } + + if (typeof stream !== 'function') { + this._pipeNext(stream); + return; + } + + var getStream = stream; + getStream(function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on('data', this._checkDataSize.bind(this)); + this._handleErrors(stream); + } + + this._pipeNext(stream); + }.bind(this)); +}; + +CombinedStream.prototype._pipeNext = function(stream) { + this._currentStream = stream; + + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on('end', this._getNext.bind(this)); + stream.pipe(this, {end: false}); + return; + } + + var value = stream; + this.write(value); + this._getNext(); +}; + +CombinedStream.prototype._handleErrors = function(stream) { + var self = this; + stream.on('error', function(err) { + self._emitError(err); + }); +}; + +CombinedStream.prototype.write = function(data) { + this.emit('data', data); +}; + +CombinedStream.prototype.pause = function() { + if (!this.pauseStreams) { + return; + } + + if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); + this.emit('pause'); +}; + +CombinedStream.prototype.resume = function() { + if (!this._released) { + this._released = true; + this.writable = true; + this._getNext(); + } + + if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); + this.emit('resume'); +}; + +CombinedStream.prototype.end = function() { + this._reset(); + this.emit('end'); +}; + +CombinedStream.prototype.destroy = function() { + this._reset(); + this.emit('close'); +}; + +CombinedStream.prototype._reset = function() { + this.writable = false; + this._streams = []; + this._currentStream = null; +}; + +CombinedStream.prototype._checkDataSize = function() { + this._updateDataSize(); + if (this.dataSize <= this.maxDataSize) { + return; + } + + var message = + 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; + this._emitError(new Error(message)); +}; + +CombinedStream.prototype._updateDataSize = function() { + this.dataSize = 0; + + var self = this; + this._streams.forEach(function(stream) { + if (!stream.dataSize) { + return; + } + + self.dataSize += stream.dataSize; + }); + + if (this._currentStream && this._currentStream.dataSize) { + this.dataSize += this._currentStream.dataSize; + } +}; + +CombinedStream.prototype._emitError = function(err) { + this._reset(); + this.emit('error', err); +}; + + +/***/ }), /* 3 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -401,7 +614,7 @@ exports.getRuntimeConfig = void 0; const tslib_1 = __webpack_require__(661); const package_json_1 = tslib_1.__importDefault(__webpack_require__(81)); const config_resolver_1 = __webpack_require__(529); -const hash_node_1 = __webpack_require__(145); +const hash_node_1 = __webpack_require__(806); const middleware_retry_1 = __webpack_require__(286); const node_config_provider_1 = __webpack_require__(519); const node_http_handler_1 = __webpack_require__(384); @@ -409,7 +622,7 @@ const util_base64_node_1 = __webpack_require__(287); const util_body_length_node_1 = __webpack_require__(555); const util_user_agent_node_1 = __webpack_require__(96); const util_utf8_node_1 = __webpack_require__(536); -const runtimeConfig_shared_1 = __webpack_require__(892); +const runtimeConfig_shared_1 = __webpack_require__(268); const smithy_client_1 = __webpack_require__(973); const util_defaults_mode_node_1 = __webpack_require__(331); const getRuntimeConfig = (config) => { @@ -1224,41 +1437,7 @@ class ExecState extends events.EventEmitter { //# sourceMappingURL=toolrunner.js.map /***/ }), -/* 10 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(748), exports); -//# sourceMappingURL=index.js.map - -/***/ }), +/* 10 */, /* 11 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -1431,7 +1610,22 @@ exports.build = build; /***/ }), -/* 13 */, +/* 13 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.loadConfig = void 0; +const property_provider_1 = __webpack_require__(17); +const fromEnv_1 = __webpack_require__(698); +const fromSharedConfigFiles_1 = __webpack_require__(389); +const fromStatic_1 = __webpack_require__(83); +const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => property_provider_1.memoize(property_provider_1.chain(fromEnv_1.fromEnv(environmentVariableSelector), fromSharedConfigFiles_1.fromSharedConfigFiles(configFileSelector, configuration), fromStatic_1.fromStatic(defaultValue))); +exports.loadConfig = loadConfig; + + +/***/ }), /* 14 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -2316,7 +2510,9 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); exports.getInputS3ClientConfig = exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0; const core = __importStar(__webpack_require__(470)); -const constants_1 = __webpack_require__(674); +const constants_1 = __webpack_require__(416); +const credential_provider_web_identity_1 = __webpack_require__(590); +const client_sts_1 = __webpack_require__(822); function isGhes() { const ghUrl = new URL(process.env["GITHUB_SERVER_URL"] || "https://github.com"); return ghUrl.hostname.toUpperCase() !== "GITHUB.COM"; @@ -2384,16 +2580,17 @@ function getInputS3ClientConfig() { if (!s3BucketName) { return undefined; } - const s3config = { + const credentials = core.getInput(constants_1.Inputs.AWSAccessKeyId) ? { credentials: { accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId), secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey) - }, - region: core.getInput(constants_1.Inputs.AWSRegion), - endpoint: core.getInput(constants_1.Inputs.AWSEndpoint), - bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint), - forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle), + } + } : { + credentials: credential_provider_web_identity_1.fromTokenFile({ + roleAssumerWithWebIdentity: client_sts_1.getDefaultRoleAssumerWithWebIdentity(), + }) }; + const s3config = Object.assign(Object.assign({}, credentials), { region: core.getInput(constants_1.Inputs.AWSRegion), endpoint: core.getInput(constants_1.Inputs.AWSEndpoint), bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint), forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle) }); core.debug('Enable S3 backend mode.'); return s3config; } @@ -2437,7 +2634,7 @@ exports.getInputS3ClientConfig = getInputS3ClientConfig; */ const { fromCallback } = __webpack_require__(480); -const Store = __webpack_require__(338).Store; +const Store = __webpack_require__(242).Store; const permuteDomain = __webpack_require__(89).permuteDomain; const pathMatch = __webpack_require__(178).pathMatch; const { getCustomInspectSymbol, getUtilInspect } = __webpack_require__(14); @@ -2709,7 +2906,18 @@ exports.extendedEncodeURIComponent = extendedEncodeURIComponent; /***/ }), -/* 30 */, +/* 30 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = __webpack_require__(79); +tslib_1.__exportStar(__webpack_require__(857), exports); +tslib_1.__exportStar(__webpack_require__(438), exports); + + +/***/ }), /* 31 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -2717,7 +2925,7 @@ exports.extendedEncodeURIComponent = extendedEncodeURIComponent; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRegionInfo = void 0; -const getHostnameFromVariants_1 = __webpack_require__(196); +const getHostnameFromVariants_1 = __webpack_require__(958); const getResolvedHostname_1 = __webpack_require__(584); const getResolvedPartition_1 = __webpack_require__(192); const getResolvedSigningRegion_1 = __webpack_require__(219); @@ -4012,51 +4220,505 @@ var __createBinding; /***/ }), /* 45 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_RECONNECT_MIN_SEC = exports.DEFAULT_RECONNECT_MAX_SEC = exports.MqttWill = exports.QoS = void 0; +/** + * + * A module containing support for mqtt connection establishment and operations. + * + * @packageDocumentation + * @module mqtt + */ +/** + * Quality of service control for mqtt publish operations + * + * @category MQTT + */ +var QoS; +(function (QoS) { + /** + * QoS 0 - At most once delivery + * The message is delivered according to the capabilities of the underlying network. + * No response is sent by the receiver and no retry is performed by the sender. + * The message arrives at the receiver either once or not at all. + */ + QoS[QoS["AtMostOnce"] = 0] = "AtMostOnce"; + /** + * QoS 1 - At least once delivery + * This quality of service ensures that the message arrives at the receiver at least once. + */ + QoS[QoS["AtLeastOnce"] = 1] = "AtLeastOnce"; + /** + * QoS 2 - Exactly once delivery + + * This is the highest quality of service, for use when neither loss nor + * duplication of messages are acceptable. There is an increased overhead + * associated with this quality of service. + + * Note that, while this client supports QoS 2, the AWS IoT Core service + * does not support QoS 2 at time of writing (May 2020). + */ + QoS[QoS["ExactlyOnce"] = 2] = "ExactlyOnce"; +})(QoS = exports.QoS || (exports.QoS = {})); +/** + * A Will message is published by the server if a client is lost unexpectedly. + * + * The Will message is stored on the server when a client connects. + * It is published if the client connection is lost without the server + * receiving a DISCONNECT packet. + * + * [MQTT - 3.1.2 - 8] + * + * @category MQTT + */ +class MqttWill { + constructor( + /** Topic to publish Will message on. */ + topic, + /** QoS used when publishing the Will message. */ + qos, + /** Content of Will message. */ + payload, + /** Whether the Will message is to be retained when it is published. */ + retain = false) { + this.topic = topic; + this.qos = qos; + this.payload = payload; + this.retain = retain; + } +} +exports.MqttWill = MqttWill; +/** + * Const value for max reconnection back off time + * + * @category MQTT + */ +exports.DEFAULT_RECONNECT_MAX_SEC = 128; +/** + * Const value for min reconnection back off time + * + * @category MQTT + */ +exports.DEFAULT_RECONNECT_MIN_SEC = 1; +//# sourceMappingURL=mqtt.js.map + +/***/ }), +/* 46 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetObjectAclCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class GetObjectAclCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; +exports.MqttClientConnection = exports.MqttClient = exports.MqttWill = exports.QoS = exports.HttpProxyOptions = void 0; +/** + * + * A module containing support for mqtt connection establishment and operations. + * + * @packageDocumentation + * @module mqtt + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +const native_resource_1 = __webpack_require__(940); +const event_1 = __webpack_require__(922); +const error_1 = __webpack_require__(92); +const io = __importStar(__webpack_require__(886)); +var http_1 = __webpack_require__(227); +Object.defineProperty(exports, "HttpProxyOptions", { enumerable: true, get: function () { return http_1.HttpProxyOptions; } }); +const mqtt_1 = __webpack_require__(45); +var mqtt_2 = __webpack_require__(45); +Object.defineProperty(exports, "QoS", { enumerable: true, get: function () { return mqtt_2.QoS; } }); +Object.defineProperty(exports, "MqttWill", { enumerable: true, get: function () { return mqtt_2.MqttWill; } }); +/** + * MQTT client + * + * @category MQTT + */ +class MqttClient extends native_resource_1.NativeResource { + /** + * @param bootstrap The {@link ClientBootstrap} to use for socket connections. Leave undefined to use the + * default system-wide bootstrap (recommended). + */ + constructor(bootstrap = undefined) { + super(binding_1.default.mqtt_client_new(bootstrap != null ? bootstrap.native_handle() : null)); + this.bootstrap = bootstrap; } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "GetObjectAclCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetObjectAclRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetObjectAclOutput.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlGetObjectAclCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlGetObjectAclCommand(output, context); + /** + * Creates a new {@link MqttClientConnection} + * @param config Configuration for the mqtt connection + * @returns A new connection + */ + new_connection(config) { + return new MqttClientConnection(this, config); } } -exports.GetObjectAclCommand = GetObjectAclCommand; - +exports.MqttClient = MqttClient; +/** @internal */ +function normalize_payload(payload) { + if (ArrayBuffer.isView(payload)) { + // native can use ArrayBufferView bytes directly + return payload; + } + if (payload instanceof ArrayBuffer) { + // native can use ArrayBuffer bytes directly + return payload; + } + if (typeof payload === 'string') { + // native will convert string to utf-8 + return payload; + } + if (typeof payload === 'object') { + // convert object to JSON string (which will be converted to utf-8 in native) + return JSON.stringify(payload); + } + throw new TypeError("payload parameter must be a string, object, or DataView."); +} +/** + * MQTT client connection + * + * @category MQTT + */ +class MqttClientConnection extends (0, native_resource_1.NativeResourceMixin)(event_1.BufferedEventEmitter) { + /** + * @param client The client that owns this connection + * @param config The configuration for this connection + */ + constructor(client, config) { + super(); + this.client = client; + this.config = config; + // If there is a will, ensure that its payload is normalized to a DataView + const will = config.will ? + { + topic: config.will.topic, + qos: config.will.qos, + payload: normalize_payload(config.will.payload), + retain: config.will.retain + } + : undefined; + /** clamp reconnection time out values */ + var min_sec = mqtt_1.DEFAULT_RECONNECT_MIN_SEC; + var max_sec = mqtt_1.DEFAULT_RECONNECT_MAX_SEC; + if (config.reconnect_min_sec !== undefined) { + min_sec = config.reconnect_min_sec; + // clamp max, in case they only passed in min + max_sec = Math.max(min_sec, max_sec); + } + if (config.reconnect_max_sec !== undefined) { + max_sec = config.reconnect_max_sec; + // clamp min, in case they only passed in max (or passed in min > max) + min_sec = Math.min(min_sec, max_sec); + } + this._super(binding_1.default.mqtt_client_connection_new(client.native_handle(), (error_code) => { this._on_connection_interrupted(error_code); }, (return_code, session_present) => { this._on_connection_resumed(return_code, session_present); }, config.tls_ctx ? config.tls_ctx.native_handle() : null, will, config.username, config.password, config.use_websocket, config.proxy_options ? config.proxy_options.create_native_handle() : undefined, config.websocket_handshake_transform, min_sec, max_sec)); + this.tls_ctx = config.tls_ctx; + binding_1.default.mqtt_client_connection_on_message(this.native_handle(), this._on_any_publish.bind(this)); + /* + * Failed mqtt operations (which is normal) emit error events as well as rejecting the original promise. + * By installing a default error handler here we help prevent common issues where operation failures bring + * the whole program to an end because a handler wasn't installed. Programs that install their own handler + * will be unaffected. + */ + this.on('error', (error) => { }); + } + close() { + binding_1.default.mqtt_client_connection_close(this.native_handle()); + } + // Overridden to allow uncorking on ready + on(event, listener) { + super.on(event, listener); + if (event == 'connect') { + process.nextTick(() => { + this.uncork(); + }); + } + return this; + } + /** + * Open the actual connection to the server (async). + * @returns A Promise which completes whether the connection succeeds or fails. + * If connection fails, the Promise will reject with an exception. + * If connection succeeds, the Promise will return a boolean that is + * true for resuming an existing session, or false if the session is new + */ + connect() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_connect(this.native_handle(), this.config.client_id, this.config.host_name, this.config.port, this.config.socket_options.native_handle(), this.config.keep_alive, this.config.ping_timeout, this.config.protocol_operation_timeout, this.config.clean_session, this._on_connect_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * The connection will automatically reconnect. To cease reconnection attempts, call {@link disconnect}. + * To resume the connection, call {@link connect}. + * @deprecated + */ + reconnect() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_reconnect(this.native_handle(), this._on_connect_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Publish message (async). + * If the device is offline, the PUBLISH packet will be sent once the connection resumes. + * + * @param topic Topic name + * @param payload Contents of message + * @param qos Quality of Service for delivering this message + * @param retain If true, the server will store the message and its QoS so that it can be + * delivered to future subscribers whose subscriptions match the topic name + * @returns Promise which returns a {@link MqttRequest} which will contain the packet id of + * the PUBLISH packet. + * + * * For QoS 0, completes as soon as the packet is sent. + * * For QoS 1, completes when PUBACK is received. + * * For QoS 2, completes when PUBCOMP is received. + */ + publish(topic, payload, qos, retain = false) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_publish(this.native_handle(), topic, normalize_payload(payload), qos, retain, this._on_puback_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Subscribe to a topic filter (async). + * The client sends a SUBSCRIBE packet and the server responds with a SUBACK. + * + * subscribe() may be called while the device is offline, though the async + * operation cannot complete successfully until the connection resumes. + * + * Once subscribed, `callback` is invoked each time a message matching + * the `topic` is received. It is possible for such messages to arrive before + * the SUBACK is received. + * + * @param topic Subscribe to this topic filter, which may include wildcards + * @param qos Maximum requested QoS that server may use when sending messages to the client. + * The server may grant a lower QoS in the SUBACK + * @param on_message Optional callback invoked when message received. + * @returns Promise which returns a {@link MqttSubscribeRequest} which will contain the + * result of the SUBSCRIBE. The Promise resolves when a SUBACK is returned + * from the server or is rejected when an exception occurs. + */ + subscribe(topic, qos, on_message) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_subscribe(this.native_handle(), topic, qos, on_message, this._on_suback_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Unsubscribe from a topic filter (async). + * The client sends an UNSUBSCRIBE packet, and the server responds with an UNSUBACK. + * @param topic The topic filter to unsubscribe from. May contain wildcards. + * @returns Promise wihch returns a {@link MqttRequest} which will contain the packet id + * of the UNSUBSCRIBE packet being acknowledged. Promise is resolved when an + * UNSUBACK is received from the server or is rejected when an exception occurs. + */ + unsubscribe(topic) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_unsubscribe(this.native_handle(), topic, this._on_unsuback_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Close the connection (async). + * @returns Promise which completes when the connection is closed. + */ + disconnect() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_disconnect(this.native_handle(), this._on_disconnect_callback.bind(this, resolve)); + } + catch (e) { + reject(e); + } + }); + }); + } + // Wrap a promise rejection with a function that will also emit the error as an event + _reject(reject) { + return (reason) => { + reject(reason); + process.nextTick(() => { + this.emit('error', new error_1.CrtError(reason)); + }); + }; + } + _on_connection_interrupted(error_code) { + this.emit('interrupt', new error_1.CrtError(error_code)); + } + _on_connection_resumed(return_code, session_present) { + this.emit('resume', return_code, session_present); + } + _on_any_publish(topic, payload, dup, qos, retain) { + this.emit('message', topic, payload, dup, qos, retain); + } + _on_connect_callback(resolve, reject, error_code, return_code, session_present) { + if (error_code == 0 && return_code == 0) { + resolve(session_present); + this.emit('connect', session_present); + } + else if (error_code != 0) { + reject("Failed to connect: " + io.error_code_to_string(error_code)); + } + else { + reject("Server rejected connection."); + } + } + _on_puback_callback(resolve, reject, packet_id, error_code) { + if (error_code == 0) { + resolve({ packet_id }); + } + else { + reject("Failed to publish: " + io.error_code_to_string(error_code)); + } + } + _on_suback_callback(resolve, reject, packet_id, topic, qos, error_code) { + if (error_code == 0) { + resolve({ packet_id, topic, qos, error_code }); + } + else { + reject("Failed to subscribe: " + io.error_code_to_string(error_code)); + } + } + _on_unsuback_callback(resolve, reject, packet_id, error_code) { + if (error_code == 0) { + resolve({ packet_id }); + } + else { + reject("Failed to unsubscribe: " + io.error_code_to_string(error_code)); + } + } + _on_disconnect_callback(resolve) { + resolve(); + this.emit('disconnect'); + this.close(); + } +} +exports.MqttClientConnection = MqttClientConnection; +/** + * Emitted when the connection successfully establishes itself for the first time + * + * @event + */ +MqttClientConnection.CONNECT = 'connect'; +/** + * Emitted when connection has disconnected sucessfully. + * + * @event + */ +MqttClientConnection.DISCONNECT = 'disconnect'; +/** + * Emitted when an error occurs. The error will contain the error + * code and message. + * + * @event + */ +MqttClientConnection.ERROR = 'error'; +/** + * Emitted when the connection is dropped unexpectedly. The error will contain the error + * code and message. The underlying mqtt implementation will attempt to reconnect. + * + * @event + */ +MqttClientConnection.INTERRUPT = 'interrupt'; +/** + * Emitted when the connection reconnects (after an interrupt). Only triggers on connections after the initial one. + * + * @event + */ +MqttClientConnection.RESUME = 'resume'; +/** + * Emitted when any MQTT publish message arrives. + * + * @event + */ +MqttClientConnection.MESSAGE = 'message'; +//# sourceMappingURL=mqtt.js.map /***/ }), -/* 46 */, /* 47 */ /***/ (function(module) { @@ -4370,7 +5032,23 @@ var __createBinding; /***/ }), /* 48 */, -/* 49 */, +/* 49 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.normalizeProvider = void 0; +const normalizeProvider = (input) => { + if (typeof input === "function") + return input; + const promisified = Promise.resolve(input); + return () => promisified; +}; +exports.normalizeProvider = normalizeProvider; + + +/***/ }), /* 50 */ /***/ (function(module) { @@ -4391,7 +5069,7 @@ const config_1 = __webpack_require__(701); const constants_1 = __webpack_require__(373); const defaultRetryQuota_1 = __webpack_require__(870); const delayDecider_1 = __webpack_require__(131); -const retryDecider_1 = __webpack_require__(932); +const retryDecider_1 = __webpack_require__(466); class StandardRetryStrategy { constructor(maxAttemptsProvider, options) { var _a, _b, _c; @@ -4971,7 +5649,7 @@ module.exports = require("zlib"); Object.defineProperty(exports, "__esModule", { value: true }); exports.fileStreamHasher = void 0; const fs_1 = __webpack_require__(747); -const HashCalculator_1 = __webpack_require__(222); +const HashCalculator_1 = __webpack_require__(350); const fileStreamHasher = (hashCtor, fileStream) => new Promise((resolve, reject) => { if (!isReadStream(fileStream)) { reject(new Error("Unable to calculate hash for non-file streams.")); @@ -6065,17 +6743,325 @@ tslib_1.__exportStar(__webpack_require__(885), exports); /***/ }), /* 79 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(module) { -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = __webpack_require__(174); -tslib_1.__exportStar(__webpack_require__(907), exports); -tslib_1.__exportStar(__webpack_require__(570), exports); -tslib_1.__exportStar(__webpack_require__(962), exports); -tslib_1.__exportStar(__webpack_require__(103), exports); -tslib_1.__exportStar(__webpack_require__(508), exports); +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __classPrivateFieldIn; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + __classPrivateFieldIn = function (state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); +}); /***/ }), @@ -6394,7 +7380,7 @@ var __createBinding; /* 81 */ /***/ (function(module) { -module.exports = {"_args":[["@aws-sdk/client-sso@3.51.0","/Users/s06173/go/src/github.com/whywaita/actions-cache-s3"]],"_from":"@aws-sdk/client-sso@3.51.0","_id":"@aws-sdk/client-sso@3.51.0","_inBundle":false,"_integrity":"sha512-YTYCQxptU5CwkHscHwF+2JGZ1a+YsT3G7ZEaKNYuz0iMtQd7koSsLSbvt6EDxjYJZQ6y7gUriRJWJq/LPn55kg==","_location":"/@aws-sdk/client-sso","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"@aws-sdk/client-sso@3.51.0","name":"@aws-sdk/client-sso","escapedName":"@aws-sdk%2fclient-sso","scope":"@aws-sdk","rawSpec":"3.51.0","saveSpec":null,"fetchSpec":"3.51.0"},"_requiredBy":["/@aws-sdk/credential-provider-sso"],"_resolved":"https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.51.0.tgz","_spec":"3.51.0","_where":"/Users/s06173/go/src/github.com/whywaita/actions-cache-s3","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"url":"https://github.com/aws/aws-sdk-js-v3/issues"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","tslib":"^2.3.0"},"description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@aws-sdk/client-sso","react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"repository":{"type":"git","url":"git+https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"},"scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"3.51.0"}; +module.exports = {"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.51.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}; /***/ }), /* 82 */ @@ -6499,7 +7485,51 @@ exports.paginateListParts = paginateListParts; /***/ }), -/* 85 */, +/* 85 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteBucketIntelligentTieringConfigurationCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class DeleteBucketIntelligentTieringConfigurationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "DeleteBucketIntelligentTieringConfigurationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteBucketIntelligentTieringConfigurationRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(output, context); + } +} +exports.DeleteBucketIntelligentTieringConfigurationCommand = DeleteBucketIntelligentTieringConfigurationCommand; + + +/***/ }), /* 86 */ /***/ (function(module, __unusedexports, __webpack_require__) { @@ -6701,7 +7731,7 @@ exports.GetBucketReplicationCommand = GetBucketReplicationCommand; * POSSIBILITY OF SUCH DAMAGE. */ -const pubsuffix = __webpack_require__(438); +const pubsuffix = __webpack_require__(700); // Gives the permutation of all possible domainMatch()es of a given domain. The // array is in shortest-to-longest order. Handy for indexing. @@ -6745,7 +7775,7 @@ exports.permuteDomain = permuteDomain; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbortController = void 0; -const AbortSignal_1 = __webpack_require__(922); +const AbortSignal_1 = __webpack_require__(674); class AbortController { constructor() { this.signal = new AbortSignal_1.AbortSignal(); @@ -6782,33 +7812,71 @@ exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; /***/ }), /* 92 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getChunkBuffer = void 0; -async function* getChunkBuffer(data, partSize) { - let partNumber = 1; - let startByte = 0; - let endByte = partSize; - while (endByte < data.byteLength) { - yield { - partNumber, - data: data.slice(startByte, endByte), - }; - partNumber += 1; - startByte = endByte; - endByte = startByte + partSize; +exports.CrtError = void 0; +/** + * Library-specific error extension type + * + * @packageDocumentation + * @module error + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +/** + * Represents an error encountered in native code. Can also be used to convert a numeric error code into + * a human-readable string. + * + * @category System + */ +class CrtError extends Error { + /** @var error - The original error. Most often an error_code, but possibly some other context */ + constructor(error) { + super(extract_message(error)); + this.error = error; + this.error_code = extract_code(error); + this.error_name = extract_name(error); } - yield { - partNumber, - data: data.slice(startByte), - lastPart: true, - }; } -exports.getChunkBuffer = getChunkBuffer; - +exports.CrtError = CrtError; +function extract_message(error) { + if (typeof error === 'number') { + return binding_1.default.error_code_to_string(error); + } + else if (error instanceof CrtError) { + return error.message; + } + return error.toString(); +} +function extract_code(error) { + if (typeof error === 'number') { + return error; + } + else if (error instanceof CrtError) { + return error.error_code; + } + return undefined; +} +function extract_name(error) { + if (typeof error === 'number') { + return binding_1.default.error_code_to_name(error); + } + else if (error instanceof CrtError) { + return error.error_name; + } + return undefined; +} +//# sourceMappingURL=error.js.map /***/ }), /* 93 */ @@ -7847,7 +8915,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; const node_config_provider_1 = __webpack_require__(519); const os_1 = __webpack_require__(87); -const process_1 = __webpack_require__(956); +const process_1 = __webpack_require__(316); const is_crt_available_1 = __webpack_require__(454); exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; @@ -8059,7 +9127,7 @@ exports.default = _default; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(203); tslib_1.__exportStar(__webpack_require__(993), exports); -tslib_1.__exportStar(__webpack_require__(706), exports); +tslib_1.__exportStar(__webpack_require__(364), exports); /***/ }), @@ -9015,20 +10083,32 @@ exports.GetCallerIdentityCommand = GetCallerIdentityCommand; /***/ }), /* 134 */ -/***/ (function(module) { +/***/ (function(__unusedmodule, exports) { -// Generated by CoffeeScript 1.12.7 -(function() { - module.exports = { - Disconnected: 1, - Preceding: 2, - Following: 4, - Contains: 8, - ContainedBy: 16, - ImplementationSpecific: 32 - }; +"use strict"; -}).call(this); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getChunkBuffer = void 0; +async function* getChunkBuffer(data, partSize) { + let partNumber = 1; + let startByte = 0; + let endByte = partSize; + while (endByte < data.byteLength) { + yield { + partNumber, + data: data.slice(startByte, endByte), + }; + partNumber += 1; + startByte = endByte; + endByte = startByte + partSize; + } + yield { + partNumber, + data: data.slice(startByte), + lastPart: true, + }; +} +exports.getChunkBuffer = getChunkBuffer; /***/ }), @@ -9562,7 +10642,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.getChunk = void 0; const buffer_1 = __webpack_require__(293); const stream_1 = __webpack_require__(794); -const getChunkBuffer_1 = __webpack_require__(92); +const getChunkBuffer_1 = __webpack_require__(134); const getChunkStream_1 = __webpack_require__(235); const getDataReadable_1 = __webpack_require__(654); const getDataReadableStream_1 = __webpack_require__(111); @@ -9591,39 +10671,47 @@ exports.getChunk = getChunk; /***/ }), /* 145 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Hash = void 0; -const util_buffer_from_1 = __webpack_require__(59); -const buffer_1 = __webpack_require__(293); -const crypto_1 = __webpack_require__(417); -class Hash { - constructor(algorithmIdentifier, secret) { - this.hash = secret ? crypto_1.createHmac(algorithmIdentifier, castSourceData(secret)) : crypto_1.createHash(algorithmIdentifier); - } - update(toHash, encoding) { - this.hash.update(castSourceData(toHash, encoding)); - } - digest() { - return Promise.resolve(this.hash.digest()); +exports.toHex = exports.fromHex = void 0; +const SHORT_TO_HEX = {}; +const HEX_TO_SHORT = {}; +for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = `0${encodedByte}`; } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; } -exports.Hash = Hash; -function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { - return toCast; +function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error("Hex encoded strings must have an even number length"); } - if (typeof toCast === "string") { - return util_buffer_from_1.fromString(toCast, encoding); + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } + else { + throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); + } } - if (ArrayBuffer.isView(toCast)) { - return util_buffer_from_1.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return util_buffer_from_1.fromArrayBuffer(toCast); + return out; } +exports.fromHex = fromHex; +function toHex(bytes) { + let out = ""; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; +} +exports.toHex = toHex; /***/ }), @@ -9767,7 +10855,7 @@ exports.NoopTracer = void 0; var context_1 = __webpack_require__(189); var context_utils_1 = __webpack_require__(456); var NonRecordingSpan_1 = __webpack_require__(437); -var spancontext_utils_1 = __webpack_require__(905); +var spancontext_utils_1 = __webpack_require__(479); var context = context_1.ContextAPI.getInstance(); /** * No-op implementations of {@link Tracer}. @@ -10044,46 +11132,128 @@ const getCredentialsFromProfile = async (profile, options) => { /***/ }), -/* 159 */, -/* 160 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/* 159 */ +/***/ (function(__unusedmodule, exports) { "use strict"; /* - * Copyright The OpenTelemetry Authors + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.using = void 0; +/** + * Use this function to create a resource in an async context. This will make sure the + * resources are cleaned up before returning. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Example: + * ``` + * await using(res = new SomeResource(), async (res) => { + * res.do_the_thing(); + * }); + * ``` * - * https://www.apache.org/licenses/LICENSE-2.0 + * @category System + */ +function using(resource, func) { + return __awaiter(this, void 0, void 0, function* () { + try { + yield func(resource); + } + finally { + resource.close(); + } + }); +} +exports.using = using; +//# sourceMappingURL=resource_safety.js.map + +/***/ }), +/* 160 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.NoopTracerProvider = void 0; -var NoopTracer_1 = __webpack_require__(151); +exports.CommonHttpProxyOptions = exports.HttpProxyAuthenticationType = exports.HttpVersion = void 0; /** - * An implementation of the {@link TracerProvider} which returns an impotent - * Tracer for all calls to `getTracer`. * - * All operations are no-op. + * A module containing support for creating http connections and making requests on them. + * + * @packageDocumentation + * @module http */ -var NoopTracerProvider = /** @class */ (function () { - function NoopTracerProvider() { +/** + * HTTP protocol version + * + * @category HTTP + */ +var HttpVersion; +(function (HttpVersion) { + HttpVersion[HttpVersion["Unknown"] = 0] = "Unknown"; + /** HTTP/1.0 */ + HttpVersion[HttpVersion["Http1_0"] = 1] = "Http1_0"; + /** HTTP/1.1 */ + HttpVersion[HttpVersion["Http1_1"] = 2] = "Http1_1"; + /** HTTP/2 */ + HttpVersion[HttpVersion["Http2"] = 3] = "Http2"; +})(HttpVersion = exports.HttpVersion || (exports.HttpVersion = {})); +/** + * Proxy authentication types + * + * @category HTTP + */ +var HttpProxyAuthenticationType; +(function (HttpProxyAuthenticationType) { + /** + * No to-proxy authentication logic + */ + HttpProxyAuthenticationType[HttpProxyAuthenticationType["None"] = 0] = "None"; + /** + * Use basic authentication (user/pass). Supply these values in {@link HttpProxyOptions} + */ + HttpProxyAuthenticationType[HttpProxyAuthenticationType["Basic"] = 1] = "Basic"; +})(HttpProxyAuthenticationType = exports.HttpProxyAuthenticationType || (exports.HttpProxyAuthenticationType = {})); +; +/** + * Options used when connecting to an HTTP endpoint via a proxy + * + * @category HTTP + */ +class CommonHttpProxyOptions { + /** + * + * @param host_name endpoint of the proxy to use + * @param port port of proxy to use + * @param auth_method type of authentication to use with the proxy + * @param auth_username (basic authentication only) proxy username + * @param auth_password (basic authentication only) password associated with the username + */ + constructor(host_name, port, auth_method = HttpProxyAuthenticationType.None, auth_username, auth_password) { + this.host_name = host_name; + this.port = port; + this.auth_method = auth_method; + this.auth_username = auth_username; + this.auth_password = auth_password; } - NoopTracerProvider.prototype.getTracer = function (_name, _version, _options) { - return new NoopTracer_1.NoopTracer(); - }; - return NoopTracerProvider; -}()); -exports.NoopTracerProvider = NoopTracerProvider; -//# sourceMappingURL=NoopTracerProvider.js.map +} +exports.CommonHttpProxyOptions = CommonHttpProxyOptions; +//# sourceMappingURL=http.js.map /***/ }), /* 161 */ @@ -10756,117 +11926,31 @@ exports.getTraversalObj = getTraversalObj; /* 171 */, /* 172 */, /* 173 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _rng = _interopRequireDefault(__webpack_require__(733)); - -var _stringify = _interopRequireDefault(__webpack_require__(855)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -let _nodeId; - -let _clockseq; // Previous uuid creation time - - -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 - - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toDate = exports.iso8601 = void 0; +const iso8601 = (time) => (0, exports.toDate)(time) + .toISOString() + .replace(/\.\d{3}Z$/, "Z"); +exports.iso8601 = iso8601; +const toDate = (time) => { + if (typeof time === "number") { + return new Date(time * 1000); } - - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + if (typeof time === "string") { + if (Number(time)) { + return new Date(Number(time) * 1000); + } + return new Date(time); } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + return time; +}; +exports.toDate = toDate; - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - - - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested - - - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - - msecs += 12219292800000; // `time_low` - - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` - - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` - - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` - - b[i++] = clockseq & 0xff; // `node` - - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf || (0, _stringify.default)(b); -} - -var _default = v1; -exports.default = _default; - /***/ }), /* 174 */ /***/ (function(module) { @@ -11351,7 +12435,7 @@ exports.pathMatch = pathMatch; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(71); tslib_1.__exportStar(__webpack_require__(90), exports); -tslib_1.__exportStar(__webpack_require__(922), exports); +tslib_1.__exportStar(__webpack_require__(674), exports); /***/ }), @@ -11715,18 +12799,73 @@ exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; /***/ }), /* 195 */, /* 196 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.getHostnameFromVariants = void 0; -const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; -}; -exports.getHostnameFromVariants = getHostnameFromVariants; - +exports.crt_version = exports.package_info = exports.is_browser = exports.is_nodejs = void 0; +/** + * + * A module containing miscellaneous platform-related queries + * + * @packageDocumentation + * @module platform + * @mergeTarget + */ +/** + * Returns true if this script is running under nodejs + * + * @category System + */ +function is_nodejs() { + return (typeof process === 'object' && + typeof process.versions === 'object' && + typeof process.versions.node !== 'undefined'); +} +exports.is_nodejs = is_nodejs; +/** + * Returns true if this script is running in a browser + * + * @category System + */ +function is_browser() { + return !is_nodejs(); +} +exports.is_browser = is_browser; +/** + * Returns the package information for aws-crt-nodejs + * + * @category System + */ +function package_info() { + try { + const pkg = __webpack_require__(753); + return pkg; + } + catch (err) { + return { + name: 'aws-crt-nodejs', + version: 'UNKNOWN' + }; + } +} +exports.package_info = package_info; +/** + * Returns the AWS CRT version + * + * @category System + */ +function crt_version() { + const pkg = package_info(); + return pkg.version; +} +exports.crt_version = crt_version; +//# sourceMappingURL=platform.js.map /***/ }), /* 197 */ @@ -13503,7 +14642,59 @@ exports.loadSharedConfigFiles = loadSharedConfigFiles; /***/ }), /* 217 */, -/* 218 */, +/* 218 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; +exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; +exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; +exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; +exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; +exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; +exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; +exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; +exports.REGION_SET_PARAM = "X-Amz-Region-Set"; +exports.AUTH_HEADER = "authorization"; +exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); +exports.DATE_HEADER = "date"; +exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; +exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); +exports.SHA256_HEADER = "x-amz-content-sha256"; +exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); +exports.HOST_HEADER = "host"; +exports.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true, +}; +exports.PROXY_HEADER_PATTERN = /^proxy-/; +exports.SEC_HEADER_PATTERN = /^sec-/; +exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; +exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; +exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; +exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; +exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; +exports.MAX_CACHE_SIZE = 50; +exports.KEY_TYPE_IDENTIFIER = "aws4_request"; +exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + + +/***/ }), /* 219 */ /***/ (function(__unusedmodule, exports) { @@ -13604,24 +14795,42 @@ exports.PutBucketVersioningCommand = PutBucketVersioningCommand; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.HashCalculator = void 0; -const stream_1 = __webpack_require__(794); -class HashCalculator extends stream_1.Writable { - constructor(hash, options) { - super(options); - this.hash = hash; +exports.GetSessionTokenCommand = void 0; +const middleware_serde_1 = __webpack_require__(347); +const middleware_signing_1 = __webpack_require__(307); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(37); +const Aws_query_1 = __webpack_require__(963); +class GetSessionTokenCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; } - _write(chunk, encoding, callback) { - try { - this.hash.update(chunk); - } - catch (err) { - return callback(err); - } - callback(); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "GetSessionTokenCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetSessionTokenRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetSessionTokenResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_query_1.serializeAws_queryGetSessionTokenCommand(input, context); + } + deserialize(output, context) { + return Aws_query_1.deserializeAws_queryGetSessionTokenCommand(output, context); } } -exports.HashCalculator = HashCalculator; +exports.GetSessionTokenCommand = GetSessionTokenCommand; /***/ }), @@ -13662,7 +14871,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.EventStreamMarshaller = void 0; const eventstream_marshaller_1 = __webpack_require__(372); const getChunkedStream_1 = __webpack_require__(60); -const getUnmarshalledStream_1 = __webpack_require__(825); +const getUnmarshalledStream_1 = __webpack_require__(625); class EventStreamMarshaller { constructor({ utf8Encoder, utf8Decoder }) { this.eventMarshaller = new eventstream_marshaller_1.EventStreamMarshaller(utf8Encoder, utf8Decoder); @@ -13761,7 +14970,414 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /***/ }), -/* 227 */, +/* 227 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HttpClientConnectionManager = exports.HttpClientStream = exports.HttpStream = exports.HttpClientConnection = exports.HttpProxyOptions = exports.HttpProxyConnectionType = exports.HttpConnection = exports.HttpRequest = exports.HttpHeaders = exports.HttpProxyAuthenticationType = void 0; +/** + * + * A module containing support for creating http connections and making requests on them. + * + * @packageDocumentation + * @module http + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +const native_resource_1 = __webpack_require__(940); +const error_1 = __webpack_require__(92); +const http_1 = __webpack_require__(160); +/** @internal */ +var http_2 = __webpack_require__(160); +Object.defineProperty(exports, "HttpProxyAuthenticationType", { enumerable: true, get: function () { return http_2.HttpProxyAuthenticationType; } }); +const event_1 = __webpack_require__(922); +/** + * @category HTTP + */ +exports.HttpHeaders = binding_1.default.HttpHeaders; +/** @internal */ +const nativeHttpRequest = binding_1.default.HttpRequest; +/** + * @category HTTP + */ +class HttpRequest extends nativeHttpRequest { + constructor(method, path, headers, body) { + super(method, path, headers, body === null || body === void 0 ? void 0 : body.native_handle()); + } +} +exports.HttpRequest = HttpRequest; +/** + * Base class for HTTP connections + * + * @category HTTP + */ +class HttpConnection extends (0, native_resource_1.NativeResourceMixin)(event_1.BufferedEventEmitter) { + constructor(native_handle) { + super(); + this._super(native_handle); + } + /** + * Close the connection. + * Shutdown is asynchronous. This call has no effect if the connection is already + * closing. + */ + close() { + binding_1.default.http_connection_close(this.native_handle()); + } + // Overridden to allow uncorking on ready + on(event, listener) { + super.on(event, listener); + if (event == 'connect') { + process.nextTick(() => { + this.uncork(); + }); + } + return this; + } +} +exports.HttpConnection = HttpConnection; +/** + * Emitted when the connection is connected and ready to start streams + * + * @event + */ +HttpConnection.CONNECT = 'connect'; +/** + * Emitted when an error occurs on the connection + * + * @event + */ +HttpConnection.ERROR = 'error'; +/** + * Emitted when the connection has completed + * + * @event + */ +HttpConnection.CLOSE = 'close'; +/** + * Proxy connection types. + * + * The original behavior was to make a tunneling connection if TLS was used, and a forwarding connection if it was not. + * There are legitimate use cases for plaintext tunneling connections, and so the implicit behavior has now + * been replaced by this setting, with a default that maps to the old behavior. + * + * @category HTTP + */ +var HttpProxyConnectionType; +(function (HttpProxyConnectionType) { + /** + * (Default for backwards compatibility). If Tls options are supplied then the connection will be a tunneling + * one, otherwise it will be a forwarding one. + */ + HttpProxyConnectionType[HttpProxyConnectionType["Legacy"] = 0] = "Legacy"; + /** + * Establish a forwarding-based connection with the proxy. Tls is not allowed in this case. + */ + HttpProxyConnectionType[HttpProxyConnectionType["Forwarding"] = 1] = "Forwarding"; + /** + * Establish a tunneling-based connection with the proxy. + */ + HttpProxyConnectionType[HttpProxyConnectionType["Tunneling"] = 2] = "Tunneling"; +})(HttpProxyConnectionType = exports.HttpProxyConnectionType || (exports.HttpProxyConnectionType = {})); +; +/** + * Proxy options for HTTP clients. + * + * @category HTTP + */ +class HttpProxyOptions extends http_1.CommonHttpProxyOptions { + /** + * + * @param host_name Name of the proxy server to connect through + * @param port Port number of the proxy server to connect through + * @param auth_method Type of proxy authentication to use. Default is {@link HttpProxyAuthenticationType.None} + * @param auth_username Username to use when `auth_type` is {@link HttpProxyAuthenticationType.Basic} + * @param auth_password Password to use when `auth_type` is {@link HttpProxyAuthenticationType.Basic} + * @param tls_opts Optional TLS connection options for the connection to the proxy host. + * Must be distinct from the {@link TlsConnectionOptions} provided to + * the HTTP connection + * @param connection_type Optional Type of connection to make. If not specified, + * {@link HttpProxyConnectionType.Legacy} will be used. + */ + constructor(host_name, port, auth_method = http_1.HttpProxyAuthenticationType.None, auth_username, auth_password, tls_opts, connection_type) { + super(host_name, port, auth_method, auth_username, auth_password); + this.tls_opts = tls_opts; + this.connection_type = connection_type; + } + /** @internal */ + create_native_handle() { + return binding_1.default.http_proxy_options_new(this.host_name, this.port, this.auth_method, this.auth_username, this.auth_password, this.tls_opts ? this.tls_opts.native_handle() : undefined, this.connection_type ? this.connection_type : HttpProxyConnectionType.Legacy); + } +} +exports.HttpProxyOptions = HttpProxyOptions; +/** + * Represents an HTTP connection from a client to a server + * + * @category HTTP + */ +class HttpClientConnection extends HttpConnection { + /** Asynchronously establish a new HttpClientConnection. + * @param bootstrap Client bootstrap to use when initiating socket connection. Leave undefined to use the + * default system-wide bootstrap (recommended). + * @param host_name Host to connect to + * @param port Port to connect to on host + * @param socket_options Socket options + * @param tls_opts Optional TLS connection options + * @param proxy_options Optional proxy options + */ + constructor(bootstrap, host_name, port, socket_options, tls_opts, proxy_options, handle) { + super(handle + ? handle + : binding_1.default.http_connection_new(bootstrap != null ? bootstrap.native_handle() : null, (handle, error_code) => { + this._on_setup(handle, error_code); + }, (handle, error_code) => { + this._on_shutdown(handle, error_code); + }, host_name, port, socket_options.native_handle(), tls_opts ? tls_opts.native_handle() : undefined, proxy_options ? proxy_options.create_native_handle() : undefined)); + this.bootstrap = bootstrap; + this.socket_options = socket_options; + this.tls_opts = tls_opts; + } + _on_setup(native_handle, error_code) { + if (error_code) { + this.emit('error', new error_1.CrtError(error_code)); + return; + } + this.emit('connect'); + } + _on_shutdown(native_handle, error_code) { + if (error_code) { + this.emit('error', new error_1.CrtError(error_code)); + return; + } + this.emit('close'); + } + /** + * Create {@link HttpClientStream} to carry out the request/response exchange. + * + * NOTE: The stream sends no data until :meth:`HttpClientStream.activate()` + * is called. Call {@link HttpStream.activate} when you're ready for + * callbacks and events to fire. + * @param request - The HttpRequest to attempt on this connection + * @returns A new stream that will deliver events for the request + */ + request(request) { + let stream; + const on_response_impl = (status_code, headers) => { + stream._on_response(status_code, headers); + }; + const on_body_impl = (data) => { + stream._on_body(data); + }; + const on_complete_impl = (error_code) => { + stream._on_complete(error_code); + }; + const native_handle = binding_1.default.http_stream_new(this.native_handle(), request, on_complete_impl, on_response_impl, on_body_impl); + return stream = new HttpClientStream(native_handle, this, request); + } +} +exports.HttpClientConnection = HttpClientConnection; +/** + * Represents a single http message exchange (request/response) in HTTP/1.1. In H2, it may + * also represent a PUSH_PROMISE followed by the accompanying response. + * + * NOTE: Binding either the ready or response event will uncork any buffered events and start + * event delivery + * + * @category HTTP + */ +class HttpStream extends (0, native_resource_1.NativeResourceMixin)(event_1.BufferedEventEmitter) { + constructor(native_handle, connection) { + super(); + this.connection = connection; + this._super(native_handle); + this.cork(); + } + /** + * Begin sending the request. + * + * The stream does nothing until this is called. Call activate() when you + * are ready for its callbacks and events to fire. + */ + activate() { + binding_1.default.http_stream_activate(this.native_handle()); + } + /** + * Closes and ends all communication on this stream. Called automatically after the 'end' + * event is delivered. Calling this manually is only necessary if you wish to terminate + * communication mid-request/response. + */ + close() { + binding_1.default.http_stream_close(this.native_handle()); + } + /** @internal */ + _on_body(data) { + this.emit('data', data); + } + /** @internal */ + _on_complete(error_code) { + if (error_code) { + this.emit('error', new error_1.CrtError(error_code)); + this.close(); + return; + } + // schedule death after end is delivered + this.on('end', () => { + this.close(); + }); + this.emit('end'); + } +} +exports.HttpStream = HttpStream; +/** + * Stream that sends a request and receives a response. + * + * Create an HttpClientStream with {@link HttpClientConnection.request}. + * + * NOTE: The stream sends no data until {@link HttpStream.activate} is called. + * Call {@link HttpStream.activate} when you're ready for callbacks and events to fire. + * + * @category HTTP + */ +class HttpClientStream extends HttpStream { + constructor(native_handle, connection, request) { + super(native_handle, connection); + this.request = request; + } + /** + * HTTP status code returned from the server. + * @return Either the status code, or undefined if the server response has not arrived yet. + */ + status_code() { + return this.response_status_code; + } + // Overridden to allow uncorking on ready and response + on(event, listener) { + super.on(event, listener); + if (event == 'response') { + process.nextTick(() => { + this.uncork(); + }); + } + return this; + } + /** @internal */ + _on_response(status_code, header_array) { + this.response_status_code = status_code; + let headers = new exports.HttpHeaders(header_array); + this.emit('response', status_code, headers); + } +} +exports.HttpClientStream = HttpClientStream; +/** + * Emitted when the http response headers have arrived. + * + * @event + */ +HttpClientStream.RESPONSE = 'response'; +/** + * Emitted when http response data is available. + * + * @event + */ +HttpClientStream.DATA = 'data'; +/** + * Emitted when an error occurs in stream processing + * + * @event + */ +HttpClientStream.ERROR = 'error'; +/** + * Emitted when the stream has completed + * + * @event + */ +HttpClientStream.END = 'end'; +/** + * Emitted when inline headers are delivered while communicating over H2 + * + * @event + */ +HttpClientStream.HEADERS = 'headers'; +/** + * Creates, manages, and vends connections to a given host/port endpoint + * + * @category HTTP + */ +class HttpClientConnectionManager extends native_resource_1.NativeResource { + /** + * @param bootstrap Client bootstrap to use when initiating socket connections. Leave undefined to use the + * default system-wide bootstrap (recommended). + * @param host Host to connect to + * @param port Port to connect to on host + * @param max_connections Maximum number of connections to pool + * @param initial_window_size Optional initial window size + * @param socket_options Socket options to use when initiating socket connections + * @param tls_opts Optional TLS connection options + * @param proxy_options Optional proxy options + */ + constructor(bootstrap, host, port, max_connections, initial_window_size, socket_options, tls_opts, proxy_options) { + super(binding_1.default.http_connection_manager_new(bootstrap != null ? bootstrap.native_handle() : null, host, port, max_connections, initial_window_size, socket_options.native_handle(), tls_opts ? tls_opts.native_handle() : undefined, proxy_options ? proxy_options.create_native_handle() : undefined, undefined /* on_shutdown */)); + this.bootstrap = bootstrap; + this.host = host; + this.port = port; + this.max_connections = max_connections; + this.initial_window_size = initial_window_size; + this.socket_options = socket_options; + this.tls_opts = tls_opts; + this.proxy_options = proxy_options; + this.connections = new Map(); + } + /** + * Vends a connection from the pool + * @returns A promise that results in an HttpClientConnection. When done with the connection, return + * it via {@link release} + */ + acquire() { + return new Promise((resolve, reject) => { + // Only create 1 connection in JS/TS from each native connection + const on_acquired = (handle, error_code) => { + if (error_code) { + reject(new error_1.CrtError(error_code)); + return; + } + let connection = this.connections.get(handle); + if (!connection) { + connection = new HttpClientConnection(this.bootstrap, this.host, this.port, this.socket_options, this.tls_opts, this.proxy_options, handle); + this.connections.set(handle, connection); + connection.on('close', () => { + this.connections.delete(handle); + }); + } + resolve(connection); + }; + binding_1.default.http_connection_manager_acquire(this.native_handle(), on_acquired); + }); + } + /** + * Returns an unused connection to the pool + * @param connection - The connection to return + */ + release(connection) { + binding_1.default.http_connection_manager_release(this.native_handle(), connection.native_handle()); + } + /** Closes all connections and rejects all pending requests */ + close() { + binding_1.default.http_connection_manager_close(this.native_handle()); + } +} +exports.HttpClientConnectionManager = HttpClientConnectionManager; +//# sourceMappingURL=http.js.map + +/***/ }), /* 228 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -14627,7 +16243,89 @@ tslib_1.__exportStar(__webpack_require__(667), exports); /***/ }), -/* 242 */, +/* 242 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; +/*! + * Copyright (c) 2015, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/*jshint unused:false */ + +class Store { + constructor() { + this.synchronous = false; + } + + findCookie(domain, path, key, cb) { + throw new Error("findCookie is not implemented"); + } + + findCookies(domain, path, allowSpecialUseDomain, cb) { + throw new Error("findCookies is not implemented"); + } + + putCookie(cookie, cb) { + throw new Error("putCookie is not implemented"); + } + + updateCookie(oldCookie, newCookie, cb) { + // recommended default implementation: + // return this.putCookie(newCookie, cb); + throw new Error("updateCookie is not implemented"); + } + + removeCookie(domain, path, key, cb) { + throw new Error("removeCookie is not implemented"); + } + + removeCookies(domain, path, cb) { + throw new Error("removeCookies is not implemented"); + } + + removeAllCookies(cb) { + throw new Error("removeAllCookies is not implemented"); + } + + getAllCookies(cb) { + throw new Error( + "getAllCookies is not implemented (therefore jar cannot be serialized)" + ); + } +} + +exports.Store = Store; + + +/***/ }), /* 243 */ /***/ (function(__unusedmodule, exports) { @@ -14696,227 +16394,222 @@ exports.checkBypass = checkBypass; /***/ }), /* 244 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Generated by CoffeeScript 1.12.7 -(function() { - var NodeType, WriterState, XMLStreamWriter, XMLWriterBase, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; - - NodeType = __webpack_require__(683); - - XMLWriterBase = __webpack_require__(671); - - WriterState = __webpack_require__(518); - - module.exports = XMLStreamWriter = (function(superClass) { - extend(XMLStreamWriter, superClass); - - function XMLStreamWriter(stream, options) { - this.stream = stream; - XMLStreamWriter.__super__.constructor.call(this, options); - } - - XMLStreamWriter.prototype.endline = function(node, options, level) { - if (node.isLastRootNode && options.state === WriterState.CloseTag) { - return ''; - } else { - return XMLStreamWriter.__super__.endline.call(this, node, options, level); - } - }; - - XMLStreamWriter.prototype.document = function(doc, options) { - var child, i, j, k, len, len1, ref, ref1, results; - ref = doc.children; - for (i = j = 0, len = ref.length; j < len; i = ++j) { - child = ref[i]; - child.isLastRootNode = i === doc.children.length - 1; - } - options = this.filterOptions(options); - ref1 = doc.children; - results = []; - for (k = 0, len1 = ref1.length; k < len1; k++) { - child = ref1[k]; - results.push(this.writeChildNode(child, options, 0)); - } - return results; - }; - - XMLStreamWriter.prototype.attribute = function(att, options, level) { - return this.stream.write(XMLStreamWriter.__super__.attribute.call(this, att, options, level)); - }; - - XMLStreamWriter.prototype.cdata = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.cdata.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.comment = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.comment.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.declaration = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.declaration.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.docType = function(node, options, level) { - var child, j, len, ref; - level || (level = 0); - this.openNode(node, options, level); - options.state = WriterState.OpenTag; - this.stream.write(this.indent(node, options, level)); - this.stream.write(' 0) { - this.stream.write(' ['); - this.stream.write(this.endline(node, options, level)); - options.state = WriterState.InsideTag; - ref = node.children; - for (j = 0, len = ref.length; j < len; j++) { - child = ref[j]; - this.writeChildNode(child, options, level + 1); - } - options.state = WriterState.CloseTag; - this.stream.write(']'); - } - options.state = WriterState.CloseTag; - this.stream.write(options.spaceBeforeSlash + '>'); - this.stream.write(this.endline(node, options, level)); - options.state = WriterState.None; - return this.closeNode(node, options, level); - }; - - XMLStreamWriter.prototype.element = function(node, options, level) { - var att, child, childNodeCount, firstChildNode, j, len, name, prettySuppressed, ref, ref1; - level || (level = 0); - this.openNode(node, options, level); - options.state = WriterState.OpenTag; - this.stream.write(this.indent(node, options, level) + '<' + node.name); - ref = node.attribs; - for (name in ref) { - if (!hasProp.call(ref, name)) continue; - att = ref[name]; - this.attribute(att, options, level); - } - childNodeCount = node.children.length; - firstChildNode = childNodeCount === 0 ? null : node.children[0]; - if (childNodeCount === 0 || node.children.every(function(e) { - return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === ''; - })) { - if (options.allowEmpty) { - this.stream.write('>'); - options.state = WriterState.CloseTag; - this.stream.write(''); - } else { - options.state = WriterState.CloseTag; - this.stream.write(options.spaceBeforeSlash + '/>'); - } - } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) { - this.stream.write('>'); - options.state = WriterState.InsideTag; - options.suppressPrettyCount++; - prettySuppressed = true; - this.writeChildNode(firstChildNode, options, level + 1); - options.suppressPrettyCount--; - prettySuppressed = false; - options.state = WriterState.CloseTag; - this.stream.write(''); - } else { - this.stream.write('>' + this.endline(node, options, level)); - options.state = WriterState.InsideTag; - ref1 = node.children; - for (j = 0, len = ref1.length; j < len; j++) { - child = ref1[j]; - this.writeChildNode(child, options, level + 1); - } - options.state = WriterState.CloseTag; - this.stream.write(this.indent(node, options, level) + ''); - } - this.stream.write(this.endline(node, options, level)); - options.state = WriterState.None; - return this.closeNode(node, options, level); - }; - - XMLStreamWriter.prototype.processingInstruction = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.raw = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.raw.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.text = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.text.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.dtdAttList = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.dtdElement = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.dtdEntity = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.dtdNotation = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this, node, options, level)); - }; - - return XMLStreamWriter; - - })(XMLWriterBase); - -}).call(this); - - -/***/ }), -/* 245 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListAccountsCommand = void 0; -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(743); -const Aws_restJson1_1 = __webpack_require__(340); -class ListAccountsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; +exports.SignatureV4 = void 0; +const util_hex_encoding_1 = __webpack_require__(145); +const util_middleware_1 = __webpack_require__(325); +const constants_1 = __webpack_require__(361); +const credentialDerivation_1 = __webpack_require__(677); +const getCanonicalHeaders_1 = __webpack_require__(823); +const getCanonicalQuery_1 = __webpack_require__(363); +const getPayloadHash_1 = __webpack_require__(892); +const headerUtil_1 = __webpack_require__(245); +const moveHeadersToQuery_1 = __webpack_require__(546); +const prepareRequest_1 = __webpack_require__(825); +const utilDate_1 = __webpack_require__(173); +class SignatureV4 { + constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; + this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); + this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountsResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + async presign(originalRequest, options = {}) { + const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, } = options; + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { longDate, shortDate } = formatDate(signingDate); + if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { + return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); + } + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + if (credentials.sessionToken) { + request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; + request.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; + request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; + request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + return request; } - serialize(input, context) { - return Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand(input, context); + async sign(toSign, options) { + if (typeof toSign === "string") { + return this.signString(toSign, options); + } + else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } + else { + return this.signRequest(toSign, options); + } } - deserialize(output, context) { - return Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand(output, context); + async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { shortDate, longDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); + const hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const stringToSign = [ + constants_1.EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload, + ].join("\n"); + return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); + } + async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { shortDate } = formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const request = (0, prepareRequest_1.prepareRequest)(requestToSign); + const { longDate, shortDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + request.headers[constants_1.AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; + } + const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); + if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { + request.headers[constants_1.SHA256_HEADER] = payloadHash; + } + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); + request.headers[constants_1.AUTH_HEADER] = + `${constants_1.ALGORITHM_IDENTIFIER} ` + + `Credential=${credentials.accessKeyId}/${scope}, ` + + `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` + + `Signature=${signature}`; + return request; + } + createCanonicalRequest(request, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return `${request.method} +${this.getCanonicalPath(request)} +${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} +${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} + +${sortedHeaders.join(";")} +${payloadHash}`; + } + async createStringToSign(longDate, credentialScope, canonicalRequest) { + const hash = new this.sha256(); + hash.update(canonicalRequest); + const hashedRequest = await hash.digest(); + return `${constants_1.ALGORITHM_IDENTIFIER} +${longDate} +${credentialScope} +${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; + } + getCanonicalPath({ path }) { + if (this.uriEscapePath) { + const normalizedPathSegments = []; + for (const pathSegment of path.split("/")) { + if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) + continue; + if (pathSegment === ".") + continue; + if (pathSegment === "..") { + normalizedPathSegments.pop(); + } + else { + normalizedPathSegments.push(pathSegment); + } + } + const normalizedPath = `${(path === null || path === void 0 ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith("/")) ? "/" : ""}`; + const doubleEncoded = encodeURIComponent(normalizedPath); + return doubleEncoded.replace(/%2F/g, "/"); + } + return path; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); + const hash = new this.sha256(await keyPromise); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + } + validateResolvedCredentials(credentials) { + if (typeof credentials !== "object" || + typeof credentials.accessKeyId !== "string" || + typeof credentials.secretAccessKey !== "string") { + throw new Error("Resolved credential object is not valid"); + } } } -exports.ListAccountsCommand = ListAccountsCommand; +exports.SignatureV4 = SignatureV4; +const formatDate = (now) => { + const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); + return { + longDate, + shortDate: longDate.slice(0, 8), + }; +}; +const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); + + +/***/ }), +/* 245 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; +const hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; +}; +exports.hasHeader = hasHeader; +const getHeaderValue = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return undefined; +}; +exports.getHeaderValue = getHeaderValue; +const deleteHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } +}; +exports.deleteHeader = deleteHeader; /***/ }), @@ -15438,12 +17131,12 @@ exports.implementation = class URLImpl { XMLDocType = __webpack_require__(735); XMLRaw = __webpack_require__(283); XMLText = __webpack_require__(666); - XMLProcessingInstruction = __webpack_require__(419); - XMLDummy = __webpack_require__(764); + XMLProcessingInstruction = __webpack_require__(836); + XMLDummy = __webpack_require__(956); NodeType = __webpack_require__(683); XMLNodeList = __webpack_require__(300); XMLNamedNodeMap = __webpack_require__(697); - DocumentPosition = __webpack_require__(134); + DocumentPosition = __webpack_require__(818); } } @@ -16679,7 +18372,7 @@ var DiagLogLevel; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(996); -tslib_1.__exportStar(__webpack_require__(886), exports); +tslib_1.__exportStar(__webpack_require__(478), exports); /***/ }), @@ -16786,23 +18479,26 @@ exports.Client = Client; /***/ }), /* 268 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; -const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; -const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; -exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - return env[AWS_DEFAULTS_MODE_ENV]; - }, - configFileSelector: (profile) => { - return profile[AWS_DEFAULTS_MODE_CONFIG]; - }, - default: "legacy", +exports.getRuntimeConfig = void 0; +const url_parser_1 = __webpack_require__(187); +const endpoints_1 = __webpack_require__(991); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return ({ + apiVersion: "2019-06-10", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, + }); }; +exports.getRuntimeConfig = getRuntimeConfig; /***/ }), @@ -17306,7 +19002,27 @@ exports.defaultRegionInfoProvider = defaultRegionInfoProvider; /***/ }), /* 273 */, -/* 274 */, +/* 274 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; +const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; +const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; +exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + return env[AWS_DEFAULTS_MODE_ENV]; + }, + configFileSelector: (profile) => { + return profile[AWS_DEFAULTS_MODE_CONFIG]; + }, + default: "legacy", +}; + + +/***/ }), /* 275 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -19096,7 +20812,7 @@ exports.ListObjectVersionsCommand = ListObjectVersionsCommand; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = __webpack_require__(814); +const tslib_1 = __webpack_require__(932); tslib_1.__exportStar(__webpack_require__(358), exports); tslib_1.__exportStar(__webpack_require__(883), exports); tslib_1.__exportStar(__webpack_require__(51), exports); @@ -19104,7 +20820,7 @@ tslib_1.__exportStar(__webpack_require__(701), exports); tslib_1.__exportStar(__webpack_require__(695), exports); tslib_1.__exportStar(__webpack_require__(131), exports); tslib_1.__exportStar(__webpack_require__(691), exports); -tslib_1.__exportStar(__webpack_require__(932), exports); +tslib_1.__exportStar(__webpack_require__(466), exports); tslib_1.__exportStar(__webpack_require__(894), exports); tslib_1.__exportStar(__webpack_require__(585), exports); @@ -20345,7 +22061,7 @@ tslib_1.__exportStar(__webpack_require__(928), exports); XMLStringWriter = __webpack_require__(853); - XMLStreamWriter = __webpack_require__(244); + XMLStreamWriter = __webpack_require__(926); NodeType = __webpack_require__(683); @@ -20432,48 +22148,9 @@ exports.normalizeCredentialsProvider = normalizeCredentialsProvider; /***/ }), /* 316 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetBucketTaggingCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class GetBucketTaggingCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "GetBucketTaggingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetBucketTaggingRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetBucketTaggingOutput.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlGetBucketTaggingCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlGetBucketTaggingCommand(output, context); - } -} -exports.GetBucketTaggingCommand = GetBucketTaggingCommand; +/***/ (function(module) { +module.exports = require("process"); /***/ }), /* 317 */, @@ -20570,14 +22247,10 @@ function _default(name, version, hashfunc) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; -exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; -exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; -exports.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], - default: undefined, -}; +exports.isArrayBuffer = void 0; +const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || + Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; +exports.isArrayBuffer = isArrayBuffer; /***/ }), @@ -20603,7 +22276,17 @@ exports.numToUint8 = numToUint8; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtVG9VaW50OC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9udW1Ub1VpbnQ4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvRUFBb0U7QUFDcEUsc0NBQXNDOzs7QUFFdEMsU0FBZ0IsVUFBVSxDQUFDLEdBQVc7SUFDcEMsT0FBTyxJQUFJLFVBQVUsQ0FBQztRQUNwQixDQUFDLEdBQUcsR0FBRyxVQUFVLENBQUMsSUFBSSxFQUFFO1FBQ3hCLENBQUMsR0FBRyxHQUFHLFVBQVUsQ0FBQyxJQUFJLEVBQUU7UUFDeEIsQ0FBQyxHQUFHLEdBQUcsVUFBVSxDQUFDLElBQUksQ0FBQztRQUN2QixHQUFHLEdBQUcsVUFBVTtLQUNqQixDQUFDLENBQUM7QUFDTCxDQUFDO0FBUEQsZ0NBT0MiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBDb3B5cmlnaHQgQW1hem9uLmNvbSBJbmMuIG9yIGl0cyBhZmZpbGlhdGVzLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxuLy8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IEFwYWNoZS0yLjBcblxuZXhwb3J0IGZ1bmN0aW9uIG51bVRvVWludDgobnVtOiBudW1iZXIpIHtcbiAgcmV0dXJuIG5ldyBVaW50OEFycmF5KFtcbiAgICAobnVtICYgMHhmZjAwMDAwMCkgPj4gMjQsXG4gICAgKG51bSAmIDB4MDBmZjAwMDApID4+IDE2LFxuICAgIChudW0gJiAweDAwMDBmZjAwKSA+PiA4LFxuICAgIG51bSAmIDB4MDAwMDAwZmYsXG4gIF0pO1xufVxuIl19 /***/ }), -/* 325 */, +/* 325 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = __webpack_require__(679); +tslib_1.__exportStar(__webpack_require__(49), exports); + + +/***/ }), /* 326 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -20995,14 +22678,47 @@ exports.getValueFromTextNode = getValueFromTextNode; /***/ }), /* 334 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -module.exports = -{ - parallel : __webpack_require__(424), - serial : __webpack_require__(863), - serialOrdered : __webpack_require__(904) -}; +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PutBucketInventoryConfigurationCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class PutBucketInventoryConfigurationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "PutBucketInventoryConfigurationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.PutBucketInventoryConfigurationRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlPutBucketInventoryConfigurationCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlPutBucketInventoryConfigurationCommand(output, context); + } +} +exports.PutBucketInventoryConfigurationCommand = PutBucketInventoryConfigurationCommand; /***/ }), @@ -21026,85 +22742,47 @@ exports.fromIni = fromIni; /***/ }), /* 338 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; -/*! - * Copyright (c) 2015, Salesforce.com, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3. Neither the name of Salesforce.com nor the names of its contributors may - * be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ +// Generated by CoffeeScript 1.12.7 +(function() { + "use strict"; + var builder, defaults, parser, processors, + extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; -/*jshint unused:false */ + defaults = __webpack_require__(791); -class Store { - constructor() { - this.synchronous = false; - } + builder = __webpack_require__(860); - findCookie(domain, path, key, cb) { - throw new Error("findCookie is not implemented"); - } + parser = __webpack_require__(549); - findCookies(domain, path, allowSpecialUseDomain, cb) { - throw new Error("findCookies is not implemented"); - } + processors = __webpack_require__(909); - putCookie(cookie, cb) { - throw new Error("putCookie is not implemented"); - } + exports.defaults = defaults.defaults; - updateCookie(oldCookie, newCookie, cb) { - // recommended default implementation: - // return this.putCookie(newCookie, cb); - throw new Error("updateCookie is not implemented"); - } + exports.processors = processors; - removeCookie(domain, path, key, cb) { - throw new Error("removeCookie is not implemented"); - } + exports.ValidationError = (function(superClass) { + extend(ValidationError, superClass); - removeCookies(domain, path, cb) { - throw new Error("removeCookies is not implemented"); - } + function ValidationError(message) { + this.message = message; + } - removeAllCookies(cb) { - throw new Error("removeAllCookies is not implemented"); - } + return ValidationError; - getAllCookies(cb) { - throw new Error( - "getAllCookies is not implemented (therefore jar cannot be serialized)" - ); - } -} + })(Error); -exports.Store = Store; + exports.Builder = builder.Builder; + + exports.Parser = parser.Parser; + + exports.parseString = parser.parseString; + + exports.parseStringPromise = parser.parseStringPromise; + +}).call(this); /***/ }), @@ -21773,42 +23451,29 @@ tslib_1.__exportStar(__webpack_require__(354), exports); /***/ }), /* 350 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -// Generated by CoffeeScript 1.12.7 -(function() { - "use strict"; - var prefixMatch; +"use strict"; - prefixMatch = new RegExp(/(?!xmlns)^.*:/); - - exports.normalize = function(str) { - return str.toLowerCase(); - }; - - exports.firstCharLowerCase = function(str) { - return str.charAt(0).toLowerCase() + str.slice(1); - }; - - exports.stripPrefix = function(str) { - return str.replace(prefixMatch, ''); - }; - - exports.parseNumbers = function(str) { - if (!isNaN(str)) { - str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HashCalculator = void 0; +const stream_1 = __webpack_require__(794); +class HashCalculator extends stream_1.Writable { + constructor(hash, options) { + super(options); + this.hash = hash; } - return str; - }; - - exports.parseBooleans = function(str) { - if (/^(?:true|false)$/i.test(str)) { - str = str.toLowerCase() === 'true'; + _write(chunk, encoding, callback) { + try { + this.hash.update(chunk); + } + catch (err) { + return callback(err); + } + callback(); } - return str; - }; - -}).call(this); +} +exports.HashCalculator = HashCalculator; /***/ }), @@ -22199,20 +23864,55 @@ tslib_1.__exportStar(__webpack_require__(781), exports); /***/ }), /* 361 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; -const EndpointMode_1 = __webpack_require__(670); -exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; -exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; -exports.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4, +exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; +exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; +exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; +exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; +exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; +exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; +exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; +exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; +exports.REGION_SET_PARAM = "X-Amz-Region-Set"; +exports.AUTH_HEADER = "authorization"; +exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); +exports.DATE_HEADER = "date"; +exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; +exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); +exports.SHA256_HEADER = "x-amz-content-sha256"; +exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); +exports.HOST_HEADER = "host"; +exports.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true, }; +exports.PROXY_HEADER_PATTERN = /^proxy-/; +exports.SEC_HEADER_PATTERN = /^sec-/; +exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; +exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; +exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; +exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; +exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; +exports.MAX_CACHE_SIZE = 50; +exports.KEY_TYPE_IDENTIFIER = "aws4_request"; +exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; /***/ }), @@ -22308,46 +24008,106 @@ function logProxy(funcName, namespace, args) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.PutBucketInventoryConfigurationCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class PutBucketInventoryConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; +exports.getCanonicalQuery = void 0; +const util_uri_escape_1 = __webpack_require__(30); +const constants_1 = __webpack_require__(361); +const getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query).sort()) { + if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { + continue; + } + keys.push(key); + const value = query[key]; + if (typeof value === "string") { + serialized[key] = `${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`; + } + else if (Array.isArray(value)) { + serialized[key] = value + .slice(0) + .sort() + .reduce((encoded, value) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`]), []) + .join("&"); + } } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "PutBucketInventoryConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutBucketInventoryConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlPutBucketInventoryConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlPutBucketInventoryConfigurationCommand(output, context); - } -} -exports.PutBucketInventoryConfigurationCommand = PutBucketInventoryConfigurationCommand; + return keys + .map((key) => serialized[key]) + .filter((serialized) => serialized) + .join("&"); +}; +exports.getCanonicalQuery = getCanonicalQuery; + + +/***/ }), +/* 364 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; +const protocol_http_1 = __webpack_require__(504); +const constants_1 = __webpack_require__(813); +const userAgentMiddleware = (options) => (next, context) => async (args) => { + var _a, _b; + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request)) + return next(args); + const { headers } = request; + const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; + const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), + ...customUserAgent, + ].join(constants_1.SPACE); + if (options.runtime !== "browser") { + if (normalUAValue) { + headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] + ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` + : normalUAValue; + } + headers[constants_1.USER_AGENT] = sdkUserAgentValue; + } + else { + headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + } + return next({ + ...args, + request, + }); +}; +exports.userAgentMiddleware = userAgentMiddleware; +const escapeUserAgent = ([name, version]) => { + const prefixSeparatorIndex = name.indexOf("/"); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === "api") { + uaName = uaName.toLowerCase(); + } + return [prefix, uaName, version] + .filter((item) => item && item.length > 0) + .map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")) + .join("/"); +}; +exports.getUserAgentMiddlewareOptions = { + name: "getUserAgentMiddleware", + step: "build", + priority: "low", + tags: ["SET_USER_AGENT", "USER_AGENT"], + override: true, +}; +const getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add(exports.userAgentMiddleware(config), exports.getUserAgentMiddlewareOptions); + }, +}); +exports.getUserAgentPlugin = getUserAgentPlugin; /***/ }), -/* 364 */, /* 365 */ /***/ (function(module, __unusedexports, __webpack_require__) { @@ -22582,9 +24342,9 @@ const CreateBucketCommand_1 = __webpack_require__(115); const CreateMultipartUploadCommand_1 = __webpack_require__(725); const DeleteBucketAnalyticsConfigurationCommand_1 = __webpack_require__(952); const DeleteBucketCommand_1 = __webpack_require__(918); -const DeleteBucketCorsCommand_1 = __webpack_require__(857); +const DeleteBucketCorsCommand_1 = __webpack_require__(751); const DeleteBucketEncryptionCommand_1 = __webpack_require__(902); -const DeleteBucketIntelligentTieringConfigurationCommand_1 = __webpack_require__(513); +const DeleteBucketIntelligentTieringConfigurationCommand_1 = __webpack_require__(85); const DeleteBucketInventoryConfigurationCommand_1 = __webpack_require__(177); const DeleteBucketLifecycleCommand_1 = __webpack_require__(502); const DeleteBucketMetricsConfigurationCommand_1 = __webpack_require__(435); @@ -22614,10 +24374,10 @@ const GetBucketPolicyCommand_1 = __webpack_require__(596); const GetBucketPolicyStatusCommand_1 = __webpack_require__(895); const GetBucketReplicationCommand_1 = __webpack_require__(88); const GetBucketRequestPaymentCommand_1 = __webpack_require__(422); -const GetBucketTaggingCommand_1 = __webpack_require__(316); +const GetBucketTaggingCommand_1 = __webpack_require__(906); const GetBucketVersioningCommand_1 = __webpack_require__(6); const GetBucketWebsiteCommand_1 = __webpack_require__(35); -const GetObjectAclCommand_1 = __webpack_require__(45); +const GetObjectAclCommand_1 = __webpack_require__(847); const GetObjectCommand_1 = __webpack_require__(920); const GetObjectLegalHoldCommand_1 = __webpack_require__(259); const GetObjectLockConfigurationCommand_1 = __webpack_require__(954); @@ -22629,7 +24389,7 @@ const HeadBucketCommand_1 = __webpack_require__(953); const HeadObjectCommand_1 = __webpack_require__(236); const ListBucketAnalyticsConfigurationsCommand_1 = __webpack_require__(528); const ListBucketIntelligentTieringConfigurationsCommand_1 = __webpack_require__(439); -const ListBucketInventoryConfigurationsCommand_1 = __webpack_require__(463); +const ListBucketInventoryConfigurationsCommand_1 = __webpack_require__(715); const ListBucketMetricsConfigurationsCommand_1 = __webpack_require__(736); const ListBucketsCommand_1 = __webpack_require__(616); const ListMultipartUploadsCommand_1 = __webpack_require__(921); @@ -22643,8 +24403,8 @@ const PutBucketAnalyticsConfigurationCommand_1 = __webpack_require__(779); const PutBucketCorsCommand_1 = __webpack_require__(449); const PutBucketEncryptionCommand_1 = __webpack_require__(537); const PutBucketIntelligentTieringConfigurationCommand_1 = __webpack_require__(606); -const PutBucketInventoryConfigurationCommand_1 = __webpack_require__(363); -const PutBucketLifecycleConfigurationCommand_1 = __webpack_require__(805); +const PutBucketInventoryConfigurationCommand_1 = __webpack_require__(334); +const PutBucketLifecycleConfigurationCommand_1 = __webpack_require__(706); const PutBucketLoggingCommand_1 = __webpack_require__(740); const PutBucketMetricsConfigurationCommand_1 = __webpack_require__(617); const PutBucketNotificationConfigurationCommand_1 = __webpack_require__(699); @@ -24095,7 +25855,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(550); tslib_1.__exportStar(__webpack_require__(600), exports); tslib_1.__exportStar(__webpack_require__(770), exports); -tslib_1.__exportStar(__webpack_require__(453), exports); +tslib_1.__exportStar(__webpack_require__(905), exports); /***/ }), @@ -25197,7 +26957,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(661); tslib_1.__exportStar(__webpack_require__(162), exports); tslib_1.__exportStar(__webpack_require__(552), exports); -tslib_1.__exportStar(__webpack_require__(245), exports); +tslib_1.__exportStar(__webpack_require__(726), exports); tslib_1.__exportStar(__webpack_require__(556), exports); @@ -25334,9 +27094,9 @@ tslib_1.__exportStar(__webpack_require__(115), exports); tslib_1.__exportStar(__webpack_require__(725), exports); tslib_1.__exportStar(__webpack_require__(952), exports); tslib_1.__exportStar(__webpack_require__(918), exports); -tslib_1.__exportStar(__webpack_require__(857), exports); +tslib_1.__exportStar(__webpack_require__(751), exports); tslib_1.__exportStar(__webpack_require__(902), exports); -tslib_1.__exportStar(__webpack_require__(513), exports); +tslib_1.__exportStar(__webpack_require__(85), exports); tslib_1.__exportStar(__webpack_require__(177), exports); tslib_1.__exportStar(__webpack_require__(502), exports); tslib_1.__exportStar(__webpack_require__(435), exports); @@ -25366,10 +27126,10 @@ tslib_1.__exportStar(__webpack_require__(596), exports); tslib_1.__exportStar(__webpack_require__(895), exports); tslib_1.__exportStar(__webpack_require__(88), exports); tslib_1.__exportStar(__webpack_require__(422), exports); -tslib_1.__exportStar(__webpack_require__(316), exports); +tslib_1.__exportStar(__webpack_require__(906), exports); tslib_1.__exportStar(__webpack_require__(6), exports); tslib_1.__exportStar(__webpack_require__(35), exports); -tslib_1.__exportStar(__webpack_require__(45), exports); +tslib_1.__exportStar(__webpack_require__(847), exports); tslib_1.__exportStar(__webpack_require__(920), exports); tslib_1.__exportStar(__webpack_require__(259), exports); tslib_1.__exportStar(__webpack_require__(954), exports); @@ -25381,7 +27141,7 @@ tslib_1.__exportStar(__webpack_require__(953), exports); tslib_1.__exportStar(__webpack_require__(236), exports); tslib_1.__exportStar(__webpack_require__(528), exports); tslib_1.__exportStar(__webpack_require__(439), exports); -tslib_1.__exportStar(__webpack_require__(463), exports); +tslib_1.__exportStar(__webpack_require__(715), exports); tslib_1.__exportStar(__webpack_require__(736), exports); tslib_1.__exportStar(__webpack_require__(616), exports); tslib_1.__exportStar(__webpack_require__(921), exports); @@ -25395,8 +27155,8 @@ tslib_1.__exportStar(__webpack_require__(779), exports); tslib_1.__exportStar(__webpack_require__(449), exports); tslib_1.__exportStar(__webpack_require__(537), exports); tslib_1.__exportStar(__webpack_require__(606), exports); -tslib_1.__exportStar(__webpack_require__(363), exports); -tslib_1.__exportStar(__webpack_require__(805), exports); +tslib_1.__exportStar(__webpack_require__(334), exports); +tslib_1.__exportStar(__webpack_require__(706), exports); tslib_1.__exportStar(__webpack_require__(740), exports); tslib_1.__exportStar(__webpack_require__(617), exports); tslib_1.__exportStar(__webpack_require__(699), exports); @@ -25788,7 +27548,17 @@ exports.ProxyTracer = ProxyTracer; /***/ }), /* 399 */, -/* 400 */, +/* 400 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; +exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + + +/***/ }), /* 401 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -25911,7 +27681,7 @@ exports.DiagAPI = DiagAPI; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProxyTracerProvider = void 0; var ProxyTracer_1 = __webpack_require__(398); -var NoopTracerProvider_1 = __webpack_require__(160); +var NoopTracerProvider_1 = __webpack_require__(558); var NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider(); /** * Tracer provider which provides {@link ProxyTracer}s. @@ -26532,7 +28302,46 @@ tslib_1.__exportStar(__webpack_require__(410), exports); /***/ }), /* 415 */, -/* 416 */, +/* 416 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RefKey = exports.Events = exports.State = exports.Outputs = exports.Inputs = void 0; +var Inputs; +(function (Inputs) { + Inputs["Key"] = "key"; + Inputs["Path"] = "path"; + Inputs["RestoreKeys"] = "restore-keys"; + Inputs["UploadChunkSize"] = "upload-chunk-size"; + Inputs["AWSS3Bucket"] = "aws-s3-bucket"; + Inputs["AWSAccessKeyId"] = "aws-access-key-id"; + Inputs["AWSSecretAccessKey"] = "aws-secret-access-key"; + Inputs["AWSRegion"] = "aws-region"; + Inputs["AWSEndpoint"] = "aws-endpoint"; + Inputs["AWSS3BucketEndpoint"] = "aws-s3-bucket-endpoint"; + Inputs["AWSS3ForcePathStyle"] = "aws-s3-force-path-style"; +})(Inputs = exports.Inputs || (exports.Inputs = {})); +var Outputs; +(function (Outputs) { + Outputs["CacheHit"] = "cache-hit"; +})(Outputs = exports.Outputs || (exports.Outputs = {})); +var State; +(function (State) { + State["CachePrimaryKey"] = "CACHE_KEY"; + State["CacheMatchedKey"] = "CACHE_RESULT"; +})(State = exports.State || (exports.State = {})); +var Events; +(function (Events) { + Events["Key"] = "GITHUB_EVENT_NAME"; + Events["Push"] = "push"; + Events["PullRequest"] = "pull_request"; +})(Events = exports.Events || (exports.Events = {})); +exports.RefKey = "GITHUB_REF"; + + +/***/ }), /* 417 */ /***/ (function(module) { @@ -26551,61 +28360,7 @@ tslib_1.__exportStar(__webpack_require__(157), exports); /***/ }), -/* 419 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Generated by CoffeeScript 1.12.7 -(function() { - var NodeType, XMLCharacterData, XMLProcessingInstruction, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; - - NodeType = __webpack_require__(683); - - XMLCharacterData = __webpack_require__(639); - - module.exports = XMLProcessingInstruction = (function(superClass) { - extend(XMLProcessingInstruction, superClass); - - function XMLProcessingInstruction(parent, target, value) { - XMLProcessingInstruction.__super__.constructor.call(this, parent); - if (target == null) { - throw new Error("Missing instruction target. " + this.debugInfo()); - } - this.type = NodeType.ProcessingInstruction; - this.target = this.stringify.insTarget(target); - this.name = this.target; - if (value) { - this.value = this.stringify.insValue(value); - } - } - - XMLProcessingInstruction.prototype.clone = function() { - return Object.create(this); - }; - - XMLProcessingInstruction.prototype.toString = function(options) { - return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(options)); - }; - - XMLProcessingInstruction.prototype.isEqualNode = function(node) { - if (!XMLProcessingInstruction.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) { - return false; - } - if (node.target !== this.target) { - return false; - } - return true; - }; - - return XMLProcessingInstruction; - - })(XMLCharacterData); - -}).call(this); - - -/***/ }), +/* 419 */, /* 420 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -28048,79 +29803,12 @@ exports.NonRecordingSpan = NonRecordingSpan; /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; -/*! - * Copyright (c) 2018, Salesforce.com, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3. Neither the name of Salesforce.com nor the names of its contributors may - * be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -const psl = __webpack_require__(729); - -// RFC 6761 -const SPECIAL_USE_DOMAINS = [ - "local", - "example", - "invalid", - "localhost", - "test" -]; - -const SPECIAL_TREATMENT_DOMAINS = ["localhost", "invalid"]; - -function getPublicSuffix(domain, options = {}) { - const domainParts = domain.split("."); - const topLevelDomain = domainParts[domainParts.length - 1]; - const allowSpecialUseDomain = !!options.allowSpecialUseDomain; - const ignoreError = !!options.ignoreError; - - if (allowSpecialUseDomain && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) { - if (domainParts.length > 1) { - const secondLevelDomain = domainParts[domainParts.length - 2]; - // In aforementioned example, the eTLD/pubSuf will be apple.localhost - return `${secondLevelDomain}.${topLevelDomain}`; - } else if (SPECIAL_TREATMENT_DOMAINS.includes(topLevelDomain)) { - // For a single word special use domain, e.g. 'localhost' or 'invalid', per RFC 6761, - // "Application software MAY recognize {localhost/invalid} names as special, or - // MAY pass them to name resolution APIs as they would for other domain names." - return `${topLevelDomain}`; - } - } - - if (!ignoreError && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) { - throw new Error( - `Cookie has domain set to the public suffix "${topLevelDomain}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain:true, rejectPublicSuffixes: false}.` - ); - } - - return psl.get(domain); -} - -exports.getPublicSuffix = getPublicSuffix; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.escapeUriPath = void 0; +const escape_uri_1 = __webpack_require__(857); +const escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); +exports.escapeUriPath = escapeUriPath; /***/ }), @@ -28209,7 +29897,7 @@ __exportStar(__webpack_require__(809), exports); __exportStar(__webpack_require__(39), exports); __exportStar(__webpack_require__(530), exports); __exportStar(__webpack_require__(875), exports); -__exportStar(__webpack_require__(906), exports); +__exportStar(__webpack_require__(626), exports); __exportStar(__webpack_require__(843), exports); __exportStar(__webpack_require__(398), exports); __exportStar(__webpack_require__(402), exports); @@ -28217,7 +29905,7 @@ __exportStar(__webpack_require__(43), exports); __exportStar(__webpack_require__(652), exports); __exportStar(__webpack_require__(732), exports); __exportStar(__webpack_require__(998), exports); -__exportStar(__webpack_require__(586), exports); +__exportStar(__webpack_require__(489), exports); __exportStar(__webpack_require__(220), exports); __exportStar(__webpack_require__(957), exports); __exportStar(__webpack_require__(975), exports); @@ -28227,7 +29915,7 @@ Object.defineProperty(exports, "createTraceState", { enumerable: true, get: func __exportStar(__webpack_require__(694), exports); __exportStar(__webpack_require__(977), exports); __exportStar(__webpack_require__(8), exports); -var spancontext_utils_1 = __webpack_require__(905); +var spancontext_utils_1 = __webpack_require__(479); Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } }); Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } }); Object.defineProperty(exports, "isValidSpanId", { enumerable: true, get: function () { return spancontext_utils_1.isValidSpanId; } }); @@ -28315,11 +30003,67 @@ var _default = v5; exports.default = _default; /***/ }), -/* 444 */, +/* 444 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getRuntimeConfig = void 0; +const tslib_1 = __webpack_require__(174); +const package_json_1 = tslib_1.__importDefault(__webpack_require__(824)); +const defaultStsRoleAssumers_1 = __webpack_require__(551); +const config_resolver_1 = __webpack_require__(529); +const credential_provider_node_1 = __webpack_require__(125); +const hash_node_1 = __webpack_require__(806); +const middleware_retry_1 = __webpack_require__(286); +const node_config_provider_1 = __webpack_require__(519); +const node_http_handler_1 = __webpack_require__(384); +const util_base64_node_1 = __webpack_require__(287); +const util_body_length_node_1 = __webpack_require__(555); +const util_user_agent_node_1 = __webpack_require__(96); +const util_utf8_node_1 = __webpack_require__(536); +const runtimeConfig_shared_1 = __webpack_require__(34); +const smithy_client_1 = __webpack_require__(973); +const util_defaults_mode_node_1 = __webpack_require__(331); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : defaultStsRoleAssumers_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, + }; +}; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), /* 445 */ /***/ (function(module, __unusedexports, __webpack_require__) { -var CombinedStream = __webpack_require__(547); +var CombinedStream = __webpack_require__(2); var util = __webpack_require__(669); var path = __webpack_require__(622); var http = __webpack_require__(605); @@ -28328,7 +30072,7 @@ var parseUrl = __webpack_require__(835).parse; var fs = __webpack_require__(747); var Stream = __webpack_require__(794).Stream; var mime = __webpack_require__(432); -var asynckit = __webpack_require__(334); +var asynckit = __webpack_require__(658); var populate = __webpack_require__(182); // Public API @@ -28946,12 +30690,36 @@ exports.PutBucketCorsCommand = PutBucketCorsCommand; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveEventStreamSerdeConfig = void 0; -const resolveEventStreamSerdeConfig = (input) => ({ - ...input, - eventStreamMarshaller: input.eventStreamSerdeProvider(input), -}); -exports.resolveEventStreamSerdeConfig = resolveEventStreamSerdeConfig; +exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; +function hasHeader(soughtHeader, headers) { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; +} +exports.hasHeader = hasHeader; +function getHeaderValue(soughtHeader, headers) { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return undefined; +} +exports.getHeaderValue = getHeaderValue; +function deleteHeader(soughtHeader, headers) { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } +} +exports.deleteHeader = deleteHeader; /***/ }), @@ -29268,11 +31036,20 @@ var __createBinding; /***/ }), /* 453 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; +const EndpointMode_1 = __webpack_require__(670); +exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; +exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; +exports.ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode_1.EndpointMode.IPv4, +}; /***/ }), @@ -29285,7 +31062,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.isCrtAvailable = void 0; const isCrtAvailable = () => { try { - if ( true && __webpack_require__(757)) { + if ( true && __webpack_require__(574)) { return ["md/crt-avail"]; } return null; @@ -29719,9 +31496,9 @@ exports.getInstanceMetadataEndpoint = void 0; const node_config_provider_1 = __webpack_require__(519); const url_parser_1 = __webpack_require__(187); const Endpoint_1 = __webpack_require__(802); -const EndpointConfigOptions_1 = __webpack_require__(322); +const EndpointConfigOptions_1 = __webpack_require__(702); const EndpointMode_1 = __webpack_require__(670); -const EndpointModeConfigOptions_1 = __webpack_require__(361); +const EndpointModeConfigOptions_1 = __webpack_require__(453); const getInstanceMetadataEndpoint = async () => url_parser_1.parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig())); exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; const getFromEndpointConfig = async () => node_config_provider_1.loadConfig(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); @@ -29822,44 +31599,424 @@ tslib_1.__exportStar(__webpack_require__(919), exports); "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListBucketInventoryConfigurationsCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class ListBucketInventoryConfigurationsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "ListBucketInventoryConfigurationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListBucketInventoryConfigurationsRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListBucketInventoryConfigurationsOutput.filterSensitiveLog, +exports.AwsIotMqttConnectionConfigBuilder = void 0; +const mqtt_1 = __webpack_require__(45); +const io = __importStar(__webpack_require__(886)); +const io_1 = __webpack_require__(886); +const platform = __importStar(__webpack_require__(196)); +const error_1 = __webpack_require__(92); +const auth_1 = __webpack_require__(686); +const iot_shared = __importStar(__webpack_require__(580)); +/** + * Builder functions to create a {@link MqttConnectionConfig} which can then be used to create + * a {@link MqttClientConnection}, configured for use with AWS IoT. + * + * @category IoT + */ +class AwsIotMqttConnectionConfigBuilder { + constructor(tls_ctx_options) { + this.tls_ctx_options = tls_ctx_options; + this.params = { + client_id: '', + host_name: '', + socket_options: new io.SocketOptions(), + port: 8883, + use_websocket: false, + clean_session: false, + keep_alive: undefined, + will: undefined, + username: "", + password: undefined, + tls_ctx: undefined, + reconnect_min_sec: mqtt_1.DEFAULT_RECONNECT_MIN_SEC, + reconnect_max_sec: mqtt_1.DEFAULT_RECONNECT_MAX_SEC }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + this.is_using_custom_authorizer = false; } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlListBucketInventoryConfigurationsCommand(input, context); + /** + * Create a new builder with mTLS file paths + * @param cert_path - Path to certificate, in PEM format + * @param key_path - Path to private key, in PEM format + */ + static new_mtls_builder_from_path(cert_path, key_path) { + let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls_from_path(cert_path, key_path)); + builder.params.port = 8883; + if (io.is_alpn_available()) { + builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca'); + } + return builder; } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlListBucketInventoryConfigurationsCommand(output, context); + /** + * Create a new builder with mTLS cert pair in memory + * @param cert - Certificate, in PEM format + * @param private_key - Private key, in PEM format + */ + static new_mtls_builder(cert, private_key) { + let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls(cert, private_key)); + builder.params.port = 8883; + if (io.is_alpn_available()) { + builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca'); + } + return builder; + } + /** + * Create a new builder with mTLS using a PKCS#11 library for private key operations. + * + * NOTE: This configuration only works on Unix devices. + * @param pkcs11_options - PKCS#11 options. + */ + static new_mtls_pkcs11_builder(pkcs11_options) { + let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls_pkcs11(pkcs11_options)); + builder.params.port = 8883; + if (io.is_alpn_available()) { + builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca'); + } + return builder; + } + /** + * Create a new builder with mTLS using a certificate in a Windows certificate store. + * + * NOTE: This configuration only works on Windows devices. + * @param certificate_path - Path to certificate in a Windows certificate store. + * The path must use backslashes and end with the certificate's thumbprint. + * Example: `CurrentUser\MY\A11F8A9B5DF5B98BA3508FBCA575D09570E0D2C6` + */ + static new_mtls_windows_cert_store_path_builder(certificate_path) { + let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls_windows_cert_store_path(certificate_path)); + builder.params.port = 8883; + if (io.is_alpn_available()) { + builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca'); + } + return builder; + } + /** + * Creates a new builder with default Tls options. This requires setting the connection details manually. + */ + static new_default_builder() { + let ctx_options = new io.TlsContextOptions(); + let builder = new AwsIotMqttConnectionConfigBuilder(ctx_options); + return builder; + } + static new_websocket_builder(...args) { + return this.new_with_websockets(...args); + } + static configure_websocket_handshake(builder, options) { + if (options) { + builder.params.websocket_handshake_transform = (request, done) => __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const signing_config = (_b = (_a = options.create_signing_config) === null || _a === void 0 ? void 0 : _a.call(options)) !== null && _b !== void 0 ? _b : { + algorithm: auth_1.AwsSigningAlgorithm.SigV4, + signature_type: auth_1.AwsSignatureType.HttpRequestViaQueryParams, + provider: options.credentials_provider, + region: options.region, + service: (_c = options.service) !== null && _c !== void 0 ? _c : "iotdevicegateway", + signed_body_value: auth_1.AwsSignedBodyValue.EmptySha256, + omit_session_token: true, + }; + try { + yield (0, auth_1.aws_sign_request)(request, signing_config); + done(); + } + catch (error) { + if (error instanceof error_1.CrtError) { + done(error.error_code); + } + else { + done(3); /* TODO: AWS_ERROR_UNKNOWN */ + } + } + }); + } + return builder; + } + /** + * Configures the connection to use MQTT over websockets. Forces the port to 443. + */ + static new_with_websockets(options) { + let tls_ctx_options = options === null || options === void 0 ? void 0 : options.tls_ctx_options; + if (!tls_ctx_options) { + tls_ctx_options = new io_1.TlsContextOptions(); + tls_ctx_options.alpn_list = []; + } + let builder = new AwsIotMqttConnectionConfigBuilder(tls_ctx_options); + builder.params.use_websocket = true; + builder.params.proxy_options = options === null || options === void 0 ? void 0 : options.proxy_options; + if (builder.tls_ctx_options) { + builder.params.port = 443; + } + this.configure_websocket_handshake(builder, options); + return builder; + } + /** + * Overrides the default system trust store. + * @param ca_dirpath - Only used on Unix-style systems where all trust anchors are + * stored in a directory (e.g. /etc/ssl/certs). + * @param ca_filepath - Single file containing all trust CAs, in PEM format + */ + with_certificate_authority_from_path(ca_dirpath, ca_filepath) { + this.tls_ctx_options.override_default_trust_store_from_path(ca_dirpath, ca_filepath); + return this; + } + /** + * Overrides the default system trust store. + * @param ca - Buffer containing all trust CAs, in PEM format + */ + with_certificate_authority(ca) { + this.tls_ctx_options.override_default_trust_store(ca); + return this; + } + /** + * Configures the IoT endpoint for this connection + * @param endpoint The IoT endpoint to connect to + */ + with_endpoint(endpoint) { + this.params.host_name = endpoint; + return this; + } + /** + * The port to connect to on the IoT endpoint + * @param port The port to connect to on the IoT endpoint. Usually 8883 for MQTT, or 443 for websockets + */ + with_port(port) { + this.params.port = port; + return this; + } + /** + * Configures the client_id to use to connect to the IoT Core service + * @param client_id The client id for this connection. Needs to be unique across all devices/clients. + */ + with_client_id(client_id) { + this.params.client_id = client_id; + return this; + } + /** + * Determines whether or not the service should try to resume prior subscriptions, if it has any + * @param clean_session true if the session should drop prior subscriptions when this client connects, false to resume the session + */ + with_clean_session(clean_session) { + this.params.clean_session = clean_session; + return this; + } + /** + * Configures MQTT keep-alive via PING messages. Note that this is not TCP keepalive. + * @param keep_alive How often in seconds to send an MQTT PING message to the service to keep the connection alive + */ + with_keep_alive_seconds(keep_alive) { + this.params.keep_alive = keep_alive; + return this; + } + /** + * Configures the TCP socket timeout (in milliseconds) + * @param timeout_ms TCP socket timeout + * @deprecated + */ + with_timeout_ms(timeout_ms) { + this.with_ping_timeout_ms(timeout_ms); + return this; + } + /** + * Configures the PINGREQ response timeout (in milliseconds) + * @param ping_timeout PINGREQ response timeout + */ + with_ping_timeout_ms(ping_timeout) { + this.params.ping_timeout = ping_timeout; + return this; + } + /** + * Configures the protocol operation timeout (in milliseconds) + * @param protocol_operation_timeout protocol operation timeout + */ + with_protocol_operation_timeout_ms(protocol_operation_timeout) { + this.params.protocol_operation_timeout = protocol_operation_timeout; + return this; + } + /** + * Configures the will message to be sent when this client disconnects + * @param will The will topic, qos, and message + */ + with_will(will) { + this.params.will = will; + return this; + } + /** + * Configures the common settings for the socket to use when opening a connection to the server + * @param socket_options The socket settings + */ + with_socket_options(socket_options) { + this.params.socket_options = socket_options; + return this; + } + /** + * Configures AWS credentials (usually from Cognito) for this connection + * @param aws_region The service region to connect to + * @param aws_access_id IAM Access ID + * @param aws_secret_key IAM Secret Key + * @param aws_sts_token STS token from Cognito (optional) + */ + with_credentials(aws_region, aws_access_id, aws_secret_key, aws_sts_token) { + return AwsIotMqttConnectionConfigBuilder.configure_websocket_handshake(this, { + credentials_provider: auth_1.AwsCredentialsProvider.newStatic(aws_access_id, aws_secret_key, aws_sts_token), + region: aws_region, + service: "iotdevicegateway", + }); + } + /** + * Configure the http proxy options to use to establish the connection + * @param proxy_options proxy options to use to establish the mqtt connection + */ + with_http_proxy_options(proxy_options) { + this.params.proxy_options = proxy_options; + return this; + } + /** + * Sets the custom authorizer settings. This function will modify the username, port, and TLS options. + * + * @param username The username to use with the custom authorizer. If an empty string is passed, it will + * check to see if a username has already been set (via WithUsername function). If no + * username is set then no username will be passed with the MQTT connection. + * @param authorizerName The name of the custom authorizer. If an empty string is passed, then + * 'x-amz-customauthorizer-name' will not be added with the MQTT connection. + * @param authorizerSignature The signature of the custom authorizer. If an empty string is passed, then + * 'x-amz-customauthorizer-signature' will not be added with the MQTT connection. + * @param password The password to use with the custom authorizer. If null is passed, then no password will + * be set. + */ + with_custom_authorizer(username, authorizer_name, authorizer_signature, password) { + this.is_using_custom_authorizer = true; + let username_string = iot_shared.populate_username_string_with_custom_authorizer("", username, authorizer_name, authorizer_signature, this.params.username); + this.params.username = username_string; + this.params.password = password; + this.tls_ctx_options.alpn_list = ["mqtt"]; + this.params.port = 443; + return this; + } + /** + * Sets username for the connection + * + * @param username the username that will be passed with the MQTT connection + */ + with_username(username) { + this.params.username = username; + return this; + } + /** + * Sets password for the connection + * + * @param password the password that will be passed with the MQTT connection + */ + with_password(password) { + this.params.password = password; + return this; + } + /** + * Configure the max reconnection period (in second). The reonnection period will + * be set in range of [reconnect_min_sec,reconnect_max_sec]. + * @param reconnect_max_sec max reconnection period + */ + with_reconnect_max_sec(max_sec) { + this.params.reconnect_max_sec = max_sec; + return this; + } + /** + * Configure the min reconnection period (in second). The reonnection period will + * be set in range of [reconnect_min_sec,reconnect_max_sec]. + * @param reconnect_min_sec min reconnection period + */ + with_reconnect_min_sec(min_sec) { + this.params.reconnect_min_sec = min_sec; + return this; + } + /** + * Returns the configured MqttConnectionConfig. On the first invocation of this function, the TLS context is cached + * and re-used on all subsequent calls to build(). + * @returns The configured MqttConnectionConfig + */ + build() { + var _a, _b, _c; + if (this.params.client_id === undefined || this.params.host_name === undefined) { + throw 'client_id and endpoint are required'; + } + // Check to see if a custom authorizer is being used but not through the builder + if (this.is_using_custom_authorizer == false) { + if (iot_shared.is_string_and_not_empty(this.params.username)) { + if (((_a = this.params.username) === null || _a === void 0 ? void 0 : _a.indexOf("x-amz-customauthorizer-name=")) != -1 || ((_b = this.params.username) === null || _b === void 0 ? void 0 : _b.indexOf("x-amz-customauthorizer-signature=")) != -1) { + this.is_using_custom_authorizer = true; + } + } + } + // Is the user trying to connect using a custom authorizer? + if (this.is_using_custom_authorizer == true) { + if (this.params.port != 443) { + console.log("Warning: Attempting to connect to authorizer with unsupported port. Port is not 443..."); + } + if (this.tls_ctx_options.alpn_list != ["mqtt"]) { + this.tls_ctx_options.alpn_list = ["mqtt"]; + } + } + /* + * By caching and reusing the TLS context we get an enormous memory savings on a per-connection basis. + * The tradeoff is that you can't modify TLS options in between calls to build. + * Previously we were making a new one with every single connection which had a huge negative impact on large + * scale tests. + */ + if (this.params.tls_ctx === undefined) { + this.params.tls_ctx = new io.ClientTlsContext(this.tls_ctx_options); + } + // Add the metrics string + if (iot_shared.is_string_and_not_empty(this.params.username) == false) { + this.params.username = "?SDK=NodeJSv2&Version="; + } + else { + if (((_c = this.params.username) === null || _c === void 0 ? void 0 : _c.indexOf("?")) != -1) { + this.params.username += "&SDK=NodeJSv2&Version="; + } + else { + this.params.username += "?SDK=NodeJSv2&Version="; + } + } + this.params.username += platform.crt_version(); + return this.params; } } -exports.ListBucketInventoryConfigurationsCommand = ListBucketInventoryConfigurationsCommand; - +exports.AwsIotMqttConnectionConfigBuilder = AwsIotMqttConnectionConfigBuilder; +//# sourceMappingURL=aws_iot.js.map /***/ }), /* 464 */ @@ -30019,8 +32176,33 @@ const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";" /***/ }), -/* 465 */, -/* 466 */, +/* 465 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); + + +/***/ }), +/* 466 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.defaultRetryDecider = void 0; +const service_error_classification_1 = __webpack_require__(223); +const defaultRetryDecider = (error) => { + if (!error) { + return false; + } + return service_error_classification_1.isRetryableByTrait(error) || service_error_classification_1.isClockSkewError(error) || service_error_classification_1.isThrottlingError(error) || service_error_classification_1.isTransientError(error); +}; +exports.defaultRetryDecider = defaultRetryDecider; + + +/***/ }), /* 467 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -30392,8 +32574,238 @@ exports.getIDToken = getIDToken; //# sourceMappingURL=core.js.map /***/ }), -/* 471 */, -/* 472 */, +/* 471 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.hmac_sha256 = exports.Sha256Hmac = exports.hash_sha1 = exports.Sha1Hash = exports.hash_sha256 = exports.Sha256Hash = exports.hash_md5 = exports.Md5Hash = void 0; +/** + * A module containing support for a variety of cryptographic operations. + * + * @packageDocumentation + * @module crypto + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +const native_resource_1 = __webpack_require__(940); +/** + * Object that allows for continuous hashing of data. + * + * @internal + */ +class Hash extends native_resource_1.NativeResource { + /** + * Hash additional data. + * @param data Additional data to hash + */ + update(data) { + binding_1.default.hash_update(this.native_handle(), data); + } + /** + * Completes the hash computation and returns the final hash digest. + * + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + */ + finalize(truncate_to) { + return binding_1.default.hash_digest(this.native_handle(), truncate_to); + } + constructor(hash_handle) { + super(hash_handle); + } +} +/** + * Object that allows for continuous MD5 hashing of data. + * + * @category Crypto + */ +class Md5Hash extends Hash { + constructor() { + super(binding_1.default.hash_md5_new()); + } +} +exports.Md5Hash = Md5Hash; +/** + * Computes an MD5 hash. Use this if you don't need to stream the data you're hashing and can load the entire input + * into memory. + * + * @param data The data to hash + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + * + * @category Crypto + */ +function hash_md5(data, truncate_to) { + return binding_1.default.hash_md5_compute(data, truncate_to); +} +exports.hash_md5 = hash_md5; +/** + * Object that allows for continuous SHA256 hashing of data. + * + * @category Crypto + */ +class Sha256Hash extends Hash { + constructor() { + super(binding_1.default.hash_sha256_new()); + } +} +exports.Sha256Hash = Sha256Hash; +/** + * Computes an SHA256 hash. Use this if you don't need to stream the data you're hashing and can load the entire input + * into memory. + * + * @param data The data to hash + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + * + * @category Crypto + */ +function hash_sha256(data, truncate_to) { + return binding_1.default.hash_sha256_compute(data, truncate_to); +} +exports.hash_sha256 = hash_sha256; +/** + * Object that allows for continuous SHA1 hashing of data. + * + * @category Crypto + */ +class Sha1Hash extends Hash { + constructor() { + super(binding_1.default.hash_sha1_new()); + } +} +exports.Sha1Hash = Sha1Hash; +/** + * Computes an SHA1 hash. Use this if you don't need to stream the data you're hashing and can load the entire input + * into memory. + * + * @param data The data to hash + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + * + * @category Crypto + */ +function hash_sha1(data, truncate_to) { + return binding_1.default.hash_sha1_compute(data, truncate_to); +} +exports.hash_sha1 = hash_sha1; +/** + * Object that allows for continuous hashing of data with an hmac secret. + * + * @category Crypto + */ +class Hmac extends native_resource_1.NativeResource { + /** + * Hash additional data. + * + * @param data additional data to hash + */ + update(data) { + binding_1.default.hmac_update(this.native_handle(), data); + } + /** + * Completes the hash computation and returns the final hmac digest. + * + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + */ + finalize(truncate_to) { + return binding_1.default.hmac_digest(this.native_handle(), truncate_to); + } + constructor(hash_handle) { + super(hash_handle); + } +} +/** + * Object that allows for continuous SHA256 HMAC hashing of data. + * + * @category Crypto + */ +class Sha256Hmac extends Hmac { + constructor(secret) { + super(binding_1.default.hmac_sha256_new(secret)); + } +} +exports.Sha256Hmac = Sha256Hmac; +/** + * Computes an SHA256 HMAC. Use this if you don't need to stream the data you're hashing and can load the entire input + * into memory. + * + * @param secret The key to use for the HMAC process + * @param data The data to hash + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + * + * @category Crypto + */ +function hmac_sha256(secret, data, truncate_to) { + return binding_1.default.hmac_sha256_compute(secret, data, truncate_to); +} +exports.hmac_sha256 = hmac_sha256; +//# sourceMappingURL=crypto.js.map + +/***/ }), +/* 472 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.native_memory_dump = exports.native_memory = void 0; +/** + * + * A module containing some miscellaneous crt native memory queries + * + * @packageDocumentation + * @module crt + * @mergeTarget + */ +/** + * Memory reporting is controlled by the AWS_CRT_MEMORY_TRACING environment + * variable. Possible values are: + * * 0 - No tracing + * * 1 - Track active memory usage. Incurs a small performance penalty. + * * 2 - Track active memory usage, and also track callstacks for every allocation. + * This incurs a performance penalty, depending on the cost of the platform's + * stack unwinding/backtrace API. + * @category System + */ +const binding_1 = __importDefault(__webpack_require__(513)); +/** + * If the ```AWS_CRT_MEMORY_TRACING``` is environment variable is set to 1 or 2, + * will return the native memory usage in bytes. Otherwise, returns 0. + * @returns The total allocated native memory, in bytes. + * + * @category System + */ +function native_memory() { + return binding_1.default.native_memory(); +} +exports.native_memory = native_memory; +/** + * Dumps outstanding native memory allocations. If the ```AWS_CRT_MEMORY_TRACING``` + * environment variable is set to 1 or 2, will dump all active native memory to + * the console log. + * + * @category System + */ +function native_memory_dump() { + return binding_1.default.native_memory_dump(); +} +exports.native_memory_dump = native_memory_dump; +//# sourceMappingURL=crt.js.map + +/***/ }), /* 473 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -30436,8 +32848,102 @@ exports.SENSITIVE_STRING = "***SensitiveInformation***"; /***/ }), /* 477 */, -/* 478 */, -/* 479 */, +/* 478 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; +const loggerMiddleware = () => (next, context) => async (args) => { + const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; + const response = await next(args); + if (!logger) { + return response; + } + if (typeof logger.info === "function") { + const { $metadata, ...outputWithoutMetadata } = response.output; + logger.info({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata, + }); + } + return response; +}; +exports.loggerMiddleware = loggerMiddleware; +exports.loggerMiddlewareOptions = { + name: "loggerMiddleware", + tags: ["LOGGER"], + step: "initialize", + override: true, +}; +const getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(exports.loggerMiddleware(), exports.loggerMiddlewareOptions); + }, +}); +exports.getLoggerPlugin = getLoggerPlugin; + + +/***/ }), +/* 479 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0; +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var invalid_span_constants_1 = __webpack_require__(685); +var NonRecordingSpan_1 = __webpack_require__(437); +var VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i; +var VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i; +function isValidTraceId(traceId) { + return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID; +} +exports.isValidTraceId = isValidTraceId; +function isValidSpanId(spanId) { + return VALID_SPANID_REGEX.test(spanId) && spanId !== invalid_span_constants_1.INVALID_SPANID; +} +exports.isValidSpanId = isValidSpanId; +/** + * Returns true if this {@link SpanContext} is valid. + * @return true if this {@link SpanContext} is valid. + */ +function isSpanContextValid(spanContext) { + return (isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId)); +} +exports.isSpanContextValid = isSpanContextValid; +/** + * Wrap the given {@link SpanContext} in a new non-recording {@link Span} + * + * @param spanContext span context to be wrapped + * @returns a new non-recording {@link Span} with the provided context + */ +function wrapSpanContext(spanContext) { + return new NonRecordingSpan_1.NonRecordingSpan(spanContext); +} +exports.wrapSpanContext = wrapSpanContext; +//# sourceMappingURL=spancontext-utils.js.map + +/***/ }), /* 480 */ /***/ (function(__unusedmodule, exports) { @@ -30638,7 +33144,30 @@ const mapWithFilter = (target, filter, instructions) => { /***/ }), -/* 489 */, +/* 489 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=span.js.map + +/***/ }), /* 490 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -30650,7 +33179,7 @@ const protocol_http_1 = __webpack_require__(504); const querystring_builder_1 = __webpack_require__(979); const http_1 = __webpack_require__(605); const https_1 = __webpack_require__(211); -const constants_1 = __webpack_require__(702); +const constants_1 = __webpack_require__(400); const get_transformed_headers_1 = __webpack_require__(458); const set_connection_timeout_1 = __webpack_require__(204); const set_socket_timeout_1 = __webpack_require__(233); @@ -31676,44 +34205,72 @@ module.exports = {"application/1d-interleaved-parityfec":{"source":"iana"},"appl "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteBucketIntelligentTieringConfigurationCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class DeleteBucketIntelligentTieringConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "DeleteBucketIntelligentTieringConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteBucketIntelligentTieringConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(output, context); +const path = __importStar(__webpack_require__(622)); +const os_1 = __webpack_require__(87); +const fs_1 = __webpack_require__(747); +const process_1 = __webpack_require__(316); +const upgrade_string = "Please upgrade to node >=10.16.0, or use the provided browser implementation."; +if ('napi' in process_1.versions) { + // @ts-ignore + const napi_version = parseInt(process_1.versions['napi']); + if (napi_version < 4) { + throw new Error("The AWS CRT native implementation requires that NAPI version 4 be present. " + upgrade_string); } } -exports.DeleteBucketIntelligentTieringConfigurationCommand = DeleteBucketIntelligentTieringConfigurationCommand; - +else { + throw new Error("The current runtime is not reporting an NAPI version. " + upgrade_string); +} +const binary_name = 'aws-crt-nodejs'; +const platformDir = `${os_1.platform}-${os_1.arch}`; +let source_root = path.resolve(__dirname, '..', '..'); +const dist = path.join(source_root, 'dist'); +if ((0, fs_1.existsSync)(dist)) { + source_root = dist; +} +const bin_path = path.resolve(source_root, 'bin'); +const search_paths = [ + path.join(bin_path, platformDir, binary_name), +]; +let binding; +for (const path of search_paths) { + if ((0, fs_1.existsSync)(path + '.node')) { + binding = require(path); + break; + } +} +if (binding == undefined) { + throw new Error("AWS CRT binary not present in any of the following locations:\n\t" + search_paths.join('\n\t')); +} +exports.default = binding; +//# sourceMappingURL=binding.js.map /***/ }), /* 514 */, @@ -31972,8 +34529,8 @@ exports.validateMrapAlias = validateMrapAlias; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = __webpack_require__(546); -tslib_1.__exportStar(__webpack_require__(984), exports); +const tslib_1 = __webpack_require__(586); +tslib_1.__exportStar(__webpack_require__(13), exports); /***/ }), @@ -32427,7 +34984,7 @@ exports.getValidatedProcessCredentials = getValidatedProcessCredentials; Object.defineProperty(exports, "__esModule", { value: true }); exports.paginateListAccounts = void 0; -const ListAccountsCommand_1 = __webpack_require__(245); +const ListAccountsCommand_1 = __webpack_require__(726); const SSO_1 = __webpack_require__(688); const SSOClient_1 = __webpack_require__(153); const makePagedClientRequest = async (client, input, ...args) => { @@ -33179,529 +35736,144 @@ eval("require")("encoding"); /***/ }), /* 546 */ -/***/ (function(module) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if ( true && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.moveHeadersToQuery = void 0; +const cloneRequest_1 = __webpack_require__(746); +const moveHeadersToQuery = (request, options = {}) => { + var _a; + const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const name of Object.keys(headers)) { + const lname = name.toLowerCase(); + if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { + query[name] = headers[name]; + delete headers[name]; + } + } + return { + ...request, + headers, + query, + }; +}; +exports.moveHeadersToQuery = moveHeadersToQuery; /***/ }), /* 547 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -var util = __webpack_require__(669); -var Stream = __webpack_require__(794).Stream; -var DelayedStream = __webpack_require__(33); +"use strict"; -module.exports = CombinedStream; -function CombinedStream() { - this.writable = false; - this.readable = true; - this.dataSize = 0; - this.maxDataSize = 2 * 1024 * 1024; - this.pauseStreams = true; - this._released = false; - this._streams = []; - this._currentStream = null; - this._insideLoop = false; - this._pendingNext = false; -} -util.inherits(CombinedStream, Stream); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; -CombinedStream.create = function(options) { - var combinedStream = new this(); +var _rng = _interopRequireDefault(__webpack_require__(733)); +var _stringify = _interopRequireDefault(__webpack_require__(855)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); options = options || {}; - for (var option in options) { - combinedStream[option] = options[option]; - } + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 - return combinedStream; -}; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); -CombinedStream.isStreamLike = function(stream) { - return (typeof stream !== 'function') - && (typeof stream !== 'string') - && (typeof stream !== 'boolean') - && (typeof stream !== 'number') - && (!Buffer.isBuffer(stream)); -}; - -CombinedStream.prototype.append = function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - - if (isStreamLike) { - if (!(stream instanceof DelayedStream)) { - var newStream = DelayedStream.create(stream, { - maxDataSize: Infinity, - pauseStream: this.pauseStreams, - }); - stream.on('data', this._checkDataSize.bind(this)); - stream = newStream; + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; } - this._handleErrors(stream); - - if (this.pauseStreams) { - stream.pause(); + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); } - this._streams.push(stream); - return this; -}; + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch -CombinedStream.prototype.pipe = function(dest, options) { - Stream.prototype.pipe.call(this, dest, options); - this.resume(); - return dest; -}; + msecs += 12219292800000; // `time_low` -CombinedStream.prototype._getNext = function() { - this._currentStream = null; + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` - if (this._insideLoop) { - this._pendingNext = true; - return; // defer call + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; } - this._insideLoop = true; - try { - do { - this._pendingNext = false; - this._realGetNext(); - } while (this._pendingNext); - } finally { - this._insideLoop = false; - } -}; - -CombinedStream.prototype._realGetNext = function() { - var stream = this._streams.shift(); - - - if (typeof stream == 'undefined') { - this.end(); - return; - } - - if (typeof stream !== 'function') { - this._pipeNext(stream); - return; - } - - var getStream = stream; - getStream(function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('data', this._checkDataSize.bind(this)); - this._handleErrors(stream); - } - - this._pipeNext(stream); - }.bind(this)); -}; - -CombinedStream.prototype._pipeNext = function(stream) { - this._currentStream = stream; - - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('end', this._getNext.bind(this)); - stream.pipe(this, {end: false}); - return; - } - - var value = stream; - this.write(value); - this._getNext(); -}; - -CombinedStream.prototype._handleErrors = function(stream) { - var self = this; - stream.on('error', function(err) { - self._emitError(err); - }); -}; - -CombinedStream.prototype.write = function(data) { - this.emit('data', data); -}; - -CombinedStream.prototype.pause = function() { - if (!this.pauseStreams) { - return; - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); - this.emit('pause'); -}; - -CombinedStream.prototype.resume = function() { - if (!this._released) { - this._released = true; - this.writable = true; - this._getNext(); - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); - this.emit('resume'); -}; - -CombinedStream.prototype.end = function() { - this._reset(); - this.emit('end'); -}; - -CombinedStream.prototype.destroy = function() { - this._reset(); - this.emit('close'); -}; - -CombinedStream.prototype._reset = function() { - this.writable = false; - this._streams = []; - this._currentStream = null; -}; - -CombinedStream.prototype._checkDataSize = function() { - this._updateDataSize(); - if (this.dataSize <= this.maxDataSize) { - return; - } - - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; - this._emitError(new Error(message)); -}; - -CombinedStream.prototype._updateDataSize = function() { - this.dataSize = 0; - - var self = this; - this._streams.forEach(function(stream) { - if (!stream.dataSize) { - return; - } - - self.dataSize += stream.dataSize; - }); - - if (this._currentStream && this._currentStream.dataSize) { - this.dataSize += this._currentStream.dataSize; - } -}; - -CombinedStream.prototype._emitError = function(err) { - this._reset(); - this.emit('error', err); -}; + return buf || (0, _stringify.default)(b); +} +var _default = v1; +exports.default = _default; /***/ }), /* 548 */ @@ -34033,7 +36205,7 @@ var __createBinding; bom = __webpack_require__(210); - processors = __webpack_require__(350); + processors = __webpack_require__(909); setImmediate = __webpack_require__(213).setImmediate; @@ -34947,7 +37119,47 @@ exports.LogoutCommand = LogoutCommand; /***/ }), /* 557 */, -/* 558 */, +/* 558 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NoopTracerProvider = void 0; +var NoopTracer_1 = __webpack_require__(151); +/** + * An implementation of the {@link TracerProvider} which returns an impotent + * Tracer for all calls to `getTracer`. + * + * All operations are no-op. + */ +var NoopTracerProvider = /** @class */ (function () { + function NoopTracerProvider() { + } + NoopTracerProvider.prototype.getTracer = function (_name, _version, _options) { + return new NoopTracer_1.NoopTracer(); + }; + return NoopTracerProvider; +}()); +exports.NoopTracerProvider = NoopTracerProvider; +//# sourceMappingURL=NoopTracerProvider.js.map + +/***/ }), /* 559 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -35706,7 +37918,7 @@ const middleware_retry_1 = __webpack_require__(286); const middleware_sdk_sts_1 = __webpack_require__(122); const middleware_user_agent_1 = __webpack_require__(105); const smithy_client_1 = __webpack_require__(973); -const runtimeConfig_1 = __webpack_require__(679); +const runtimeConfig_1 = __webpack_require__(444); class STSClient extends smithy_client_1.Client { constructor(configuration) { const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration); @@ -36194,51 +38406,139 @@ exports.default = _default; /***/ }), /* 573 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SocketDomain = exports.SocketType = exports.TlsVersion = void 0; +/** + * + * A module containing a grab bag of support for core network I/O functionality, including sockets, TLS, DNS, logging, + * error handling, streams, and connection -> thread mapping. + * + * Categories include: + * - Network: socket configuration + * - TLS: tls configuration + * - Logging: logging controls and configuration + * - IO: everything else + * + * @packageDocumentation + * @module io + */ +/** + * TLS Version + * + * @category TLS + */ +var TlsVersion; +(function (TlsVersion) { + TlsVersion[TlsVersion["SSLv3"] = 0] = "SSLv3"; + TlsVersion[TlsVersion["TLSv1"] = 1] = "TLSv1"; + TlsVersion[TlsVersion["TLSv1_1"] = 2] = "TLSv1_1"; + TlsVersion[TlsVersion["TLSv1_2"] = 3] = "TLSv1_2"; + TlsVersion[TlsVersion["TLSv1_3"] = 4] = "TLSv1_3"; + TlsVersion[TlsVersion["Default"] = 128] = "Default"; +})(TlsVersion = exports.TlsVersion || (exports.TlsVersion = {})); +/** + * @category Network + */ +var SocketType; +(function (SocketType) { + /** + * A streaming socket sends reliable messages over a two-way connection. + * This means TCP when used with {@link SocketDomain.IPV4}/{@link SocketDomain.IPV6}, + * and Unix domain sockets when used with {@link SocketDomain.LOCAL } + */ + SocketType[SocketType["STREAM"] = 0] = "STREAM"; + /** + * A datagram socket is connectionless and sends unreliable messages. + * This means UDP when used with {@link SocketDomain.IPV4}/{@link SocketDomain.IPV6}. + * {@link SocketDomain.LOCAL} is not compatible with {@link DGRAM} + */ + SocketType[SocketType["DGRAM"] = 1] = "DGRAM"; +})(SocketType = exports.SocketType || (exports.SocketType = {})); +/** + * @category Network + */ +var SocketDomain; +(function (SocketDomain) { + /** IPv4 sockets */ + SocketDomain[SocketDomain["IPV4"] = 0] = "IPV4"; + /** IPv6 sockets */ + SocketDomain[SocketDomain["IPV6"] = 1] = "IPV6"; + /** UNIX domain socket/Windows named pipes */ + SocketDomain[SocketDomain["LOCAL"] = 2] = "LOCAL"; +})(SocketDomain = exports.SocketDomain || (exports.SocketDomain = {})); +//# sourceMappingURL=io.js.map + +/***/ }), +/* 574 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetSessionTokenCommand = void 0; -const middleware_serde_1 = __webpack_require__(347); -const middleware_signing_1 = __webpack_require__(307); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(37); -const Aws_query_1 = __webpack_require__(963); -class GetSessionTokenCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetSessionTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetSessionTokenRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryGetSessionTokenCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryGetSessionTokenCommand(output, context); - } -} -exports.GetSessionTokenCommand = GetSessionTokenCommand; - +exports.CrtError = exports.checksums = exports.resource_safety = exports.platform = exports.iot = exports.auth = exports.crypto = exports.http = exports.mqtt = exports.io = exports.crt = void 0; +// This is the entry point for the AWS CRT nodejs native libraries +/* common libs */ +const platform = __importStar(__webpack_require__(196)); +exports.platform = platform; +const resource_safety = __importStar(__webpack_require__(159)); +exports.resource_safety = resource_safety; +/* node specific libs */ +const crt = __importStar(__webpack_require__(472)); +exports.crt = crt; +const io = __importStar(__webpack_require__(886)); +exports.io = io; +const mqtt = __importStar(__webpack_require__(46)); +exports.mqtt = mqtt; +const http = __importStar(__webpack_require__(227)); +exports.http = http; +const crypto = __importStar(__webpack_require__(471)); +exports.crypto = crypto; +const auth = __importStar(__webpack_require__(686)); +exports.auth = auth; +const iot = __importStar(__webpack_require__(463)); +exports.iot = iot; +const checksums = __importStar(__webpack_require__(984)); +exports.checksums = checksums; +const error_1 = __webpack_require__(92); +Object.defineProperty(exports, "CrtError", { enumerable: true, get: function () { return error_1.CrtError; } }); +//# sourceMappingURL=index.js.map /***/ }), -/* 574 */, /* 575 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -36255,7 +38555,90 @@ tslib_1.__exportStar(__webpack_require__(376), exports); /* 577 */, /* 578 */, /* 579 */, -/* 580 */, +/* 580 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.populate_username_string_with_custom_authorizer = exports.is_string_and_not_empty = exports.add_to_username_parameter = void 0; +/** + * + * A module containing miscellaneous functionality that is shared across both native and browser for aws_iot + * + * @packageDocumentation + * @module aws_iot + */ +/** + * A helper function to add parameters to the username in with_custom_authorizer function + * + * @internal + */ +function add_to_username_parameter(current_username, parameter_value, parameter_pre_text) { + let return_string = current_username; + if (return_string.indexOf("?") != -1) { + return_string += "&"; + } + else { + return_string += "?"; + } + if (parameter_value.indexOf(parameter_pre_text) != -1) { + return return_string + parameter_value; + } + else { + return return_string + parameter_pre_text + parameter_value; + } +} +exports.add_to_username_parameter = add_to_username_parameter; +/** + * A helper function to see if a string is not null, is defined, and is not an empty string + * + * @internal + */ +function is_string_and_not_empty(item) { + return item != undefined && typeof (item) == 'string' && item != ""; +} +exports.is_string_and_not_empty = is_string_and_not_empty; +/** + * A helper function to populate the username with the Custom Authorizer fields + * @param current_username the current username + * @param input_username the username to add - can be an empty string to skip + * @param input_authorizer the name of the authorizer to add - can be an empty string to skip + * @param input_signature the name of the signature to add - can be an empty string to skip + * @param input_builder_username the username from the MQTT builder + * @returns The finished username with the additions added to it + * + * @internal + */ +function populate_username_string_with_custom_authorizer(current_username, input_username, input_authorizer, input_signature, input_builder_username) { + let username_string = ""; + if (current_username) { + username_string += current_username; + } + if (is_string_and_not_empty(input_username) == false) { + if (is_string_and_not_empty(input_builder_username) && input_builder_username) { + username_string += input_builder_username; + } + } + else { + username_string += input_username; + } + if (is_string_and_not_empty(input_authorizer) && input_authorizer) { + username_string = add_to_username_parameter(username_string, input_authorizer, "x-amz-customauthorizer-name="); + } + if (is_string_and_not_empty(input_signature) && input_signature) { + username_string = add_to_username_parameter(username_string, input_signature, "x-amz-customauthorizer-signature="); + } + return username_string; +} +exports.populate_username_string_with_custom_authorizer = populate_username_string_with_custom_authorizer; +//# sourceMappingURL=aws_iot_shared.js.map + +/***/ }), /* 581 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -36383,27 +38766,315 @@ Object.defineProperty(exports, "__esModule", { value: true }); /***/ }), /* 586 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(module) { -"use strict"; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); +}); -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=span.js.map /***/ }), /* 587 */ @@ -38301,7 +40972,7 @@ module.exports = require("events"); Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(301); -tslib_1.__exportStar(__webpack_require__(451), exports); +tslib_1.__exportStar(__webpack_require__(814), exports); /***/ }), @@ -63866,8 +66537,79 @@ exports.moveHeadersToQuery = moveHeadersToQuery; /***/ }), -/* 625 */, -/* 626 */, +/* 625 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getUnmarshalledStream = void 0; +function getUnmarshalledStream(source, options) { + return { + [Symbol.asyncIterator]: async function* () { + for await (const chunk of source) { + const message = options.eventMarshaller.unmarshall(chunk); + const { value: messageType } = message.headers[":message-type"]; + if (messageType === "error") { + const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError"); + unmodeledError.name = message.headers[":error-code"].value; + throw unmodeledError; + } + else if (messageType === "exception") { + const code = message.headers[":exception-type"].value; + const exception = { [code]: message }; + const deserializedException = await options.deserializer(exception); + if (deserializedException.$unknown) { + const error = new Error(options.toUtf8(message.body)); + error.name = code; + throw error; + } + throw deserializedException[code]; + } + else if (messageType === "event") { + const event = { + [message.headers[":event-type"].value]: message, + }; + const deserialized = await options.deserializer(event); + if (deserialized.$unknown) + continue; + yield deserialized; + } + else { + throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`); + } + } + }, + }; +} +exports.getUnmarshalledStream = getUnmarshalledStream; + + +/***/ }), +/* 626 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=attributes.js.map + +/***/ }), /* 627 */, /* 628 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -77134,8 +79876,8 @@ const stripLeadingZeroes = (value) => { const punycode = __webpack_require__(571); const urlParse = __webpack_require__(215); -const pubsuffix = __webpack_require__(438); -const Store = __webpack_require__(338).Store; +const pubsuffix = __webpack_require__(700); +const Store = __webpack_require__(242).Store; const MemoryCookieStore = __webpack_require__(27).MemoryCookieStore; const pathMatch = __webpack_require__(178).pathMatch; const validators = __webpack_require__(330); @@ -80587,7 +83329,137 @@ exports.default = _default; /***/ }), -/* 646 */, +/* 646 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CrtSignerV4 = void 0; +const querystring_parser_1 = __webpack_require__(805); +const signature_v4_1 = __webpack_require__(994); +const util_middleware_1 = __webpack_require__(325); +const aws_crt_1 = __webpack_require__(574); +const constants_1 = __webpack_require__(218); +const headerUtil_1 = __webpack_require__(451); +function sdkHttpRequest2crtHttpRequest(sdkRequest) { + (0, headerUtil_1.deleteHeader)(constants_1.SHA256_HEADER, sdkRequest.headers); + const headersArray = Object.entries(sdkRequest.headers); + const crtHttpHeaders = new aws_crt_1.http.HttpHeaders(headersArray); + const queryString = (0, signature_v4_1.getCanonicalQuery)(sdkRequest); + return new aws_crt_1.http.HttpRequest(sdkRequest.method, sdkRequest.path + "?" + queryString, crtHttpHeaders); +} +class CrtSignerV4 { + constructor({ credentials, region, service, sha256, applyChecksum = true, uriEscapePath = true, signingAlgorithm = aws_crt_1.auth.AwsSigningAlgorithm.SigV4, }) { + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.signingAlgorithm = signingAlgorithm; + this.applyChecksum = applyChecksum; + this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); + this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); + aws_crt_1.io.enable_logging(aws_crt_1.io.LogLevel.ERROR); + } + async options2crtConfigure({ signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}, viaHeader, payloadHash, expiresIn) { + const credentials = await this.credentialProvider(); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const service = signingService !== null && signingService !== void 0 ? signingService : this.service; + if ((signableHeaders === null || signableHeaders === void 0 ? void 0 : signableHeaders.has("x-amzn-trace-id")) || (signableHeaders === null || signableHeaders === void 0 ? void 0 : signableHeaders.has("user-agent"))) { + throw new Error("internal check (x-amzn-trace-id, user-agent) is not supported to be included to sign with CRT."); + } + const headersUnsignable = getHeadersUnsignable(unsignableHeaders, signableHeaders); + return { + algorithm: this.signingAlgorithm, + signature_type: viaHeader + ? aws_crt_1.auth.AwsSignatureType.HttpRequestViaHeaders + : aws_crt_1.auth.AwsSignatureType.HttpRequestViaQueryParams, + provider: sdk2crtCredentialsProvider(credentials), + region: region, + service: service, + date: new Date(signingDate), + header_blacklist: headersUnsignable, + use_double_uri_encode: this.uriEscapePath, + signed_body_value: payloadHash, + signed_body_header: this.applyChecksum && viaHeader + ? aws_crt_1.auth.AwsSignedBodyHeaderType.XAmzContentSha256 + : aws_crt_1.auth.AwsSignedBodyHeaderType.None, + expiration_in_seconds: expiresIn, + }; + } + async presign(originalRequest, options = {}) { + if (options.expiresIn && options.expiresIn > constants_1.MAX_PRESIGNED_TTL) { + return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); + } + const request = (0, signature_v4_1.moveHeadersToQuery)((0, signature_v4_1.prepareRequest)(originalRequest)); + const crtSignedRequest = await this.signRequest(request, await this.options2crtConfigure(options, false, await (0, signature_v4_1.getPayloadHash)(originalRequest, this.sha256), options.expiresIn ? options.expiresIn : 3600)); + request.query = this.getQueryParam(crtSignedRequest.path); + return request; + } + async sign(toSign, options) { + const request = (0, signature_v4_1.prepareRequest)(toSign); + const crtSignedRequest = await this.signRequest(request, await this.options2crtConfigure(options, true, await (0, signature_v4_1.getPayloadHash)(toSign, this.sha256))); + request.headers = crtSignedRequest.headers._flatten().reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}); + return request; + } + getQueryParam(crtPath) { + const start = crtPath.search(/\?/); + const startHash = crtPath.search(/\#/); + const end = startHash == -1 ? undefined : startHash; + const queryParam = {}; + if (start == -1) { + return queryParam; + } + const queryString = crtPath.slice(start + 1, end); + return (0, querystring_parser_1.parseQueryString)(queryString); + } + async signRequest(requestToSign, crtConfig) { + const request = sdkHttpRequest2crtHttpRequest(requestToSign); + try { + return await aws_crt_1.auth.aws_sign_request(request, crtConfig); + } + catch (error) { + throw new Error(error); + } + } + async verifySigv4aSigning(request, signature, expectedCanonicalRequest, eccPubKeyX, eccPubKeyY, options = {}) { + const sdkRequest = (0, signature_v4_1.prepareRequest)(request); + const crtRequest = sdkHttpRequest2crtHttpRequest(sdkRequest); + const payloadHash = await (0, signature_v4_1.getPayloadHash)(request, this.sha256); + const crtConfig = await this.options2crtConfigure(options, true, payloadHash); + return aws_crt_1.auth.aws_verify_sigv4a_signing(crtRequest, crtConfig, expectedCanonicalRequest, signature, eccPubKeyX, eccPubKeyY); + } + async verifySigv4aPreSigning(request, signature, expectedCanonicalRequest, eccPubKeyX, eccPubKeyY, options = {}) { + if (typeof signature != "string") { + return false; + } + const sdkRequest = (0, signature_v4_1.prepareRequest)(request); + const crtRequest = sdkHttpRequest2crtHttpRequest(sdkRequest); + const crtConfig = await this.options2crtConfigure(options, false, await (0, signature_v4_1.getPayloadHash)(request, this.sha256), options.expiresIn ? options.expiresIn : 3600); + return aws_crt_1.auth.aws_verify_sigv4a_signing(crtRequest, crtConfig, expectedCanonicalRequest, signature, eccPubKeyX, eccPubKeyY); + } +} +exports.CrtSignerV4 = CrtSignerV4; +function sdk2crtCredentialsProvider(credentials) { + return aws_crt_1.auth.AwsCredentialsProvider.newStatic(credentials.accessKeyId, credentials.secretAccessKey, credentials.sessionToken); +} +function getHeadersUnsignable(unsignableHeaders, signableHeaders) { + if (!unsignableHeaders) { + return []; + } + if (!signableHeaders) { + return [...unsignableHeaders]; + } + const result = new Set([...unsignableHeaders]); + for (let it = signableHeaders.values(), val = null; (val = it.next().value);) { + if (result.has(val)) { + result.delete(val); + } + } + return [...result]; +} + + +/***/ }), /* 647 */, /* 648 */, /* 649 */ @@ -81336,7 +84208,18 @@ exports.NODE_REGION_CONFIG_FILE_OPTIONS = { /***/ }), -/* 658 */, +/* 658 */ +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = +{ + parallel : __webpack_require__(424), + serial : __webpack_require__(863), + serialOrdered : __webpack_require__(904) +}; + + +/***/ }), /* 659 */, /* 660 */ /***/ (function(module, __unusedexports, __webpack_require__) { @@ -82159,9 +85042,9 @@ var EndpointMode; XMLText = __webpack_require__(666); - XMLProcessingInstruction = __webpack_require__(419); + XMLProcessingInstruction = __webpack_require__(836); - XMLDummy = __webpack_require__(764); + XMLDummy = __webpack_require__(956); XMLDTDAttList = __webpack_require__(801); @@ -82807,37 +85690,28 @@ exports.createLogLevelDiagLogger = createLogLevelDiagLogger; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.RefKey = exports.Events = exports.State = exports.Outputs = exports.Inputs = void 0; -var Inputs; -(function (Inputs) { - Inputs["Key"] = "key"; - Inputs["Path"] = "path"; - Inputs["RestoreKeys"] = "restore-keys"; - Inputs["UploadChunkSize"] = "upload-chunk-size"; - Inputs["AWSS3Bucket"] = "aws-s3-bucket"; - Inputs["AWSAccessKeyId"] = "aws-access-key-id"; - Inputs["AWSSecretAccessKey"] = "aws-secret-access-key"; - Inputs["AWSRegion"] = "aws-region"; - Inputs["AWSEndpoint"] = "aws-endpoint"; - Inputs["AWSS3BucketEndpoint"] = "aws-s3-bucket-endpoint"; - Inputs["AWSS3ForcePathStyle"] = "aws-s3-force-path-style"; -})(Inputs = exports.Inputs || (exports.Inputs = {})); -var Outputs; -(function (Outputs) { - Outputs["CacheHit"] = "cache-hit"; -})(Outputs = exports.Outputs || (exports.Outputs = {})); -var State; -(function (State) { - State["CachePrimaryKey"] = "CACHE_KEY"; - State["CacheMatchedKey"] = "CACHE_RESULT"; -})(State = exports.State || (exports.State = {})); -var Events; -(function (Events) { - Events["Key"] = "GITHUB_EVENT_NAME"; - Events["Push"] = "push"; - Events["PullRequest"] = "pull_request"; -})(Events = exports.Events || (exports.Events = {})); -exports.RefKey = "GITHUB_REF"; +exports.AbortSignal = void 0; +class AbortSignal { + constructor() { + this.onabort = null; + this._aborted = false; + Object.defineProperty(this, "_aborted", { + value: false, + writable: true, + }); + } + get aborted() { + return this._aborted; + } + abort() { + this._aborted = true; + if (this.onabort) { + this.onabort(this); + this.onabort = null; + } + } +} +exports.AbortSignal = AbortSignal; /***/ }), @@ -82865,7 +85739,51 @@ var _default = validate; exports.default = _default; /***/ }), -/* 677 */, +/* 677 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; +const util_hex_encoding_1 = __webpack_require__(145); +const constants_1 = __webpack_require__(361); +const signingKeyCache = {}; +const cacheQueue = []; +const createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; +exports.createScope = createScope; +const getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = `AWS4${credentials.secretAccessKey}`; + for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return (signingKeyCache[cacheKey] = key); +}; +exports.getSigningKey = getSigningKey; +const clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); +}; +exports.clearCredentialCache = clearCredentialCache; +const hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update(data); + return hash.digest(); +}; + + +/***/ }), /* 678 */ /***/ (function(__unusedmodule, exports) { @@ -82921,59 +85839,325 @@ exports.toUtf8 = toUtf8; /***/ }), /* 679 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(module) { -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const tslib_1 = __webpack_require__(174); -const package_json_1 = tslib_1.__importDefault(__webpack_require__(824)); -const defaultStsRoleAssumers_1 = __webpack_require__(551); -const config_resolver_1 = __webpack_require__(529); -const credential_provider_node_1 = __webpack_require__(125); -const hash_node_1 = __webpack_require__(145); -const middleware_retry_1 = __webpack_require__(286); -const node_config_provider_1 = __webpack_require__(519); -const node_http_handler_1 = __webpack_require__(384); -const util_base64_node_1 = __webpack_require__(287); -const util_body_length_node_1 = __webpack_require__(555); -const util_user_agent_node_1 = __webpack_require__(96); -const util_utf8_node_1 = __webpack_require__(536); -const runtimeConfig_shared_1 = __webpack_require__(34); -const smithy_client_1 = __webpack_require__(973); -const util_defaults_mode_node_1 = __webpack_require__(331); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : defaultStsRoleAssumers_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __classPrivateFieldIn; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + __classPrivateFieldIn = function (state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); +}); /***/ }), @@ -82998,11 +86182,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; const tslib_1 = __webpack_require__(933); const package_json_1 = tslib_1.__importDefault(__webpack_require__(771)); -const client_sts_1 = __webpack_require__(79); +const client_sts_1 = __webpack_require__(822); const config_resolver_1 = __webpack_require__(529); const credential_provider_node_1 = __webpack_require__(125); const eventstream_serde_node_1 = __webpack_require__(310); -const hash_node_1 = __webpack_require__(145); +const hash_node_1 = __webpack_require__(806); const hash_stream_node_1 = __webpack_require__(420); const middleware_bucket_endpoint_1 = __webpack_require__(234); const middleware_retry_1 = __webpack_require__(286); @@ -83145,7 +86329,218 @@ exports.INVALID_SPAN_CONTEXT = { //# sourceMappingURL=invalid-span-constants.js.map /***/ }), -/* 686 */, +/* 686 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.aws_verify_sigv4a_signing = exports.aws_sign_request = exports.AwsSignedBodyHeaderType = exports.AwsSignedBodyValue = exports.AwsSignatureType = exports.AwsSigningAlgorithm = exports.AwsCredentialsProvider = void 0; +const binding_1 = __importDefault(__webpack_require__(513)); +const error_1 = __webpack_require__(92); +const io_1 = __webpack_require__(886); +/** + * Credentials providers source the AwsCredentials needed to sign an authenticated AWS request. + * + * We don't currently expose an interface for fetching credentials from Javascript. + * + * @category Auth + */ +/* Subclass for the purpose of exposing a non-NativeHandle based API */ +class AwsCredentialsProvider extends binding_1.default.AwsCredentialsProvider { + /** + * Creates a new default credentials provider to be used internally for AWS credentials resolution: + * + * The CRT's default provider chain currently sources in this order: + * + * 1. Environment + * 2. Profile + * 3. (conditional, off by default) ECS + * 4. (conditional, on by default) EC2 Instance Metadata + * + * @param bootstrap (optional) client bootstrap to be used to establish any required network connections + * + * @returns a new credentials provider using default credentials resolution rules + */ + static newDefault(bootstrap = undefined) { + return super.newDefault(bootstrap != null ? bootstrap.native_handle() : null); + } + /** + * Creates a new credentials provider that returns a fixed set of credentials. + * + * @param access_key access key to use in the static credentials + * @param secret_key secret key to use in the static credentials + * @param session_token (optional) session token to use in the static credentials + * + * @returns a new credentials provider that will return a fixed set of AWS credentials + */ + static newStatic(access_key, secret_key, session_token) { + return super.newStatic(access_key, secret_key, session_token); + } + /** + * Creates a new credentials provider that sources credentials from the AWS Cognito Identity service via the + * GetCredentialsForIdentity http API. + * + * @param config provider configuration necessary to make GetCredentialsForIdentity web requests + * + * @returns a new credentials provider that returns credentials sourced from the AWS Cognito Identity service + */ + static newCognito(config) { + return super.newCognito(config, config.tlsContext != null ? config.tlsContext.native_handle() : new io_1.ClientTlsContext().native_handle(), config.bootstrap != null ? config.bootstrap.native_handle() : null, config.httpProxyOptions ? config.httpProxyOptions.create_native_handle() : null); + } +} +exports.AwsCredentialsProvider = AwsCredentialsProvider; +/** + * AWS signing algorithm enumeration. + * + * @category Auth + */ +var AwsSigningAlgorithm; +(function (AwsSigningAlgorithm) { + /** Use the Aws signature version 4 signing process to sign the request */ + AwsSigningAlgorithm[AwsSigningAlgorithm["SigV4"] = 0] = "SigV4"; + /** Use the Aws signature version 4 Asymmetric signing process to sign the request */ + AwsSigningAlgorithm[AwsSigningAlgorithm["SigV4Asymmetric"] = 1] = "SigV4Asymmetric"; +})(AwsSigningAlgorithm = exports.AwsSigningAlgorithm || (exports.AwsSigningAlgorithm = {})); +/** + * AWS signature type enumeration. + * + * @category Auth + */ +var AwsSignatureType; +(function (AwsSignatureType) { + /** Sign an http request and apply the signing results as headers */ + AwsSignatureType[AwsSignatureType["HttpRequestViaHeaders"] = 0] = "HttpRequestViaHeaders"; + /** Sign an http request and apply the signing results as query params */ + AwsSignatureType[AwsSignatureType["HttpRequestViaQueryParams"] = 1] = "HttpRequestViaQueryParams"; + /** Sign an http request payload chunk */ + AwsSignatureType[AwsSignatureType["HttpRequestChunk"] = 2] = "HttpRequestChunk"; + /** Sign an event stream event */ + AwsSignatureType[AwsSignatureType["HttpRequestEvent"] = 3] = "HttpRequestEvent"; +})(AwsSignatureType = exports.AwsSignatureType || (exports.AwsSignatureType = {})); +/** + * Values for use with {@link AwsSigningConfig.signed_body_value}. + * + * Some services use special values (e.g. 'UNSIGNED-PAYLOAD') when the body + * is not being signed in the usual way. + * + * @category Auth + */ +var AwsSignedBodyValue; +(function (AwsSignedBodyValue) { + /** Use the SHA-256 of the empty string as the canonical request payload value */ + AwsSignedBodyValue["EmptySha256"] = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + /** Use the literal string 'UNSIGNED-PAYLOAD' as the canonical request payload value */ + AwsSignedBodyValue["UnsignedPayload"] = "UNSIGNED-PAYLOAD"; + /** Use the literal string 'STREAMING-AWS4-HMAC-SHA256-PAYLOAD' as the canonical request payload value */ + AwsSignedBodyValue["StreamingAws4HmacSha256Payload"] = "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"; + /** Use the literal string 'STREAMING-AWS4-HMAC-SHA256-EVENTS' as the canonical request payload value */ + AwsSignedBodyValue["StreamingAws4HmacSha256Events"] = "STREAMING-AWS4-HMAC-SHA256-EVENTS"; +})(AwsSignedBodyValue = exports.AwsSignedBodyValue || (exports.AwsSignedBodyValue = {})); +/** + * AWS signed body header enumeration. + * + * @category Auth + */ +var AwsSignedBodyHeaderType; +(function (AwsSignedBodyHeaderType) { + /** Do not add a header containing the canonical request payload value */ + AwsSignedBodyHeaderType[AwsSignedBodyHeaderType["None"] = 0] = "None"; + /** Add the X-Amz-Content-Sha256 header with the canonical request payload value */ + AwsSignedBodyHeaderType[AwsSignedBodyHeaderType["XAmzContentSha256"] = 1] = "XAmzContentSha256"; +})(AwsSignedBodyHeaderType = exports.AwsSignedBodyHeaderType || (exports.AwsSignedBodyHeaderType = {})); +/** + * Perform AWS HTTP request signing. + * + * The {@link HttpRequest} is transformed asynchronously, + * according to the {@link AwsSigningConfig}. + * + * When signing: + * 1. It is good practice to use a new config for each signature, + * or the date might get too old. + * + * 2. Do not add the following headers to requests before signing, they may be added by the signer: + * x-amz-content-sha256, + * X-Amz-Date, + * Authorization + * + * 3. Do not add the following query params to requests before signing, they may be added by the signer: + * X-Amz-Signature, + * X-Amz-Date, + * X-Amz-Credential, + * X-Amz-Algorithm, + * X-Amz-SignedHeaders + * @param request The HTTP request to sign. + * @param config Configuration for signing. + * @returns A promise whose result will be the signed + * {@link HttpRequest}. The future will contain an exception + * if the signing process fails. + * + * @category Auth + */ +function aws_sign_request(request, config) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + try { + /* Note: if the body of request has not fully loaded, it will lead to an endless loop. + * User should set the signed_body_value of config to prevent this endless loop in this case */ + binding_1.default.aws_sign_request(request, config, (error_code) => { + if (error_code == 0) { + resolve(request); + } + else { + reject(new error_1.CrtError(error_code)); + } + }); + } + catch (error) { + reject(error); + } + }); + }); +} +exports.aws_sign_request = aws_sign_request; +/** + * + * @internal + * + * Test only. + * Verifies: + * (1) The canonical request generated during sigv4a signing of the request matches what is passed in + * (2) The signature passed in is a valid ECDSA signature of the hashed string-to-sign derived from the + * canonical request + * + * @param request The HTTP request to sign. + * @param config Configuration for signing. + * @param expected_canonical_request String type of expected canonical request. Refer to XXX(link to doc?) + * @param signature The generated signature string from {@link aws_sign_request}, which is verified here. + * @param ecc_key_pub_x the x coordinate of the public part of the ecc key to verify the signature. + * @param ecc_key_pub_y the y coordinate of the public part of the ecc key to verify the signature + * @returns True, if the verification succeed. Otherwise, false. + */ +function aws_verify_sigv4a_signing(request, config, expected_canonical_request, signature, ecc_key_pub_x, ecc_key_pub_y) { + return binding_1.default.aws_verify_sigv4a_signing(request, config, expected_canonical_request, signature, ecc_key_pub_x, ecc_key_pub_y); +} +exports.aws_verify_sigv4a_signing = aws_verify_sigv4a_signing; +//# sourceMappingURL=auth.js.map + +/***/ }), /* 687 */, /* 688 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -83156,7 +86551,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.SSO = void 0; const GetRoleCredentialsCommand_1 = __webpack_require__(162); const ListAccountRolesCommand_1 = __webpack_require__(552); -const ListAccountsCommand_1 = __webpack_require__(245); +const ListAccountsCommand_1 = __webpack_require__(726); const LogoutCommand_1 = __webpack_require__(556); const SSOClient_1 = __webpack_require__(153); class SSO extends SSOClient_1.SSOClient { @@ -84061,7 +87456,86 @@ exports.PutBucketNotificationConfigurationCommand = PutBucketNotificationConfigu /***/ }), -/* 700 */, +/* 700 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; +/*! + * Copyright (c) 2018, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +const psl = __webpack_require__(729); + +// RFC 6761 +const SPECIAL_USE_DOMAINS = [ + "local", + "example", + "invalid", + "localhost", + "test" +]; + +const SPECIAL_TREATMENT_DOMAINS = ["localhost", "invalid"]; + +function getPublicSuffix(domain, options = {}) { + const domainParts = domain.split("."); + const topLevelDomain = domainParts[domainParts.length - 1]; + const allowSpecialUseDomain = !!options.allowSpecialUseDomain; + const ignoreError = !!options.ignoreError; + + if (allowSpecialUseDomain && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) { + if (domainParts.length > 1) { + const secondLevelDomain = domainParts[domainParts.length - 2]; + // In aforementioned example, the eTLD/pubSuf will be apple.localhost + return `${secondLevelDomain}.${topLevelDomain}`; + } else if (SPECIAL_TREATMENT_DOMAINS.includes(topLevelDomain)) { + // For a single word special use domain, e.g. 'localhost' or 'invalid', per RFC 6761, + // "Application software MAY recognize {localhost/invalid} names as special, or + // MAY pass them to name resolution APIs as they would for other domain names." + return `${topLevelDomain}`; + } + } + + if (!ignoreError && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) { + throw new Error( + `Cookie has domain set to the public suffix "${topLevelDomain}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain:true, rejectPublicSuffixes: false}.` + ); + } + + return psl.get(domain); +} + +exports.getPublicSuffix = getPublicSuffix; + + +/***/ }), /* 701 */ /***/ (function(__unusedmodule, exports) { @@ -84085,8 +87559,14 @@ exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; -exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; +exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; +exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; +exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; +exports.ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], + default: undefined, +}; /***/ }), @@ -84144,65 +87624,44 @@ exports.serializerMiddleware = serializerMiddleware; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; -const protocol_http_1 = __webpack_require__(504); -const constants_1 = __webpack_require__(813); -const userAgentMiddleware = (options) => (next, context) => async (args) => { - var _a, _b; - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request)) - return next(args); - const { headers } = request; - const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; - const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), - ...customUserAgent, - ].join(constants_1.SPACE); - if (options.runtime !== "browser") { - if (normalUAValue) { - headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] - ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` - : normalUAValue; - } - headers[constants_1.USER_AGENT] = sdkUserAgentValue; +exports.PutBucketLifecycleConfigurationCommand = void 0; +const middleware_apply_body_checksum_1 = __webpack_require__(879); +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class PutBucketLifecycleConfigurationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; } - else { - headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + this.middlewareStack.use(middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "PutBucketLifecycleConfigurationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.PutBucketLifecycleConfigurationRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return next({ - ...args, - request, - }); -}; -exports.userAgentMiddleware = userAgentMiddleware; -const escapeUserAgent = ([name, version]) => { - const prefixSeparatorIndex = name.indexOf("/"); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === "api") { - uaName = uaName.toLowerCase(); + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlPutBucketLifecycleConfigurationCommand(input, context); } - return [prefix, uaName, version] - .filter((item) => item && item.length > 0) - .map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")) - .join("/"); -}; -exports.getUserAgentMiddlewareOptions = { - name: "getUserAgentMiddleware", - step: "build", - priority: "low", - tags: ["SET_USER_AGENT", "USER_AGENT"], - override: true, -}; -const getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add(exports.userAgentMiddleware(config), exports.getUserAgentMiddlewareOptions); - }, -}); -exports.getUserAgentPlugin = getUserAgentPlugin; + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlPutBucketLifecycleConfigurationCommand(output, context); + } +} +exports.PutBucketLifecycleConfigurationCommand = PutBucketLifecycleConfigurationCommand; /***/ }), @@ -84938,11 +88397,47 @@ tslib_1.__exportStar(__webpack_require__(587), exports); /* 713 */, /* 714 */, /* 715 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListBucketInventoryConfigurationsCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class ListBucketInventoryConfigurationsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "ListBucketInventoryConfigurationsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListBucketInventoryConfigurationsRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListBucketInventoryConfigurationsOutput.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlListBucketInventoryConfigurationsCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlListBucketInventoryConfigurationsCommand(output, context); + } +} +exports.ListBucketInventoryConfigurationsCommand = ListBucketInventoryConfigurationsCommand; /***/ }), @@ -85019,7 +88514,7 @@ const credential_provider_imds_1 = __webpack_require__(146); const node_config_provider_1 = __webpack_require__(519); const property_provider_1 = __webpack_require__(17); const constants_1 = __webpack_require__(848); -const defaultsModeConfig_1 = __webpack_require__(268); +const defaultsModeConfig_1 = __webpack_require__(274); const resolveDefaultsModeConfig = ({ region = node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = node_config_provider_1.loadConfig(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => property_provider_1.memoize(async () => { const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { @@ -86890,7 +90385,49 @@ exports.CreateMultipartUploadCommand = CreateMultipartUploadCommand; /***/ }), -/* 726 */, +/* 726 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListAccountsCommand = void 0; +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(743); +const Aws_restJson1_1 = __webpack_require__(340); +class ListAccountsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSOClient"; + const commandName = "ListAccountsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountsRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountsResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand(input, context); + } + deserialize(output, context) { + return Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand(output, context); + } +} +exports.ListAccountsCommand = ListAccountsCommand; + + +/***/ }), /* 727 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -88228,7 +91765,30 @@ exports.PutBucketPolicyCommand = PutBucketPolicyCommand; /***/ }), -/* 746 */, +/* 746 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.cloneQuery = exports.cloneRequest = void 0; +const cloneRequest = ({ headers, query, ...rest }) => ({ + ...rest, + headers: { ...headers }, + query: query ? (0, exports.cloneQuery)(query) : undefined, +}); +exports.cloneRequest = cloneRequest; +const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param, + }; +}, {}); +exports.cloneQuery = cloneQuery; + + +/***/ }), /* 747 */ /***/ (function(module) { @@ -88304,289 +91864,42 @@ exports.parseIni = parseIni; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __webpack_require__(529); -const regionHash = { - "ap-northeast-1": { - variants: [ - { - hostname: "portal.sso.ap-northeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-1", - }, - "ap-northeast-2": { - variants: [ - { - hostname: "portal.sso.ap-northeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-2", - }, - "ap-south-1": { - variants: [ - { - hostname: "portal.sso.ap-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-south-1", - }, - "ap-southeast-1": { - variants: [ - { - hostname: "portal.sso.ap-southeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-1", - }, - "ap-southeast-2": { - variants: [ - { - hostname: "portal.sso.ap-southeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-2", - }, - "ca-central-1": { - variants: [ - { - hostname: "portal.sso.ca-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ca-central-1", - }, - "eu-central-1": { - variants: [ - { - hostname: "portal.sso.eu-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-central-1", - }, - "eu-north-1": { - variants: [ - { - hostname: "portal.sso.eu-north-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-north-1", - }, - "eu-west-1": { - variants: [ - { - hostname: "portal.sso.eu-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-1", - }, - "eu-west-2": { - variants: [ - { - hostname: "portal.sso.eu-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-2", - }, - "eu-west-3": { - variants: [ - { - hostname: "portal.sso.eu-west-3.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-3", - }, - "sa-east-1": { - variants: [ - { - hostname: "portal.sso.sa-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "sa-east-1", - }, - "us-east-1": { - variants: [ - { - hostname: "portal.sso.us-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-1", - }, - "us-east-2": { - variants: [ - { - hostname: "portal.sso.us-east-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-2", - }, - "us-gov-east-1": { - variants: [ - { - hostname: "portal.sso.us-gov-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-east-1", - }, - "us-gov-west-1": { - variants: [ - { - hostname: "portal.sso.us-gov-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-west-1", - }, - "us-west-2": { - variants: [ - { - hostname: "portal.sso.us-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-west-2", - }, -}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, { - ...options, - signingService: "awsssoportal", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; +exports.DeleteBucketCorsCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class DeleteBucketCorsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "DeleteBucketCorsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteBucketCorsRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlDeleteBucketCorsCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlDeleteBucketCorsCommand(output, context); + } +} +exports.DeleteBucketCorsCommand = DeleteBucketCorsCommand; /***/ }), @@ -88637,7 +91950,12 @@ exports.PutBucketTaggingCommand = PutBucketTaggingCommand; /***/ }), -/* 753 */, +/* 753 */ +/***/ (function(module) { + +module.exports = {"name":"aws-crt","version":"1.14.5","description":"NodeJS/browser bindings to the aws-c-* libraries","homepage":"https://github.com/awslabs/aws-crt-nodejs","repository":{"type":"git","url":"git+https://github.com/awslabs/aws-crt-nodejs.git"},"contributors":["AWS Common Runtime Team "],"license":"Apache-2.0","main":"./dist/index.js","browser":"./dist.browser/browser.js","types":"./dist/index.d.ts","scripts":{"tsc":"node ./scripts/tsc.js","test":"npm run test:native","test:node":"npm run test:native","test:native":"npx jest --runInBand --verbose --config test/native/jest.config.js --forceExit","test:browser":"npx jest --runInBand --verbose --config test/browser/jest.config.js --forceExit","test:browser:ci":"npm run install:puppeteer && npm run test:browser","install:puppeteer":"npm install --save-dev jest-puppeteer puppeteer @types/puppeteer","prepare":"node ./scripts/tsc.js && node ./scripts/install.js","install":"node ./scripts/install.js"},"devDependencies":{"@types/crypto-js":"^3.1.43","@types/jest":"^27.0.1","@types/node":"^10.17.54","@types/prettier":"2.6.0","@types/puppeteer":"^5.4.4","@types/uuid":"^3.4.8","@types/ws":"^7.4.7","aws-sdk":"^2.848.0","jest":"^27.2.1","jest-puppeteer":"^5.0.4","jest-runtime":"^27.2.1","puppeteer":"^3.3.0","ts-jest":"^27.0.5","typedoc":"^0.22.18","typedoc-plugin-merge-modules":"^3.1.0","typescript":"^4.7.4","uuid":"^8.3.2","yargs":"^17.2.1"},"dependencies":{"@aws-sdk/util-utf8-browser":"^3.109.0","@httptoolkit/websocket-stream":"^6.0.0","axios":"^0.24.0","crypto-js":"^4.0.0","mqtt":"^4.3.7","cmake-js":"^6.3.2","tar":"^6.1.11"}}; + +/***/ }), /* 754 */ /***/ (function(__unusedmodule, exports) { @@ -88897,13 +92215,7 @@ exports.TraceStateImpl = TraceStateImpl; //# sourceMappingURL=tracestate-impl.js.map /***/ }), -/* 757 */ -/***/ (function() { - -eval("require")("aws-crt"); - - -/***/ }), +/* 757 */, /* 758 */, /* 759 */, /* 760 */ @@ -89302,40 +92614,38 @@ exports.waitUntilObjectNotExists = waitUntilObjectNotExists; /***/ }), /* 763 */, /* 764 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -// Generated by CoffeeScript 1.12.7 -(function() { - var NodeType, XMLDummy, XMLNode, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; - - XMLNode = __webpack_require__(257); - - NodeType = __webpack_require__(683); - - module.exports = XMLDummy = (function(superClass) { - extend(XMLDummy, superClass); - - function XMLDummy(parent) { - XMLDummy.__super__.constructor.call(this, parent); - this.type = NodeType.Dummy; - } - - XMLDummy.prototype.clone = function() { - return Object.create(this); - }; - - XMLDummy.prototype.toString = function(options) { - return ''; - }; - - return XMLDummy; - - })(XMLNode); - -}).call(this); +"use strict"; +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(748), exports); +//# sourceMappingURL=index.js.map /***/ }), /* 765 */ @@ -89453,7 +92763,7 @@ exports.DeleteBucketPolicyCommand = DeleteBucketPolicyCommand; XMLText = __webpack_require__(666); - XMLProcessingInstruction = __webpack_require__(419); + XMLProcessingInstruction = __webpack_require__(836); XMLDeclaration = __webpack_require__(612); @@ -90021,7 +93331,7 @@ function negate(bytes) { /* 771 */ /***/ (function(module) { -module.exports = {"_args":[["@aws-sdk/client-s3@3.51.0","/Users/s06173/go/src/github.com/whywaita/actions-cache-s3"]],"_from":"@aws-sdk/client-s3@3.51.0","_id":"@aws-sdk/client-s3@3.51.0","_inBundle":false,"_integrity":"sha512-BRbUJ1+SyXljadzAKpIukNnBiMMCJ39PXyAC+R8ShuMb6S0hhx8p9fQmvKwz+X1+4mrNY/AkRnCYROs4tFLXpw==","_location":"/@aws-sdk/client-s3","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"@aws-sdk/client-s3@3.51.0","name":"@aws-sdk/client-s3","escapedName":"@aws-sdk%2fclient-s3","scope":"@aws-sdk","rawSpec":"3.51.0","saveSpec":null,"fetchSpec":"3.51.0"},"_requiredBy":["/","/@actions/cache"],"_resolved":"https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.51.0.tgz","_spec":"3.51.0","_where":"/Users/s06173/go/src/github.com/whywaita/actions-cache-s3","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"url":"https://github.com/aws/aws-sdk-js-v3/issues"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.51.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/credential-provider-node":"3.51.0","@aws-sdk/eventstream-serde-browser":"3.50.0","@aws-sdk/eventstream-serde-config-resolver":"3.50.0","@aws-sdk/eventstream-serde-node":"3.50.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-blob-browser":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/hash-stream-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/md5-js":"3.50.0","@aws-sdk/middleware-apply-body-checksum":"3.50.0","@aws-sdk/middleware-bucket-endpoint":"3.51.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-expect-continue":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-location-constraint":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-sdk-s3":"3.50.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-signing":"3.50.0","@aws-sdk/middleware-ssec":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","@aws-sdk/util-waiter":"3.50.0","@aws-sdk/xml-builder":"3.49.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@aws-sdk/client-s3","react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"repository":{"type":"git","url":"git+https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"},"scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*","test":"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"3.51.0"}; +module.exports = {"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.51.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*","test":"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.51.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/credential-provider-node":"3.51.0","@aws-sdk/eventstream-serde-browser":"3.50.0","@aws-sdk/eventstream-serde-config-resolver":"3.50.0","@aws-sdk/eventstream-serde-node":"3.50.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-blob-browser":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/hash-stream-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/md5-js":"3.50.0","@aws-sdk/middleware-apply-body-checksum":"3.50.0","@aws-sdk/middleware-bucket-endpoint":"3.51.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-expect-continue":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-location-constraint":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-sdk-s3":"3.50.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-signing":"3.50.0","@aws-sdk/middleware-ssec":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","@aws-sdk/util-waiter":"3.50.0","@aws-sdk/xml-builder":"3.49.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"}}; /***/ }), /* 772 */ @@ -90162,7 +93472,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); const cache = __importStar(__webpack_require__(692)); const core = __importStar(__webpack_require__(470)); -const constants_1 = __webpack_require__(674); +const constants_1 = __webpack_require__(416); const utils = __importStar(__webpack_require__(26)); function run() { return __awaiter(this, void 0, void 0, function* () { @@ -90457,7 +93767,7 @@ tslib_1.__exportStar(__webpack_require__(789), exports); Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(661); -tslib_1.__exportStar(__webpack_require__(715), exports); +tslib_1.__exportStar(__webpack_require__(465), exports); tslib_1.__exportStar(__webpack_require__(842), exports); tslib_1.__exportStar(__webpack_require__(534), exports); @@ -91423,53 +94733,76 @@ exports.default = _default; /***/ }), /* 804 */, /* 805 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseQueryString = void 0; +function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\?/, ""); + if (querystring) { + for (const pair of querystring.split("&")) { + let [key, value = null] = pair.split("="); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } + else if (Array.isArray(query[key])) { + query[key].push(value); + } + else { + query[key] = [query[key], value]; + } + } + } + return query; +} +exports.parseQueryString = parseQueryString; + + +/***/ }), +/* 806 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.PutBucketLifecycleConfigurationCommand = void 0; -const middleware_apply_body_checksum_1 = __webpack_require__(879); -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class PutBucketLifecycleConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; +exports.Hash = void 0; +const util_buffer_from_1 = __webpack_require__(59); +const buffer_1 = __webpack_require__(293); +const crypto_1 = __webpack_require__(417); +class Hash { + constructor(algorithmIdentifier, secret) { + this.hash = secret ? crypto_1.createHmac(algorithmIdentifier, castSourceData(secret)) : crypto_1.createHash(algorithmIdentifier); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - this.middlewareStack.use(middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "PutBucketLifecycleConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutBucketLifecycleConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + update(toHash, encoding) { + this.hash.update(castSourceData(toHash, encoding)); } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlPutBucketLifecycleConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlPutBucketLifecycleConfigurationCommand(output, context); + digest() { + return Promise.resolve(this.hash.digest()); } } -exports.PutBucketLifecycleConfigurationCommand = PutBucketLifecycleConfigurationCommand; +exports.Hash = Hash; +function castSourceData(toCast, encoding) { + if (buffer_1.Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === "string") { + return util_buffer_from_1.fromString(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return util_buffer_from_1.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return util_buffer_from_1.fromArrayBuffer(toCast); +} /***/ }), -/* 806 */, /* 807 */, /* 808 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -91545,314 +94878,17 @@ exports.UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; /***/ }), /* 814 */ -/***/ (function(module) { +/***/ (function(__unusedmodule, exports) { -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if ( true && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.resolveEventStreamSerdeConfig = void 0; +const resolveEventStreamSerdeConfig = (input) => ({ + ...input, + eventStreamMarshaller: input.eventStreamSerdeProvider(input), +}); +exports.resolveEventStreamSerdeConfig = resolveEventStreamSerdeConfig; /***/ }), @@ -92387,7 +95423,24 @@ var __createBinding; /***/ }), -/* 818 */, +/* 818 */ +/***/ (function(module) { + +// Generated by CoffeeScript 1.12.7 +(function() { + module.exports = { + Disconnected: 1, + Preceding: 2, + Following: 4, + Contains: 8, + ContainedBy: 16, + ImplementationSpecific: 32 + }; + +}).call(this); + + +/***/ }), /* 819 */ /***/ (function(__unusedmodule, exports) { @@ -92686,75 +95739,71 @@ exports.DeleteBucketTaggingCommand = DeleteBucketTaggingCommand; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Collector = void 0; -const stream_1 = __webpack_require__(794); -class Collector extends stream_1.Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; - } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); - } -} -exports.Collector = Collector; +const tslib_1 = __webpack_require__(174); +tslib_1.__exportStar(__webpack_require__(907), exports); +tslib_1.__exportStar(__webpack_require__(570), exports); +tslib_1.__exportStar(__webpack_require__(962), exports); +tslib_1.__exportStar(__webpack_require__(103), exports); +tslib_1.__exportStar(__webpack_require__(508), exports); /***/ }), -/* 823 */, -/* 824 */ -/***/ (function(module) { - -module.exports = {"_args":[["@aws-sdk/client-sts@3.51.0","/Users/s06173/go/src/github.com/whywaita/actions-cache-s3"]],"_from":"@aws-sdk/client-sts@3.51.0","_id":"@aws-sdk/client-sts@3.51.0","_inBundle":false,"_integrity":"sha512-/dD+4tuolPQNiQArGa3PtVc8k6umfoY2YUVEt9eBzvnWnakbAtAoByiv3N9qxOph6511nZoz2MJV+ych4/eacA==","_location":"/@aws-sdk/client-sts","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"@aws-sdk/client-sts@3.51.0","name":"@aws-sdk/client-sts","escapedName":"@aws-sdk%2fclient-sts","scope":"@aws-sdk","rawSpec":"3.51.0","saveSpec":null,"fetchSpec":"3.51.0"},"_requiredBy":["/@aws-sdk/client-s3"],"_resolved":"https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.51.0.tgz","_spec":"3.51.0","_where":"/Users/s06173/go/src/github.com/whywaita/actions-cache-s3","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"url":"https://github.com/aws/aws-sdk-js-v3/issues"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/credential-provider-node":"3.51.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-sdk-sts":"3.50.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-signing":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@aws-sdk/client-sts","react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"repository":{"type":"git","url":"git+https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"},"scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"3.51.0"}; - -/***/ }), -/* 825 */ -/***/ (function(__unusedmodule, exports) { +/* 823 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUnmarshalledStream = void 0; -function getUnmarshalledStream(source, options) { - return { - [Symbol.asyncIterator]: async function* () { - for await (const chunk of source) { - const message = options.eventMarshaller.unmarshall(chunk); - const { value: messageType } = message.headers[":message-type"]; - if (messageType === "error") { - const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError"); - unmodeledError.name = message.headers[":error-code"].value; - throw unmodeledError; - } - else if (messageType === "exception") { - const code = message.headers[":exception-type"].value; - const exception = { [code]: message }; - const deserializedException = await options.deserializer(exception); - if (deserializedException.$unknown) { - const error = new Error(options.toUtf8(message.body)); - error.name = code; - throw error; - } - throw deserializedException[code]; - } - else if (messageType === "event") { - const event = { - [message.headers[":event-type"].value]: message, - }; - const deserialized = await options.deserializer(event); - if (deserialized.$unknown) - continue; - yield deserialized; - } - else { - throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`); - } +exports.getCanonicalHeaders = void 0; +const constants_1 = __webpack_require__(361); +const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { + const canonical = {}; + for (const headerName of Object.keys(headers).sort()) { + if (headers[headerName] == undefined) { + continue; + } + const canonicalHeaderName = headerName.toLowerCase(); + if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || + (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || + constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || + constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { + continue; } - }, - }; -} -exports.getUnmarshalledStream = getUnmarshalledStream; + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); + } + return canonical; +}; +exports.getCanonicalHeaders = getCanonicalHeaders; + + +/***/ }), +/* 824 */ +/***/ (function(module) { + +module.exports = {"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.51.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/credential-provider-node":"3.51.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-sdk-sts":"3.50.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-signing":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}; + +/***/ }), +/* 825 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.prepareRequest = void 0; +const cloneRequest_1 = __webpack_require__(746); +const constants_1 = __webpack_require__(361); +const prepareRequest = (request) => { + request = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const headerName of Object.keys(request.headers)) { + if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request.headers[headerName]; + } + } + return request; +}; +exports.prepareRequest = prepareRequest; /***/ }), @@ -94506,9 +97555,57 @@ module.exports = require("url"); /***/ }), /* 836 */ -/***/ (function() { +/***/ (function(module, __unusedexports, __webpack_require__) { -eval("require")("@aws-sdk/signature-v4-crt"); +// Generated by CoffeeScript 1.12.7 +(function() { + var NodeType, XMLCharacterData, XMLProcessingInstruction, + extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; + + NodeType = __webpack_require__(683); + + XMLCharacterData = __webpack_require__(639); + + module.exports = XMLProcessingInstruction = (function(superClass) { + extend(XMLProcessingInstruction, superClass); + + function XMLProcessingInstruction(parent, target, value) { + XMLProcessingInstruction.__super__.constructor.call(this, parent); + if (target == null) { + throw new Error("Missing instruction target. " + this.debugInfo()); + } + this.type = NodeType.ProcessingInstruction; + this.target = this.stringify.insTarget(target); + this.name = this.target; + if (value) { + this.value = this.stringify.insValue(value); + } + } + + XMLProcessingInstruction.prototype.clone = function() { + return Object.create(this); + }; + + XMLProcessingInstruction.prototype.toString = function(options) { + return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(options)); + }; + + XMLProcessingInstruction.prototype.isEqualNode = function(node) { + if (!XMLProcessingInstruction.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) { + return false; + } + if (node.target !== this.target) { + return false; + } + return true; + }; + + return XMLProcessingInstruction; + + })(XMLCharacterData); + +}).call(this); /***/ }), @@ -95401,7 +98498,51 @@ exports.providerConfigFromInit = providerConfigFromInit; /***/ }), -/* 847 */, +/* 847 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetObjectAclCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class GetObjectAclCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "GetObjectAclCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetObjectAclRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetObjectAclOutput.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlGetObjectAclCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlGetObjectAclCommand(output, context); + } +} +exports.GetObjectAclCommand = GetObjectAclCommand; + + +/***/ }), /* 848 */ /***/ (function(__unusedmodule, exports) { @@ -95612,47 +98753,15 @@ exports.default = _default; /***/ }), /* 856 */, /* 857 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteBucketCorsCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class DeleteBucketCorsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "DeleteBucketCorsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteBucketCorsRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlDeleteBucketCorsCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlDeleteBucketCorsCommand(output, context); - } -} -exports.DeleteBucketCorsCommand = DeleteBucketCorsCommand; +exports.escapeUri = void 0; +const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); +exports.escapeUri = escapeUri; +const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; /***/ }), @@ -95851,7 +98960,7 @@ class S3SignatureV4 { if (!this.sigv4aSigner) { let CrtSignerV4; try { - CrtSignerV4 = __webpack_require__(836).CrtSignerV4; + CrtSignerV4 = __webpack_require__(937).CrtSignerV4; if (typeof CrtSignerV4 !== "function") throw new Error(); } @@ -96093,7 +99202,7 @@ exports.getDefaultRetryQuota = getDefaultRetryQuota; Object.defineProperty(exports, "__esModule", { value: true }); exports.streamCollector = void 0; -const collector_1 = __webpack_require__(822); +const collector_1 = __webpack_require__(992); const streamCollector = (stream) => new Promise((resolve, reject) => { const collector = new collector_1.Collector(); stream.pipe(collector); @@ -96663,44 +99772,438 @@ exports.fromProcess = fromProcess; /***/ }), /* 886 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; -const loggerMiddleware = () => (next, context) => async (args) => { - const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; - const response = await next(args); - if (!logger) { - return response; - } - if (typeof logger.info === "function") { - const { $metadata, ...outputWithoutMetadata } = response.output; - logger.info({ - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata, +exports.Pkcs11Lib = exports.TlsConnectionOptions = exports.ServerTlsContext = exports.ClientTlsContext = exports.TlsContext = exports.TlsContextOptions = exports.SocketOptions = exports.ClientBootstrap = exports.InputStream = exports.is_alpn_available = exports.enable_logging = exports.LogLevel = exports.error_code_to_name = exports.error_code_to_string = exports.SocketDomain = exports.SocketType = exports.TlsVersion = void 0; +/** + * + * A module containing a grab bag of support for core network I/O functionality, including sockets, TLS, DNS, logging, + * error handling, streams, and connection -> thread mapping. + * + * Categories include: + * - Network: socket configuration + * - TLS: tls configuration + * - Logging: logging controls and configuration + * - IO: everything else + * + * @packageDocumentation + * @module io + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +const native_resource_1 = __webpack_require__(940); +const io_1 = __webpack_require__(573); +var io_2 = __webpack_require__(573); +Object.defineProperty(exports, "TlsVersion", { enumerable: true, get: function () { return io_2.TlsVersion; } }); +Object.defineProperty(exports, "SocketType", { enumerable: true, get: function () { return io_2.SocketType; } }); +Object.defineProperty(exports, "SocketDomain", { enumerable: true, get: function () { return io_2.SocketDomain; } }); +/** + * Convert a native error code into a human-readable string + * @param error_code - An error code returned from a native API call, or delivered + * via callback. + * @returns Long-form description of the error + * @see CrtError + * + * nodejs only. + * + * @category System + */ +function error_code_to_string(error_code) { + return binding_1.default.error_code_to_string(error_code); +} +exports.error_code_to_string = error_code_to_string; +/** + * Convert a native error code into a human-readable identifier + * @param error_code - An error code returned from a native API call, or delivered + * via callback. + * @return error name as a string + * @see CrtError + * + * nodejs only. + * + * @category System + */ +function error_code_to_name(error_code) { + return binding_1.default.error_code_to_name(error_code); +} +exports.error_code_to_name = error_code_to_name; +/** + * The amount of detail that will be logged + * @category Logging + */ +var LogLevel; +(function (LogLevel) { + /** No logging whatsoever. Equivalent to never calling {@link enable_logging}. */ + LogLevel[LogLevel["NONE"] = 0] = "NONE"; + /** Only fatals. In practice, this will not do much, as the process will log and then crash (intentionally) if a fatal condition occurs */ + LogLevel[LogLevel["FATAL"] = 1] = "FATAL"; + /** Only errors */ + LogLevel[LogLevel["ERROR"] = 2] = "ERROR"; + /** Only warnings and errors */ + LogLevel[LogLevel["WARN"] = 3] = "WARN"; + /** Information about connection/stream creation/destruction events */ + LogLevel[LogLevel["INFO"] = 4] = "INFO"; + /** Enough information to debug the chain of events a given network connection encounters */ + LogLevel[LogLevel["DEBUG"] = 5] = "DEBUG"; + /** Everything. Only use this if you really need to know EVERY single call */ + LogLevel[LogLevel["TRACE"] = 6] = "TRACE"; +})(LogLevel = exports.LogLevel || (exports.LogLevel = {})); +/** + * Enables logging of the native AWS CRT libraries. + * @param level - The logging level to filter to. It is not possible to log less than WARN. + * + * nodejs only. + * @category Logging + */ +function enable_logging(level) { + binding_1.default.io_logging_enable(level); +} +exports.enable_logging = enable_logging; +/** + * Returns true if ALPN is available on this platform natively + * @return true if ALPN is supported natively, false otherwise + * + * nodejs only. + * @category TLS +*/ +function is_alpn_available() { + return binding_1.default.is_alpn_available(); +} +exports.is_alpn_available = is_alpn_available; +/** + * Wraps a ```Readable``` for reading by native code, used to stream + * data into the AWS CRT libraries. + * + * nodejs only. + * @category IO + */ +class InputStream extends native_resource_1.NativeResource { + constructor(source) { + super(binding_1.default.io_input_stream_new(16 * 1024)); + this.source = source; + this.source.on('data', (data) => { + data = Buffer.isBuffer(data) ? data : new Buffer(data.toString(), 'utf8'); + binding_1.default.io_input_stream_append(this.native_handle(), data); + }); + this.source.on('end', () => { + binding_1.default.io_input_stream_append(this.native_handle(), undefined); }); } - return response; -}; -exports.loggerMiddleware = loggerMiddleware; -exports.loggerMiddlewareOptions = { - name: "loggerMiddleware", - tags: ["LOGGER"], - step: "initialize", - override: true, -}; -const getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(exports.loggerMiddleware(), exports.loggerMiddlewareOptions); - }, -}); -exports.getLoggerPlugin = getLoggerPlugin; - +} +exports.InputStream = InputStream; +/** + * Represents native resources required to bootstrap a client connection + * Things like a host resolver, event loop group, etc. There should only need + * to be 1 of these per application, in most cases. + * + * nodejs only. + * @category IO + */ +class ClientBootstrap extends native_resource_1.NativeResource { + constructor() { + super(binding_1.default.io_client_bootstrap_new()); + } +} +exports.ClientBootstrap = ClientBootstrap; +/** + * Standard Berkeley socket style options. + * + * nodejs only. + * @category Network +*/ +class SocketOptions extends native_resource_1.NativeResource { + constructor(type = io_1.SocketType.STREAM, domain = io_1.SocketDomain.IPV6, connect_timeout_ms = 5000, keepalive = false, keep_alive_interval_sec = 0, keep_alive_timeout_sec = 0, keep_alive_max_failed_probes = 0) { + super(binding_1.default.io_socket_options_new(type, domain, connect_timeout_ms, keep_alive_interval_sec, keep_alive_timeout_sec, keep_alive_max_failed_probes, keepalive)); + } +} +exports.SocketOptions = SocketOptions; +/** + * Options for creating a {@link ClientTlsContext} or {@link ServerTlsContext}. + * + * nodejs only. + * @category TLS + */ +class TlsContextOptions { + constructor() { + /** Minimum version of TLS to support. Uses OS/system default if unspecified. */ + this.min_tls_version = io_1.TlsVersion.Default; + /** List of ALPN protocols to be used on platforms which support ALPN */ + this.alpn_list = []; + /** + * In client mode, this turns off x.509 validation. Don't do this unless you are testing. + * It is much better to just override the default trust store and pass the self-signed + * certificate as the ca_file argument. + * + * In server mode (ServerTlsContext), this defaults to false. If you want to enforce mutual TLS on the server, + * set this to true. + */ + this.verify_peer = true; + } + /** + * Overrides the default system trust store. + * @param ca_dirpath - Only used on Unix-style systems where all trust anchors are + * stored in a directory (e.g. /etc/ssl/certs). + * @param ca_filepath - Single file containing all trust CAs, in PEM format + */ + override_default_trust_store_from_path(ca_dirpath, ca_filepath) { + this.ca_dirpath = ca_dirpath; + this.ca_filepath = ca_filepath; + } + /** + * Overrides the default system trust store. + * @param certificate_authority - String containing all trust CAs, in PEM format + */ + override_default_trust_store(certificate_authority) { + this.certificate_authority = certificate_authority; + } + /** + * Create options configured for mutual TLS in client mode, + * with client certificate and private key provided as in-memory strings. + * @param certificate - Client certificate file contents, in PEM format + * @param private_key - Client private key file contents, in PEM format + * + * @returns newly configured TlsContextOptions object + */ + static create_client_with_mtls(certificate, private_key) { + let opt = new TlsContextOptions(); + opt.certificate = certificate; + opt.private_key = private_key; + opt.verify_peer = true; + return opt; + } + /** + * Create options configured for mutual TLS in client mode, + * with client certificate and private key provided via filepath. + * @param certificate_filepath - Path to client certificate, in PEM format + * @param private_key_filepath - Path to private key, in PEM format + * + * @returns newly configured TlsContextOptions object + */ + static create_client_with_mtls_from_path(certificate_filepath, private_key_filepath) { + let opt = new TlsContextOptions(); + opt.certificate_filepath = certificate_filepath; + opt.private_key_filepath = private_key_filepath; + opt.verify_peer = true; + return opt; + } + /** + * Create options for mutual TLS in client mode, + * with client certificate and private key bundled in a single PKCS#12 file. + * @param pkcs12_filepath - Path to PKCS#12 file containing client certificate and private key. + * @param pkcs12_password - PKCS#12 password + * + * @returns newly configured TlsContextOptions object + */ + static create_client_with_mtls_pkcs12_from_path(pkcs12_filepath, pkcs12_password) { + let opt = new TlsContextOptions(); + opt.pkcs12_filepath = pkcs12_filepath; + opt.pkcs12_password = pkcs12_password; + opt.verify_peer = true; + return opt; + } + /** + * @deprecated Renamed [[create_client_with_mtls_pkcs12_from_path]] + */ + static create_client_with_mtls_pkcs_from_path(pkcs12_filepath, pkcs12_password) { + return this.create_client_with_mtls_pkcs12_from_path(pkcs12_filepath, pkcs12_password); + } + /** + * Create options configured for mutual TLS in client mode, + * using a PKCS#11 library for private key operations. + * + * NOTE: This configuration only works on Unix devices. + * + * @param options - PKCS#11 options + * + * @returns newly configured TlsContextOptions object + */ + static create_client_with_mtls_pkcs11(options) { + let opt = new TlsContextOptions(); + opt.pkcs11_options = options; + opt.verify_peer = true; + return opt; + } + /** + * Create options configured for mutual TLS in client mode, + * using a certificate in a Windows certificate store. + * + * NOTE: Windows only. + * + * @param certificate_path - Path to certificate in a Windows certificate store. + * The path must use backslashes and end with the certificate's thumbprint. + * Example: `CurrentUser\MY\A11F8A9B5DF5B98BA3508FBCA575D09570E0D2C6` + */ + static create_client_with_mtls_windows_cert_store_path(certificate_path) { + let opt = new TlsContextOptions(); + opt.windows_cert_store_path = certificate_path; + opt.verify_peer = true; + return opt; + } + /** + * Creates TLS context with peer verification disabled, along with a certificate and private key + * @param certificate_filepath - Path to certificate, in PEM format + * @param private_key_filepath - Path to private key, in PEM format + * + * @returns newly configured TlsContextOptions object + */ + static create_server_with_mtls_from_path(certificate_filepath, private_key_filepath) { + let opt = new TlsContextOptions(); + opt.certificate_filepath = certificate_filepath; + opt.private_key_filepath = private_key_filepath; + opt.verify_peer = false; + return opt; + } + /** + * Creates TLS context with peer verification disabled, along with a certificate and private key + * in PKCS#12 format + * @param pkcs12_filepath - Path to certificate, in PKCS#12 format + * @param pkcs12_password - PKCS#12 Password + * + * @returns newly configured TlsContextOptions object + */ + static create_server_with_mtls_pkcs_from_path(pkcs12_filepath, pkcs12_password) { + let opt = new TlsContextOptions(); + opt.pkcs12_filepath = pkcs12_filepath; + opt.pkcs12_password = pkcs12_password; + opt.verify_peer = false; + return opt; + } +} +exports.TlsContextOptions = TlsContextOptions; +/** + * Abstract base TLS context used for client/server TLS communications over sockets. + * + * @see ClientTlsContext + * @see ServerTlsContext + * + * nodejs only. + * @category TLS + */ +class TlsContext extends native_resource_1.NativeResource { + constructor(ctx_opt) { + super(binding_1.default.io_tls_ctx_new(ctx_opt.min_tls_version, ctx_opt.ca_filepath, ctx_opt.ca_dirpath, ctx_opt.certificate_authority, (ctx_opt.alpn_list && ctx_opt.alpn_list.length > 0) ? ctx_opt.alpn_list.join(';') : undefined, ctx_opt.certificate_filepath, ctx_opt.certificate, ctx_opt.private_key_filepath, ctx_opt.private_key, ctx_opt.pkcs12_filepath, ctx_opt.pkcs12_password, ctx_opt.pkcs11_options, ctx_opt.windows_cert_store_path, ctx_opt.verify_peer)); + } +} +exports.TlsContext = TlsContext; +/** + * TLS context used for client TLS communications over sockets. If no + * options are supplied, the context will default to enabling peer verification + * only. + * + * nodejs only. + * @category TLS + */ +class ClientTlsContext extends TlsContext { + constructor(ctx_opt) { + if (!ctx_opt) { + ctx_opt = new TlsContextOptions(); + ctx_opt.verify_peer = true; + } + super(ctx_opt); + } +} +exports.ClientTlsContext = ClientTlsContext; +/** + * TLS context used for server TLS communications over sockets. If no + * options are supplied, the context will default to disabling peer verification + * only. + * + * nodejs only. + * @category TLS + */ +class ServerTlsContext extends TlsContext { + constructor(ctx_opt) { + if (!ctx_opt) { + ctx_opt = new TlsContextOptions(); + ctx_opt.verify_peer = false; + } + super(ctx_opt); + } +} +exports.ServerTlsContext = ServerTlsContext; +/** + * TLS options that are unique to a given connection using a shared TlsContext. + * + * nodejs only. + * @category TLS + */ +class TlsConnectionOptions extends native_resource_1.NativeResource { + constructor(tls_ctx, server_name, alpn_list = []) { + super(binding_1.default.io_tls_connection_options_new(tls_ctx.native_handle(), server_name, (alpn_list && alpn_list.length > 0) ? alpn_list.join(';') : undefined)); + this.tls_ctx = tls_ctx; + this.server_name = server_name; + this.alpn_list = alpn_list; + } +} +exports.TlsConnectionOptions = TlsConnectionOptions; +/** + * Handle to a loaded PKCS#11 library. + * + * For most use cases, a single instance of Pkcs11Lib should be used + * for the lifetime of your application. + * + * nodejs only. + * @category TLS + */ +class Pkcs11Lib extends native_resource_1.NativeResource { + /** + * @param path - Path to PKCS#11 library. + * @param behavior - Specifies how `C_Initialize()` and `C_Finalize()` + * will be called on the PKCS#11 library. + */ + constructor(path, behavior = Pkcs11Lib.InitializeFinalizeBehavior.DEFAULT) { + super(binding_1.default.io_pkcs11_lib_new(path, behavior)); + } + /** + * Release the PKCS#11 library immediately, without waiting for the GC. + */ + close() { + binding_1.default.io_pkcs11_lib_close(this.native_handle()); + } +} +exports.Pkcs11Lib = Pkcs11Lib; +(function (Pkcs11Lib) { + /** + * Controls `C_Initialize()` and `C_Finalize()` are called on the PKCS#11 library. + */ + let InitializeFinalizeBehavior; + (function (InitializeFinalizeBehavior) { + /** + * Default behavior that accommodates most use cases. + * + * `C_Initialize()` is called on creation, and "already-initialized" + * errors are ignored. `C_Finalize()` is never called, just in case + * another part of your application is still using the PKCS#11 library. + */ + InitializeFinalizeBehavior[InitializeFinalizeBehavior["DEFAULT"] = 0] = "DEFAULT"; + /** + * Skip calling `C_Initialize()` and `C_Finalize()`. + * + * Use this if your application has already initialized the PKCS#11 library, + * and you do not want `C_Initialize()` called again. + */ + InitializeFinalizeBehavior[InitializeFinalizeBehavior["OMIT"] = 1] = "OMIT"; + /** + * `C_Initialize()` is called on creation and `C_Finalize()` is called on cleanup. + * + * If `C_Initialize()` reports that's it's already initialized, this is + * treated as an error. Use this if you need perfect cleanup (ex: running + * valgrind with --leak-check). + */ + InitializeFinalizeBehavior[InitializeFinalizeBehavior["STRICT"] = 2] = "STRICT"; + })(InitializeFinalizeBehavior = Pkcs11Lib.InitializeFinalizeBehavior || (Pkcs11Lib.InitializeFinalizeBehavior = {})); +})(Pkcs11Lib = exports.Pkcs11Lib || (exports.Pkcs11Lib = {})); +//# sourceMappingURL=io.js.map /***/ }), /* 887 */, @@ -96745,21 +100248,27 @@ exports.serializeFloat = serializeFloat; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __webpack_require__(187); -const endpoints_1 = __webpack_require__(751); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2019-06-10", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); +exports.getPayloadHash = void 0; +const is_array_buffer_1 = __webpack_require__(322); +const util_hex_encoding_1 = __webpack_require__(145); +const constants_1 = __webpack_require__(361); +const getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { + return headers[headerName]; + } + } + if (body == undefined) { + return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + } + else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { + const hashCtor = new hashConstructor(); + hashCtor.update(body); + return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + } + return constants_1.UNSIGNED_PAYLOAD; }; -exports.getRuntimeConfig = getRuntimeConfig; +exports.getPayloadHash = getPayloadHash; /***/ }), @@ -97576,82 +101085,57 @@ function descending(a, b) /***/ }), /* 905 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); + + +/***/ }), +/* 906 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0; -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var invalid_span_constants_1 = __webpack_require__(685); -var NonRecordingSpan_1 = __webpack_require__(437); -var VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i; -var VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i; -function isValidTraceId(traceId) { - return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID; +exports.GetBucketTaggingCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class GetBucketTaggingCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "GetBucketTaggingCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetBucketTaggingRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetBucketTaggingOutput.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlGetBucketTaggingCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlGetBucketTaggingCommand(output, context); + } } -exports.isValidTraceId = isValidTraceId; -function isValidSpanId(spanId) { - return VALID_SPANID_REGEX.test(spanId) && spanId !== invalid_span_constants_1.INVALID_SPANID; -} -exports.isValidSpanId = isValidSpanId; -/** - * Returns true if this {@link SpanContext} is valid. - * @return true if this {@link SpanContext} is valid. - */ -function isSpanContextValid(spanContext) { - return (isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId)); -} -exports.isSpanContextValid = isSpanContextValid; -/** - * Wrap the given {@link SpanContext} in a new non-recording {@link Span} - * - * @param spanContext span context to be wrapped - * @returns a new non-recording {@link Span} with the provided context - */ -function wrapSpanContext(spanContext) { - return new NonRecordingSpan_1.NonRecordingSpan(spanContext); -} -exports.wrapSpanContext = wrapSpanContext; -//# sourceMappingURL=spancontext-utils.js.map +exports.GetBucketTaggingCommand = GetBucketTaggingCommand; -/***/ }), -/* 906 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=attributes.js.map /***/ }), /* 907 */ @@ -97668,7 +101152,7 @@ const DecodeAuthorizationMessageCommand_1 = __webpack_require__(491); const GetAccessKeyInfoCommand_1 = __webpack_require__(194); const GetCallerIdentityCommand_1 = __webpack_require__(133); const GetFederationTokenCommand_1 = __webpack_require__(629); -const GetSessionTokenCommand_1 = __webpack_require__(573); +const GetSessionTokenCommand_1 = __webpack_require__(222); const STSClient_1 = __webpack_require__(570); class STS extends STSClient_1.STSClient { assumeRole(args, optionsOrCb, cb) { @@ -97789,7 +101273,46 @@ exports.STS = STS; /***/ }), /* 908 */, -/* 909 */, +/* 909 */ +/***/ (function(__unusedmodule, exports) { + +// Generated by CoffeeScript 1.12.7 +(function() { + "use strict"; + var prefixMatch; + + prefixMatch = new RegExp(/(?!xmlns)^.*:/); + + exports.normalize = function(str) { + return str.toLowerCase(); + }; + + exports.firstCharLowerCase = function(str) { + return str.charAt(0).toLowerCase() + str.slice(1); + }; + + exports.stripPrefix = function(str) { + return str.replace(prefixMatch, ''); + }; + + exports.parseNumbers = function(str) { + if (!isNaN(str)) { + str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str); + } + return str; + }; + + exports.parseBooleans = function(str) { + if (/^(?:true|false)$/i.test(str)) { + str = str.toLowerCase() === 'true'; + } + return str; + }; + +}).call(this); + + +/***/ }), /* 910 */ /***/ (function(__unusedmodule, exports) { @@ -97827,7 +101350,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.TraceAPI = void 0; var global_utils_1 = __webpack_require__(94); var ProxyTracerProvider_1 = __webpack_require__(402); -var spancontext_utils_1 = __webpack_require__(905); +var spancontext_utils_1 = __webpack_require__(479); var context_utils_1 = __webpack_require__(456); var diag_1 = __webpack_require__(401); var API_NAME = 'trace'; @@ -97896,7 +101419,7 @@ exports.TraceAPI = TraceAPI; Object.defineProperty(exports, "__esModule", { value: true }); exports.readableStreamHasher = void 0; -const HashCalculator_1 = __webpack_require__(222); +const HashCalculator_1 = __webpack_require__(350); const readableStreamHasher = (hashCtor, readableStream) => { const hash = new hashCtor(); const hashCalculator = new HashCalculator_1.HashCalculator(hash); @@ -98466,34 +101989,93 @@ exports.ListMultipartUploadsCommand = ListMultipartUploadsCommand; /***/ }), /* 922 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.AbortSignal = void 0; -class AbortSignal { - constructor() { - this.onabort = null; - this._aborted = false; - Object.defineProperty(this, "_aborted", { - value: false, - writable: true, - }); - } - get aborted() { - return this._aborted; - } - abort() { - this._aborted = true; - if (this.onabort) { - this.onabort(this); - this.onabort = null; - } +exports.BufferedEventEmitter = void 0; +/** + * Module for base types related to event emission + * + * @packageDocumentation + * @module event + */ +const events_1 = __webpack_require__(614); +/** + * @internal + */ +class BufferedEvent { + constructor(event, args) { + this.event = event; + this.args = args; } } -exports.AbortSignal = AbortSignal; - +/** + * Provides buffered event emitting semantics, similar to many Node-style streams. + * Subclasses will override EventEmitter.on() and trigger uncorking. + * NOTE: It is HIGHLY recommended that uncorking should always be done via + * ```process.nextTick()```, not during the EventEmitter.on() call. + * + * See also: [Node writable streams](https://nodejs.org/api/stream.html#stream_writable_cork) + * + * @category Events + */ +class BufferedEventEmitter extends events_1.EventEmitter { + constructor() { + super(); + this.corked = false; + } + /** + * Forces all written events to be buffered in memory. The buffered data will be + * flushed when {@link BufferedEventEmitter.uncork} is called. + */ + cork() { + this.corked = true; + } + /** + * Flushes all data buffered since {@link BufferedEventEmitter.cork} was called. + * + * NOTE: It is HIGHLY recommended that uncorking should always be done via + * ``` process.nextTick```, not during the ```EventEmitter.on()``` call. + */ + uncork() { + this.corked = false; + while (this.eventQueue) { + const event = this.eventQueue; + super.emit(event.event, ...event.args); + this.eventQueue = this.eventQueue.next; + } + } + /** + * Synchronously calls each of the listeners registered for the event key supplied + * in registration order. If the {@link BufferedEventEmitter} is currently corked, + * the event will be buffered until {@link BufferedEventEmitter.uncork} is called. + * @param event The name of the event + * @param args Event payload + */ + emit(event, ...args) { + if (this.corked) { + // queue requests in order + let last = this.lastQueuedEvent; + this.lastQueuedEvent = new BufferedEvent(event, args); + if (last) { + last.next = this.lastQueuedEvent; + } + else { + this.eventQueue = this.lastQueuedEvent; + } + return this.listeners(event).length > 0; + } + return super.emit(event, ...args); + } +} +exports.BufferedEventEmitter = BufferedEventEmitter; +//# sourceMappingURL=event.js.map /***/ }), /* 923 */ @@ -98759,7 +102341,188 @@ exports.Pattern = Pattern; /***/ }), /* 924 */, /* 925 */, -/* 926 */, +/* 926 */ +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Generated by CoffeeScript 1.12.7 +(function() { + var NodeType, WriterState, XMLStreamWriter, XMLWriterBase, + extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; + + NodeType = __webpack_require__(683); + + XMLWriterBase = __webpack_require__(671); + + WriterState = __webpack_require__(518); + + module.exports = XMLStreamWriter = (function(superClass) { + extend(XMLStreamWriter, superClass); + + function XMLStreamWriter(stream, options) { + this.stream = stream; + XMLStreamWriter.__super__.constructor.call(this, options); + } + + XMLStreamWriter.prototype.endline = function(node, options, level) { + if (node.isLastRootNode && options.state === WriterState.CloseTag) { + return ''; + } else { + return XMLStreamWriter.__super__.endline.call(this, node, options, level); + } + }; + + XMLStreamWriter.prototype.document = function(doc, options) { + var child, i, j, k, len, len1, ref, ref1, results; + ref = doc.children; + for (i = j = 0, len = ref.length; j < len; i = ++j) { + child = ref[i]; + child.isLastRootNode = i === doc.children.length - 1; + } + options = this.filterOptions(options); + ref1 = doc.children; + results = []; + for (k = 0, len1 = ref1.length; k < len1; k++) { + child = ref1[k]; + results.push(this.writeChildNode(child, options, 0)); + } + return results; + }; + + XMLStreamWriter.prototype.attribute = function(att, options, level) { + return this.stream.write(XMLStreamWriter.__super__.attribute.call(this, att, options, level)); + }; + + XMLStreamWriter.prototype.cdata = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.cdata.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.comment = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.comment.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.declaration = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.declaration.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.docType = function(node, options, level) { + var child, j, len, ref; + level || (level = 0); + this.openNode(node, options, level); + options.state = WriterState.OpenTag; + this.stream.write(this.indent(node, options, level)); + this.stream.write(' 0) { + this.stream.write(' ['); + this.stream.write(this.endline(node, options, level)); + options.state = WriterState.InsideTag; + ref = node.children; + for (j = 0, len = ref.length; j < len; j++) { + child = ref[j]; + this.writeChildNode(child, options, level + 1); + } + options.state = WriterState.CloseTag; + this.stream.write(']'); + } + options.state = WriterState.CloseTag; + this.stream.write(options.spaceBeforeSlash + '>'); + this.stream.write(this.endline(node, options, level)); + options.state = WriterState.None; + return this.closeNode(node, options, level); + }; + + XMLStreamWriter.prototype.element = function(node, options, level) { + var att, child, childNodeCount, firstChildNode, j, len, name, prettySuppressed, ref, ref1; + level || (level = 0); + this.openNode(node, options, level); + options.state = WriterState.OpenTag; + this.stream.write(this.indent(node, options, level) + '<' + node.name); + ref = node.attribs; + for (name in ref) { + if (!hasProp.call(ref, name)) continue; + att = ref[name]; + this.attribute(att, options, level); + } + childNodeCount = node.children.length; + firstChildNode = childNodeCount === 0 ? null : node.children[0]; + if (childNodeCount === 0 || node.children.every(function(e) { + return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === ''; + })) { + if (options.allowEmpty) { + this.stream.write('>'); + options.state = WriterState.CloseTag; + this.stream.write(''); + } else { + options.state = WriterState.CloseTag; + this.stream.write(options.spaceBeforeSlash + '/>'); + } + } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) { + this.stream.write('>'); + options.state = WriterState.InsideTag; + options.suppressPrettyCount++; + prettySuppressed = true; + this.writeChildNode(firstChildNode, options, level + 1); + options.suppressPrettyCount--; + prettySuppressed = false; + options.state = WriterState.CloseTag; + this.stream.write(''); + } else { + this.stream.write('>' + this.endline(node, options, level)); + options.state = WriterState.InsideTag; + ref1 = node.children; + for (j = 0, len = ref1.length; j < len; j++) { + child = ref1[j]; + this.writeChildNode(child, options, level + 1); + } + options.state = WriterState.CloseTag; + this.stream.write(this.indent(node, options, level) + ''); + } + this.stream.write(this.endline(node, options, level)); + options.state = WriterState.None; + return this.closeNode(node, options, level); + }; + + XMLStreamWriter.prototype.processingInstruction = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.raw = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.raw.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.text = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.text.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.dtdAttList = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.dtdElement = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.dtdEntity = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.dtdNotation = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this, node, options, level)); + }; + + return XMLStreamWriter; + + })(XMLWriterBase); + +}).call(this); + + +/***/ }), /* 927 */ /***/ (function(__unusedmodule, exports) { @@ -98870,20 +102633,314 @@ exports.SocketTimeout = 5000; /***/ }), /* 932 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(module) { -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultRetryDecider = void 0; -const service_error_classification_1 = __webpack_require__(223); -const defaultRetryDecider = (error) => { - if (!error) { - return false; - } - return service_error_classification_1.isRetryableByTrait(error) || service_error_classification_1.isClockSkewError(error) || service_error_classification_1.isThrottlingError(error) || service_error_classification_1.isTransientError(error); -}; -exports.defaultRetryDecider = defaultRetryDecider; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); +}); /***/ }), @@ -100549,7 +104606,17 @@ module.exports.parseURL = function (input, options) { /***/ }), -/* 937 */, +/* 937 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = __webpack_require__(79); +tslib_1.__exportStar(__webpack_require__(646), exports); + + +/***/ }), /* 938 */ /***/ (function(__unusedmodule, exports) { @@ -100623,7 +104690,59 @@ exports.PutObjectLegalHoldCommand = PutObjectLegalHoldCommand; /***/ }), -/* 940 */, +/* 940 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NativeResourceMixin = exports.NativeResource = void 0; +/** + * Represents an object allocated natively inside the AWS CRT. + * @internal + */ +class NativeResource { + constructor(handle) { + this.handle = handle; + } + /** @internal */ + native_handle() { + return this.handle; + } +} +exports.NativeResource = NativeResource; +/** + * Represents an object allocated natively inside the AWS CRT which also + * needs a node/TS base class + * @internal + */ +function NativeResourceMixin(Base) { + /** @internal */ + return class extends Base { + /** @internal */ + constructor(...args) { + const handle = args.shift(); + super(...args); + this._handle = handle; + } + /** @internal */ + _super(handle) { + this._handle = handle; + } + /** @internal */ + native_handle() { + return this._handle; + } + }; +} +exports.NativeResourceMixin = NativeResourceMixin; +//# sourceMappingURL=native_resource.js.map + +/***/ }), /* 941 */, /* 942 */, /* 943 */, @@ -101135,7 +105254,7 @@ Object.defineProperty(exports, "parse", { } }); -var _v = _interopRequireDefault(__webpack_require__(173)); +var _v = _interopRequireDefault(__webpack_require__(547)); var _v2 = _interopRequireDefault(__webpack_require__(298)); @@ -101293,9 +105412,40 @@ exports.GetObjectLockConfigurationCommand = GetObjectLockConfigurationCommand; /***/ }), /* 955 */, /* 956 */ -/***/ (function(module) { +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Generated by CoffeeScript 1.12.7 +(function() { + var NodeType, XMLDummy, XMLNode, + extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; + + XMLNode = __webpack_require__(257); + + NodeType = __webpack_require__(683); + + module.exports = XMLDummy = (function(superClass) { + extend(XMLDummy, superClass); + + function XMLDummy(parent) { + XMLDummy.__super__.constructor.call(this, parent); + this.type = NodeType.Dummy; + } + + XMLDummy.prototype.clone = function() { + return Object.create(this); + }; + + XMLDummy.prototype.toString = function(options) { + return ''; + }; + + return XMLDummy; + + })(XMLNode); + +}).call(this); -module.exports = require("process"); /***/ }), /* 957 */ @@ -101327,7 +105477,21 @@ var SpanStatusCode; //# sourceMappingURL=status.js.map /***/ }), -/* 958 */, +/* 958 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getHostnameFromVariants = void 0; +const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; +}; +exports.getHostnameFromVariants = getHostnameFromVariants; + + +/***/ }), /* 959 */, /* 960 */ /***/ (function(__unusedmodule, exports) { @@ -101506,7 +105670,7 @@ tslib_1.__exportStar(__webpack_require__(491), exports); tslib_1.__exportStar(__webpack_require__(194), exports); tslib_1.__exportStar(__webpack_require__(133), exports); tslib_1.__exportStar(__webpack_require__(629), exports); -tslib_1.__exportStar(__webpack_require__(573), exports); +tslib_1.__exportStar(__webpack_require__(222), exports); /***/ }), @@ -105422,15 +109586,49 @@ var __createBinding; "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.loadConfig = void 0; -const property_provider_1 = __webpack_require__(17); -const fromEnv_1 = __webpack_require__(698); -const fromSharedConfigFiles_1 = __webpack_require__(389); -const fromStatic_1 = __webpack_require__(83); -const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => property_provider_1.memoize(property_provider_1.chain(fromEnv_1.fromEnv(environmentVariableSelector), fromSharedConfigFiles_1.fromSharedConfigFiles(configFileSelector, configuration), fromStatic_1.fromStatic(defaultValue))); -exports.loadConfig = loadConfig; - +exports.crc32c = exports.crc32 = void 0; +/** + * + * A module containing various checksum implementations intended for streaming payloads + * + * @packageDocumentation + * @module checksums + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +/** + * Computes an crc32 checksum. + * + * @param data The data to checksum + * @param previous previous crc32 checksum result. Used if you are buffering large input. + * + * @category Crypto + */ +function crc32(data, previous) { + return binding_1.default.checksums_crc32(data, previous); +} +exports.crc32 = crc32; +/** + * Computes a crc32c checksum. + * + * @param data The data to checksum + * @param previous previous crc32c checksum result. Used if you are buffering large input. + * + * @category Crypto + */ +function crc32c(data, previous) { + return binding_1.default.checksums_crc32c(data, previous); +} +exports.crc32c = crc32c; +//# sourceMappingURL=checksums.js.map /***/ }), /* 985 */ @@ -105776,53 +109974,321 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(10), exports); +__exportStar(__webpack_require__(764), exports); //# sourceMappingURL=index.js.map /***/ }), -/* 991 */, +/* 991 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.defaultRegionInfoProvider = void 0; +const config_resolver_1 = __webpack_require__(529); +const regionHash = { + "ap-northeast-1": { + variants: [ + { + hostname: "portal.sso.ap-northeast-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-northeast-1", + }, + "ap-northeast-2": { + variants: [ + { + hostname: "portal.sso.ap-northeast-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-northeast-2", + }, + "ap-south-1": { + variants: [ + { + hostname: "portal.sso.ap-south-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-south-1", + }, + "ap-southeast-1": { + variants: [ + { + hostname: "portal.sso.ap-southeast-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-southeast-1", + }, + "ap-southeast-2": { + variants: [ + { + hostname: "portal.sso.ap-southeast-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-southeast-2", + }, + "ca-central-1": { + variants: [ + { + hostname: "portal.sso.ca-central-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ca-central-1", + }, + "eu-central-1": { + variants: [ + { + hostname: "portal.sso.eu-central-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-central-1", + }, + "eu-north-1": { + variants: [ + { + hostname: "portal.sso.eu-north-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-north-1", + }, + "eu-west-1": { + variants: [ + { + hostname: "portal.sso.eu-west-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-1", + }, + "eu-west-2": { + variants: [ + { + hostname: "portal.sso.eu-west-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-2", + }, + "eu-west-3": { + variants: [ + { + hostname: "portal.sso.eu-west-3.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-3", + }, + "sa-east-1": { + variants: [ + { + hostname: "portal.sso.sa-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "sa-east-1", + }, + "us-east-1": { + variants: [ + { + hostname: "portal.sso.us-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-1", + }, + "us-east-2": { + variants: [ + { + hostname: "portal.sso.us-east-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-2", + }, + "us-gov-east-1": { + variants: [ + { + hostname: "portal.sso.us-gov-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-gov-east-1", + }, + "us-gov-west-1": { + variants: [ + { + hostname: "portal.sso.us-gov-west-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-gov-west-1", + }, + "us-west-2": { + variants: [ + { + hostname: "portal.sso.us-west-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-west-2", + }, +}; +const partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com.cn", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com.cn", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"], + }, + ], + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.c2s.ic.gov", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.c2s.ic.gov", + tags: ["fips"], + }, + ], + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.sc2s.sgov.gov", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", + tags: ["fips"], + }, + ], + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-west-1"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, +}; +const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, { + ...options, + signingService: "awsssoportal", + regionHash, + partitionHash, +}); +exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + + +/***/ }), /* 992 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { -// Generated by CoffeeScript 1.12.7 -(function() { - "use strict"; - var builder, defaults, parser, processors, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; +"use strict"; - defaults = __webpack_require__(791); - - builder = __webpack_require__(860); - - parser = __webpack_require__(549); - - processors = __webpack_require__(350); - - exports.defaults = defaults.defaults; - - exports.processors = processors; - - exports.ValidationError = (function(superClass) { - extend(ValidationError, superClass); - - function ValidationError(message) { - this.message = message; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Collector = void 0; +const stream_1 = __webpack_require__(794); +class Collector extends stream_1.Writable { + constructor() { + super(...arguments); + this.bufferedBytes = []; } - - return ValidationError; - - })(Error); - - exports.Builder = builder.Builder; - - exports.Parser = parser.Parser; - - exports.parseString = parser.parseString; - - exports.parseStringPromise = parser.parseStringPromise; - -}).call(this); + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } +} +exports.Collector = Collector; /***/ }), @@ -105843,7 +110309,29 @@ exports.resolveUserAgentConfig = resolveUserAgentConfig; /***/ }), -/* 994 */, +/* 994 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; +const tslib_1 = __webpack_require__(79); +tslib_1.__exportStar(__webpack_require__(244), exports); +var getCanonicalHeaders_1 = __webpack_require__(823); +Object.defineProperty(exports, "getCanonicalHeaders", { enumerable: true, get: function () { return getCanonicalHeaders_1.getCanonicalHeaders; } }); +var getCanonicalQuery_1 = __webpack_require__(363); +Object.defineProperty(exports, "getCanonicalQuery", { enumerable: true, get: function () { return getCanonicalQuery_1.getCanonicalQuery; } }); +var getPayloadHash_1 = __webpack_require__(892); +Object.defineProperty(exports, "getPayloadHash", { enumerable: true, get: function () { return getPayloadHash_1.getPayloadHash; } }); +var moveHeadersToQuery_1 = __webpack_require__(546); +Object.defineProperty(exports, "moveHeadersToQuery", { enumerable: true, get: function () { return moveHeadersToQuery_1.moveHeadersToQuery; } }); +var prepareRequest_1 = __webpack_require__(825); +Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function () { return prepareRequest_1.prepareRequest; } }); +tslib_1.__exportStar(__webpack_require__(677), exports); + + +/***/ }), /* 995 */ /***/ (function(__unusedmodule, exports) { @@ -106442,7 +110930,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); var uuid = __webpack_require__(951); var util = __webpack_require__(669); var tslib = __webpack_require__(44); -var xml2js = __webpack_require__(992); +var xml2js = __webpack_require__(338); var abortController = __webpack_require__(819); var coreUtil = __webpack_require__(900); var logger$1 = __webpack_require__(492); diff --git a/dist/save/index.js b/dist/save/index.js index 9faf0f1..0fa9fac 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -390,7 +390,220 @@ function copyFile(srcFile, destFile, force) { //# sourceMappingURL=io.js.map /***/ }), -/* 2 */, +/* 2 */ +/***/ (function(module, __unusedexports, __webpack_require__) { + +var util = __webpack_require__(669); +var Stream = __webpack_require__(794).Stream; +var DelayedStream = __webpack_require__(33); + +module.exports = CombinedStream; +function CombinedStream() { + this.writable = false; + this.readable = true; + this.dataSize = 0; + this.maxDataSize = 2 * 1024 * 1024; + this.pauseStreams = true; + + this._released = false; + this._streams = []; + this._currentStream = null; + this._insideLoop = false; + this._pendingNext = false; +} +util.inherits(CombinedStream, Stream); + +CombinedStream.create = function(options) { + var combinedStream = new this(); + + options = options || {}; + for (var option in options) { + combinedStream[option] = options[option]; + } + + return combinedStream; +}; + +CombinedStream.isStreamLike = function(stream) { + return (typeof stream !== 'function') + && (typeof stream !== 'string') + && (typeof stream !== 'boolean') + && (typeof stream !== 'number') + && (!Buffer.isBuffer(stream)); +}; + +CombinedStream.prototype.append = function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + + if (isStreamLike) { + if (!(stream instanceof DelayedStream)) { + var newStream = DelayedStream.create(stream, { + maxDataSize: Infinity, + pauseStream: this.pauseStreams, + }); + stream.on('data', this._checkDataSize.bind(this)); + stream = newStream; + } + + this._handleErrors(stream); + + if (this.pauseStreams) { + stream.pause(); + } + } + + this._streams.push(stream); + return this; +}; + +CombinedStream.prototype.pipe = function(dest, options) { + Stream.prototype.pipe.call(this, dest, options); + this.resume(); + return dest; +}; + +CombinedStream.prototype._getNext = function() { + this._currentStream = null; + + if (this._insideLoop) { + this._pendingNext = true; + return; // defer call + } + + this._insideLoop = true; + try { + do { + this._pendingNext = false; + this._realGetNext(); + } while (this._pendingNext); + } finally { + this._insideLoop = false; + } +}; + +CombinedStream.prototype._realGetNext = function() { + var stream = this._streams.shift(); + + + if (typeof stream == 'undefined') { + this.end(); + return; + } + + if (typeof stream !== 'function') { + this._pipeNext(stream); + return; + } + + var getStream = stream; + getStream(function(stream) { + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on('data', this._checkDataSize.bind(this)); + this._handleErrors(stream); + } + + this._pipeNext(stream); + }.bind(this)); +}; + +CombinedStream.prototype._pipeNext = function(stream) { + this._currentStream = stream; + + var isStreamLike = CombinedStream.isStreamLike(stream); + if (isStreamLike) { + stream.on('end', this._getNext.bind(this)); + stream.pipe(this, {end: false}); + return; + } + + var value = stream; + this.write(value); + this._getNext(); +}; + +CombinedStream.prototype._handleErrors = function(stream) { + var self = this; + stream.on('error', function(err) { + self._emitError(err); + }); +}; + +CombinedStream.prototype.write = function(data) { + this.emit('data', data); +}; + +CombinedStream.prototype.pause = function() { + if (!this.pauseStreams) { + return; + } + + if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); + this.emit('pause'); +}; + +CombinedStream.prototype.resume = function() { + if (!this._released) { + this._released = true; + this.writable = true; + this._getNext(); + } + + if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); + this.emit('resume'); +}; + +CombinedStream.prototype.end = function() { + this._reset(); + this.emit('end'); +}; + +CombinedStream.prototype.destroy = function() { + this._reset(); + this.emit('close'); +}; + +CombinedStream.prototype._reset = function() { + this.writable = false; + this._streams = []; + this._currentStream = null; +}; + +CombinedStream.prototype._checkDataSize = function() { + this._updateDataSize(); + if (this.dataSize <= this.maxDataSize) { + return; + } + + var message = + 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; + this._emitError(new Error(message)); +}; + +CombinedStream.prototype._updateDataSize = function() { + this.dataSize = 0; + + var self = this; + this._streams.forEach(function(stream) { + if (!stream.dataSize) { + return; + } + + self.dataSize += stream.dataSize; + }); + + if (this._currentStream && this._currentStream.dataSize) { + this.dataSize += this._currentStream.dataSize; + } +}; + +CombinedStream.prototype._emitError = function(err) { + this._reset(); + this.emit('error', err); +}; + + +/***/ }), /* 3 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -401,7 +614,7 @@ exports.getRuntimeConfig = void 0; const tslib_1 = __webpack_require__(661); const package_json_1 = tslib_1.__importDefault(__webpack_require__(81)); const config_resolver_1 = __webpack_require__(529); -const hash_node_1 = __webpack_require__(145); +const hash_node_1 = __webpack_require__(806); const middleware_retry_1 = __webpack_require__(286); const node_config_provider_1 = __webpack_require__(519); const node_http_handler_1 = __webpack_require__(384); @@ -409,7 +622,7 @@ const util_base64_node_1 = __webpack_require__(287); const util_body_length_node_1 = __webpack_require__(555); const util_user_agent_node_1 = __webpack_require__(96); const util_utf8_node_1 = __webpack_require__(536); -const runtimeConfig_shared_1 = __webpack_require__(892); +const runtimeConfig_shared_1 = __webpack_require__(268); const smithy_client_1 = __webpack_require__(973); const util_defaults_mode_node_1 = __webpack_require__(331); const getRuntimeConfig = (config) => { @@ -1224,41 +1437,7 @@ class ExecState extends events.EventEmitter { //# sourceMappingURL=toolrunner.js.map /***/ }), -/* 10 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(748), exports); -//# sourceMappingURL=index.js.map - -/***/ }), +/* 10 */, /* 11 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -1431,7 +1610,22 @@ exports.build = build; /***/ }), -/* 13 */, +/* 13 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.loadConfig = void 0; +const property_provider_1 = __webpack_require__(17); +const fromEnv_1 = __webpack_require__(698); +const fromSharedConfigFiles_1 = __webpack_require__(389); +const fromStatic_1 = __webpack_require__(83); +const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => property_provider_1.memoize(property_provider_1.chain(fromEnv_1.fromEnv(environmentVariableSelector), fromSharedConfigFiles_1.fromSharedConfigFiles(configFileSelector, configuration), fromStatic_1.fromStatic(defaultValue))); +exports.loadConfig = loadConfig; + + +/***/ }), /* 14 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -2316,7 +2510,9 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); exports.getInputS3ClientConfig = exports.getInputAsInt = exports.getInputAsArray = exports.isValidEvent = exports.logWarning = exports.getCacheState = exports.setOutputAndState = exports.setCacheHitOutput = exports.setCacheState = exports.isExactKeyMatch = exports.isGhes = void 0; const core = __importStar(__webpack_require__(470)); -const constants_1 = __webpack_require__(674); +const constants_1 = __webpack_require__(416); +const credential_provider_web_identity_1 = __webpack_require__(590); +const client_sts_1 = __webpack_require__(822); function isGhes() { const ghUrl = new URL(process.env["GITHUB_SERVER_URL"] || "https://github.com"); return ghUrl.hostname.toUpperCase() !== "GITHUB.COM"; @@ -2384,16 +2580,17 @@ function getInputS3ClientConfig() { if (!s3BucketName) { return undefined; } - const s3config = { + const credentials = core.getInput(constants_1.Inputs.AWSAccessKeyId) ? { credentials: { accessKeyId: core.getInput(constants_1.Inputs.AWSAccessKeyId), secretAccessKey: core.getInput(constants_1.Inputs.AWSSecretAccessKey) - }, - region: core.getInput(constants_1.Inputs.AWSRegion), - endpoint: core.getInput(constants_1.Inputs.AWSEndpoint), - bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint), - forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle), + } + } : { + credentials: credential_provider_web_identity_1.fromTokenFile({ + roleAssumerWithWebIdentity: client_sts_1.getDefaultRoleAssumerWithWebIdentity(), + }) }; + const s3config = Object.assign(Object.assign({}, credentials), { region: core.getInput(constants_1.Inputs.AWSRegion), endpoint: core.getInput(constants_1.Inputs.AWSEndpoint), bucketEndpoint: core.getBooleanInput(constants_1.Inputs.AWSS3BucketEndpoint), forcePathStyle: core.getBooleanInput(constants_1.Inputs.AWSS3ForcePathStyle) }); core.debug('Enable S3 backend mode.'); return s3config; } @@ -2437,7 +2634,7 @@ exports.getInputS3ClientConfig = getInputS3ClientConfig; */ const { fromCallback } = __webpack_require__(480); -const Store = __webpack_require__(338).Store; +const Store = __webpack_require__(242).Store; const permuteDomain = __webpack_require__(89).permuteDomain; const pathMatch = __webpack_require__(178).pathMatch; const { getCustomInspectSymbol, getUtilInspect } = __webpack_require__(14); @@ -2709,7 +2906,18 @@ exports.extendedEncodeURIComponent = extendedEncodeURIComponent; /***/ }), -/* 30 */, +/* 30 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = __webpack_require__(79); +tslib_1.__exportStar(__webpack_require__(857), exports); +tslib_1.__exportStar(__webpack_require__(438), exports); + + +/***/ }), /* 31 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -2717,7 +2925,7 @@ exports.extendedEncodeURIComponent = extendedEncodeURIComponent; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRegionInfo = void 0; -const getHostnameFromVariants_1 = __webpack_require__(196); +const getHostnameFromVariants_1 = __webpack_require__(958); const getResolvedHostname_1 = __webpack_require__(584); const getResolvedPartition_1 = __webpack_require__(192); const getResolvedSigningRegion_1 = __webpack_require__(219); @@ -4012,51 +4220,505 @@ var __createBinding; /***/ }), /* 45 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DEFAULT_RECONNECT_MIN_SEC = exports.DEFAULT_RECONNECT_MAX_SEC = exports.MqttWill = exports.QoS = void 0; +/** + * + * A module containing support for mqtt connection establishment and operations. + * + * @packageDocumentation + * @module mqtt + */ +/** + * Quality of service control for mqtt publish operations + * + * @category MQTT + */ +var QoS; +(function (QoS) { + /** + * QoS 0 - At most once delivery + * The message is delivered according to the capabilities of the underlying network. + * No response is sent by the receiver and no retry is performed by the sender. + * The message arrives at the receiver either once or not at all. + */ + QoS[QoS["AtMostOnce"] = 0] = "AtMostOnce"; + /** + * QoS 1 - At least once delivery + * This quality of service ensures that the message arrives at the receiver at least once. + */ + QoS[QoS["AtLeastOnce"] = 1] = "AtLeastOnce"; + /** + * QoS 2 - Exactly once delivery + + * This is the highest quality of service, for use when neither loss nor + * duplication of messages are acceptable. There is an increased overhead + * associated with this quality of service. + + * Note that, while this client supports QoS 2, the AWS IoT Core service + * does not support QoS 2 at time of writing (May 2020). + */ + QoS[QoS["ExactlyOnce"] = 2] = "ExactlyOnce"; +})(QoS = exports.QoS || (exports.QoS = {})); +/** + * A Will message is published by the server if a client is lost unexpectedly. + * + * The Will message is stored on the server when a client connects. + * It is published if the client connection is lost without the server + * receiving a DISCONNECT packet. + * + * [MQTT - 3.1.2 - 8] + * + * @category MQTT + */ +class MqttWill { + constructor( + /** Topic to publish Will message on. */ + topic, + /** QoS used when publishing the Will message. */ + qos, + /** Content of Will message. */ + payload, + /** Whether the Will message is to be retained when it is published. */ + retain = false) { + this.topic = topic; + this.qos = qos; + this.payload = payload; + this.retain = retain; + } +} +exports.MqttWill = MqttWill; +/** + * Const value for max reconnection back off time + * + * @category MQTT + */ +exports.DEFAULT_RECONNECT_MAX_SEC = 128; +/** + * Const value for min reconnection back off time + * + * @category MQTT + */ +exports.DEFAULT_RECONNECT_MIN_SEC = 1; +//# sourceMappingURL=mqtt.js.map + +/***/ }), +/* 46 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetObjectAclCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class GetObjectAclCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; +exports.MqttClientConnection = exports.MqttClient = exports.MqttWill = exports.QoS = exports.HttpProxyOptions = void 0; +/** + * + * A module containing support for mqtt connection establishment and operations. + * + * @packageDocumentation + * @module mqtt + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +const native_resource_1 = __webpack_require__(940); +const event_1 = __webpack_require__(922); +const error_1 = __webpack_require__(92); +const io = __importStar(__webpack_require__(886)); +var http_1 = __webpack_require__(227); +Object.defineProperty(exports, "HttpProxyOptions", { enumerable: true, get: function () { return http_1.HttpProxyOptions; } }); +const mqtt_1 = __webpack_require__(45); +var mqtt_2 = __webpack_require__(45); +Object.defineProperty(exports, "QoS", { enumerable: true, get: function () { return mqtt_2.QoS; } }); +Object.defineProperty(exports, "MqttWill", { enumerable: true, get: function () { return mqtt_2.MqttWill; } }); +/** + * MQTT client + * + * @category MQTT + */ +class MqttClient extends native_resource_1.NativeResource { + /** + * @param bootstrap The {@link ClientBootstrap} to use for socket connections. Leave undefined to use the + * default system-wide bootstrap (recommended). + */ + constructor(bootstrap = undefined) { + super(binding_1.default.mqtt_client_new(bootstrap != null ? bootstrap.native_handle() : null)); + this.bootstrap = bootstrap; } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "GetObjectAclCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetObjectAclRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetObjectAclOutput.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlGetObjectAclCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlGetObjectAclCommand(output, context); + /** + * Creates a new {@link MqttClientConnection} + * @param config Configuration for the mqtt connection + * @returns A new connection + */ + new_connection(config) { + return new MqttClientConnection(this, config); } } -exports.GetObjectAclCommand = GetObjectAclCommand; - +exports.MqttClient = MqttClient; +/** @internal */ +function normalize_payload(payload) { + if (ArrayBuffer.isView(payload)) { + // native can use ArrayBufferView bytes directly + return payload; + } + if (payload instanceof ArrayBuffer) { + // native can use ArrayBuffer bytes directly + return payload; + } + if (typeof payload === 'string') { + // native will convert string to utf-8 + return payload; + } + if (typeof payload === 'object') { + // convert object to JSON string (which will be converted to utf-8 in native) + return JSON.stringify(payload); + } + throw new TypeError("payload parameter must be a string, object, or DataView."); +} +/** + * MQTT client connection + * + * @category MQTT + */ +class MqttClientConnection extends (0, native_resource_1.NativeResourceMixin)(event_1.BufferedEventEmitter) { + /** + * @param client The client that owns this connection + * @param config The configuration for this connection + */ + constructor(client, config) { + super(); + this.client = client; + this.config = config; + // If there is a will, ensure that its payload is normalized to a DataView + const will = config.will ? + { + topic: config.will.topic, + qos: config.will.qos, + payload: normalize_payload(config.will.payload), + retain: config.will.retain + } + : undefined; + /** clamp reconnection time out values */ + var min_sec = mqtt_1.DEFAULT_RECONNECT_MIN_SEC; + var max_sec = mqtt_1.DEFAULT_RECONNECT_MAX_SEC; + if (config.reconnect_min_sec !== undefined) { + min_sec = config.reconnect_min_sec; + // clamp max, in case they only passed in min + max_sec = Math.max(min_sec, max_sec); + } + if (config.reconnect_max_sec !== undefined) { + max_sec = config.reconnect_max_sec; + // clamp min, in case they only passed in max (or passed in min > max) + min_sec = Math.min(min_sec, max_sec); + } + this._super(binding_1.default.mqtt_client_connection_new(client.native_handle(), (error_code) => { this._on_connection_interrupted(error_code); }, (return_code, session_present) => { this._on_connection_resumed(return_code, session_present); }, config.tls_ctx ? config.tls_ctx.native_handle() : null, will, config.username, config.password, config.use_websocket, config.proxy_options ? config.proxy_options.create_native_handle() : undefined, config.websocket_handshake_transform, min_sec, max_sec)); + this.tls_ctx = config.tls_ctx; + binding_1.default.mqtt_client_connection_on_message(this.native_handle(), this._on_any_publish.bind(this)); + /* + * Failed mqtt operations (which is normal) emit error events as well as rejecting the original promise. + * By installing a default error handler here we help prevent common issues where operation failures bring + * the whole program to an end because a handler wasn't installed. Programs that install their own handler + * will be unaffected. + */ + this.on('error', (error) => { }); + } + close() { + binding_1.default.mqtt_client_connection_close(this.native_handle()); + } + // Overridden to allow uncorking on ready + on(event, listener) { + super.on(event, listener); + if (event == 'connect') { + process.nextTick(() => { + this.uncork(); + }); + } + return this; + } + /** + * Open the actual connection to the server (async). + * @returns A Promise which completes whether the connection succeeds or fails. + * If connection fails, the Promise will reject with an exception. + * If connection succeeds, the Promise will return a boolean that is + * true for resuming an existing session, or false if the session is new + */ + connect() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_connect(this.native_handle(), this.config.client_id, this.config.host_name, this.config.port, this.config.socket_options.native_handle(), this.config.keep_alive, this.config.ping_timeout, this.config.protocol_operation_timeout, this.config.clean_session, this._on_connect_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * The connection will automatically reconnect. To cease reconnection attempts, call {@link disconnect}. + * To resume the connection, call {@link connect}. + * @deprecated + */ + reconnect() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_reconnect(this.native_handle(), this._on_connect_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Publish message (async). + * If the device is offline, the PUBLISH packet will be sent once the connection resumes. + * + * @param topic Topic name + * @param payload Contents of message + * @param qos Quality of Service for delivering this message + * @param retain If true, the server will store the message and its QoS so that it can be + * delivered to future subscribers whose subscriptions match the topic name + * @returns Promise which returns a {@link MqttRequest} which will contain the packet id of + * the PUBLISH packet. + * + * * For QoS 0, completes as soon as the packet is sent. + * * For QoS 1, completes when PUBACK is received. + * * For QoS 2, completes when PUBCOMP is received. + */ + publish(topic, payload, qos, retain = false) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_publish(this.native_handle(), topic, normalize_payload(payload), qos, retain, this._on_puback_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Subscribe to a topic filter (async). + * The client sends a SUBSCRIBE packet and the server responds with a SUBACK. + * + * subscribe() may be called while the device is offline, though the async + * operation cannot complete successfully until the connection resumes. + * + * Once subscribed, `callback` is invoked each time a message matching + * the `topic` is received. It is possible for such messages to arrive before + * the SUBACK is received. + * + * @param topic Subscribe to this topic filter, which may include wildcards + * @param qos Maximum requested QoS that server may use when sending messages to the client. + * The server may grant a lower QoS in the SUBACK + * @param on_message Optional callback invoked when message received. + * @returns Promise which returns a {@link MqttSubscribeRequest} which will contain the + * result of the SUBSCRIBE. The Promise resolves when a SUBACK is returned + * from the server or is rejected when an exception occurs. + */ + subscribe(topic, qos, on_message) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_subscribe(this.native_handle(), topic, qos, on_message, this._on_suback_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Unsubscribe from a topic filter (async). + * The client sends an UNSUBSCRIBE packet, and the server responds with an UNSUBACK. + * @param topic The topic filter to unsubscribe from. May contain wildcards. + * @returns Promise wihch returns a {@link MqttRequest} which will contain the packet id + * of the UNSUBSCRIBE packet being acknowledged. Promise is resolved when an + * UNSUBACK is received from the server or is rejected when an exception occurs. + */ + unsubscribe(topic) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_unsubscribe(this.native_handle(), topic, this._on_unsuback_callback.bind(this, resolve, reject)); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Close the connection (async). + * @returns Promise which completes when the connection is closed. + */ + disconnect() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + reject = this._reject(reject); + try { + binding_1.default.mqtt_client_connection_disconnect(this.native_handle(), this._on_disconnect_callback.bind(this, resolve)); + } + catch (e) { + reject(e); + } + }); + }); + } + // Wrap a promise rejection with a function that will also emit the error as an event + _reject(reject) { + return (reason) => { + reject(reason); + process.nextTick(() => { + this.emit('error', new error_1.CrtError(reason)); + }); + }; + } + _on_connection_interrupted(error_code) { + this.emit('interrupt', new error_1.CrtError(error_code)); + } + _on_connection_resumed(return_code, session_present) { + this.emit('resume', return_code, session_present); + } + _on_any_publish(topic, payload, dup, qos, retain) { + this.emit('message', topic, payload, dup, qos, retain); + } + _on_connect_callback(resolve, reject, error_code, return_code, session_present) { + if (error_code == 0 && return_code == 0) { + resolve(session_present); + this.emit('connect', session_present); + } + else if (error_code != 0) { + reject("Failed to connect: " + io.error_code_to_string(error_code)); + } + else { + reject("Server rejected connection."); + } + } + _on_puback_callback(resolve, reject, packet_id, error_code) { + if (error_code == 0) { + resolve({ packet_id }); + } + else { + reject("Failed to publish: " + io.error_code_to_string(error_code)); + } + } + _on_suback_callback(resolve, reject, packet_id, topic, qos, error_code) { + if (error_code == 0) { + resolve({ packet_id, topic, qos, error_code }); + } + else { + reject("Failed to subscribe: " + io.error_code_to_string(error_code)); + } + } + _on_unsuback_callback(resolve, reject, packet_id, error_code) { + if (error_code == 0) { + resolve({ packet_id }); + } + else { + reject("Failed to unsubscribe: " + io.error_code_to_string(error_code)); + } + } + _on_disconnect_callback(resolve) { + resolve(); + this.emit('disconnect'); + this.close(); + } +} +exports.MqttClientConnection = MqttClientConnection; +/** + * Emitted when the connection successfully establishes itself for the first time + * + * @event + */ +MqttClientConnection.CONNECT = 'connect'; +/** + * Emitted when connection has disconnected sucessfully. + * + * @event + */ +MqttClientConnection.DISCONNECT = 'disconnect'; +/** + * Emitted when an error occurs. The error will contain the error + * code and message. + * + * @event + */ +MqttClientConnection.ERROR = 'error'; +/** + * Emitted when the connection is dropped unexpectedly. The error will contain the error + * code and message. The underlying mqtt implementation will attempt to reconnect. + * + * @event + */ +MqttClientConnection.INTERRUPT = 'interrupt'; +/** + * Emitted when the connection reconnects (after an interrupt). Only triggers on connections after the initial one. + * + * @event + */ +MqttClientConnection.RESUME = 'resume'; +/** + * Emitted when any MQTT publish message arrives. + * + * @event + */ +MqttClientConnection.MESSAGE = 'message'; +//# sourceMappingURL=mqtt.js.map /***/ }), -/* 46 */, /* 47 */ /***/ (function(module) { @@ -4370,7 +5032,23 @@ var __createBinding; /***/ }), /* 48 */, -/* 49 */, +/* 49 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.normalizeProvider = void 0; +const normalizeProvider = (input) => { + if (typeof input === "function") + return input; + const promisified = Promise.resolve(input); + return () => promisified; +}; +exports.normalizeProvider = normalizeProvider; + + +/***/ }), /* 50 */ /***/ (function(module) { @@ -4391,7 +5069,7 @@ const config_1 = __webpack_require__(701); const constants_1 = __webpack_require__(373); const defaultRetryQuota_1 = __webpack_require__(870); const delayDecider_1 = __webpack_require__(131); -const retryDecider_1 = __webpack_require__(932); +const retryDecider_1 = __webpack_require__(466); class StandardRetryStrategy { constructor(maxAttemptsProvider, options) { var _a, _b, _c; @@ -4971,7 +5649,7 @@ module.exports = require("zlib"); Object.defineProperty(exports, "__esModule", { value: true }); exports.fileStreamHasher = void 0; const fs_1 = __webpack_require__(747); -const HashCalculator_1 = __webpack_require__(222); +const HashCalculator_1 = __webpack_require__(350); const fileStreamHasher = (hashCtor, fileStream) => new Promise((resolve, reject) => { if (!isReadStream(fileStream)) { reject(new Error("Unable to calculate hash for non-file streams.")); @@ -6065,17 +6743,325 @@ tslib_1.__exportStar(__webpack_require__(885), exports); /***/ }), /* 79 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(module) { -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = __webpack_require__(174); -tslib_1.__exportStar(__webpack_require__(907), exports); -tslib_1.__exportStar(__webpack_require__(570), exports); -tslib_1.__exportStar(__webpack_require__(962), exports); -tslib_1.__exportStar(__webpack_require__(103), exports); -tslib_1.__exportStar(__webpack_require__(508), exports); +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __classPrivateFieldIn; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + __classPrivateFieldIn = function (state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); +}); /***/ }), @@ -6394,7 +7380,7 @@ var __createBinding; /* 81 */ /***/ (function(module) { -module.exports = {"_args":[["@aws-sdk/client-sso@3.51.0","/Users/s06173/go/src/github.com/whywaita/actions-cache-s3"]],"_from":"@aws-sdk/client-sso@3.51.0","_id":"@aws-sdk/client-sso@3.51.0","_inBundle":false,"_integrity":"sha512-YTYCQxptU5CwkHscHwF+2JGZ1a+YsT3G7ZEaKNYuz0iMtQd7koSsLSbvt6EDxjYJZQ6y7gUriRJWJq/LPn55kg==","_location":"/@aws-sdk/client-sso","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"@aws-sdk/client-sso@3.51.0","name":"@aws-sdk/client-sso","escapedName":"@aws-sdk%2fclient-sso","scope":"@aws-sdk","rawSpec":"3.51.0","saveSpec":null,"fetchSpec":"3.51.0"},"_requiredBy":["/@aws-sdk/credential-provider-sso"],"_resolved":"https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.51.0.tgz","_spec":"3.51.0","_where":"/Users/s06173/go/src/github.com/whywaita/actions-cache-s3","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"url":"https://github.com/aws/aws-sdk-js-v3/issues"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","tslib":"^2.3.0"},"description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@aws-sdk/client-sso","react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"repository":{"type":"git","url":"git+https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"},"scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"3.51.0"}; +module.exports = {"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.51.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}; /***/ }), /* 82 */ @@ -6499,7 +7485,51 @@ exports.paginateListParts = paginateListParts; /***/ }), -/* 85 */, +/* 85 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeleteBucketIntelligentTieringConfigurationCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class DeleteBucketIntelligentTieringConfigurationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "DeleteBucketIntelligentTieringConfigurationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteBucketIntelligentTieringConfigurationRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(output, context); + } +} +exports.DeleteBucketIntelligentTieringConfigurationCommand = DeleteBucketIntelligentTieringConfigurationCommand; + + +/***/ }), /* 86 */ /***/ (function(module, __unusedexports, __webpack_require__) { @@ -6701,7 +7731,7 @@ exports.GetBucketReplicationCommand = GetBucketReplicationCommand; * POSSIBILITY OF SUCH DAMAGE. */ -const pubsuffix = __webpack_require__(438); +const pubsuffix = __webpack_require__(700); // Gives the permutation of all possible domainMatch()es of a given domain. The // array is in shortest-to-longest order. Handy for indexing. @@ -6745,7 +7775,7 @@ exports.permuteDomain = permuteDomain; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbortController = void 0; -const AbortSignal_1 = __webpack_require__(922); +const AbortSignal_1 = __webpack_require__(674); class AbortController { constructor() { this.signal = new AbortSignal_1.AbortSignal(); @@ -6782,33 +7812,71 @@ exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; /***/ }), /* 92 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getChunkBuffer = void 0; -async function* getChunkBuffer(data, partSize) { - let partNumber = 1; - let startByte = 0; - let endByte = partSize; - while (endByte < data.byteLength) { - yield { - partNumber, - data: data.slice(startByte, endByte), - }; - partNumber += 1; - startByte = endByte; - endByte = startByte + partSize; +exports.CrtError = void 0; +/** + * Library-specific error extension type + * + * @packageDocumentation + * @module error + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +/** + * Represents an error encountered in native code. Can also be used to convert a numeric error code into + * a human-readable string. + * + * @category System + */ +class CrtError extends Error { + /** @var error - The original error. Most often an error_code, but possibly some other context */ + constructor(error) { + super(extract_message(error)); + this.error = error; + this.error_code = extract_code(error); + this.error_name = extract_name(error); } - yield { - partNumber, - data: data.slice(startByte), - lastPart: true, - }; } -exports.getChunkBuffer = getChunkBuffer; - +exports.CrtError = CrtError; +function extract_message(error) { + if (typeof error === 'number') { + return binding_1.default.error_code_to_string(error); + } + else if (error instanceof CrtError) { + return error.message; + } + return error.toString(); +} +function extract_code(error) { + if (typeof error === 'number') { + return error; + } + else if (error instanceof CrtError) { + return error.error_code; + } + return undefined; +} +function extract_name(error) { + if (typeof error === 'number') { + return binding_1.default.error_code_to_name(error); + } + else if (error instanceof CrtError) { + return error.error_name; + } + return undefined; +} +//# sourceMappingURL=error.js.map /***/ }), /* 93 */ @@ -7847,7 +8915,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; const node_config_provider_1 = __webpack_require__(519); const os_1 = __webpack_require__(87); -const process_1 = __webpack_require__(956); +const process_1 = __webpack_require__(316); const is_crt_available_1 = __webpack_require__(454); exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; @@ -8059,7 +9127,7 @@ exports.default = _default; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(203); tslib_1.__exportStar(__webpack_require__(993), exports); -tslib_1.__exportStar(__webpack_require__(706), exports); +tslib_1.__exportStar(__webpack_require__(364), exports); /***/ }), @@ -9015,20 +10083,32 @@ exports.GetCallerIdentityCommand = GetCallerIdentityCommand; /***/ }), /* 134 */ -/***/ (function(module) { +/***/ (function(__unusedmodule, exports) { -// Generated by CoffeeScript 1.12.7 -(function() { - module.exports = { - Disconnected: 1, - Preceding: 2, - Following: 4, - Contains: 8, - ContainedBy: 16, - ImplementationSpecific: 32 - }; +"use strict"; -}).call(this); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getChunkBuffer = void 0; +async function* getChunkBuffer(data, partSize) { + let partNumber = 1; + let startByte = 0; + let endByte = partSize; + while (endByte < data.byteLength) { + yield { + partNumber, + data: data.slice(startByte, endByte), + }; + partNumber += 1; + startByte = endByte; + endByte = startByte + partSize; + } + yield { + partNumber, + data: data.slice(startByte), + lastPart: true, + }; +} +exports.getChunkBuffer = getChunkBuffer; /***/ }), @@ -9561,11 +10641,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.getRuntimeConfig = void 0; const tslib_1 = __webpack_require__(933); const package_json_1 = tslib_1.__importDefault(__webpack_require__(771)); -const client_sts_1 = __webpack_require__(79); +const client_sts_1 = __webpack_require__(822); const config_resolver_1 = __webpack_require__(529); const credential_provider_node_1 = __webpack_require__(125); const eventstream_serde_node_1 = __webpack_require__(310); -const hash_node_1 = __webpack_require__(145); +const hash_node_1 = __webpack_require__(806); const hash_stream_node_1 = __webpack_require__(420); const middleware_bucket_endpoint_1 = __webpack_require__(234); const middleware_retry_1 = __webpack_require__(286); @@ -9625,7 +10705,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.getChunk = void 0; const buffer_1 = __webpack_require__(293); const stream_1 = __webpack_require__(794); -const getChunkBuffer_1 = __webpack_require__(92); +const getChunkBuffer_1 = __webpack_require__(134); const getChunkStream_1 = __webpack_require__(235); const getDataReadable_1 = __webpack_require__(654); const getDataReadableStream_1 = __webpack_require__(111); @@ -9654,39 +10734,47 @@ exports.getChunk = getChunk; /***/ }), /* 145 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Hash = void 0; -const util_buffer_from_1 = __webpack_require__(59); -const buffer_1 = __webpack_require__(293); -const crypto_1 = __webpack_require__(417); -class Hash { - constructor(algorithmIdentifier, secret) { - this.hash = secret ? crypto_1.createHmac(algorithmIdentifier, castSourceData(secret)) : crypto_1.createHash(algorithmIdentifier); - } - update(toHash, encoding) { - this.hash.update(castSourceData(toHash, encoding)); - } - digest() { - return Promise.resolve(this.hash.digest()); +exports.toHex = exports.fromHex = void 0; +const SHORT_TO_HEX = {}; +const HEX_TO_SHORT = {}; +for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = `0${encodedByte}`; } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; } -exports.Hash = Hash; -function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { - return toCast; +function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error("Hex encoded strings must have an even number length"); } - if (typeof toCast === "string") { - return util_buffer_from_1.fromString(toCast, encoding); + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } + else { + throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); + } } - if (ArrayBuffer.isView(toCast)) { - return util_buffer_from_1.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return util_buffer_from_1.fromArrayBuffer(toCast); + return out; } +exports.fromHex = fromHex; +function toHex(bytes) { + let out = ""; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; +} +exports.toHex = toHex; /***/ }), @@ -9830,7 +10918,7 @@ exports.NoopTracer = void 0; var context_1 = __webpack_require__(189); var context_utils_1 = __webpack_require__(456); var NonRecordingSpan_1 = __webpack_require__(437); -var spancontext_utils_1 = __webpack_require__(905); +var spancontext_utils_1 = __webpack_require__(479); var context = context_1.ContextAPI.getInstance(); /** * No-op implementations of {@link Tracer}. @@ -10107,46 +11195,128 @@ const getCredentialsFromProfile = async (profile, options) => { /***/ }), -/* 159 */, -/* 160 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/* 159 */ +/***/ (function(__unusedmodule, exports) { "use strict"; /* - * Copyright The OpenTelemetry Authors + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.using = void 0; +/** + * Use this function to create a resource in an async context. This will make sure the + * resources are cleaned up before returning. * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Example: + * ``` + * await using(res = new SomeResource(), async (res) => { + * res.do_the_thing(); + * }); + * ``` * - * https://www.apache.org/licenses/LICENSE-2.0 + * @category System + */ +function using(resource, func) { + return __awaiter(this, void 0, void 0, function* () { + try { + yield func(resource); + } + finally { + resource.close(); + } + }); +} +exports.using = using; +//# sourceMappingURL=resource_safety.js.map + +/***/ }), +/* 160 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.NoopTracerProvider = void 0; -var NoopTracer_1 = __webpack_require__(151); +exports.CommonHttpProxyOptions = exports.HttpProxyAuthenticationType = exports.HttpVersion = void 0; /** - * An implementation of the {@link TracerProvider} which returns an impotent - * Tracer for all calls to `getTracer`. * - * All operations are no-op. + * A module containing support for creating http connections and making requests on them. + * + * @packageDocumentation + * @module http */ -var NoopTracerProvider = /** @class */ (function () { - function NoopTracerProvider() { +/** + * HTTP protocol version + * + * @category HTTP + */ +var HttpVersion; +(function (HttpVersion) { + HttpVersion[HttpVersion["Unknown"] = 0] = "Unknown"; + /** HTTP/1.0 */ + HttpVersion[HttpVersion["Http1_0"] = 1] = "Http1_0"; + /** HTTP/1.1 */ + HttpVersion[HttpVersion["Http1_1"] = 2] = "Http1_1"; + /** HTTP/2 */ + HttpVersion[HttpVersion["Http2"] = 3] = "Http2"; +})(HttpVersion = exports.HttpVersion || (exports.HttpVersion = {})); +/** + * Proxy authentication types + * + * @category HTTP + */ +var HttpProxyAuthenticationType; +(function (HttpProxyAuthenticationType) { + /** + * No to-proxy authentication logic + */ + HttpProxyAuthenticationType[HttpProxyAuthenticationType["None"] = 0] = "None"; + /** + * Use basic authentication (user/pass). Supply these values in {@link HttpProxyOptions} + */ + HttpProxyAuthenticationType[HttpProxyAuthenticationType["Basic"] = 1] = "Basic"; +})(HttpProxyAuthenticationType = exports.HttpProxyAuthenticationType || (exports.HttpProxyAuthenticationType = {})); +; +/** + * Options used when connecting to an HTTP endpoint via a proxy + * + * @category HTTP + */ +class CommonHttpProxyOptions { + /** + * + * @param host_name endpoint of the proxy to use + * @param port port of proxy to use + * @param auth_method type of authentication to use with the proxy + * @param auth_username (basic authentication only) proxy username + * @param auth_password (basic authentication only) password associated with the username + */ + constructor(host_name, port, auth_method = HttpProxyAuthenticationType.None, auth_username, auth_password) { + this.host_name = host_name; + this.port = port; + this.auth_method = auth_method; + this.auth_username = auth_username; + this.auth_password = auth_password; } - NoopTracerProvider.prototype.getTracer = function (_name, _version, _options) { - return new NoopTracer_1.NoopTracer(); - }; - return NoopTracerProvider; -}()); -exports.NoopTracerProvider = NoopTracerProvider; -//# sourceMappingURL=NoopTracerProvider.js.map +} +exports.CommonHttpProxyOptions = CommonHttpProxyOptions; +//# sourceMappingURL=http.js.map /***/ }), /* 161 */ @@ -10819,117 +11989,31 @@ exports.getTraversalObj = getTraversalObj; /* 171 */, /* 172 */, /* 173 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _rng = _interopRequireDefault(__webpack_require__(733)); - -var _stringify = _interopRequireDefault(__webpack_require__(855)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -let _nodeId; - -let _clockseq; // Previous uuid creation time - - -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 - - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toDate = exports.iso8601 = void 0; +const iso8601 = (time) => (0, exports.toDate)(time) + .toISOString() + .replace(/\.\d{3}Z$/, "Z"); +exports.iso8601 = iso8601; +const toDate = (time) => { + if (typeof time === "number") { + return new Date(time * 1000); } - - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + if (typeof time === "string") { + if (Number(time)) { + return new Date(Number(time) * 1000); + } + return new Date(time); } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + return time; +}; +exports.toDate = toDate; - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - - - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested - - - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - - msecs += 12219292800000; // `time_low` - - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` - - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` - - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` - - b[i++] = clockseq & 0xff; // `node` - - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf || (0, _stringify.default)(b); -} - -var _default = v1; -exports.default = _default; - /***/ }), /* 174 */ /***/ (function(module) { @@ -11414,7 +12498,7 @@ exports.pathMatch = pathMatch; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(71); tslib_1.__exportStar(__webpack_require__(90), exports); -tslib_1.__exportStar(__webpack_require__(922), exports); +tslib_1.__exportStar(__webpack_require__(674), exports); /***/ }), @@ -11778,18 +12862,73 @@ exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; /***/ }), /* 195 */, /* 196 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.getHostnameFromVariants = void 0; -const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; -}; -exports.getHostnameFromVariants = getHostnameFromVariants; - +exports.crt_version = exports.package_info = exports.is_browser = exports.is_nodejs = void 0; +/** + * + * A module containing miscellaneous platform-related queries + * + * @packageDocumentation + * @module platform + * @mergeTarget + */ +/** + * Returns true if this script is running under nodejs + * + * @category System + */ +function is_nodejs() { + return (typeof process === 'object' && + typeof process.versions === 'object' && + typeof process.versions.node !== 'undefined'); +} +exports.is_nodejs = is_nodejs; +/** + * Returns true if this script is running in a browser + * + * @category System + */ +function is_browser() { + return !is_nodejs(); +} +exports.is_browser = is_browser; +/** + * Returns the package information for aws-crt-nodejs + * + * @category System + */ +function package_info() { + try { + const pkg = __webpack_require__(753); + return pkg; + } + catch (err) { + return { + name: 'aws-crt-nodejs', + version: 'UNKNOWN' + }; + } +} +exports.package_info = package_info; +/** + * Returns the AWS CRT version + * + * @category System + */ +function crt_version() { + const pkg = package_info(); + return pkg.version; +} +exports.crt_version = crt_version; +//# sourceMappingURL=platform.js.map /***/ }), /* 197 */ @@ -13566,7 +14705,59 @@ exports.loadSharedConfigFiles = loadSharedConfigFiles; /***/ }), /* 217 */, -/* 218 */, +/* 218 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; +exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; +exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; +exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; +exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; +exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; +exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; +exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; +exports.REGION_SET_PARAM = "X-Amz-Region-Set"; +exports.AUTH_HEADER = "authorization"; +exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); +exports.DATE_HEADER = "date"; +exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; +exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); +exports.SHA256_HEADER = "x-amz-content-sha256"; +exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); +exports.HOST_HEADER = "host"; +exports.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true, +}; +exports.PROXY_HEADER_PATTERN = /^proxy-/; +exports.SEC_HEADER_PATTERN = /^sec-/; +exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; +exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; +exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; +exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; +exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; +exports.MAX_CACHE_SIZE = 50; +exports.KEY_TYPE_IDENTIFIER = "aws4_request"; +exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + + +/***/ }), /* 219 */ /***/ (function(__unusedmodule, exports) { @@ -13667,24 +14858,42 @@ exports.PutBucketVersioningCommand = PutBucketVersioningCommand; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.HashCalculator = void 0; -const stream_1 = __webpack_require__(794); -class HashCalculator extends stream_1.Writable { - constructor(hash, options) { - super(options); - this.hash = hash; +exports.GetSessionTokenCommand = void 0; +const middleware_serde_1 = __webpack_require__(347); +const middleware_signing_1 = __webpack_require__(307); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(37); +const Aws_query_1 = __webpack_require__(963); +class GetSessionTokenCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; } - _write(chunk, encoding, callback) { - try { - this.hash.update(chunk); - } - catch (err) { - return callback(err); - } - callback(); + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "GetSessionTokenCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetSessionTokenRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetSessionTokenResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_query_1.serializeAws_queryGetSessionTokenCommand(input, context); + } + deserialize(output, context) { + return Aws_query_1.deserializeAws_queryGetSessionTokenCommand(output, context); } } -exports.HashCalculator = HashCalculator; +exports.GetSessionTokenCommand = GetSessionTokenCommand; /***/ }), @@ -13725,7 +14934,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.EventStreamMarshaller = void 0; const eventstream_marshaller_1 = __webpack_require__(372); const getChunkedStream_1 = __webpack_require__(60); -const getUnmarshalledStream_1 = __webpack_require__(825); +const getUnmarshalledStream_1 = __webpack_require__(625); class EventStreamMarshaller { constructor({ utf8Encoder, utf8Decoder }) { this.eventMarshaller = new eventstream_marshaller_1.EventStreamMarshaller(utf8Encoder, utf8Decoder); @@ -13824,7 +15033,414 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /***/ }), -/* 227 */, +/* 227 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HttpClientConnectionManager = exports.HttpClientStream = exports.HttpStream = exports.HttpClientConnection = exports.HttpProxyOptions = exports.HttpProxyConnectionType = exports.HttpConnection = exports.HttpRequest = exports.HttpHeaders = exports.HttpProxyAuthenticationType = void 0; +/** + * + * A module containing support for creating http connections and making requests on them. + * + * @packageDocumentation + * @module http + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +const native_resource_1 = __webpack_require__(940); +const error_1 = __webpack_require__(92); +const http_1 = __webpack_require__(160); +/** @internal */ +var http_2 = __webpack_require__(160); +Object.defineProperty(exports, "HttpProxyAuthenticationType", { enumerable: true, get: function () { return http_2.HttpProxyAuthenticationType; } }); +const event_1 = __webpack_require__(922); +/** + * @category HTTP + */ +exports.HttpHeaders = binding_1.default.HttpHeaders; +/** @internal */ +const nativeHttpRequest = binding_1.default.HttpRequest; +/** + * @category HTTP + */ +class HttpRequest extends nativeHttpRequest { + constructor(method, path, headers, body) { + super(method, path, headers, body === null || body === void 0 ? void 0 : body.native_handle()); + } +} +exports.HttpRequest = HttpRequest; +/** + * Base class for HTTP connections + * + * @category HTTP + */ +class HttpConnection extends (0, native_resource_1.NativeResourceMixin)(event_1.BufferedEventEmitter) { + constructor(native_handle) { + super(); + this._super(native_handle); + } + /** + * Close the connection. + * Shutdown is asynchronous. This call has no effect if the connection is already + * closing. + */ + close() { + binding_1.default.http_connection_close(this.native_handle()); + } + // Overridden to allow uncorking on ready + on(event, listener) { + super.on(event, listener); + if (event == 'connect') { + process.nextTick(() => { + this.uncork(); + }); + } + return this; + } +} +exports.HttpConnection = HttpConnection; +/** + * Emitted when the connection is connected and ready to start streams + * + * @event + */ +HttpConnection.CONNECT = 'connect'; +/** + * Emitted when an error occurs on the connection + * + * @event + */ +HttpConnection.ERROR = 'error'; +/** + * Emitted when the connection has completed + * + * @event + */ +HttpConnection.CLOSE = 'close'; +/** + * Proxy connection types. + * + * The original behavior was to make a tunneling connection if TLS was used, and a forwarding connection if it was not. + * There are legitimate use cases for plaintext tunneling connections, and so the implicit behavior has now + * been replaced by this setting, with a default that maps to the old behavior. + * + * @category HTTP + */ +var HttpProxyConnectionType; +(function (HttpProxyConnectionType) { + /** + * (Default for backwards compatibility). If Tls options are supplied then the connection will be a tunneling + * one, otherwise it will be a forwarding one. + */ + HttpProxyConnectionType[HttpProxyConnectionType["Legacy"] = 0] = "Legacy"; + /** + * Establish a forwarding-based connection with the proxy. Tls is not allowed in this case. + */ + HttpProxyConnectionType[HttpProxyConnectionType["Forwarding"] = 1] = "Forwarding"; + /** + * Establish a tunneling-based connection with the proxy. + */ + HttpProxyConnectionType[HttpProxyConnectionType["Tunneling"] = 2] = "Tunneling"; +})(HttpProxyConnectionType = exports.HttpProxyConnectionType || (exports.HttpProxyConnectionType = {})); +; +/** + * Proxy options for HTTP clients. + * + * @category HTTP + */ +class HttpProxyOptions extends http_1.CommonHttpProxyOptions { + /** + * + * @param host_name Name of the proxy server to connect through + * @param port Port number of the proxy server to connect through + * @param auth_method Type of proxy authentication to use. Default is {@link HttpProxyAuthenticationType.None} + * @param auth_username Username to use when `auth_type` is {@link HttpProxyAuthenticationType.Basic} + * @param auth_password Password to use when `auth_type` is {@link HttpProxyAuthenticationType.Basic} + * @param tls_opts Optional TLS connection options for the connection to the proxy host. + * Must be distinct from the {@link TlsConnectionOptions} provided to + * the HTTP connection + * @param connection_type Optional Type of connection to make. If not specified, + * {@link HttpProxyConnectionType.Legacy} will be used. + */ + constructor(host_name, port, auth_method = http_1.HttpProxyAuthenticationType.None, auth_username, auth_password, tls_opts, connection_type) { + super(host_name, port, auth_method, auth_username, auth_password); + this.tls_opts = tls_opts; + this.connection_type = connection_type; + } + /** @internal */ + create_native_handle() { + return binding_1.default.http_proxy_options_new(this.host_name, this.port, this.auth_method, this.auth_username, this.auth_password, this.tls_opts ? this.tls_opts.native_handle() : undefined, this.connection_type ? this.connection_type : HttpProxyConnectionType.Legacy); + } +} +exports.HttpProxyOptions = HttpProxyOptions; +/** + * Represents an HTTP connection from a client to a server + * + * @category HTTP + */ +class HttpClientConnection extends HttpConnection { + /** Asynchronously establish a new HttpClientConnection. + * @param bootstrap Client bootstrap to use when initiating socket connection. Leave undefined to use the + * default system-wide bootstrap (recommended). + * @param host_name Host to connect to + * @param port Port to connect to on host + * @param socket_options Socket options + * @param tls_opts Optional TLS connection options + * @param proxy_options Optional proxy options + */ + constructor(bootstrap, host_name, port, socket_options, tls_opts, proxy_options, handle) { + super(handle + ? handle + : binding_1.default.http_connection_new(bootstrap != null ? bootstrap.native_handle() : null, (handle, error_code) => { + this._on_setup(handle, error_code); + }, (handle, error_code) => { + this._on_shutdown(handle, error_code); + }, host_name, port, socket_options.native_handle(), tls_opts ? tls_opts.native_handle() : undefined, proxy_options ? proxy_options.create_native_handle() : undefined)); + this.bootstrap = bootstrap; + this.socket_options = socket_options; + this.tls_opts = tls_opts; + } + _on_setup(native_handle, error_code) { + if (error_code) { + this.emit('error', new error_1.CrtError(error_code)); + return; + } + this.emit('connect'); + } + _on_shutdown(native_handle, error_code) { + if (error_code) { + this.emit('error', new error_1.CrtError(error_code)); + return; + } + this.emit('close'); + } + /** + * Create {@link HttpClientStream} to carry out the request/response exchange. + * + * NOTE: The stream sends no data until :meth:`HttpClientStream.activate()` + * is called. Call {@link HttpStream.activate} when you're ready for + * callbacks and events to fire. + * @param request - The HttpRequest to attempt on this connection + * @returns A new stream that will deliver events for the request + */ + request(request) { + let stream; + const on_response_impl = (status_code, headers) => { + stream._on_response(status_code, headers); + }; + const on_body_impl = (data) => { + stream._on_body(data); + }; + const on_complete_impl = (error_code) => { + stream._on_complete(error_code); + }; + const native_handle = binding_1.default.http_stream_new(this.native_handle(), request, on_complete_impl, on_response_impl, on_body_impl); + return stream = new HttpClientStream(native_handle, this, request); + } +} +exports.HttpClientConnection = HttpClientConnection; +/** + * Represents a single http message exchange (request/response) in HTTP/1.1. In H2, it may + * also represent a PUSH_PROMISE followed by the accompanying response. + * + * NOTE: Binding either the ready or response event will uncork any buffered events and start + * event delivery + * + * @category HTTP + */ +class HttpStream extends (0, native_resource_1.NativeResourceMixin)(event_1.BufferedEventEmitter) { + constructor(native_handle, connection) { + super(); + this.connection = connection; + this._super(native_handle); + this.cork(); + } + /** + * Begin sending the request. + * + * The stream does nothing until this is called. Call activate() when you + * are ready for its callbacks and events to fire. + */ + activate() { + binding_1.default.http_stream_activate(this.native_handle()); + } + /** + * Closes and ends all communication on this stream. Called automatically after the 'end' + * event is delivered. Calling this manually is only necessary if you wish to terminate + * communication mid-request/response. + */ + close() { + binding_1.default.http_stream_close(this.native_handle()); + } + /** @internal */ + _on_body(data) { + this.emit('data', data); + } + /** @internal */ + _on_complete(error_code) { + if (error_code) { + this.emit('error', new error_1.CrtError(error_code)); + this.close(); + return; + } + // schedule death after end is delivered + this.on('end', () => { + this.close(); + }); + this.emit('end'); + } +} +exports.HttpStream = HttpStream; +/** + * Stream that sends a request and receives a response. + * + * Create an HttpClientStream with {@link HttpClientConnection.request}. + * + * NOTE: The stream sends no data until {@link HttpStream.activate} is called. + * Call {@link HttpStream.activate} when you're ready for callbacks and events to fire. + * + * @category HTTP + */ +class HttpClientStream extends HttpStream { + constructor(native_handle, connection, request) { + super(native_handle, connection); + this.request = request; + } + /** + * HTTP status code returned from the server. + * @return Either the status code, or undefined if the server response has not arrived yet. + */ + status_code() { + return this.response_status_code; + } + // Overridden to allow uncorking on ready and response + on(event, listener) { + super.on(event, listener); + if (event == 'response') { + process.nextTick(() => { + this.uncork(); + }); + } + return this; + } + /** @internal */ + _on_response(status_code, header_array) { + this.response_status_code = status_code; + let headers = new exports.HttpHeaders(header_array); + this.emit('response', status_code, headers); + } +} +exports.HttpClientStream = HttpClientStream; +/** + * Emitted when the http response headers have arrived. + * + * @event + */ +HttpClientStream.RESPONSE = 'response'; +/** + * Emitted when http response data is available. + * + * @event + */ +HttpClientStream.DATA = 'data'; +/** + * Emitted when an error occurs in stream processing + * + * @event + */ +HttpClientStream.ERROR = 'error'; +/** + * Emitted when the stream has completed + * + * @event + */ +HttpClientStream.END = 'end'; +/** + * Emitted when inline headers are delivered while communicating over H2 + * + * @event + */ +HttpClientStream.HEADERS = 'headers'; +/** + * Creates, manages, and vends connections to a given host/port endpoint + * + * @category HTTP + */ +class HttpClientConnectionManager extends native_resource_1.NativeResource { + /** + * @param bootstrap Client bootstrap to use when initiating socket connections. Leave undefined to use the + * default system-wide bootstrap (recommended). + * @param host Host to connect to + * @param port Port to connect to on host + * @param max_connections Maximum number of connections to pool + * @param initial_window_size Optional initial window size + * @param socket_options Socket options to use when initiating socket connections + * @param tls_opts Optional TLS connection options + * @param proxy_options Optional proxy options + */ + constructor(bootstrap, host, port, max_connections, initial_window_size, socket_options, tls_opts, proxy_options) { + super(binding_1.default.http_connection_manager_new(bootstrap != null ? bootstrap.native_handle() : null, host, port, max_connections, initial_window_size, socket_options.native_handle(), tls_opts ? tls_opts.native_handle() : undefined, proxy_options ? proxy_options.create_native_handle() : undefined, undefined /* on_shutdown */)); + this.bootstrap = bootstrap; + this.host = host; + this.port = port; + this.max_connections = max_connections; + this.initial_window_size = initial_window_size; + this.socket_options = socket_options; + this.tls_opts = tls_opts; + this.proxy_options = proxy_options; + this.connections = new Map(); + } + /** + * Vends a connection from the pool + * @returns A promise that results in an HttpClientConnection. When done with the connection, return + * it via {@link release} + */ + acquire() { + return new Promise((resolve, reject) => { + // Only create 1 connection in JS/TS from each native connection + const on_acquired = (handle, error_code) => { + if (error_code) { + reject(new error_1.CrtError(error_code)); + return; + } + let connection = this.connections.get(handle); + if (!connection) { + connection = new HttpClientConnection(this.bootstrap, this.host, this.port, this.socket_options, this.tls_opts, this.proxy_options, handle); + this.connections.set(handle, connection); + connection.on('close', () => { + this.connections.delete(handle); + }); + } + resolve(connection); + }; + binding_1.default.http_connection_manager_acquire(this.native_handle(), on_acquired); + }); + } + /** + * Returns an unused connection to the pool + * @param connection - The connection to return + */ + release(connection) { + binding_1.default.http_connection_manager_release(this.native_handle(), connection.native_handle()); + } + /** Closes all connections and rejects all pending requests */ + close() { + binding_1.default.http_connection_manager_close(this.native_handle()); + } +} +exports.HttpClientConnectionManager = HttpClientConnectionManager; +//# sourceMappingURL=http.js.map + +/***/ }), /* 228 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -14690,7 +16306,89 @@ tslib_1.__exportStar(__webpack_require__(667), exports); /***/ }), -/* 242 */, +/* 242 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; +/*! + * Copyright (c) 2015, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/*jshint unused:false */ + +class Store { + constructor() { + this.synchronous = false; + } + + findCookie(domain, path, key, cb) { + throw new Error("findCookie is not implemented"); + } + + findCookies(domain, path, allowSpecialUseDomain, cb) { + throw new Error("findCookies is not implemented"); + } + + putCookie(cookie, cb) { + throw new Error("putCookie is not implemented"); + } + + updateCookie(oldCookie, newCookie, cb) { + // recommended default implementation: + // return this.putCookie(newCookie, cb); + throw new Error("updateCookie is not implemented"); + } + + removeCookie(domain, path, key, cb) { + throw new Error("removeCookie is not implemented"); + } + + removeCookies(domain, path, cb) { + throw new Error("removeCookies is not implemented"); + } + + removeAllCookies(cb) { + throw new Error("removeAllCookies is not implemented"); + } + + getAllCookies(cb) { + throw new Error( + "getAllCookies is not implemented (therefore jar cannot be serialized)" + ); + } +} + +exports.Store = Store; + + +/***/ }), /* 243 */ /***/ (function(__unusedmodule, exports) { @@ -14759,227 +16457,222 @@ exports.checkBypass = checkBypass; /***/ }), /* 244 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Generated by CoffeeScript 1.12.7 -(function() { - var NodeType, WriterState, XMLStreamWriter, XMLWriterBase, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; - - NodeType = __webpack_require__(683); - - XMLWriterBase = __webpack_require__(671); - - WriterState = __webpack_require__(518); - - module.exports = XMLStreamWriter = (function(superClass) { - extend(XMLStreamWriter, superClass); - - function XMLStreamWriter(stream, options) { - this.stream = stream; - XMLStreamWriter.__super__.constructor.call(this, options); - } - - XMLStreamWriter.prototype.endline = function(node, options, level) { - if (node.isLastRootNode && options.state === WriterState.CloseTag) { - return ''; - } else { - return XMLStreamWriter.__super__.endline.call(this, node, options, level); - } - }; - - XMLStreamWriter.prototype.document = function(doc, options) { - var child, i, j, k, len, len1, ref, ref1, results; - ref = doc.children; - for (i = j = 0, len = ref.length; j < len; i = ++j) { - child = ref[i]; - child.isLastRootNode = i === doc.children.length - 1; - } - options = this.filterOptions(options); - ref1 = doc.children; - results = []; - for (k = 0, len1 = ref1.length; k < len1; k++) { - child = ref1[k]; - results.push(this.writeChildNode(child, options, 0)); - } - return results; - }; - - XMLStreamWriter.prototype.attribute = function(att, options, level) { - return this.stream.write(XMLStreamWriter.__super__.attribute.call(this, att, options, level)); - }; - - XMLStreamWriter.prototype.cdata = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.cdata.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.comment = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.comment.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.declaration = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.declaration.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.docType = function(node, options, level) { - var child, j, len, ref; - level || (level = 0); - this.openNode(node, options, level); - options.state = WriterState.OpenTag; - this.stream.write(this.indent(node, options, level)); - this.stream.write(' 0) { - this.stream.write(' ['); - this.stream.write(this.endline(node, options, level)); - options.state = WriterState.InsideTag; - ref = node.children; - for (j = 0, len = ref.length; j < len; j++) { - child = ref[j]; - this.writeChildNode(child, options, level + 1); - } - options.state = WriterState.CloseTag; - this.stream.write(']'); - } - options.state = WriterState.CloseTag; - this.stream.write(options.spaceBeforeSlash + '>'); - this.stream.write(this.endline(node, options, level)); - options.state = WriterState.None; - return this.closeNode(node, options, level); - }; - - XMLStreamWriter.prototype.element = function(node, options, level) { - var att, child, childNodeCount, firstChildNode, j, len, name, prettySuppressed, ref, ref1; - level || (level = 0); - this.openNode(node, options, level); - options.state = WriterState.OpenTag; - this.stream.write(this.indent(node, options, level) + '<' + node.name); - ref = node.attribs; - for (name in ref) { - if (!hasProp.call(ref, name)) continue; - att = ref[name]; - this.attribute(att, options, level); - } - childNodeCount = node.children.length; - firstChildNode = childNodeCount === 0 ? null : node.children[0]; - if (childNodeCount === 0 || node.children.every(function(e) { - return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === ''; - })) { - if (options.allowEmpty) { - this.stream.write('>'); - options.state = WriterState.CloseTag; - this.stream.write(''); - } else { - options.state = WriterState.CloseTag; - this.stream.write(options.spaceBeforeSlash + '/>'); - } - } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) { - this.stream.write('>'); - options.state = WriterState.InsideTag; - options.suppressPrettyCount++; - prettySuppressed = true; - this.writeChildNode(firstChildNode, options, level + 1); - options.suppressPrettyCount--; - prettySuppressed = false; - options.state = WriterState.CloseTag; - this.stream.write(''); - } else { - this.stream.write('>' + this.endline(node, options, level)); - options.state = WriterState.InsideTag; - ref1 = node.children; - for (j = 0, len = ref1.length; j < len; j++) { - child = ref1[j]; - this.writeChildNode(child, options, level + 1); - } - options.state = WriterState.CloseTag; - this.stream.write(this.indent(node, options, level) + ''); - } - this.stream.write(this.endline(node, options, level)); - options.state = WriterState.None; - return this.closeNode(node, options, level); - }; - - XMLStreamWriter.prototype.processingInstruction = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.raw = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.raw.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.text = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.text.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.dtdAttList = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.dtdElement = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.dtdEntity = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this, node, options, level)); - }; - - XMLStreamWriter.prototype.dtdNotation = function(node, options, level) { - return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this, node, options, level)); - }; - - return XMLStreamWriter; - - })(XMLWriterBase); - -}).call(this); - - -/***/ }), -/* 245 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListAccountsCommand = void 0; -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(743); -const Aws_restJson1_1 = __webpack_require__(340); -class ListAccountsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; +exports.SignatureV4 = void 0; +const util_hex_encoding_1 = __webpack_require__(145); +const util_middleware_1 = __webpack_require__(325); +const constants_1 = __webpack_require__(361); +const credentialDerivation_1 = __webpack_require__(677); +const getCanonicalHeaders_1 = __webpack_require__(823); +const getCanonicalQuery_1 = __webpack_require__(363); +const getPayloadHash_1 = __webpack_require__(892); +const headerUtil_1 = __webpack_require__(245); +const moveHeadersToQuery_1 = __webpack_require__(546); +const prepareRequest_1 = __webpack_require__(825); +const utilDate_1 = __webpack_require__(173); +class SignatureV4 { + constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; + this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); + this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountsResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + async presign(originalRequest, options = {}) { + const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, } = options; + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { longDate, shortDate } = formatDate(signingDate); + if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { + return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); + } + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + if (credentials.sessionToken) { + request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; + request.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; + request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; + request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + return request; } - serialize(input, context) { - return Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand(input, context); + async sign(toSign, options) { + if (typeof toSign === "string") { + return this.signString(toSign, options); + } + else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } + else { + return this.signRequest(toSign, options); + } } - deserialize(output, context) { - return Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand(output, context); + async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { shortDate, longDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); + const hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const stringToSign = [ + constants_1.EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload, + ].join("\n"); + return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); + } + async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { shortDate } = formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const request = (0, prepareRequest_1.prepareRequest)(requestToSign); + const { longDate, shortDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + request.headers[constants_1.AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; + } + const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); + if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { + request.headers[constants_1.SHA256_HEADER] = payloadHash; + } + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); + request.headers[constants_1.AUTH_HEADER] = + `${constants_1.ALGORITHM_IDENTIFIER} ` + + `Credential=${credentials.accessKeyId}/${scope}, ` + + `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` + + `Signature=${signature}`; + return request; + } + createCanonicalRequest(request, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return `${request.method} +${this.getCanonicalPath(request)} +${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} +${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} + +${sortedHeaders.join(";")} +${payloadHash}`; + } + async createStringToSign(longDate, credentialScope, canonicalRequest) { + const hash = new this.sha256(); + hash.update(canonicalRequest); + const hashedRequest = await hash.digest(); + return `${constants_1.ALGORITHM_IDENTIFIER} +${longDate} +${credentialScope} +${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; + } + getCanonicalPath({ path }) { + if (this.uriEscapePath) { + const normalizedPathSegments = []; + for (const pathSegment of path.split("/")) { + if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) + continue; + if (pathSegment === ".") + continue; + if (pathSegment === "..") { + normalizedPathSegments.pop(); + } + else { + normalizedPathSegments.push(pathSegment); + } + } + const normalizedPath = `${(path === null || path === void 0 ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith("/")) ? "/" : ""}`; + const doubleEncoded = encodeURIComponent(normalizedPath); + return doubleEncoded.replace(/%2F/g, "/"); + } + return path; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); + const hash = new this.sha256(await keyPromise); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + } + validateResolvedCredentials(credentials) { + if (typeof credentials !== "object" || + typeof credentials.accessKeyId !== "string" || + typeof credentials.secretAccessKey !== "string") { + throw new Error("Resolved credential object is not valid"); + } } } -exports.ListAccountsCommand = ListAccountsCommand; +exports.SignatureV4 = SignatureV4; +const formatDate = (now) => { + const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); + return { + longDate, + shortDate: longDate.slice(0, 8), + }; +}; +const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); + + +/***/ }), +/* 245 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; +const hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; +}; +exports.hasHeader = hasHeader; +const getHeaderValue = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return undefined; +}; +exports.getHeaderValue = getHeaderValue; +const deleteHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } +}; +exports.deleteHeader = deleteHeader; /***/ }), @@ -15501,12 +17194,12 @@ exports.implementation = class URLImpl { XMLDocType = __webpack_require__(735); XMLRaw = __webpack_require__(283); XMLText = __webpack_require__(666); - XMLProcessingInstruction = __webpack_require__(419); - XMLDummy = __webpack_require__(764); + XMLProcessingInstruction = __webpack_require__(836); + XMLDummy = __webpack_require__(956); NodeType = __webpack_require__(683); XMLNodeList = __webpack_require__(300); XMLNamedNodeMap = __webpack_require__(697); - DocumentPosition = __webpack_require__(134); + DocumentPosition = __webpack_require__(818); } } @@ -16742,7 +18435,7 @@ var DiagLogLevel; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(996); -tslib_1.__exportStar(__webpack_require__(886), exports); +tslib_1.__exportStar(__webpack_require__(478), exports); /***/ }), @@ -16849,23 +18542,26 @@ exports.Client = Client; /***/ }), /* 268 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; -const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; -const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; -exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - return env[AWS_DEFAULTS_MODE_ENV]; - }, - configFileSelector: (profile) => { - return profile[AWS_DEFAULTS_MODE_CONFIG]; - }, - default: "legacy", +exports.getRuntimeConfig = void 0; +const url_parser_1 = __webpack_require__(187); +const endpoints_1 = __webpack_require__(991); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return ({ + apiVersion: "2019-06-10", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, + }); }; +exports.getRuntimeConfig = getRuntimeConfig; /***/ }), @@ -17369,7 +19065,27 @@ exports.defaultRegionInfoProvider = defaultRegionInfoProvider; /***/ }), /* 273 */, -/* 274 */, +/* 274 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; +const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; +const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; +exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + return env[AWS_DEFAULTS_MODE_ENV]; + }, + configFileSelector: (profile) => { + return profile[AWS_DEFAULTS_MODE_CONFIG]; + }, + default: "legacy", +}; + + +/***/ }), /* 275 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -19159,7 +20875,7 @@ exports.ListObjectVersionsCommand = ListObjectVersionsCommand; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = __webpack_require__(814); +const tslib_1 = __webpack_require__(932); tslib_1.__exportStar(__webpack_require__(358), exports); tslib_1.__exportStar(__webpack_require__(883), exports); tslib_1.__exportStar(__webpack_require__(51), exports); @@ -19167,7 +20883,7 @@ tslib_1.__exportStar(__webpack_require__(701), exports); tslib_1.__exportStar(__webpack_require__(695), exports); tslib_1.__exportStar(__webpack_require__(131), exports); tslib_1.__exportStar(__webpack_require__(691), exports); -tslib_1.__exportStar(__webpack_require__(932), exports); +tslib_1.__exportStar(__webpack_require__(466), exports); tslib_1.__exportStar(__webpack_require__(894), exports); tslib_1.__exportStar(__webpack_require__(585), exports); @@ -20408,7 +22124,7 @@ tslib_1.__exportStar(__webpack_require__(928), exports); XMLStringWriter = __webpack_require__(853); - XMLStreamWriter = __webpack_require__(244); + XMLStreamWriter = __webpack_require__(926); NodeType = __webpack_require__(683); @@ -20495,48 +22211,9 @@ exports.normalizeCredentialsProvider = normalizeCredentialsProvider; /***/ }), /* 316 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetBucketTaggingCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class GetBucketTaggingCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "GetBucketTaggingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetBucketTaggingRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetBucketTaggingOutput.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlGetBucketTaggingCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlGetBucketTaggingCommand(output, context); - } -} -exports.GetBucketTaggingCommand = GetBucketTaggingCommand; +/***/ (function(module) { +module.exports = require("process"); /***/ }), /* 317 */, @@ -20633,14 +22310,10 @@ function _default(name, version, hashfunc) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; -exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; -exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; -exports.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], - default: undefined, -}; +exports.isArrayBuffer = void 0; +const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || + Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; +exports.isArrayBuffer = isArrayBuffer; /***/ }), @@ -20666,7 +22339,17 @@ exports.numToUint8 = numToUint8; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtVG9VaW50OC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9udW1Ub1VpbnQ4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvRUFBb0U7QUFDcEUsc0NBQXNDOzs7QUFFdEMsU0FBZ0IsVUFBVSxDQUFDLEdBQVc7SUFDcEMsT0FBTyxJQUFJLFVBQVUsQ0FBQztRQUNwQixDQUFDLEdBQUcsR0FBRyxVQUFVLENBQUMsSUFBSSxFQUFFO1FBQ3hCLENBQUMsR0FBRyxHQUFHLFVBQVUsQ0FBQyxJQUFJLEVBQUU7UUFDeEIsQ0FBQyxHQUFHLEdBQUcsVUFBVSxDQUFDLElBQUksQ0FBQztRQUN2QixHQUFHLEdBQUcsVUFBVTtLQUNqQixDQUFDLENBQUM7QUFDTCxDQUFDO0FBUEQsZ0NBT0MiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBDb3B5cmlnaHQgQW1hem9uLmNvbSBJbmMuIG9yIGl0cyBhZmZpbGlhdGVzLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxuLy8gU1BEWC1MaWNlbnNlLUlkZW50aWZpZXI6IEFwYWNoZS0yLjBcblxuZXhwb3J0IGZ1bmN0aW9uIG51bVRvVWludDgobnVtOiBudW1iZXIpIHtcbiAgcmV0dXJuIG5ldyBVaW50OEFycmF5KFtcbiAgICAobnVtICYgMHhmZjAwMDAwMCkgPj4gMjQsXG4gICAgKG51bSAmIDB4MDBmZjAwMDApID4+IDE2LFxuICAgIChudW0gJiAweDAwMDBmZjAwKSA+PiA4LFxuICAgIG51bSAmIDB4MDAwMDAwZmYsXG4gIF0pO1xufVxuIl19 /***/ }), -/* 325 */, +/* 325 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = __webpack_require__(679); +tslib_1.__exportStar(__webpack_require__(49), exports); + + +/***/ }), /* 326 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -21058,14 +22741,47 @@ exports.getValueFromTextNode = getValueFromTextNode; /***/ }), /* 334 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -module.exports = -{ - parallel : __webpack_require__(424), - serial : __webpack_require__(863), - serialOrdered : __webpack_require__(904) -}; +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PutBucketInventoryConfigurationCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class PutBucketInventoryConfigurationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "PutBucketInventoryConfigurationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.PutBucketInventoryConfigurationRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlPutBucketInventoryConfigurationCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlPutBucketInventoryConfigurationCommand(output, context); + } +} +exports.PutBucketInventoryConfigurationCommand = PutBucketInventoryConfigurationCommand; /***/ }), @@ -21089,85 +22805,47 @@ exports.fromIni = fromIni; /***/ }), /* 338 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -"use strict"; -/*! - * Copyright (c) 2015, Salesforce.com, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3. Neither the name of Salesforce.com nor the names of its contributors may - * be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ +// Generated by CoffeeScript 1.12.7 +(function() { + "use strict"; + var builder, defaults, parser, processors, + extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; -/*jshint unused:false */ + defaults = __webpack_require__(791); -class Store { - constructor() { - this.synchronous = false; - } + builder = __webpack_require__(860); - findCookie(domain, path, key, cb) { - throw new Error("findCookie is not implemented"); - } + parser = __webpack_require__(549); - findCookies(domain, path, allowSpecialUseDomain, cb) { - throw new Error("findCookies is not implemented"); - } + processors = __webpack_require__(909); - putCookie(cookie, cb) { - throw new Error("putCookie is not implemented"); - } + exports.defaults = defaults.defaults; - updateCookie(oldCookie, newCookie, cb) { - // recommended default implementation: - // return this.putCookie(newCookie, cb); - throw new Error("updateCookie is not implemented"); - } + exports.processors = processors; - removeCookie(domain, path, key, cb) { - throw new Error("removeCookie is not implemented"); - } + exports.ValidationError = (function(superClass) { + extend(ValidationError, superClass); - removeCookies(domain, path, cb) { - throw new Error("removeCookies is not implemented"); - } + function ValidationError(message) { + this.message = message; + } - removeAllCookies(cb) { - throw new Error("removeAllCookies is not implemented"); - } + return ValidationError; - getAllCookies(cb) { - throw new Error( - "getAllCookies is not implemented (therefore jar cannot be serialized)" - ); - } -} + })(Error); -exports.Store = Store; + exports.Builder = builder.Builder; + + exports.Parser = parser.Parser; + + exports.parseString = parser.parseString; + + exports.parseStringPromise = parser.parseStringPromise; + +}).call(this); /***/ }), @@ -21836,42 +23514,29 @@ tslib_1.__exportStar(__webpack_require__(354), exports); /***/ }), /* 350 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -// Generated by CoffeeScript 1.12.7 -(function() { - "use strict"; - var prefixMatch; +"use strict"; - prefixMatch = new RegExp(/(?!xmlns)^.*:/); - - exports.normalize = function(str) { - return str.toLowerCase(); - }; - - exports.firstCharLowerCase = function(str) { - return str.charAt(0).toLowerCase() + str.slice(1); - }; - - exports.stripPrefix = function(str) { - return str.replace(prefixMatch, ''); - }; - - exports.parseNumbers = function(str) { - if (!isNaN(str)) { - str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HashCalculator = void 0; +const stream_1 = __webpack_require__(794); +class HashCalculator extends stream_1.Writable { + constructor(hash, options) { + super(options); + this.hash = hash; } - return str; - }; - - exports.parseBooleans = function(str) { - if (/^(?:true|false)$/i.test(str)) { - str = str.toLowerCase() === 'true'; + _write(chunk, encoding, callback) { + try { + this.hash.update(chunk); + } + catch (err) { + return callback(err); + } + callback(); } - return str; - }; - -}).call(this); +} +exports.HashCalculator = HashCalculator; /***/ }), @@ -22262,20 +23927,55 @@ tslib_1.__exportStar(__webpack_require__(781), exports); /***/ }), /* 361 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; -const EndpointMode_1 = __webpack_require__(670); -exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; -exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; -exports.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4, +exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; +exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; +exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; +exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; +exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; +exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; +exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; +exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; +exports.REGION_SET_PARAM = "X-Amz-Region-Set"; +exports.AUTH_HEADER = "authorization"; +exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); +exports.DATE_HEADER = "date"; +exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; +exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); +exports.SHA256_HEADER = "x-amz-content-sha256"; +exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); +exports.HOST_HEADER = "host"; +exports.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true, }; +exports.PROXY_HEADER_PATTERN = /^proxy-/; +exports.SEC_HEADER_PATTERN = /^sec-/; +exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; +exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; +exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; +exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; +exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; +exports.MAX_CACHE_SIZE = 50; +exports.KEY_TYPE_IDENTIFIER = "aws4_request"; +exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; /***/ }), @@ -22371,46 +24071,106 @@ function logProxy(funcName, namespace, args) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.PutBucketInventoryConfigurationCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class PutBucketInventoryConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; +exports.getCanonicalQuery = void 0; +const util_uri_escape_1 = __webpack_require__(30); +const constants_1 = __webpack_require__(361); +const getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query).sort()) { + if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { + continue; + } + keys.push(key); + const value = query[key]; + if (typeof value === "string") { + serialized[key] = `${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`; + } + else if (Array.isArray(value)) { + serialized[key] = value + .slice(0) + .sort() + .reduce((encoded, value) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`]), []) + .join("&"); + } } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "PutBucketInventoryConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutBucketInventoryConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlPutBucketInventoryConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlPutBucketInventoryConfigurationCommand(output, context); - } -} -exports.PutBucketInventoryConfigurationCommand = PutBucketInventoryConfigurationCommand; + return keys + .map((key) => serialized[key]) + .filter((serialized) => serialized) + .join("&"); +}; +exports.getCanonicalQuery = getCanonicalQuery; + + +/***/ }), +/* 364 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; +const protocol_http_1 = __webpack_require__(504); +const constants_1 = __webpack_require__(813); +const userAgentMiddleware = (options) => (next, context) => async (args) => { + var _a, _b; + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request)) + return next(args); + const { headers } = request; + const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; + const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), + ...customUserAgent, + ].join(constants_1.SPACE); + if (options.runtime !== "browser") { + if (normalUAValue) { + headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] + ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` + : normalUAValue; + } + headers[constants_1.USER_AGENT] = sdkUserAgentValue; + } + else { + headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + } + return next({ + ...args, + request, + }); +}; +exports.userAgentMiddleware = userAgentMiddleware; +const escapeUserAgent = ([name, version]) => { + const prefixSeparatorIndex = name.indexOf("/"); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === "api") { + uaName = uaName.toLowerCase(); + } + return [prefix, uaName, version] + .filter((item) => item && item.length > 0) + .map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")) + .join("/"); +}; +exports.getUserAgentMiddlewareOptions = { + name: "getUserAgentMiddleware", + step: "build", + priority: "low", + tags: ["SET_USER_AGENT", "USER_AGENT"], + override: true, +}; +const getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add(exports.userAgentMiddleware(config), exports.getUserAgentMiddlewareOptions); + }, +}); +exports.getUserAgentPlugin = getUserAgentPlugin; /***/ }), -/* 364 */, /* 365 */ /***/ (function(module, __unusedexports, __webpack_require__) { @@ -22645,9 +24405,9 @@ const CreateBucketCommand_1 = __webpack_require__(115); const CreateMultipartUploadCommand_1 = __webpack_require__(725); const DeleteBucketAnalyticsConfigurationCommand_1 = __webpack_require__(952); const DeleteBucketCommand_1 = __webpack_require__(918); -const DeleteBucketCorsCommand_1 = __webpack_require__(857); +const DeleteBucketCorsCommand_1 = __webpack_require__(751); const DeleteBucketEncryptionCommand_1 = __webpack_require__(902); -const DeleteBucketIntelligentTieringConfigurationCommand_1 = __webpack_require__(513); +const DeleteBucketIntelligentTieringConfigurationCommand_1 = __webpack_require__(85); const DeleteBucketInventoryConfigurationCommand_1 = __webpack_require__(177); const DeleteBucketLifecycleCommand_1 = __webpack_require__(502); const DeleteBucketMetricsConfigurationCommand_1 = __webpack_require__(435); @@ -22677,10 +24437,10 @@ const GetBucketPolicyCommand_1 = __webpack_require__(596); const GetBucketPolicyStatusCommand_1 = __webpack_require__(895); const GetBucketReplicationCommand_1 = __webpack_require__(88); const GetBucketRequestPaymentCommand_1 = __webpack_require__(422); -const GetBucketTaggingCommand_1 = __webpack_require__(316); +const GetBucketTaggingCommand_1 = __webpack_require__(906); const GetBucketVersioningCommand_1 = __webpack_require__(6); const GetBucketWebsiteCommand_1 = __webpack_require__(35); -const GetObjectAclCommand_1 = __webpack_require__(45); +const GetObjectAclCommand_1 = __webpack_require__(847); const GetObjectCommand_1 = __webpack_require__(920); const GetObjectLegalHoldCommand_1 = __webpack_require__(259); const GetObjectLockConfigurationCommand_1 = __webpack_require__(954); @@ -22692,7 +24452,7 @@ const HeadBucketCommand_1 = __webpack_require__(953); const HeadObjectCommand_1 = __webpack_require__(236); const ListBucketAnalyticsConfigurationsCommand_1 = __webpack_require__(528); const ListBucketIntelligentTieringConfigurationsCommand_1 = __webpack_require__(439); -const ListBucketInventoryConfigurationsCommand_1 = __webpack_require__(463); +const ListBucketInventoryConfigurationsCommand_1 = __webpack_require__(715); const ListBucketMetricsConfigurationsCommand_1 = __webpack_require__(736); const ListBucketsCommand_1 = __webpack_require__(616); const ListMultipartUploadsCommand_1 = __webpack_require__(921); @@ -22706,8 +24466,8 @@ const PutBucketAnalyticsConfigurationCommand_1 = __webpack_require__(779); const PutBucketCorsCommand_1 = __webpack_require__(449); const PutBucketEncryptionCommand_1 = __webpack_require__(537); const PutBucketIntelligentTieringConfigurationCommand_1 = __webpack_require__(606); -const PutBucketInventoryConfigurationCommand_1 = __webpack_require__(363); -const PutBucketLifecycleConfigurationCommand_1 = __webpack_require__(805); +const PutBucketInventoryConfigurationCommand_1 = __webpack_require__(334); +const PutBucketLifecycleConfigurationCommand_1 = __webpack_require__(706); const PutBucketLoggingCommand_1 = __webpack_require__(740); const PutBucketMetricsConfigurationCommand_1 = __webpack_require__(617); const PutBucketNotificationConfigurationCommand_1 = __webpack_require__(699); @@ -24158,7 +25918,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(550); tslib_1.__exportStar(__webpack_require__(600), exports); tslib_1.__exportStar(__webpack_require__(770), exports); -tslib_1.__exportStar(__webpack_require__(453), exports); +tslib_1.__exportStar(__webpack_require__(905), exports); /***/ }), @@ -25260,7 +27020,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(661); tslib_1.__exportStar(__webpack_require__(162), exports); tslib_1.__exportStar(__webpack_require__(552), exports); -tslib_1.__exportStar(__webpack_require__(245), exports); +tslib_1.__exportStar(__webpack_require__(726), exports); tslib_1.__exportStar(__webpack_require__(556), exports); @@ -25397,9 +27157,9 @@ tslib_1.__exportStar(__webpack_require__(115), exports); tslib_1.__exportStar(__webpack_require__(725), exports); tslib_1.__exportStar(__webpack_require__(952), exports); tslib_1.__exportStar(__webpack_require__(918), exports); -tslib_1.__exportStar(__webpack_require__(857), exports); +tslib_1.__exportStar(__webpack_require__(751), exports); tslib_1.__exportStar(__webpack_require__(902), exports); -tslib_1.__exportStar(__webpack_require__(513), exports); +tslib_1.__exportStar(__webpack_require__(85), exports); tslib_1.__exportStar(__webpack_require__(177), exports); tslib_1.__exportStar(__webpack_require__(502), exports); tslib_1.__exportStar(__webpack_require__(435), exports); @@ -25429,10 +27189,10 @@ tslib_1.__exportStar(__webpack_require__(596), exports); tslib_1.__exportStar(__webpack_require__(895), exports); tslib_1.__exportStar(__webpack_require__(88), exports); tslib_1.__exportStar(__webpack_require__(422), exports); -tslib_1.__exportStar(__webpack_require__(316), exports); +tslib_1.__exportStar(__webpack_require__(906), exports); tslib_1.__exportStar(__webpack_require__(6), exports); tslib_1.__exportStar(__webpack_require__(35), exports); -tslib_1.__exportStar(__webpack_require__(45), exports); +tslib_1.__exportStar(__webpack_require__(847), exports); tslib_1.__exportStar(__webpack_require__(920), exports); tslib_1.__exportStar(__webpack_require__(259), exports); tslib_1.__exportStar(__webpack_require__(954), exports); @@ -25444,7 +27204,7 @@ tslib_1.__exportStar(__webpack_require__(953), exports); tslib_1.__exportStar(__webpack_require__(236), exports); tslib_1.__exportStar(__webpack_require__(528), exports); tslib_1.__exportStar(__webpack_require__(439), exports); -tslib_1.__exportStar(__webpack_require__(463), exports); +tslib_1.__exportStar(__webpack_require__(715), exports); tslib_1.__exportStar(__webpack_require__(736), exports); tslib_1.__exportStar(__webpack_require__(616), exports); tslib_1.__exportStar(__webpack_require__(921), exports); @@ -25458,8 +27218,8 @@ tslib_1.__exportStar(__webpack_require__(779), exports); tslib_1.__exportStar(__webpack_require__(449), exports); tslib_1.__exportStar(__webpack_require__(537), exports); tslib_1.__exportStar(__webpack_require__(606), exports); -tslib_1.__exportStar(__webpack_require__(363), exports); -tslib_1.__exportStar(__webpack_require__(805), exports); +tslib_1.__exportStar(__webpack_require__(334), exports); +tslib_1.__exportStar(__webpack_require__(706), exports); tslib_1.__exportStar(__webpack_require__(740), exports); tslib_1.__exportStar(__webpack_require__(617), exports); tslib_1.__exportStar(__webpack_require__(699), exports); @@ -25851,7 +27611,17 @@ exports.ProxyTracer = ProxyTracer; /***/ }), /* 399 */, -/* 400 */, +/* 400 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; +exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + + +/***/ }), /* 401 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -25974,7 +27744,7 @@ exports.DiagAPI = DiagAPI; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProxyTracerProvider = void 0; var ProxyTracer_1 = __webpack_require__(398); -var NoopTracerProvider_1 = __webpack_require__(160); +var NoopTracerProvider_1 = __webpack_require__(558); var NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider(); /** * Tracer provider which provides {@link ProxyTracer}s. @@ -26595,7 +28365,46 @@ tslib_1.__exportStar(__webpack_require__(410), exports); /***/ }), /* 415 */, -/* 416 */, +/* 416 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RefKey = exports.Events = exports.State = exports.Outputs = exports.Inputs = void 0; +var Inputs; +(function (Inputs) { + Inputs["Key"] = "key"; + Inputs["Path"] = "path"; + Inputs["RestoreKeys"] = "restore-keys"; + Inputs["UploadChunkSize"] = "upload-chunk-size"; + Inputs["AWSS3Bucket"] = "aws-s3-bucket"; + Inputs["AWSAccessKeyId"] = "aws-access-key-id"; + Inputs["AWSSecretAccessKey"] = "aws-secret-access-key"; + Inputs["AWSRegion"] = "aws-region"; + Inputs["AWSEndpoint"] = "aws-endpoint"; + Inputs["AWSS3BucketEndpoint"] = "aws-s3-bucket-endpoint"; + Inputs["AWSS3ForcePathStyle"] = "aws-s3-force-path-style"; +})(Inputs = exports.Inputs || (exports.Inputs = {})); +var Outputs; +(function (Outputs) { + Outputs["CacheHit"] = "cache-hit"; +})(Outputs = exports.Outputs || (exports.Outputs = {})); +var State; +(function (State) { + State["CachePrimaryKey"] = "CACHE_KEY"; + State["CacheMatchedKey"] = "CACHE_RESULT"; +})(State = exports.State || (exports.State = {})); +var Events; +(function (Events) { + Events["Key"] = "GITHUB_EVENT_NAME"; + Events["Push"] = "push"; + Events["PullRequest"] = "pull_request"; +})(Events = exports.Events || (exports.Events = {})); +exports.RefKey = "GITHUB_REF"; + + +/***/ }), /* 417 */ /***/ (function(module) { @@ -26614,61 +28423,7 @@ tslib_1.__exportStar(__webpack_require__(157), exports); /***/ }), -/* 419 */ -/***/ (function(module, __unusedexports, __webpack_require__) { - -// Generated by CoffeeScript 1.12.7 -(function() { - var NodeType, XMLCharacterData, XMLProcessingInstruction, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; - - NodeType = __webpack_require__(683); - - XMLCharacterData = __webpack_require__(639); - - module.exports = XMLProcessingInstruction = (function(superClass) { - extend(XMLProcessingInstruction, superClass); - - function XMLProcessingInstruction(parent, target, value) { - XMLProcessingInstruction.__super__.constructor.call(this, parent); - if (target == null) { - throw new Error("Missing instruction target. " + this.debugInfo()); - } - this.type = NodeType.ProcessingInstruction; - this.target = this.stringify.insTarget(target); - this.name = this.target; - if (value) { - this.value = this.stringify.insValue(value); - } - } - - XMLProcessingInstruction.prototype.clone = function() { - return Object.create(this); - }; - - XMLProcessingInstruction.prototype.toString = function(options) { - return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(options)); - }; - - XMLProcessingInstruction.prototype.isEqualNode = function(node) { - if (!XMLProcessingInstruction.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) { - return false; - } - if (node.target !== this.target) { - return false; - } - return true; - }; - - return XMLProcessingInstruction; - - })(XMLCharacterData); - -}).call(this); - - -/***/ }), +/* 419 */, /* 420 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -28111,79 +29866,12 @@ exports.NonRecordingSpan = NonRecordingSpan; /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; -/*! - * Copyright (c) 2018, Salesforce.com, Inc. - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3. Neither the name of Salesforce.com nor the names of its contributors may - * be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ -const psl = __webpack_require__(729); - -// RFC 6761 -const SPECIAL_USE_DOMAINS = [ - "local", - "example", - "invalid", - "localhost", - "test" -]; - -const SPECIAL_TREATMENT_DOMAINS = ["localhost", "invalid"]; - -function getPublicSuffix(domain, options = {}) { - const domainParts = domain.split("."); - const topLevelDomain = domainParts[domainParts.length - 1]; - const allowSpecialUseDomain = !!options.allowSpecialUseDomain; - const ignoreError = !!options.ignoreError; - - if (allowSpecialUseDomain && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) { - if (domainParts.length > 1) { - const secondLevelDomain = domainParts[domainParts.length - 2]; - // In aforementioned example, the eTLD/pubSuf will be apple.localhost - return `${secondLevelDomain}.${topLevelDomain}`; - } else if (SPECIAL_TREATMENT_DOMAINS.includes(topLevelDomain)) { - // For a single word special use domain, e.g. 'localhost' or 'invalid', per RFC 6761, - // "Application software MAY recognize {localhost/invalid} names as special, or - // MAY pass them to name resolution APIs as they would for other domain names." - return `${topLevelDomain}`; - } - } - - if (!ignoreError && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) { - throw new Error( - `Cookie has domain set to the public suffix "${topLevelDomain}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain:true, rejectPublicSuffixes: false}.` - ); - } - - return psl.get(domain); -} - -exports.getPublicSuffix = getPublicSuffix; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.escapeUriPath = void 0; +const escape_uri_1 = __webpack_require__(857); +const escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); +exports.escapeUriPath = escapeUriPath; /***/ }), @@ -28272,7 +29960,7 @@ __exportStar(__webpack_require__(809), exports); __exportStar(__webpack_require__(39), exports); __exportStar(__webpack_require__(530), exports); __exportStar(__webpack_require__(875), exports); -__exportStar(__webpack_require__(906), exports); +__exportStar(__webpack_require__(626), exports); __exportStar(__webpack_require__(843), exports); __exportStar(__webpack_require__(398), exports); __exportStar(__webpack_require__(402), exports); @@ -28280,7 +29968,7 @@ __exportStar(__webpack_require__(43), exports); __exportStar(__webpack_require__(652), exports); __exportStar(__webpack_require__(732), exports); __exportStar(__webpack_require__(998), exports); -__exportStar(__webpack_require__(586), exports); +__exportStar(__webpack_require__(489), exports); __exportStar(__webpack_require__(220), exports); __exportStar(__webpack_require__(957), exports); __exportStar(__webpack_require__(975), exports); @@ -28290,7 +29978,7 @@ Object.defineProperty(exports, "createTraceState", { enumerable: true, get: func __exportStar(__webpack_require__(694), exports); __exportStar(__webpack_require__(977), exports); __exportStar(__webpack_require__(8), exports); -var spancontext_utils_1 = __webpack_require__(905); +var spancontext_utils_1 = __webpack_require__(479); Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function () { return spancontext_utils_1.isSpanContextValid; } }); Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function () { return spancontext_utils_1.isValidTraceId; } }); Object.defineProperty(exports, "isValidSpanId", { enumerable: true, get: function () { return spancontext_utils_1.isValidSpanId; } }); @@ -28378,11 +30066,67 @@ var _default = v5; exports.default = _default; /***/ }), -/* 444 */, +/* 444 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getRuntimeConfig = void 0; +const tslib_1 = __webpack_require__(174); +const package_json_1 = tslib_1.__importDefault(__webpack_require__(824)); +const defaultStsRoleAssumers_1 = __webpack_require__(551); +const config_resolver_1 = __webpack_require__(529); +const credential_provider_node_1 = __webpack_require__(125); +const hash_node_1 = __webpack_require__(806); +const middleware_retry_1 = __webpack_require__(286); +const node_config_provider_1 = __webpack_require__(519); +const node_http_handler_1 = __webpack_require__(384); +const util_base64_node_1 = __webpack_require__(287); +const util_body_length_node_1 = __webpack_require__(555); +const util_user_agent_node_1 = __webpack_require__(96); +const util_utf8_node_1 = __webpack_require__(536); +const runtimeConfig_shared_1 = __webpack_require__(34); +const smithy_client_1 = __webpack_require__(973); +const util_defaults_mode_node_1 = __webpack_require__(331); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : defaultStsRoleAssumers_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, + }; +}; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), /* 445 */ /***/ (function(module, __unusedexports, __webpack_require__) { -var CombinedStream = __webpack_require__(547); +var CombinedStream = __webpack_require__(2); var util = __webpack_require__(669); var path = __webpack_require__(622); var http = __webpack_require__(605); @@ -28391,7 +30135,7 @@ var parseUrl = __webpack_require__(835).parse; var fs = __webpack_require__(747); var Stream = __webpack_require__(794).Stream; var mime = __webpack_require__(432); -var asynckit = __webpack_require__(334); +var asynckit = __webpack_require__(658); var populate = __webpack_require__(182); // Public API @@ -29009,12 +30753,36 @@ exports.PutBucketCorsCommand = PutBucketCorsCommand; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveEventStreamSerdeConfig = void 0; -const resolveEventStreamSerdeConfig = (input) => ({ - ...input, - eventStreamMarshaller: input.eventStreamSerdeProvider(input), -}); -exports.resolveEventStreamSerdeConfig = resolveEventStreamSerdeConfig; +exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; +function hasHeader(soughtHeader, headers) { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; +} +exports.hasHeader = hasHeader; +function getHeaderValue(soughtHeader, headers) { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return undefined; +} +exports.getHeaderValue = getHeaderValue; +function deleteHeader(soughtHeader, headers) { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } +} +exports.deleteHeader = deleteHeader; /***/ }), @@ -29331,11 +31099,20 @@ var __createBinding; /***/ }), /* 453 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; +const EndpointMode_1 = __webpack_require__(670); +exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; +exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; +exports.ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode_1.EndpointMode.IPv4, +}; /***/ }), @@ -29348,7 +31125,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.isCrtAvailable = void 0; const isCrtAvailable = () => { try { - if ( true && __webpack_require__(757)) { + if ( true && __webpack_require__(574)) { return ["md/crt-avail"]; } return null; @@ -29782,9 +31559,9 @@ exports.getInstanceMetadataEndpoint = void 0; const node_config_provider_1 = __webpack_require__(519); const url_parser_1 = __webpack_require__(187); const Endpoint_1 = __webpack_require__(802); -const EndpointConfigOptions_1 = __webpack_require__(322); +const EndpointConfigOptions_1 = __webpack_require__(702); const EndpointMode_1 = __webpack_require__(670); -const EndpointModeConfigOptions_1 = __webpack_require__(361); +const EndpointModeConfigOptions_1 = __webpack_require__(453); const getInstanceMetadataEndpoint = async () => url_parser_1.parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig())); exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; const getFromEndpointConfig = async () => node_config_provider_1.loadConfig(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); @@ -29885,44 +31662,424 @@ tslib_1.__exportStar(__webpack_require__(919), exports); "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListBucketInventoryConfigurationsCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class ListBucketInventoryConfigurationsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "ListBucketInventoryConfigurationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListBucketInventoryConfigurationsRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListBucketInventoryConfigurationsOutput.filterSensitiveLog, +exports.AwsIotMqttConnectionConfigBuilder = void 0; +const mqtt_1 = __webpack_require__(45); +const io = __importStar(__webpack_require__(886)); +const io_1 = __webpack_require__(886); +const platform = __importStar(__webpack_require__(196)); +const error_1 = __webpack_require__(92); +const auth_1 = __webpack_require__(686); +const iot_shared = __importStar(__webpack_require__(580)); +/** + * Builder functions to create a {@link MqttConnectionConfig} which can then be used to create + * a {@link MqttClientConnection}, configured for use with AWS IoT. + * + * @category IoT + */ +class AwsIotMqttConnectionConfigBuilder { + constructor(tls_ctx_options) { + this.tls_ctx_options = tls_ctx_options; + this.params = { + client_id: '', + host_name: '', + socket_options: new io.SocketOptions(), + port: 8883, + use_websocket: false, + clean_session: false, + keep_alive: undefined, + will: undefined, + username: "", + password: undefined, + tls_ctx: undefined, + reconnect_min_sec: mqtt_1.DEFAULT_RECONNECT_MIN_SEC, + reconnect_max_sec: mqtt_1.DEFAULT_RECONNECT_MAX_SEC }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + this.is_using_custom_authorizer = false; } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlListBucketInventoryConfigurationsCommand(input, context); + /** + * Create a new builder with mTLS file paths + * @param cert_path - Path to certificate, in PEM format + * @param key_path - Path to private key, in PEM format + */ + static new_mtls_builder_from_path(cert_path, key_path) { + let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls_from_path(cert_path, key_path)); + builder.params.port = 8883; + if (io.is_alpn_available()) { + builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca'); + } + return builder; } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlListBucketInventoryConfigurationsCommand(output, context); + /** + * Create a new builder with mTLS cert pair in memory + * @param cert - Certificate, in PEM format + * @param private_key - Private key, in PEM format + */ + static new_mtls_builder(cert, private_key) { + let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls(cert, private_key)); + builder.params.port = 8883; + if (io.is_alpn_available()) { + builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca'); + } + return builder; + } + /** + * Create a new builder with mTLS using a PKCS#11 library for private key operations. + * + * NOTE: This configuration only works on Unix devices. + * @param pkcs11_options - PKCS#11 options. + */ + static new_mtls_pkcs11_builder(pkcs11_options) { + let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls_pkcs11(pkcs11_options)); + builder.params.port = 8883; + if (io.is_alpn_available()) { + builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca'); + } + return builder; + } + /** + * Create a new builder with mTLS using a certificate in a Windows certificate store. + * + * NOTE: This configuration only works on Windows devices. + * @param certificate_path - Path to certificate in a Windows certificate store. + * The path must use backslashes and end with the certificate's thumbprint. + * Example: `CurrentUser\MY\A11F8A9B5DF5B98BA3508FBCA575D09570E0D2C6` + */ + static new_mtls_windows_cert_store_path_builder(certificate_path) { + let builder = new AwsIotMqttConnectionConfigBuilder(io_1.TlsContextOptions.create_client_with_mtls_windows_cert_store_path(certificate_path)); + builder.params.port = 8883; + if (io.is_alpn_available()) { + builder.tls_ctx_options.alpn_list.unshift('x-amzn-mqtt-ca'); + } + return builder; + } + /** + * Creates a new builder with default Tls options. This requires setting the connection details manually. + */ + static new_default_builder() { + let ctx_options = new io.TlsContextOptions(); + let builder = new AwsIotMqttConnectionConfigBuilder(ctx_options); + return builder; + } + static new_websocket_builder(...args) { + return this.new_with_websockets(...args); + } + static configure_websocket_handshake(builder, options) { + if (options) { + builder.params.websocket_handshake_transform = (request, done) => __awaiter(this, void 0, void 0, function* () { + var _a, _b, _c; + const signing_config = (_b = (_a = options.create_signing_config) === null || _a === void 0 ? void 0 : _a.call(options)) !== null && _b !== void 0 ? _b : { + algorithm: auth_1.AwsSigningAlgorithm.SigV4, + signature_type: auth_1.AwsSignatureType.HttpRequestViaQueryParams, + provider: options.credentials_provider, + region: options.region, + service: (_c = options.service) !== null && _c !== void 0 ? _c : "iotdevicegateway", + signed_body_value: auth_1.AwsSignedBodyValue.EmptySha256, + omit_session_token: true, + }; + try { + yield (0, auth_1.aws_sign_request)(request, signing_config); + done(); + } + catch (error) { + if (error instanceof error_1.CrtError) { + done(error.error_code); + } + else { + done(3); /* TODO: AWS_ERROR_UNKNOWN */ + } + } + }); + } + return builder; + } + /** + * Configures the connection to use MQTT over websockets. Forces the port to 443. + */ + static new_with_websockets(options) { + let tls_ctx_options = options === null || options === void 0 ? void 0 : options.tls_ctx_options; + if (!tls_ctx_options) { + tls_ctx_options = new io_1.TlsContextOptions(); + tls_ctx_options.alpn_list = []; + } + let builder = new AwsIotMqttConnectionConfigBuilder(tls_ctx_options); + builder.params.use_websocket = true; + builder.params.proxy_options = options === null || options === void 0 ? void 0 : options.proxy_options; + if (builder.tls_ctx_options) { + builder.params.port = 443; + } + this.configure_websocket_handshake(builder, options); + return builder; + } + /** + * Overrides the default system trust store. + * @param ca_dirpath - Only used on Unix-style systems where all trust anchors are + * stored in a directory (e.g. /etc/ssl/certs). + * @param ca_filepath - Single file containing all trust CAs, in PEM format + */ + with_certificate_authority_from_path(ca_dirpath, ca_filepath) { + this.tls_ctx_options.override_default_trust_store_from_path(ca_dirpath, ca_filepath); + return this; + } + /** + * Overrides the default system trust store. + * @param ca - Buffer containing all trust CAs, in PEM format + */ + with_certificate_authority(ca) { + this.tls_ctx_options.override_default_trust_store(ca); + return this; + } + /** + * Configures the IoT endpoint for this connection + * @param endpoint The IoT endpoint to connect to + */ + with_endpoint(endpoint) { + this.params.host_name = endpoint; + return this; + } + /** + * The port to connect to on the IoT endpoint + * @param port The port to connect to on the IoT endpoint. Usually 8883 for MQTT, or 443 for websockets + */ + with_port(port) { + this.params.port = port; + return this; + } + /** + * Configures the client_id to use to connect to the IoT Core service + * @param client_id The client id for this connection. Needs to be unique across all devices/clients. + */ + with_client_id(client_id) { + this.params.client_id = client_id; + return this; + } + /** + * Determines whether or not the service should try to resume prior subscriptions, if it has any + * @param clean_session true if the session should drop prior subscriptions when this client connects, false to resume the session + */ + with_clean_session(clean_session) { + this.params.clean_session = clean_session; + return this; + } + /** + * Configures MQTT keep-alive via PING messages. Note that this is not TCP keepalive. + * @param keep_alive How often in seconds to send an MQTT PING message to the service to keep the connection alive + */ + with_keep_alive_seconds(keep_alive) { + this.params.keep_alive = keep_alive; + return this; + } + /** + * Configures the TCP socket timeout (in milliseconds) + * @param timeout_ms TCP socket timeout + * @deprecated + */ + with_timeout_ms(timeout_ms) { + this.with_ping_timeout_ms(timeout_ms); + return this; + } + /** + * Configures the PINGREQ response timeout (in milliseconds) + * @param ping_timeout PINGREQ response timeout + */ + with_ping_timeout_ms(ping_timeout) { + this.params.ping_timeout = ping_timeout; + return this; + } + /** + * Configures the protocol operation timeout (in milliseconds) + * @param protocol_operation_timeout protocol operation timeout + */ + with_protocol_operation_timeout_ms(protocol_operation_timeout) { + this.params.protocol_operation_timeout = protocol_operation_timeout; + return this; + } + /** + * Configures the will message to be sent when this client disconnects + * @param will The will topic, qos, and message + */ + with_will(will) { + this.params.will = will; + return this; + } + /** + * Configures the common settings for the socket to use when opening a connection to the server + * @param socket_options The socket settings + */ + with_socket_options(socket_options) { + this.params.socket_options = socket_options; + return this; + } + /** + * Configures AWS credentials (usually from Cognito) for this connection + * @param aws_region The service region to connect to + * @param aws_access_id IAM Access ID + * @param aws_secret_key IAM Secret Key + * @param aws_sts_token STS token from Cognito (optional) + */ + with_credentials(aws_region, aws_access_id, aws_secret_key, aws_sts_token) { + return AwsIotMqttConnectionConfigBuilder.configure_websocket_handshake(this, { + credentials_provider: auth_1.AwsCredentialsProvider.newStatic(aws_access_id, aws_secret_key, aws_sts_token), + region: aws_region, + service: "iotdevicegateway", + }); + } + /** + * Configure the http proxy options to use to establish the connection + * @param proxy_options proxy options to use to establish the mqtt connection + */ + with_http_proxy_options(proxy_options) { + this.params.proxy_options = proxy_options; + return this; + } + /** + * Sets the custom authorizer settings. This function will modify the username, port, and TLS options. + * + * @param username The username to use with the custom authorizer. If an empty string is passed, it will + * check to see if a username has already been set (via WithUsername function). If no + * username is set then no username will be passed with the MQTT connection. + * @param authorizerName The name of the custom authorizer. If an empty string is passed, then + * 'x-amz-customauthorizer-name' will not be added with the MQTT connection. + * @param authorizerSignature The signature of the custom authorizer. If an empty string is passed, then + * 'x-amz-customauthorizer-signature' will not be added with the MQTT connection. + * @param password The password to use with the custom authorizer. If null is passed, then no password will + * be set. + */ + with_custom_authorizer(username, authorizer_name, authorizer_signature, password) { + this.is_using_custom_authorizer = true; + let username_string = iot_shared.populate_username_string_with_custom_authorizer("", username, authorizer_name, authorizer_signature, this.params.username); + this.params.username = username_string; + this.params.password = password; + this.tls_ctx_options.alpn_list = ["mqtt"]; + this.params.port = 443; + return this; + } + /** + * Sets username for the connection + * + * @param username the username that will be passed with the MQTT connection + */ + with_username(username) { + this.params.username = username; + return this; + } + /** + * Sets password for the connection + * + * @param password the password that will be passed with the MQTT connection + */ + with_password(password) { + this.params.password = password; + return this; + } + /** + * Configure the max reconnection period (in second). The reonnection period will + * be set in range of [reconnect_min_sec,reconnect_max_sec]. + * @param reconnect_max_sec max reconnection period + */ + with_reconnect_max_sec(max_sec) { + this.params.reconnect_max_sec = max_sec; + return this; + } + /** + * Configure the min reconnection period (in second). The reonnection period will + * be set in range of [reconnect_min_sec,reconnect_max_sec]. + * @param reconnect_min_sec min reconnection period + */ + with_reconnect_min_sec(min_sec) { + this.params.reconnect_min_sec = min_sec; + return this; + } + /** + * Returns the configured MqttConnectionConfig. On the first invocation of this function, the TLS context is cached + * and re-used on all subsequent calls to build(). + * @returns The configured MqttConnectionConfig + */ + build() { + var _a, _b, _c; + if (this.params.client_id === undefined || this.params.host_name === undefined) { + throw 'client_id and endpoint are required'; + } + // Check to see if a custom authorizer is being used but not through the builder + if (this.is_using_custom_authorizer == false) { + if (iot_shared.is_string_and_not_empty(this.params.username)) { + if (((_a = this.params.username) === null || _a === void 0 ? void 0 : _a.indexOf("x-amz-customauthorizer-name=")) != -1 || ((_b = this.params.username) === null || _b === void 0 ? void 0 : _b.indexOf("x-amz-customauthorizer-signature=")) != -1) { + this.is_using_custom_authorizer = true; + } + } + } + // Is the user trying to connect using a custom authorizer? + if (this.is_using_custom_authorizer == true) { + if (this.params.port != 443) { + console.log("Warning: Attempting to connect to authorizer with unsupported port. Port is not 443..."); + } + if (this.tls_ctx_options.alpn_list != ["mqtt"]) { + this.tls_ctx_options.alpn_list = ["mqtt"]; + } + } + /* + * By caching and reusing the TLS context we get an enormous memory savings on a per-connection basis. + * The tradeoff is that you can't modify TLS options in between calls to build. + * Previously we were making a new one with every single connection which had a huge negative impact on large + * scale tests. + */ + if (this.params.tls_ctx === undefined) { + this.params.tls_ctx = new io.ClientTlsContext(this.tls_ctx_options); + } + // Add the metrics string + if (iot_shared.is_string_and_not_empty(this.params.username) == false) { + this.params.username = "?SDK=NodeJSv2&Version="; + } + else { + if (((_c = this.params.username) === null || _c === void 0 ? void 0 : _c.indexOf("?")) != -1) { + this.params.username += "&SDK=NodeJSv2&Version="; + } + else { + this.params.username += "?SDK=NodeJSv2&Version="; + } + } + this.params.username += platform.crt_version(); + return this.params; } } -exports.ListBucketInventoryConfigurationsCommand = ListBucketInventoryConfigurationsCommand; - +exports.AwsIotMqttConnectionConfigBuilder = AwsIotMqttConnectionConfigBuilder; +//# sourceMappingURL=aws_iot.js.map /***/ }), /* 464 */ @@ -30082,8 +32239,33 @@ const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";" /***/ }), -/* 465 */, -/* 466 */, +/* 465 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); + + +/***/ }), +/* 466 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.defaultRetryDecider = void 0; +const service_error_classification_1 = __webpack_require__(223); +const defaultRetryDecider = (error) => { + if (!error) { + return false; + } + return service_error_classification_1.isRetryableByTrait(error) || service_error_classification_1.isClockSkewError(error) || service_error_classification_1.isThrottlingError(error) || service_error_classification_1.isTransientError(error); +}; +exports.defaultRetryDecider = defaultRetryDecider; + + +/***/ }), /* 467 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -30455,8 +32637,238 @@ exports.getIDToken = getIDToken; //# sourceMappingURL=core.js.map /***/ }), -/* 471 */, -/* 472 */, +/* 471 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.hmac_sha256 = exports.Sha256Hmac = exports.hash_sha1 = exports.Sha1Hash = exports.hash_sha256 = exports.Sha256Hash = exports.hash_md5 = exports.Md5Hash = void 0; +/** + * A module containing support for a variety of cryptographic operations. + * + * @packageDocumentation + * @module crypto + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +const native_resource_1 = __webpack_require__(940); +/** + * Object that allows for continuous hashing of data. + * + * @internal + */ +class Hash extends native_resource_1.NativeResource { + /** + * Hash additional data. + * @param data Additional data to hash + */ + update(data) { + binding_1.default.hash_update(this.native_handle(), data); + } + /** + * Completes the hash computation and returns the final hash digest. + * + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + */ + finalize(truncate_to) { + return binding_1.default.hash_digest(this.native_handle(), truncate_to); + } + constructor(hash_handle) { + super(hash_handle); + } +} +/** + * Object that allows for continuous MD5 hashing of data. + * + * @category Crypto + */ +class Md5Hash extends Hash { + constructor() { + super(binding_1.default.hash_md5_new()); + } +} +exports.Md5Hash = Md5Hash; +/** + * Computes an MD5 hash. Use this if you don't need to stream the data you're hashing and can load the entire input + * into memory. + * + * @param data The data to hash + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + * + * @category Crypto + */ +function hash_md5(data, truncate_to) { + return binding_1.default.hash_md5_compute(data, truncate_to); +} +exports.hash_md5 = hash_md5; +/** + * Object that allows for continuous SHA256 hashing of data. + * + * @category Crypto + */ +class Sha256Hash extends Hash { + constructor() { + super(binding_1.default.hash_sha256_new()); + } +} +exports.Sha256Hash = Sha256Hash; +/** + * Computes an SHA256 hash. Use this if you don't need to stream the data you're hashing and can load the entire input + * into memory. + * + * @param data The data to hash + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + * + * @category Crypto + */ +function hash_sha256(data, truncate_to) { + return binding_1.default.hash_sha256_compute(data, truncate_to); +} +exports.hash_sha256 = hash_sha256; +/** + * Object that allows for continuous SHA1 hashing of data. + * + * @category Crypto + */ +class Sha1Hash extends Hash { + constructor() { + super(binding_1.default.hash_sha1_new()); + } +} +exports.Sha1Hash = Sha1Hash; +/** + * Computes an SHA1 hash. Use this if you don't need to stream the data you're hashing and can load the entire input + * into memory. + * + * @param data The data to hash + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + * + * @category Crypto + */ +function hash_sha1(data, truncate_to) { + return binding_1.default.hash_sha1_compute(data, truncate_to); +} +exports.hash_sha1 = hash_sha1; +/** + * Object that allows for continuous hashing of data with an hmac secret. + * + * @category Crypto + */ +class Hmac extends native_resource_1.NativeResource { + /** + * Hash additional data. + * + * @param data additional data to hash + */ + update(data) { + binding_1.default.hmac_update(this.native_handle(), data); + } + /** + * Completes the hash computation and returns the final hmac digest. + * + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + */ + finalize(truncate_to) { + return binding_1.default.hmac_digest(this.native_handle(), truncate_to); + } + constructor(hash_handle) { + super(hash_handle); + } +} +/** + * Object that allows for continuous SHA256 HMAC hashing of data. + * + * @category Crypto + */ +class Sha256Hmac extends Hmac { + constructor(secret) { + super(binding_1.default.hmac_sha256_new(secret)); + } +} +exports.Sha256Hmac = Sha256Hmac; +/** + * Computes an SHA256 HMAC. Use this if you don't need to stream the data you're hashing and can load the entire input + * into memory. + * + * @param secret The key to use for the HMAC process + * @param data The data to hash + * @param truncate_to The maximum number of bytes to receive. Leave as undefined or 0 to receive the entire digest. + * + * @category Crypto + */ +function hmac_sha256(secret, data, truncate_to) { + return binding_1.default.hmac_sha256_compute(secret, data, truncate_to); +} +exports.hmac_sha256 = hmac_sha256; +//# sourceMappingURL=crypto.js.map + +/***/ }), +/* 472 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.native_memory_dump = exports.native_memory = void 0; +/** + * + * A module containing some miscellaneous crt native memory queries + * + * @packageDocumentation + * @module crt + * @mergeTarget + */ +/** + * Memory reporting is controlled by the AWS_CRT_MEMORY_TRACING environment + * variable. Possible values are: + * * 0 - No tracing + * * 1 - Track active memory usage. Incurs a small performance penalty. + * * 2 - Track active memory usage, and also track callstacks for every allocation. + * This incurs a performance penalty, depending on the cost of the platform's + * stack unwinding/backtrace API. + * @category System + */ +const binding_1 = __importDefault(__webpack_require__(513)); +/** + * If the ```AWS_CRT_MEMORY_TRACING``` is environment variable is set to 1 or 2, + * will return the native memory usage in bytes. Otherwise, returns 0. + * @returns The total allocated native memory, in bytes. + * + * @category System + */ +function native_memory() { + return binding_1.default.native_memory(); +} +exports.native_memory = native_memory; +/** + * Dumps outstanding native memory allocations. If the ```AWS_CRT_MEMORY_TRACING``` + * environment variable is set to 1 or 2, will dump all active native memory to + * the console log. + * + * @category System + */ +function native_memory_dump() { + return binding_1.default.native_memory_dump(); +} +exports.native_memory_dump = native_memory_dump; +//# sourceMappingURL=crt.js.map + +/***/ }), /* 473 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -30499,8 +32911,102 @@ exports.SENSITIVE_STRING = "***SensitiveInformation***"; /***/ }), /* 477 */, -/* 478 */, -/* 479 */, +/* 478 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; +const loggerMiddleware = () => (next, context) => async (args) => { + const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; + const response = await next(args); + if (!logger) { + return response; + } + if (typeof logger.info === "function") { + const { $metadata, ...outputWithoutMetadata } = response.output; + logger.info({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata, + }); + } + return response; +}; +exports.loggerMiddleware = loggerMiddleware; +exports.loggerMiddlewareOptions = { + name: "loggerMiddleware", + tags: ["LOGGER"], + step: "initialize", + override: true, +}; +const getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(exports.loggerMiddleware(), exports.loggerMiddlewareOptions); + }, +}); +exports.getLoggerPlugin = getLoggerPlugin; + + +/***/ }), +/* 479 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0; +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var invalid_span_constants_1 = __webpack_require__(685); +var NonRecordingSpan_1 = __webpack_require__(437); +var VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i; +var VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i; +function isValidTraceId(traceId) { + return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID; +} +exports.isValidTraceId = isValidTraceId; +function isValidSpanId(spanId) { + return VALID_SPANID_REGEX.test(spanId) && spanId !== invalid_span_constants_1.INVALID_SPANID; +} +exports.isValidSpanId = isValidSpanId; +/** + * Returns true if this {@link SpanContext} is valid. + * @return true if this {@link SpanContext} is valid. + */ +function isSpanContextValid(spanContext) { + return (isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId)); +} +exports.isSpanContextValid = isSpanContextValid; +/** + * Wrap the given {@link SpanContext} in a new non-recording {@link Span} + * + * @param spanContext span context to be wrapped + * @returns a new non-recording {@link Span} with the provided context + */ +function wrapSpanContext(spanContext) { + return new NonRecordingSpan_1.NonRecordingSpan(spanContext); +} +exports.wrapSpanContext = wrapSpanContext; +//# sourceMappingURL=spancontext-utils.js.map + +/***/ }), /* 480 */ /***/ (function(__unusedmodule, exports) { @@ -30701,7 +33207,30 @@ const mapWithFilter = (target, filter, instructions) => { /***/ }), -/* 489 */, +/* 489 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=span.js.map + +/***/ }), /* 490 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -30713,7 +33242,7 @@ const protocol_http_1 = __webpack_require__(504); const querystring_builder_1 = __webpack_require__(979); const http_1 = __webpack_require__(605); const https_1 = __webpack_require__(211); -const constants_1 = __webpack_require__(702); +const constants_1 = __webpack_require__(400); const get_transformed_headers_1 = __webpack_require__(458); const set_connection_timeout_1 = __webpack_require__(204); const set_socket_timeout_1 = __webpack_require__(233); @@ -31739,44 +34268,72 @@ module.exports = {"application/1d-interleaved-parityfec":{"source":"iana"},"appl "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteBucketIntelligentTieringConfigurationCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class DeleteBucketIntelligentTieringConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "DeleteBucketIntelligentTieringConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteBucketIntelligentTieringConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand(output, context); +const path = __importStar(__webpack_require__(622)); +const os_1 = __webpack_require__(87); +const fs_1 = __webpack_require__(747); +const process_1 = __webpack_require__(316); +const upgrade_string = "Please upgrade to node >=10.16.0, or use the provided browser implementation."; +if ('napi' in process_1.versions) { + // @ts-ignore + const napi_version = parseInt(process_1.versions['napi']); + if (napi_version < 4) { + throw new Error("The AWS CRT native implementation requires that NAPI version 4 be present. " + upgrade_string); } } -exports.DeleteBucketIntelligentTieringConfigurationCommand = DeleteBucketIntelligentTieringConfigurationCommand; - +else { + throw new Error("The current runtime is not reporting an NAPI version. " + upgrade_string); +} +const binary_name = 'aws-crt-nodejs'; +const platformDir = `${os_1.platform}-${os_1.arch}`; +let source_root = path.resolve(__dirname, '..', '..'); +const dist = path.join(source_root, 'dist'); +if ((0, fs_1.existsSync)(dist)) { + source_root = dist; +} +const bin_path = path.resolve(source_root, 'bin'); +const search_paths = [ + path.join(bin_path, platformDir, binary_name), +]; +let binding; +for (const path of search_paths) { + if ((0, fs_1.existsSync)(path + '.node')) { + binding = require(path); + break; + } +} +if (binding == undefined) { + throw new Error("AWS CRT binary not present in any of the following locations:\n\t" + search_paths.join('\n\t')); +} +exports.default = binding; +//# sourceMappingURL=binding.js.map /***/ }), /* 514 */, @@ -32035,8 +34592,8 @@ exports.validateMrapAlias = validateMrapAlias; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = __webpack_require__(546); -tslib_1.__exportStar(__webpack_require__(984), exports); +const tslib_1 = __webpack_require__(586); +tslib_1.__exportStar(__webpack_require__(13), exports); /***/ }), @@ -32490,7 +35047,7 @@ exports.getValidatedProcessCredentials = getValidatedProcessCredentials; Object.defineProperty(exports, "__esModule", { value: true }); exports.paginateListAccounts = void 0; -const ListAccountsCommand_1 = __webpack_require__(245); +const ListAccountsCommand_1 = __webpack_require__(726); const SSO_1 = __webpack_require__(688); const SSOClient_1 = __webpack_require__(153); const makePagedClientRequest = async (client, input, ...args) => { @@ -33242,529 +35799,144 @@ eval("require")("encoding"); /***/ }), /* 546 */ -/***/ (function(module) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if ( true && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.moveHeadersToQuery = void 0; +const cloneRequest_1 = __webpack_require__(746); +const moveHeadersToQuery = (request, options = {}) => { + var _a; + const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const name of Object.keys(headers)) { + const lname = name.toLowerCase(); + if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { + query[name] = headers[name]; + delete headers[name]; + } + } + return { + ...request, + headers, + query, + }; +}; +exports.moveHeadersToQuery = moveHeadersToQuery; /***/ }), /* 547 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -var util = __webpack_require__(669); -var Stream = __webpack_require__(794).Stream; -var DelayedStream = __webpack_require__(33); +"use strict"; -module.exports = CombinedStream; -function CombinedStream() { - this.writable = false; - this.readable = true; - this.dataSize = 0; - this.maxDataSize = 2 * 1024 * 1024; - this.pauseStreams = true; - this._released = false; - this._streams = []; - this._currentStream = null; - this._insideLoop = false; - this._pendingNext = false; -} -util.inherits(CombinedStream, Stream); +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; -CombinedStream.create = function(options) { - var combinedStream = new this(); +var _rng = _interopRequireDefault(__webpack_require__(733)); +var _stringify = _interopRequireDefault(__webpack_require__(855)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); options = options || {}; - for (var option in options) { - combinedStream[option] = options[option]; - } + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 - return combinedStream; -}; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); -CombinedStream.isStreamLike = function(stream) { - return (typeof stream !== 'function') - && (typeof stream !== 'string') - && (typeof stream !== 'boolean') - && (typeof stream !== 'number') - && (!Buffer.isBuffer(stream)); -}; - -CombinedStream.prototype.append = function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - - if (isStreamLike) { - if (!(stream instanceof DelayedStream)) { - var newStream = DelayedStream.create(stream, { - maxDataSize: Infinity, - pauseStream: this.pauseStreams, - }); - stream.on('data', this._checkDataSize.bind(this)); - stream = newStream; + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; } - this._handleErrors(stream); - - if (this.pauseStreams) { - stream.pause(); + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); } - this._streams.push(stream); - return this; -}; + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch -CombinedStream.prototype.pipe = function(dest, options) { - Stream.prototype.pipe.call(this, dest, options); - this.resume(); - return dest; -}; + msecs += 12219292800000; // `time_low` -CombinedStream.prototype._getNext = function() { - this._currentStream = null; + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` - if (this._insideLoop) { - this._pendingNext = true; - return; // defer call + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; } - this._insideLoop = true; - try { - do { - this._pendingNext = false; - this._realGetNext(); - } while (this._pendingNext); - } finally { - this._insideLoop = false; - } -}; - -CombinedStream.prototype._realGetNext = function() { - var stream = this._streams.shift(); - - - if (typeof stream == 'undefined') { - this.end(); - return; - } - - if (typeof stream !== 'function') { - this._pipeNext(stream); - return; - } - - var getStream = stream; - getStream(function(stream) { - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('data', this._checkDataSize.bind(this)); - this._handleErrors(stream); - } - - this._pipeNext(stream); - }.bind(this)); -}; - -CombinedStream.prototype._pipeNext = function(stream) { - this._currentStream = stream; - - var isStreamLike = CombinedStream.isStreamLike(stream); - if (isStreamLike) { - stream.on('end', this._getNext.bind(this)); - stream.pipe(this, {end: false}); - return; - } - - var value = stream; - this.write(value); - this._getNext(); -}; - -CombinedStream.prototype._handleErrors = function(stream) { - var self = this; - stream.on('error', function(err) { - self._emitError(err); - }); -}; - -CombinedStream.prototype.write = function(data) { - this.emit('data', data); -}; - -CombinedStream.prototype.pause = function() { - if (!this.pauseStreams) { - return; - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause(); - this.emit('pause'); -}; - -CombinedStream.prototype.resume = function() { - if (!this._released) { - this._released = true; - this.writable = true; - this._getNext(); - } - - if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume(); - this.emit('resume'); -}; - -CombinedStream.prototype.end = function() { - this._reset(); - this.emit('end'); -}; - -CombinedStream.prototype.destroy = function() { - this._reset(); - this.emit('close'); -}; - -CombinedStream.prototype._reset = function() { - this.writable = false; - this._streams = []; - this._currentStream = null; -}; - -CombinedStream.prototype._checkDataSize = function() { - this._updateDataSize(); - if (this.dataSize <= this.maxDataSize) { - return; - } - - var message = - 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'; - this._emitError(new Error(message)); -}; - -CombinedStream.prototype._updateDataSize = function() { - this.dataSize = 0; - - var self = this; - this._streams.forEach(function(stream) { - if (!stream.dataSize) { - return; - } - - self.dataSize += stream.dataSize; - }); - - if (this._currentStream && this._currentStream.dataSize) { - this.dataSize += this._currentStream.dataSize; - } -}; - -CombinedStream.prototype._emitError = function(err) { - this._reset(); - this.emit('error', err); -}; + return buf || (0, _stringify.default)(b); +} +var _default = v1; +exports.default = _default; /***/ }), /* 548 */ @@ -34096,7 +36268,7 @@ var __createBinding; bom = __webpack_require__(210); - processors = __webpack_require__(350); + processors = __webpack_require__(909); setImmediate = __webpack_require__(213).setImmediate; @@ -35010,7 +37182,47 @@ exports.LogoutCommand = LogoutCommand; /***/ }), /* 557 */, -/* 558 */, +/* 558 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NoopTracerProvider = void 0; +var NoopTracer_1 = __webpack_require__(151); +/** + * An implementation of the {@link TracerProvider} which returns an impotent + * Tracer for all calls to `getTracer`. + * + * All operations are no-op. + */ +var NoopTracerProvider = /** @class */ (function () { + function NoopTracerProvider() { + } + NoopTracerProvider.prototype.getTracer = function (_name, _version, _options) { + return new NoopTracer_1.NoopTracer(); + }; + return NoopTracerProvider; +}()); +exports.NoopTracerProvider = NoopTracerProvider; +//# sourceMappingURL=NoopTracerProvider.js.map + +/***/ }), /* 559 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -35769,7 +37981,7 @@ const middleware_retry_1 = __webpack_require__(286); const middleware_sdk_sts_1 = __webpack_require__(122); const middleware_user_agent_1 = __webpack_require__(105); const smithy_client_1 = __webpack_require__(973); -const runtimeConfig_1 = __webpack_require__(679); +const runtimeConfig_1 = __webpack_require__(444); class STSClient extends smithy_client_1.Client { constructor(configuration) { const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration); @@ -36257,51 +38469,139 @@ exports.default = _default; /***/ }), /* 573 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SocketDomain = exports.SocketType = exports.TlsVersion = void 0; +/** + * + * A module containing a grab bag of support for core network I/O functionality, including sockets, TLS, DNS, logging, + * error handling, streams, and connection -> thread mapping. + * + * Categories include: + * - Network: socket configuration + * - TLS: tls configuration + * - Logging: logging controls and configuration + * - IO: everything else + * + * @packageDocumentation + * @module io + */ +/** + * TLS Version + * + * @category TLS + */ +var TlsVersion; +(function (TlsVersion) { + TlsVersion[TlsVersion["SSLv3"] = 0] = "SSLv3"; + TlsVersion[TlsVersion["TLSv1"] = 1] = "TLSv1"; + TlsVersion[TlsVersion["TLSv1_1"] = 2] = "TLSv1_1"; + TlsVersion[TlsVersion["TLSv1_2"] = 3] = "TLSv1_2"; + TlsVersion[TlsVersion["TLSv1_3"] = 4] = "TLSv1_3"; + TlsVersion[TlsVersion["Default"] = 128] = "Default"; +})(TlsVersion = exports.TlsVersion || (exports.TlsVersion = {})); +/** + * @category Network + */ +var SocketType; +(function (SocketType) { + /** + * A streaming socket sends reliable messages over a two-way connection. + * This means TCP when used with {@link SocketDomain.IPV4}/{@link SocketDomain.IPV6}, + * and Unix domain sockets when used with {@link SocketDomain.LOCAL } + */ + SocketType[SocketType["STREAM"] = 0] = "STREAM"; + /** + * A datagram socket is connectionless and sends unreliable messages. + * This means UDP when used with {@link SocketDomain.IPV4}/{@link SocketDomain.IPV6}. + * {@link SocketDomain.LOCAL} is not compatible with {@link DGRAM} + */ + SocketType[SocketType["DGRAM"] = 1] = "DGRAM"; +})(SocketType = exports.SocketType || (exports.SocketType = {})); +/** + * @category Network + */ +var SocketDomain; +(function (SocketDomain) { + /** IPv4 sockets */ + SocketDomain[SocketDomain["IPV4"] = 0] = "IPV4"; + /** IPv6 sockets */ + SocketDomain[SocketDomain["IPV6"] = 1] = "IPV6"; + /** UNIX domain socket/Windows named pipes */ + SocketDomain[SocketDomain["LOCAL"] = 2] = "LOCAL"; +})(SocketDomain = exports.SocketDomain || (exports.SocketDomain = {})); +//# sourceMappingURL=io.js.map + +/***/ }), +/* 574 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetSessionTokenCommand = void 0; -const middleware_serde_1 = __webpack_require__(347); -const middleware_signing_1 = __webpack_require__(307); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(37); -const Aws_query_1 = __webpack_require__(963); -class GetSessionTokenCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetSessionTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetSessionTokenRequest.filterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponse.filterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_query_1.serializeAws_queryGetSessionTokenCommand(input, context); - } - deserialize(output, context) { - return Aws_query_1.deserializeAws_queryGetSessionTokenCommand(output, context); - } -} -exports.GetSessionTokenCommand = GetSessionTokenCommand; - +exports.CrtError = exports.checksums = exports.resource_safety = exports.platform = exports.iot = exports.auth = exports.crypto = exports.http = exports.mqtt = exports.io = exports.crt = void 0; +// This is the entry point for the AWS CRT nodejs native libraries +/* common libs */ +const platform = __importStar(__webpack_require__(196)); +exports.platform = platform; +const resource_safety = __importStar(__webpack_require__(159)); +exports.resource_safety = resource_safety; +/* node specific libs */ +const crt = __importStar(__webpack_require__(472)); +exports.crt = crt; +const io = __importStar(__webpack_require__(886)); +exports.io = io; +const mqtt = __importStar(__webpack_require__(46)); +exports.mqtt = mqtt; +const http = __importStar(__webpack_require__(227)); +exports.http = http; +const crypto = __importStar(__webpack_require__(471)); +exports.crypto = crypto; +const auth = __importStar(__webpack_require__(686)); +exports.auth = auth; +const iot = __importStar(__webpack_require__(463)); +exports.iot = iot; +const checksums = __importStar(__webpack_require__(984)); +exports.checksums = checksums; +const error_1 = __webpack_require__(92); +Object.defineProperty(exports, "CrtError", { enumerable: true, get: function () { return error_1.CrtError; } }); +//# sourceMappingURL=index.js.map /***/ }), -/* 574 */, /* 575 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -36318,7 +38618,90 @@ tslib_1.__exportStar(__webpack_require__(376), exports); /* 577 */, /* 578 */, /* 579 */, -/* 580 */, +/* 580 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.populate_username_string_with_custom_authorizer = exports.is_string_and_not_empty = exports.add_to_username_parameter = void 0; +/** + * + * A module containing miscellaneous functionality that is shared across both native and browser for aws_iot + * + * @packageDocumentation + * @module aws_iot + */ +/** + * A helper function to add parameters to the username in with_custom_authorizer function + * + * @internal + */ +function add_to_username_parameter(current_username, parameter_value, parameter_pre_text) { + let return_string = current_username; + if (return_string.indexOf("?") != -1) { + return_string += "&"; + } + else { + return_string += "?"; + } + if (parameter_value.indexOf(parameter_pre_text) != -1) { + return return_string + parameter_value; + } + else { + return return_string + parameter_pre_text + parameter_value; + } +} +exports.add_to_username_parameter = add_to_username_parameter; +/** + * A helper function to see if a string is not null, is defined, and is not an empty string + * + * @internal + */ +function is_string_and_not_empty(item) { + return item != undefined && typeof (item) == 'string' && item != ""; +} +exports.is_string_and_not_empty = is_string_and_not_empty; +/** + * A helper function to populate the username with the Custom Authorizer fields + * @param current_username the current username + * @param input_username the username to add - can be an empty string to skip + * @param input_authorizer the name of the authorizer to add - can be an empty string to skip + * @param input_signature the name of the signature to add - can be an empty string to skip + * @param input_builder_username the username from the MQTT builder + * @returns The finished username with the additions added to it + * + * @internal + */ +function populate_username_string_with_custom_authorizer(current_username, input_username, input_authorizer, input_signature, input_builder_username) { + let username_string = ""; + if (current_username) { + username_string += current_username; + } + if (is_string_and_not_empty(input_username) == false) { + if (is_string_and_not_empty(input_builder_username) && input_builder_username) { + username_string += input_builder_username; + } + } + else { + username_string += input_username; + } + if (is_string_and_not_empty(input_authorizer) && input_authorizer) { + username_string = add_to_username_parameter(username_string, input_authorizer, "x-amz-customauthorizer-name="); + } + if (is_string_and_not_empty(input_signature) && input_signature) { + username_string = add_to_username_parameter(username_string, input_signature, "x-amz-customauthorizer-signature="); + } + return username_string; +} +exports.populate_username_string_with_custom_authorizer = populate_username_string_with_custom_authorizer; +//# sourceMappingURL=aws_iot_shared.js.map + +/***/ }), /* 581 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -36446,27 +38829,315 @@ Object.defineProperty(exports, "__esModule", { value: true }); /***/ }), /* 586 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(module) { -"use strict"; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); +}); -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=span.js.map /***/ }), /* 587 */ @@ -38364,7 +41035,7 @@ module.exports = require("events"); Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(301); -tslib_1.__exportStar(__webpack_require__(451), exports); +tslib_1.__exportStar(__webpack_require__(814), exports); /***/ }), @@ -63929,8 +66600,79 @@ exports.moveHeadersToQuery = moveHeadersToQuery; /***/ }), -/* 625 */, -/* 626 */, +/* 625 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getUnmarshalledStream = void 0; +function getUnmarshalledStream(source, options) { + return { + [Symbol.asyncIterator]: async function* () { + for await (const chunk of source) { + const message = options.eventMarshaller.unmarshall(chunk); + const { value: messageType } = message.headers[":message-type"]; + if (messageType === "error") { + const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError"); + unmodeledError.name = message.headers[":error-code"].value; + throw unmodeledError; + } + else if (messageType === "exception") { + const code = message.headers[":exception-type"].value; + const exception = { [code]: message }; + const deserializedException = await options.deserializer(exception); + if (deserializedException.$unknown) { + const error = new Error(options.toUtf8(message.body)); + error.name = code; + throw error; + } + throw deserializedException[code]; + } + else if (messageType === "event") { + const event = { + [message.headers[":event-type"].value]: message, + }; + const deserialized = await options.deserializer(event); + if (deserialized.$unknown) + continue; + yield deserialized; + } + else { + throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`); + } + } + }, + }; +} +exports.getUnmarshalledStream = getUnmarshalledStream; + + +/***/ }), +/* 626 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=attributes.js.map + +/***/ }), /* 627 */, /* 628 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -77197,8 +79939,8 @@ const stripLeadingZeroes = (value) => { const punycode = __webpack_require__(571); const urlParse = __webpack_require__(215); -const pubsuffix = __webpack_require__(438); -const Store = __webpack_require__(338).Store; +const pubsuffix = __webpack_require__(700); +const Store = __webpack_require__(242).Store; const MemoryCookieStore = __webpack_require__(27).MemoryCookieStore; const pathMatch = __webpack_require__(178).pathMatch; const validators = __webpack_require__(330); @@ -80650,7 +83392,137 @@ exports.default = _default; /***/ }), -/* 646 */, +/* 646 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CrtSignerV4 = void 0; +const querystring_parser_1 = __webpack_require__(805); +const signature_v4_1 = __webpack_require__(994); +const util_middleware_1 = __webpack_require__(325); +const aws_crt_1 = __webpack_require__(574); +const constants_1 = __webpack_require__(218); +const headerUtil_1 = __webpack_require__(451); +function sdkHttpRequest2crtHttpRequest(sdkRequest) { + (0, headerUtil_1.deleteHeader)(constants_1.SHA256_HEADER, sdkRequest.headers); + const headersArray = Object.entries(sdkRequest.headers); + const crtHttpHeaders = new aws_crt_1.http.HttpHeaders(headersArray); + const queryString = (0, signature_v4_1.getCanonicalQuery)(sdkRequest); + return new aws_crt_1.http.HttpRequest(sdkRequest.method, sdkRequest.path + "?" + queryString, crtHttpHeaders); +} +class CrtSignerV4 { + constructor({ credentials, region, service, sha256, applyChecksum = true, uriEscapePath = true, signingAlgorithm = aws_crt_1.auth.AwsSigningAlgorithm.SigV4, }) { + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.signingAlgorithm = signingAlgorithm; + this.applyChecksum = applyChecksum; + this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); + this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); + aws_crt_1.io.enable_logging(aws_crt_1.io.LogLevel.ERROR); + } + async options2crtConfigure({ signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}, viaHeader, payloadHash, expiresIn) { + const credentials = await this.credentialProvider(); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const service = signingService !== null && signingService !== void 0 ? signingService : this.service; + if ((signableHeaders === null || signableHeaders === void 0 ? void 0 : signableHeaders.has("x-amzn-trace-id")) || (signableHeaders === null || signableHeaders === void 0 ? void 0 : signableHeaders.has("user-agent"))) { + throw new Error("internal check (x-amzn-trace-id, user-agent) is not supported to be included to sign with CRT."); + } + const headersUnsignable = getHeadersUnsignable(unsignableHeaders, signableHeaders); + return { + algorithm: this.signingAlgorithm, + signature_type: viaHeader + ? aws_crt_1.auth.AwsSignatureType.HttpRequestViaHeaders + : aws_crt_1.auth.AwsSignatureType.HttpRequestViaQueryParams, + provider: sdk2crtCredentialsProvider(credentials), + region: region, + service: service, + date: new Date(signingDate), + header_blacklist: headersUnsignable, + use_double_uri_encode: this.uriEscapePath, + signed_body_value: payloadHash, + signed_body_header: this.applyChecksum && viaHeader + ? aws_crt_1.auth.AwsSignedBodyHeaderType.XAmzContentSha256 + : aws_crt_1.auth.AwsSignedBodyHeaderType.None, + expiration_in_seconds: expiresIn, + }; + } + async presign(originalRequest, options = {}) { + if (options.expiresIn && options.expiresIn > constants_1.MAX_PRESIGNED_TTL) { + return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); + } + const request = (0, signature_v4_1.moveHeadersToQuery)((0, signature_v4_1.prepareRequest)(originalRequest)); + const crtSignedRequest = await this.signRequest(request, await this.options2crtConfigure(options, false, await (0, signature_v4_1.getPayloadHash)(originalRequest, this.sha256), options.expiresIn ? options.expiresIn : 3600)); + request.query = this.getQueryParam(crtSignedRequest.path); + return request; + } + async sign(toSign, options) { + const request = (0, signature_v4_1.prepareRequest)(toSign); + const crtSignedRequest = await this.signRequest(request, await this.options2crtConfigure(options, true, await (0, signature_v4_1.getPayloadHash)(toSign, this.sha256))); + request.headers = crtSignedRequest.headers._flatten().reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}); + return request; + } + getQueryParam(crtPath) { + const start = crtPath.search(/\?/); + const startHash = crtPath.search(/\#/); + const end = startHash == -1 ? undefined : startHash; + const queryParam = {}; + if (start == -1) { + return queryParam; + } + const queryString = crtPath.slice(start + 1, end); + return (0, querystring_parser_1.parseQueryString)(queryString); + } + async signRequest(requestToSign, crtConfig) { + const request = sdkHttpRequest2crtHttpRequest(requestToSign); + try { + return await aws_crt_1.auth.aws_sign_request(request, crtConfig); + } + catch (error) { + throw new Error(error); + } + } + async verifySigv4aSigning(request, signature, expectedCanonicalRequest, eccPubKeyX, eccPubKeyY, options = {}) { + const sdkRequest = (0, signature_v4_1.prepareRequest)(request); + const crtRequest = sdkHttpRequest2crtHttpRequest(sdkRequest); + const payloadHash = await (0, signature_v4_1.getPayloadHash)(request, this.sha256); + const crtConfig = await this.options2crtConfigure(options, true, payloadHash); + return aws_crt_1.auth.aws_verify_sigv4a_signing(crtRequest, crtConfig, expectedCanonicalRequest, signature, eccPubKeyX, eccPubKeyY); + } + async verifySigv4aPreSigning(request, signature, expectedCanonicalRequest, eccPubKeyX, eccPubKeyY, options = {}) { + if (typeof signature != "string") { + return false; + } + const sdkRequest = (0, signature_v4_1.prepareRequest)(request); + const crtRequest = sdkHttpRequest2crtHttpRequest(sdkRequest); + const crtConfig = await this.options2crtConfigure(options, false, await (0, signature_v4_1.getPayloadHash)(request, this.sha256), options.expiresIn ? options.expiresIn : 3600); + return aws_crt_1.auth.aws_verify_sigv4a_signing(crtRequest, crtConfig, expectedCanonicalRequest, signature, eccPubKeyX, eccPubKeyY); + } +} +exports.CrtSignerV4 = CrtSignerV4; +function sdk2crtCredentialsProvider(credentials) { + return aws_crt_1.auth.AwsCredentialsProvider.newStatic(credentials.accessKeyId, credentials.secretAccessKey, credentials.sessionToken); +} +function getHeadersUnsignable(unsignableHeaders, signableHeaders) { + if (!unsignableHeaders) { + return []; + } + if (!signableHeaders) { + return [...unsignableHeaders]; + } + const result = new Set([...unsignableHeaders]); + for (let it = signableHeaders.values(), val = null; (val = it.next().value);) { + if (result.has(val)) { + result.delete(val); + } + } + return [...result]; +} + + +/***/ }), /* 647 */, /* 648 */, /* 649 */ @@ -81399,7 +84271,18 @@ exports.NODE_REGION_CONFIG_FILE_OPTIONS = { /***/ }), -/* 658 */, +/* 658 */ +/***/ (function(module, __unusedexports, __webpack_require__) { + +module.exports = +{ + parallel : __webpack_require__(424), + serial : __webpack_require__(863), + serialOrdered : __webpack_require__(904) +}; + + +/***/ }), /* 659 */, /* 660 */ /***/ (function(module, __unusedexports, __webpack_require__) { @@ -82222,9 +85105,9 @@ var EndpointMode; XMLText = __webpack_require__(666); - XMLProcessingInstruction = __webpack_require__(419); + XMLProcessingInstruction = __webpack_require__(836); - XMLDummy = __webpack_require__(764); + XMLDummy = __webpack_require__(956); XMLDTDAttList = __webpack_require__(801); @@ -82870,37 +85753,28 @@ exports.createLogLevelDiagLogger = createLogLevelDiagLogger; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.RefKey = exports.Events = exports.State = exports.Outputs = exports.Inputs = void 0; -var Inputs; -(function (Inputs) { - Inputs["Key"] = "key"; - Inputs["Path"] = "path"; - Inputs["RestoreKeys"] = "restore-keys"; - Inputs["UploadChunkSize"] = "upload-chunk-size"; - Inputs["AWSS3Bucket"] = "aws-s3-bucket"; - Inputs["AWSAccessKeyId"] = "aws-access-key-id"; - Inputs["AWSSecretAccessKey"] = "aws-secret-access-key"; - Inputs["AWSRegion"] = "aws-region"; - Inputs["AWSEndpoint"] = "aws-endpoint"; - Inputs["AWSS3BucketEndpoint"] = "aws-s3-bucket-endpoint"; - Inputs["AWSS3ForcePathStyle"] = "aws-s3-force-path-style"; -})(Inputs = exports.Inputs || (exports.Inputs = {})); -var Outputs; -(function (Outputs) { - Outputs["CacheHit"] = "cache-hit"; -})(Outputs = exports.Outputs || (exports.Outputs = {})); -var State; -(function (State) { - State["CachePrimaryKey"] = "CACHE_KEY"; - State["CacheMatchedKey"] = "CACHE_RESULT"; -})(State = exports.State || (exports.State = {})); -var Events; -(function (Events) { - Events["Key"] = "GITHUB_EVENT_NAME"; - Events["Push"] = "push"; - Events["PullRequest"] = "pull_request"; -})(Events = exports.Events || (exports.Events = {})); -exports.RefKey = "GITHUB_REF"; +exports.AbortSignal = void 0; +class AbortSignal { + constructor() { + this.onabort = null; + this._aborted = false; + Object.defineProperty(this, "_aborted", { + value: false, + writable: true, + }); + } + get aborted() { + return this._aborted; + } + abort() { + this._aborted = true; + if (this.onabort) { + this.onabort(this); + this.onabort = null; + } + } +} +exports.AbortSignal = AbortSignal; /***/ }), @@ -82928,7 +85802,51 @@ var _default = validate; exports.default = _default; /***/ }), -/* 677 */, +/* 677 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; +const util_hex_encoding_1 = __webpack_require__(145); +const constants_1 = __webpack_require__(361); +const signingKeyCache = {}; +const cacheQueue = []; +const createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; +exports.createScope = createScope; +const getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = `AWS4${credentials.secretAccessKey}`; + for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return (signingKeyCache[cacheKey] = key); +}; +exports.getSigningKey = getSigningKey; +const clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); +}; +exports.clearCredentialCache = clearCredentialCache; +const hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update(data); + return hash.digest(); +}; + + +/***/ }), /* 678 */ /***/ (function(__unusedmodule, exports) { @@ -82984,59 +85902,325 @@ exports.toUtf8 = toUtf8; /***/ }), /* 679 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(module) { -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const tslib_1 = __webpack_require__(174); -const package_json_1 = tslib_1.__importDefault(__webpack_require__(824)); -const defaultStsRoleAssumers_1 = __webpack_require__(551); -const config_resolver_1 = __webpack_require__(529); -const credential_provider_node_1 = __webpack_require__(125); -const hash_node_1 = __webpack_require__(145); -const middleware_retry_1 = __webpack_require__(286); -const node_config_provider_1 = __webpack_require__(519); -const node_http_handler_1 = __webpack_require__(384); -const util_base64_node_1 = __webpack_require__(287); -const util_body_length_node_1 = __webpack_require__(555); -const util_user_agent_node_1 = __webpack_require__(96); -const util_utf8_node_1 = __webpack_require__(536); -const runtimeConfig_shared_1 = __webpack_require__(34); -const smithy_client_1 = __webpack_require__(973); -const util_defaults_mode_node_1 = __webpack_require__(331); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : defaultStsRoleAssumers_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __classPrivateFieldIn; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + __classPrivateFieldIn = function (state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); +}); /***/ }), @@ -83088,7 +86272,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); const cache = __importStar(__webpack_require__(692)); const core = __importStar(__webpack_require__(470)); -const constants_1 = __webpack_require__(674); +const constants_1 = __webpack_require__(416); const utils = __importStar(__webpack_require__(26)); // Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in // @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to @@ -83237,7 +86421,218 @@ exports.INVALID_SPAN_CONTEXT = { //# sourceMappingURL=invalid-span-constants.js.map /***/ }), -/* 686 */, +/* 686 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.aws_verify_sigv4a_signing = exports.aws_sign_request = exports.AwsSignedBodyHeaderType = exports.AwsSignedBodyValue = exports.AwsSignatureType = exports.AwsSigningAlgorithm = exports.AwsCredentialsProvider = void 0; +const binding_1 = __importDefault(__webpack_require__(513)); +const error_1 = __webpack_require__(92); +const io_1 = __webpack_require__(886); +/** + * Credentials providers source the AwsCredentials needed to sign an authenticated AWS request. + * + * We don't currently expose an interface for fetching credentials from Javascript. + * + * @category Auth + */ +/* Subclass for the purpose of exposing a non-NativeHandle based API */ +class AwsCredentialsProvider extends binding_1.default.AwsCredentialsProvider { + /** + * Creates a new default credentials provider to be used internally for AWS credentials resolution: + * + * The CRT's default provider chain currently sources in this order: + * + * 1. Environment + * 2. Profile + * 3. (conditional, off by default) ECS + * 4. (conditional, on by default) EC2 Instance Metadata + * + * @param bootstrap (optional) client bootstrap to be used to establish any required network connections + * + * @returns a new credentials provider using default credentials resolution rules + */ + static newDefault(bootstrap = undefined) { + return super.newDefault(bootstrap != null ? bootstrap.native_handle() : null); + } + /** + * Creates a new credentials provider that returns a fixed set of credentials. + * + * @param access_key access key to use in the static credentials + * @param secret_key secret key to use in the static credentials + * @param session_token (optional) session token to use in the static credentials + * + * @returns a new credentials provider that will return a fixed set of AWS credentials + */ + static newStatic(access_key, secret_key, session_token) { + return super.newStatic(access_key, secret_key, session_token); + } + /** + * Creates a new credentials provider that sources credentials from the AWS Cognito Identity service via the + * GetCredentialsForIdentity http API. + * + * @param config provider configuration necessary to make GetCredentialsForIdentity web requests + * + * @returns a new credentials provider that returns credentials sourced from the AWS Cognito Identity service + */ + static newCognito(config) { + return super.newCognito(config, config.tlsContext != null ? config.tlsContext.native_handle() : new io_1.ClientTlsContext().native_handle(), config.bootstrap != null ? config.bootstrap.native_handle() : null, config.httpProxyOptions ? config.httpProxyOptions.create_native_handle() : null); + } +} +exports.AwsCredentialsProvider = AwsCredentialsProvider; +/** + * AWS signing algorithm enumeration. + * + * @category Auth + */ +var AwsSigningAlgorithm; +(function (AwsSigningAlgorithm) { + /** Use the Aws signature version 4 signing process to sign the request */ + AwsSigningAlgorithm[AwsSigningAlgorithm["SigV4"] = 0] = "SigV4"; + /** Use the Aws signature version 4 Asymmetric signing process to sign the request */ + AwsSigningAlgorithm[AwsSigningAlgorithm["SigV4Asymmetric"] = 1] = "SigV4Asymmetric"; +})(AwsSigningAlgorithm = exports.AwsSigningAlgorithm || (exports.AwsSigningAlgorithm = {})); +/** + * AWS signature type enumeration. + * + * @category Auth + */ +var AwsSignatureType; +(function (AwsSignatureType) { + /** Sign an http request and apply the signing results as headers */ + AwsSignatureType[AwsSignatureType["HttpRequestViaHeaders"] = 0] = "HttpRequestViaHeaders"; + /** Sign an http request and apply the signing results as query params */ + AwsSignatureType[AwsSignatureType["HttpRequestViaQueryParams"] = 1] = "HttpRequestViaQueryParams"; + /** Sign an http request payload chunk */ + AwsSignatureType[AwsSignatureType["HttpRequestChunk"] = 2] = "HttpRequestChunk"; + /** Sign an event stream event */ + AwsSignatureType[AwsSignatureType["HttpRequestEvent"] = 3] = "HttpRequestEvent"; +})(AwsSignatureType = exports.AwsSignatureType || (exports.AwsSignatureType = {})); +/** + * Values for use with {@link AwsSigningConfig.signed_body_value}. + * + * Some services use special values (e.g. 'UNSIGNED-PAYLOAD') when the body + * is not being signed in the usual way. + * + * @category Auth + */ +var AwsSignedBodyValue; +(function (AwsSignedBodyValue) { + /** Use the SHA-256 of the empty string as the canonical request payload value */ + AwsSignedBodyValue["EmptySha256"] = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + /** Use the literal string 'UNSIGNED-PAYLOAD' as the canonical request payload value */ + AwsSignedBodyValue["UnsignedPayload"] = "UNSIGNED-PAYLOAD"; + /** Use the literal string 'STREAMING-AWS4-HMAC-SHA256-PAYLOAD' as the canonical request payload value */ + AwsSignedBodyValue["StreamingAws4HmacSha256Payload"] = "STREAMING-AWS4-HMAC-SHA256-PAYLOAD"; + /** Use the literal string 'STREAMING-AWS4-HMAC-SHA256-EVENTS' as the canonical request payload value */ + AwsSignedBodyValue["StreamingAws4HmacSha256Events"] = "STREAMING-AWS4-HMAC-SHA256-EVENTS"; +})(AwsSignedBodyValue = exports.AwsSignedBodyValue || (exports.AwsSignedBodyValue = {})); +/** + * AWS signed body header enumeration. + * + * @category Auth + */ +var AwsSignedBodyHeaderType; +(function (AwsSignedBodyHeaderType) { + /** Do not add a header containing the canonical request payload value */ + AwsSignedBodyHeaderType[AwsSignedBodyHeaderType["None"] = 0] = "None"; + /** Add the X-Amz-Content-Sha256 header with the canonical request payload value */ + AwsSignedBodyHeaderType[AwsSignedBodyHeaderType["XAmzContentSha256"] = 1] = "XAmzContentSha256"; +})(AwsSignedBodyHeaderType = exports.AwsSignedBodyHeaderType || (exports.AwsSignedBodyHeaderType = {})); +/** + * Perform AWS HTTP request signing. + * + * The {@link HttpRequest} is transformed asynchronously, + * according to the {@link AwsSigningConfig}. + * + * When signing: + * 1. It is good practice to use a new config for each signature, + * or the date might get too old. + * + * 2. Do not add the following headers to requests before signing, they may be added by the signer: + * x-amz-content-sha256, + * X-Amz-Date, + * Authorization + * + * 3. Do not add the following query params to requests before signing, they may be added by the signer: + * X-Amz-Signature, + * X-Amz-Date, + * X-Amz-Credential, + * X-Amz-Algorithm, + * X-Amz-SignedHeaders + * @param request The HTTP request to sign. + * @param config Configuration for signing. + * @returns A promise whose result will be the signed + * {@link HttpRequest}. The future will contain an exception + * if the signing process fails. + * + * @category Auth + */ +function aws_sign_request(request, config) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + try { + /* Note: if the body of request has not fully loaded, it will lead to an endless loop. + * User should set the signed_body_value of config to prevent this endless loop in this case */ + binding_1.default.aws_sign_request(request, config, (error_code) => { + if (error_code == 0) { + resolve(request); + } + else { + reject(new error_1.CrtError(error_code)); + } + }); + } + catch (error) { + reject(error); + } + }); + }); +} +exports.aws_sign_request = aws_sign_request; +/** + * + * @internal + * + * Test only. + * Verifies: + * (1) The canonical request generated during sigv4a signing of the request matches what is passed in + * (2) The signature passed in is a valid ECDSA signature of the hashed string-to-sign derived from the + * canonical request + * + * @param request The HTTP request to sign. + * @param config Configuration for signing. + * @param expected_canonical_request String type of expected canonical request. Refer to XXX(link to doc?) + * @param signature The generated signature string from {@link aws_sign_request}, which is verified here. + * @param ecc_key_pub_x the x coordinate of the public part of the ecc key to verify the signature. + * @param ecc_key_pub_y the y coordinate of the public part of the ecc key to verify the signature + * @returns True, if the verification succeed. Otherwise, false. + */ +function aws_verify_sigv4a_signing(request, config, expected_canonical_request, signature, ecc_key_pub_x, ecc_key_pub_y) { + return binding_1.default.aws_verify_sigv4a_signing(request, config, expected_canonical_request, signature, ecc_key_pub_x, ecc_key_pub_y); +} +exports.aws_verify_sigv4a_signing = aws_verify_sigv4a_signing; +//# sourceMappingURL=auth.js.map + +/***/ }), /* 687 */, /* 688 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -83248,7 +86643,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.SSO = void 0; const GetRoleCredentialsCommand_1 = __webpack_require__(162); const ListAccountRolesCommand_1 = __webpack_require__(552); -const ListAccountsCommand_1 = __webpack_require__(245); +const ListAccountsCommand_1 = __webpack_require__(726); const LogoutCommand_1 = __webpack_require__(556); const SSOClient_1 = __webpack_require__(153); class SSO extends SSOClient_1.SSOClient { @@ -84153,7 +87548,86 @@ exports.PutBucketNotificationConfigurationCommand = PutBucketNotificationConfigu /***/ }), -/* 700 */, +/* 700 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; +/*! + * Copyright (c) 2018, Salesforce.com, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Salesforce.com nor the names of its contributors may + * be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +const psl = __webpack_require__(729); + +// RFC 6761 +const SPECIAL_USE_DOMAINS = [ + "local", + "example", + "invalid", + "localhost", + "test" +]; + +const SPECIAL_TREATMENT_DOMAINS = ["localhost", "invalid"]; + +function getPublicSuffix(domain, options = {}) { + const domainParts = domain.split("."); + const topLevelDomain = domainParts[domainParts.length - 1]; + const allowSpecialUseDomain = !!options.allowSpecialUseDomain; + const ignoreError = !!options.ignoreError; + + if (allowSpecialUseDomain && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) { + if (domainParts.length > 1) { + const secondLevelDomain = domainParts[domainParts.length - 2]; + // In aforementioned example, the eTLD/pubSuf will be apple.localhost + return `${secondLevelDomain}.${topLevelDomain}`; + } else if (SPECIAL_TREATMENT_DOMAINS.includes(topLevelDomain)) { + // For a single word special use domain, e.g. 'localhost' or 'invalid', per RFC 6761, + // "Application software MAY recognize {localhost/invalid} names as special, or + // MAY pass them to name resolution APIs as they would for other domain names." + return `${topLevelDomain}`; + } + } + + if (!ignoreError && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) { + throw new Error( + `Cookie has domain set to the public suffix "${topLevelDomain}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain:true, rejectPublicSuffixes: false}.` + ); + } + + return psl.get(domain); +} + +exports.getPublicSuffix = getPublicSuffix; + + +/***/ }), /* 701 */ /***/ (function(__unusedmodule, exports) { @@ -84177,8 +87651,14 @@ exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; -exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; +exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; +exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; +exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; +exports.ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], + default: undefined, +}; /***/ }), @@ -84236,65 +87716,44 @@ exports.serializerMiddleware = serializerMiddleware; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; -const protocol_http_1 = __webpack_require__(504); -const constants_1 = __webpack_require__(813); -const userAgentMiddleware = (options) => (next, context) => async (args) => { - var _a, _b; - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request)) - return next(args); - const { headers } = request; - const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; - const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), - ...customUserAgent, - ].join(constants_1.SPACE); - if (options.runtime !== "browser") { - if (normalUAValue) { - headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] - ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` - : normalUAValue; - } - headers[constants_1.USER_AGENT] = sdkUserAgentValue; +exports.PutBucketLifecycleConfigurationCommand = void 0; +const middleware_apply_body_checksum_1 = __webpack_require__(879); +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class PutBucketLifecycleConfigurationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; } - else { - headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + this.middlewareStack.use(middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "PutBucketLifecycleConfigurationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.PutBucketLifecycleConfigurationRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); } - return next({ - ...args, - request, - }); -}; -exports.userAgentMiddleware = userAgentMiddleware; -const escapeUserAgent = ([name, version]) => { - const prefixSeparatorIndex = name.indexOf("/"); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === "api") { - uaName = uaName.toLowerCase(); + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlPutBucketLifecycleConfigurationCommand(input, context); } - return [prefix, uaName, version] - .filter((item) => item && item.length > 0) - .map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")) - .join("/"); -}; -exports.getUserAgentMiddlewareOptions = { - name: "getUserAgentMiddleware", - step: "build", - priority: "low", - tags: ["SET_USER_AGENT", "USER_AGENT"], - override: true, -}; -const getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add(exports.userAgentMiddleware(config), exports.getUserAgentMiddlewareOptions); - }, -}); -exports.getUserAgentPlugin = getUserAgentPlugin; + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlPutBucketLifecycleConfigurationCommand(output, context); + } +} +exports.PutBucketLifecycleConfigurationCommand = PutBucketLifecycleConfigurationCommand; /***/ }), @@ -85030,11 +88489,47 @@ tslib_1.__exportStar(__webpack_require__(587), exports); /* 713 */, /* 714 */, /* 715 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListBucketInventoryConfigurationsCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class ListBucketInventoryConfigurationsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "ListBucketInventoryConfigurationsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListBucketInventoryConfigurationsRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListBucketInventoryConfigurationsOutput.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlListBucketInventoryConfigurationsCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlListBucketInventoryConfigurationsCommand(output, context); + } +} +exports.ListBucketInventoryConfigurationsCommand = ListBucketInventoryConfigurationsCommand; /***/ }), @@ -85111,7 +88606,7 @@ const credential_provider_imds_1 = __webpack_require__(146); const node_config_provider_1 = __webpack_require__(519); const property_provider_1 = __webpack_require__(17); const constants_1 = __webpack_require__(848); -const defaultsModeConfig_1 = __webpack_require__(268); +const defaultsModeConfig_1 = __webpack_require__(274); const resolveDefaultsModeConfig = ({ region = node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = node_config_provider_1.loadConfig(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => property_provider_1.memoize(async () => { const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { @@ -86982,7 +90477,49 @@ exports.CreateMultipartUploadCommand = CreateMultipartUploadCommand; /***/ }), -/* 726 */, +/* 726 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ListAccountsCommand = void 0; +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(743); +const Aws_restJson1_1 = __webpack_require__(340); +class ListAccountsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSOClient"; + const commandName = "ListAccountsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountsRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountsResponse.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand(input, context); + } + deserialize(output, context) { + return Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand(output, context); + } +} +exports.ListAccountsCommand = ListAccountsCommand; + + +/***/ }), /* 727 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -88320,7 +91857,30 @@ exports.PutBucketPolicyCommand = PutBucketPolicyCommand; /***/ }), -/* 746 */, +/* 746 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.cloneQuery = exports.cloneRequest = void 0; +const cloneRequest = ({ headers, query, ...rest }) => ({ + ...rest, + headers: { ...headers }, + query: query ? (0, exports.cloneQuery)(query) : undefined, +}); +exports.cloneRequest = cloneRequest; +const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param, + }; +}, {}); +exports.cloneQuery = cloneQuery; + + +/***/ }), /* 747 */ /***/ (function(module) { @@ -88396,289 +91956,42 @@ exports.parseIni = parseIni; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __webpack_require__(529); -const regionHash = { - "ap-northeast-1": { - variants: [ - { - hostname: "portal.sso.ap-northeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-1", - }, - "ap-northeast-2": { - variants: [ - { - hostname: "portal.sso.ap-northeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-2", - }, - "ap-south-1": { - variants: [ - { - hostname: "portal.sso.ap-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-south-1", - }, - "ap-southeast-1": { - variants: [ - { - hostname: "portal.sso.ap-southeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-1", - }, - "ap-southeast-2": { - variants: [ - { - hostname: "portal.sso.ap-southeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-2", - }, - "ca-central-1": { - variants: [ - { - hostname: "portal.sso.ca-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ca-central-1", - }, - "eu-central-1": { - variants: [ - { - hostname: "portal.sso.eu-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-central-1", - }, - "eu-north-1": { - variants: [ - { - hostname: "portal.sso.eu-north-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-north-1", - }, - "eu-west-1": { - variants: [ - { - hostname: "portal.sso.eu-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-1", - }, - "eu-west-2": { - variants: [ - { - hostname: "portal.sso.eu-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-2", - }, - "eu-west-3": { - variants: [ - { - hostname: "portal.sso.eu-west-3.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-3", - }, - "sa-east-1": { - variants: [ - { - hostname: "portal.sso.sa-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "sa-east-1", - }, - "us-east-1": { - variants: [ - { - hostname: "portal.sso.us-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-1", - }, - "us-east-2": { - variants: [ - { - hostname: "portal.sso.us-east-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-2", - }, - "us-gov-east-1": { - variants: [ - { - hostname: "portal.sso.us-gov-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-east-1", - }, - "us-gov-west-1": { - variants: [ - { - hostname: "portal.sso.us-gov-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-west-1", - }, - "us-west-2": { - variants: [ - { - hostname: "portal.sso.us-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-west-2", - }, -}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, { - ...options, - signingService: "awsssoportal", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; +exports.DeleteBucketCorsCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class DeleteBucketCorsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "DeleteBucketCorsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteBucketCorsRequest.filterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlDeleteBucketCorsCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlDeleteBucketCorsCommand(output, context); + } +} +exports.DeleteBucketCorsCommand = DeleteBucketCorsCommand; /***/ }), @@ -88729,7 +92042,12 @@ exports.PutBucketTaggingCommand = PutBucketTaggingCommand; /***/ }), -/* 753 */, +/* 753 */ +/***/ (function(module) { + +module.exports = {"name":"aws-crt","version":"1.14.5","description":"NodeJS/browser bindings to the aws-c-* libraries","homepage":"https://github.com/awslabs/aws-crt-nodejs","repository":{"type":"git","url":"git+https://github.com/awslabs/aws-crt-nodejs.git"},"contributors":["AWS Common Runtime Team "],"license":"Apache-2.0","main":"./dist/index.js","browser":"./dist.browser/browser.js","types":"./dist/index.d.ts","scripts":{"tsc":"node ./scripts/tsc.js","test":"npm run test:native","test:node":"npm run test:native","test:native":"npx jest --runInBand --verbose --config test/native/jest.config.js --forceExit","test:browser":"npx jest --runInBand --verbose --config test/browser/jest.config.js --forceExit","test:browser:ci":"npm run install:puppeteer && npm run test:browser","install:puppeteer":"npm install --save-dev jest-puppeteer puppeteer @types/puppeteer","prepare":"node ./scripts/tsc.js && node ./scripts/install.js","install":"node ./scripts/install.js"},"devDependencies":{"@types/crypto-js":"^3.1.43","@types/jest":"^27.0.1","@types/node":"^10.17.54","@types/prettier":"2.6.0","@types/puppeteer":"^5.4.4","@types/uuid":"^3.4.8","@types/ws":"^7.4.7","aws-sdk":"^2.848.0","jest":"^27.2.1","jest-puppeteer":"^5.0.4","jest-runtime":"^27.2.1","puppeteer":"^3.3.0","ts-jest":"^27.0.5","typedoc":"^0.22.18","typedoc-plugin-merge-modules":"^3.1.0","typescript":"^4.7.4","uuid":"^8.3.2","yargs":"^17.2.1"},"dependencies":{"@aws-sdk/util-utf8-browser":"^3.109.0","@httptoolkit/websocket-stream":"^6.0.0","axios":"^0.24.0","crypto-js":"^4.0.0","mqtt":"^4.3.7","cmake-js":"^6.3.2","tar":"^6.1.11"}}; + +/***/ }), /* 754 */ /***/ (function(__unusedmodule, exports) { @@ -88989,13 +92307,7 @@ exports.TraceStateImpl = TraceStateImpl; //# sourceMappingURL=tracestate-impl.js.map /***/ }), -/* 757 */ -/***/ (function() { - -eval("require")("aws-crt"); - - -/***/ }), +/* 757 */, /* 758 */, /* 759 */, /* 760 */ @@ -89394,40 +92706,38 @@ exports.waitUntilObjectNotExists = waitUntilObjectNotExists; /***/ }), /* 763 */, /* 764 */ -/***/ (function(module, __unusedexports, __webpack_require__) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { -// Generated by CoffeeScript 1.12.7 -(function() { - var NodeType, XMLDummy, XMLNode, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; - - XMLNode = __webpack_require__(257); - - NodeType = __webpack_require__(683); - - module.exports = XMLDummy = (function(superClass) { - extend(XMLDummy, superClass); - - function XMLDummy(parent) { - XMLDummy.__super__.constructor.call(this, parent); - this.type = NodeType.Dummy; - } - - XMLDummy.prototype.clone = function() { - return Object.create(this); - }; - - XMLDummy.prototype.toString = function(options) { - return ''; - }; - - return XMLDummy; - - })(XMLNode); - -}).call(this); +"use strict"; +/* + * Copyright The OpenTelemetry Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(748), exports); +//# sourceMappingURL=index.js.map /***/ }), /* 765 */ @@ -89545,7 +92855,7 @@ exports.DeleteBucketPolicyCommand = DeleteBucketPolicyCommand; XMLText = __webpack_require__(666); - XMLProcessingInstruction = __webpack_require__(419); + XMLProcessingInstruction = __webpack_require__(836); XMLDeclaration = __webpack_require__(612); @@ -90113,7 +93423,7 @@ function negate(bytes) { /* 771 */ /***/ (function(module) { -module.exports = {"_args":[["@aws-sdk/client-s3@3.51.0","/Users/s06173/go/src/github.com/whywaita/actions-cache-s3"]],"_from":"@aws-sdk/client-s3@3.51.0","_id":"@aws-sdk/client-s3@3.51.0","_inBundle":false,"_integrity":"sha512-BRbUJ1+SyXljadzAKpIukNnBiMMCJ39PXyAC+R8ShuMb6S0hhx8p9fQmvKwz+X1+4mrNY/AkRnCYROs4tFLXpw==","_location":"/@aws-sdk/client-s3","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"@aws-sdk/client-s3@3.51.0","name":"@aws-sdk/client-s3","escapedName":"@aws-sdk%2fclient-s3","scope":"@aws-sdk","rawSpec":"3.51.0","saveSpec":null,"fetchSpec":"3.51.0"},"_requiredBy":["/","/@actions/cache"],"_resolved":"https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.51.0.tgz","_spec":"3.51.0","_where":"/Users/s06173/go/src/github.com/whywaita/actions-cache-s3","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"url":"https://github.com/aws/aws-sdk-js-v3/issues"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.51.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/credential-provider-node":"3.51.0","@aws-sdk/eventstream-serde-browser":"3.50.0","@aws-sdk/eventstream-serde-config-resolver":"3.50.0","@aws-sdk/eventstream-serde-node":"3.50.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-blob-browser":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/hash-stream-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/md5-js":"3.50.0","@aws-sdk/middleware-apply-body-checksum":"3.50.0","@aws-sdk/middleware-bucket-endpoint":"3.51.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-expect-continue":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-location-constraint":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-sdk-s3":"3.50.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-signing":"3.50.0","@aws-sdk/middleware-ssec":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","@aws-sdk/util-waiter":"3.50.0","@aws-sdk/xml-builder":"3.49.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@aws-sdk/client-s3","react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"repository":{"type":"git","url":"git+https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"},"scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*","test":"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"3.51.0"}; +module.exports = {"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.51.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*","test":"yarn test:unit","test:e2e":"ts-mocha test/**/*.ispec.ts && karma start karma.conf.js","test:unit":"ts-mocha test/**/*.spec.ts"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.51.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/credential-provider-node":"3.51.0","@aws-sdk/eventstream-serde-browser":"3.50.0","@aws-sdk/eventstream-serde-config-resolver":"3.50.0","@aws-sdk/eventstream-serde-node":"3.50.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-blob-browser":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/hash-stream-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/md5-js":"3.50.0","@aws-sdk/middleware-apply-body-checksum":"3.50.0","@aws-sdk/middleware-bucket-endpoint":"3.51.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-expect-continue":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-location-constraint":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-sdk-s3":"3.50.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-signing":"3.50.0","@aws-sdk/middleware-ssec":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","@aws-sdk/util-waiter":"3.50.0","@aws-sdk/xml-builder":"3.49.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"}}; /***/ }), /* 772 */ @@ -90461,7 +93771,7 @@ tslib_1.__exportStar(__webpack_require__(789), exports); Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = __webpack_require__(661); -tslib_1.__exportStar(__webpack_require__(715), exports); +tslib_1.__exportStar(__webpack_require__(465), exports); tslib_1.__exportStar(__webpack_require__(842), exports); tslib_1.__exportStar(__webpack_require__(534), exports); @@ -91427,53 +94737,76 @@ exports.default = _default; /***/ }), /* 804 */, /* 805 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseQueryString = void 0; +function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\?/, ""); + if (querystring) { + for (const pair of querystring.split("&")) { + let [key, value = null] = pair.split("="); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } + else if (Array.isArray(query[key])) { + query[key].push(value); + } + else { + query[key] = [query[key], value]; + } + } + } + return query; +} +exports.parseQueryString = parseQueryString; + + +/***/ }), +/* 806 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.PutBucketLifecycleConfigurationCommand = void 0; -const middleware_apply_body_checksum_1 = __webpack_require__(879); -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class PutBucketLifecycleConfigurationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; +exports.Hash = void 0; +const util_buffer_from_1 = __webpack_require__(59); +const buffer_1 = __webpack_require__(293); +const crypto_1 = __webpack_require__(417); +class Hash { + constructor(algorithmIdentifier, secret) { + this.hash = secret ? crypto_1.createHmac(algorithmIdentifier, castSourceData(secret)) : crypto_1.createHash(algorithmIdentifier); } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - this.middlewareStack.use(middleware_apply_body_checksum_1.getApplyMd5BodyChecksumPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "PutBucketLifecycleConfigurationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutBucketLifecycleConfigurationRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + update(toHash, encoding) { + this.hash.update(castSourceData(toHash, encoding)); } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlPutBucketLifecycleConfigurationCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlPutBucketLifecycleConfigurationCommand(output, context); + digest() { + return Promise.resolve(this.hash.digest()); } } -exports.PutBucketLifecycleConfigurationCommand = PutBucketLifecycleConfigurationCommand; +exports.Hash = Hash; +function castSourceData(toCast, encoding) { + if (buffer_1.Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === "string") { + return util_buffer_from_1.fromString(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return util_buffer_from_1.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return util_buffer_from_1.fromArrayBuffer(toCast); +} /***/ }), -/* 806 */, /* 807 */, /* 808 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -91549,314 +94882,17 @@ exports.UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; /***/ }), /* 814 */ -/***/ (function(module) { +/***/ (function(__unusedmodule, exports) { -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if ( true && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.resolveEventStreamSerdeConfig = void 0; +const resolveEventStreamSerdeConfig = (input) => ({ + ...input, + eventStreamMarshaller: input.eventStreamSerdeProvider(input), +}); +exports.resolveEventStreamSerdeConfig = resolveEventStreamSerdeConfig; /***/ }), @@ -92391,7 +95427,24 @@ var __createBinding; /***/ }), -/* 818 */, +/* 818 */ +/***/ (function(module) { + +// Generated by CoffeeScript 1.12.7 +(function() { + module.exports = { + Disconnected: 1, + Preceding: 2, + Following: 4, + Contains: 8, + ContainedBy: 16, + ImplementationSpecific: 32 + }; + +}).call(this); + + +/***/ }), /* 819 */ /***/ (function(__unusedmodule, exports) { @@ -92690,75 +95743,71 @@ exports.DeleteBucketTaggingCommand = DeleteBucketTaggingCommand; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Collector = void 0; -const stream_1 = __webpack_require__(794); -class Collector extends stream_1.Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; - } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); - } -} -exports.Collector = Collector; +const tslib_1 = __webpack_require__(174); +tslib_1.__exportStar(__webpack_require__(907), exports); +tslib_1.__exportStar(__webpack_require__(570), exports); +tslib_1.__exportStar(__webpack_require__(962), exports); +tslib_1.__exportStar(__webpack_require__(103), exports); +tslib_1.__exportStar(__webpack_require__(508), exports); /***/ }), -/* 823 */, -/* 824 */ -/***/ (function(module) { - -module.exports = {"_args":[["@aws-sdk/client-sts@3.51.0","/Users/s06173/go/src/github.com/whywaita/actions-cache-s3"]],"_from":"@aws-sdk/client-sts@3.51.0","_id":"@aws-sdk/client-sts@3.51.0","_inBundle":false,"_integrity":"sha512-/dD+4tuolPQNiQArGa3PtVc8k6umfoY2YUVEt9eBzvnWnakbAtAoByiv3N9qxOph6511nZoz2MJV+ych4/eacA==","_location":"/@aws-sdk/client-sts","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"@aws-sdk/client-sts@3.51.0","name":"@aws-sdk/client-sts","escapedName":"@aws-sdk%2fclient-sts","scope":"@aws-sdk","rawSpec":"3.51.0","saveSpec":null,"fetchSpec":"3.51.0"},"_requiredBy":["/@aws-sdk/client-s3"],"_resolved":"https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.51.0.tgz","_spec":"3.51.0","_where":"/Users/s06173/go/src/github.com/whywaita/actions-cache-s3","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"bugs":{"url":"https://github.com/aws/aws-sdk-js-v3/issues"},"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/credential-provider-node":"3.51.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-sdk-sts":"3.50.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-signing":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"files":["dist-*"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","license":"Apache-2.0","main":"./dist-cjs/index.js","module":"./dist-es/index.js","name":"@aws-sdk/client-sts","react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"repository":{"type":"git","url":"git+https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"},"scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*"},"sideEffects":false,"types":"./dist-types/index.d.ts","typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"version":"3.51.0"}; - -/***/ }), -/* 825 */ -/***/ (function(__unusedmodule, exports) { +/* 823 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUnmarshalledStream = void 0; -function getUnmarshalledStream(source, options) { - return { - [Symbol.asyncIterator]: async function* () { - for await (const chunk of source) { - const message = options.eventMarshaller.unmarshall(chunk); - const { value: messageType } = message.headers[":message-type"]; - if (messageType === "error") { - const unmodeledError = new Error(message.headers[":error-message"].value || "UnknownError"); - unmodeledError.name = message.headers[":error-code"].value; - throw unmodeledError; - } - else if (messageType === "exception") { - const code = message.headers[":exception-type"].value; - const exception = { [code]: message }; - const deserializedException = await options.deserializer(exception); - if (deserializedException.$unknown) { - const error = new Error(options.toUtf8(message.body)); - error.name = code; - throw error; - } - throw deserializedException[code]; - } - else if (messageType === "event") { - const event = { - [message.headers[":event-type"].value]: message, - }; - const deserialized = await options.deserializer(event); - if (deserialized.$unknown) - continue; - yield deserialized; - } - else { - throw Error(`Unrecognizable event type: ${message.headers[":event-type"].value}`); - } +exports.getCanonicalHeaders = void 0; +const constants_1 = __webpack_require__(361); +const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { + const canonical = {}; + for (const headerName of Object.keys(headers).sort()) { + if (headers[headerName] == undefined) { + continue; + } + const canonicalHeaderName = headerName.toLowerCase(); + if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || + (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || + constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || + constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { + continue; } - }, - }; -} -exports.getUnmarshalledStream = getUnmarshalledStream; + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); + } + return canonical; +}; +exports.getCanonicalHeaders = getCanonicalHeaders; + + +/***/ }), +/* 824 */ +/***/ (function(module) { + +module.exports = {"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.51.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-*"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.51.0","@aws-sdk/credential-provider-node":"3.51.0","@aws-sdk/fetch-http-handler":"3.50.0","@aws-sdk/hash-node":"3.50.0","@aws-sdk/invalid-dependency":"3.50.0","@aws-sdk/middleware-content-length":"3.50.0","@aws-sdk/middleware-host-header":"3.50.0","@aws-sdk/middleware-logger":"3.50.0","@aws-sdk/middleware-retry":"3.51.0","@aws-sdk/middleware-sdk-sts":"3.50.0","@aws-sdk/middleware-serde":"3.50.0","@aws-sdk/middleware-signing":"3.50.0","@aws-sdk/middleware-stack":"3.50.0","@aws-sdk/middleware-user-agent":"3.50.0","@aws-sdk/node-config-provider":"3.51.0","@aws-sdk/node-http-handler":"3.50.0","@aws-sdk/protocol-http":"3.50.0","@aws-sdk/smithy-client":"3.50.0","@aws-sdk/types":"3.50.0","@aws-sdk/url-parser":"3.50.0","@aws-sdk/util-base64-browser":"3.49.0","@aws-sdk/util-base64-node":"3.49.0","@aws-sdk/util-body-length-browser":"3.49.0","@aws-sdk/util-body-length-node":"3.49.0","@aws-sdk/util-defaults-mode-browser":"3.50.0","@aws-sdk/util-defaults-mode-node":"3.51.0","@aws-sdk/util-user-agent-browser":"3.50.0","@aws-sdk/util-user-agent-node":"3.51.0","@aws-sdk/util-utf8-browser":"3.49.0","@aws-sdk/util-utf8-node":"3.49.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.49.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.3.5"},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}; + +/***/ }), +/* 825 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.prepareRequest = void 0; +const cloneRequest_1 = __webpack_require__(746); +const constants_1 = __webpack_require__(361); +const prepareRequest = (request) => { + request = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const headerName of Object.keys(request.headers)) { + if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request.headers[headerName]; + } + } + return request; +}; +exports.prepareRequest = prepareRequest; /***/ }), @@ -94510,9 +97559,57 @@ module.exports = require("url"); /***/ }), /* 836 */ -/***/ (function() { +/***/ (function(module, __unusedexports, __webpack_require__) { -eval("require")("@aws-sdk/signature-v4-crt"); +// Generated by CoffeeScript 1.12.7 +(function() { + var NodeType, XMLCharacterData, XMLProcessingInstruction, + extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; + + NodeType = __webpack_require__(683); + + XMLCharacterData = __webpack_require__(639); + + module.exports = XMLProcessingInstruction = (function(superClass) { + extend(XMLProcessingInstruction, superClass); + + function XMLProcessingInstruction(parent, target, value) { + XMLProcessingInstruction.__super__.constructor.call(this, parent); + if (target == null) { + throw new Error("Missing instruction target. " + this.debugInfo()); + } + this.type = NodeType.ProcessingInstruction; + this.target = this.stringify.insTarget(target); + this.name = this.target; + if (value) { + this.value = this.stringify.insValue(value); + } + } + + XMLProcessingInstruction.prototype.clone = function() { + return Object.create(this); + }; + + XMLProcessingInstruction.prototype.toString = function(options) { + return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(options)); + }; + + XMLProcessingInstruction.prototype.isEqualNode = function(node) { + if (!XMLProcessingInstruction.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) { + return false; + } + if (node.target !== this.target) { + return false; + } + return true; + }; + + return XMLProcessingInstruction; + + })(XMLCharacterData); + +}).call(this); /***/ }), @@ -95405,7 +98502,51 @@ exports.providerConfigFromInit = providerConfigFromInit; /***/ }), -/* 847 */, +/* 847 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetObjectAclCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class GetObjectAclCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "GetObjectAclCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetObjectAclRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetObjectAclOutput.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlGetObjectAclCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlGetObjectAclCommand(output, context); + } +} +exports.GetObjectAclCommand = GetObjectAclCommand; + + +/***/ }), /* 848 */ /***/ (function(__unusedmodule, exports) { @@ -95616,47 +98757,15 @@ exports.default = _default; /***/ }), /* 856 */, /* 857 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteBucketCorsCommand = void 0; -const middleware_bucket_endpoint_1 = __webpack_require__(234); -const middleware_serde_1 = __webpack_require__(347); -const smithy_client_1 = __webpack_require__(973); -const models_0_1 = __webpack_require__(832); -const Aws_restXml_1 = __webpack_require__(628); -class DeleteBucketCorsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "S3Client"; - const commandName = "DeleteBucketCorsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteBucketCorsRequest.filterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return Aws_restXml_1.serializeAws_restXmlDeleteBucketCorsCommand(input, context); - } - deserialize(output, context) { - return Aws_restXml_1.deserializeAws_restXmlDeleteBucketCorsCommand(output, context); - } -} -exports.DeleteBucketCorsCommand = DeleteBucketCorsCommand; +exports.escapeUri = void 0; +const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); +exports.escapeUri = escapeUri; +const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; /***/ }), @@ -95855,7 +98964,7 @@ class S3SignatureV4 { if (!this.sigv4aSigner) { let CrtSignerV4; try { - CrtSignerV4 = __webpack_require__(836).CrtSignerV4; + CrtSignerV4 = __webpack_require__(937).CrtSignerV4; if (typeof CrtSignerV4 !== "function") throw new Error(); } @@ -96097,7 +99206,7 @@ exports.getDefaultRetryQuota = getDefaultRetryQuota; Object.defineProperty(exports, "__esModule", { value: true }); exports.streamCollector = void 0; -const collector_1 = __webpack_require__(822); +const collector_1 = __webpack_require__(992); const streamCollector = (stream) => new Promise((resolve, reject) => { const collector = new collector_1.Collector(); stream.pipe(collector); @@ -96667,44 +99776,438 @@ exports.fromProcess = fromProcess; /***/ }), /* 886 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; -const loggerMiddleware = () => (next, context) => async (args) => { - const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; - const response = await next(args); - if (!logger) { - return response; - } - if (typeof logger.info === "function") { - const { $metadata, ...outputWithoutMetadata } = response.output; - logger.info({ - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata, +exports.Pkcs11Lib = exports.TlsConnectionOptions = exports.ServerTlsContext = exports.ClientTlsContext = exports.TlsContext = exports.TlsContextOptions = exports.SocketOptions = exports.ClientBootstrap = exports.InputStream = exports.is_alpn_available = exports.enable_logging = exports.LogLevel = exports.error_code_to_name = exports.error_code_to_string = exports.SocketDomain = exports.SocketType = exports.TlsVersion = void 0; +/** + * + * A module containing a grab bag of support for core network I/O functionality, including sockets, TLS, DNS, logging, + * error handling, streams, and connection -> thread mapping. + * + * Categories include: + * - Network: socket configuration + * - TLS: tls configuration + * - Logging: logging controls and configuration + * - IO: everything else + * + * @packageDocumentation + * @module io + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +const native_resource_1 = __webpack_require__(940); +const io_1 = __webpack_require__(573); +var io_2 = __webpack_require__(573); +Object.defineProperty(exports, "TlsVersion", { enumerable: true, get: function () { return io_2.TlsVersion; } }); +Object.defineProperty(exports, "SocketType", { enumerable: true, get: function () { return io_2.SocketType; } }); +Object.defineProperty(exports, "SocketDomain", { enumerable: true, get: function () { return io_2.SocketDomain; } }); +/** + * Convert a native error code into a human-readable string + * @param error_code - An error code returned from a native API call, or delivered + * via callback. + * @returns Long-form description of the error + * @see CrtError + * + * nodejs only. + * + * @category System + */ +function error_code_to_string(error_code) { + return binding_1.default.error_code_to_string(error_code); +} +exports.error_code_to_string = error_code_to_string; +/** + * Convert a native error code into a human-readable identifier + * @param error_code - An error code returned from a native API call, or delivered + * via callback. + * @return error name as a string + * @see CrtError + * + * nodejs only. + * + * @category System + */ +function error_code_to_name(error_code) { + return binding_1.default.error_code_to_name(error_code); +} +exports.error_code_to_name = error_code_to_name; +/** + * The amount of detail that will be logged + * @category Logging + */ +var LogLevel; +(function (LogLevel) { + /** No logging whatsoever. Equivalent to never calling {@link enable_logging}. */ + LogLevel[LogLevel["NONE"] = 0] = "NONE"; + /** Only fatals. In practice, this will not do much, as the process will log and then crash (intentionally) if a fatal condition occurs */ + LogLevel[LogLevel["FATAL"] = 1] = "FATAL"; + /** Only errors */ + LogLevel[LogLevel["ERROR"] = 2] = "ERROR"; + /** Only warnings and errors */ + LogLevel[LogLevel["WARN"] = 3] = "WARN"; + /** Information about connection/stream creation/destruction events */ + LogLevel[LogLevel["INFO"] = 4] = "INFO"; + /** Enough information to debug the chain of events a given network connection encounters */ + LogLevel[LogLevel["DEBUG"] = 5] = "DEBUG"; + /** Everything. Only use this if you really need to know EVERY single call */ + LogLevel[LogLevel["TRACE"] = 6] = "TRACE"; +})(LogLevel = exports.LogLevel || (exports.LogLevel = {})); +/** + * Enables logging of the native AWS CRT libraries. + * @param level - The logging level to filter to. It is not possible to log less than WARN. + * + * nodejs only. + * @category Logging + */ +function enable_logging(level) { + binding_1.default.io_logging_enable(level); +} +exports.enable_logging = enable_logging; +/** + * Returns true if ALPN is available on this platform natively + * @return true if ALPN is supported natively, false otherwise + * + * nodejs only. + * @category TLS +*/ +function is_alpn_available() { + return binding_1.default.is_alpn_available(); +} +exports.is_alpn_available = is_alpn_available; +/** + * Wraps a ```Readable``` for reading by native code, used to stream + * data into the AWS CRT libraries. + * + * nodejs only. + * @category IO + */ +class InputStream extends native_resource_1.NativeResource { + constructor(source) { + super(binding_1.default.io_input_stream_new(16 * 1024)); + this.source = source; + this.source.on('data', (data) => { + data = Buffer.isBuffer(data) ? data : new Buffer(data.toString(), 'utf8'); + binding_1.default.io_input_stream_append(this.native_handle(), data); + }); + this.source.on('end', () => { + binding_1.default.io_input_stream_append(this.native_handle(), undefined); }); } - return response; -}; -exports.loggerMiddleware = loggerMiddleware; -exports.loggerMiddlewareOptions = { - name: "loggerMiddleware", - tags: ["LOGGER"], - step: "initialize", - override: true, -}; -const getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(exports.loggerMiddleware(), exports.loggerMiddlewareOptions); - }, -}); -exports.getLoggerPlugin = getLoggerPlugin; - +} +exports.InputStream = InputStream; +/** + * Represents native resources required to bootstrap a client connection + * Things like a host resolver, event loop group, etc. There should only need + * to be 1 of these per application, in most cases. + * + * nodejs only. + * @category IO + */ +class ClientBootstrap extends native_resource_1.NativeResource { + constructor() { + super(binding_1.default.io_client_bootstrap_new()); + } +} +exports.ClientBootstrap = ClientBootstrap; +/** + * Standard Berkeley socket style options. + * + * nodejs only. + * @category Network +*/ +class SocketOptions extends native_resource_1.NativeResource { + constructor(type = io_1.SocketType.STREAM, domain = io_1.SocketDomain.IPV6, connect_timeout_ms = 5000, keepalive = false, keep_alive_interval_sec = 0, keep_alive_timeout_sec = 0, keep_alive_max_failed_probes = 0) { + super(binding_1.default.io_socket_options_new(type, domain, connect_timeout_ms, keep_alive_interval_sec, keep_alive_timeout_sec, keep_alive_max_failed_probes, keepalive)); + } +} +exports.SocketOptions = SocketOptions; +/** + * Options for creating a {@link ClientTlsContext} or {@link ServerTlsContext}. + * + * nodejs only. + * @category TLS + */ +class TlsContextOptions { + constructor() { + /** Minimum version of TLS to support. Uses OS/system default if unspecified. */ + this.min_tls_version = io_1.TlsVersion.Default; + /** List of ALPN protocols to be used on platforms which support ALPN */ + this.alpn_list = []; + /** + * In client mode, this turns off x.509 validation. Don't do this unless you are testing. + * It is much better to just override the default trust store and pass the self-signed + * certificate as the ca_file argument. + * + * In server mode (ServerTlsContext), this defaults to false. If you want to enforce mutual TLS on the server, + * set this to true. + */ + this.verify_peer = true; + } + /** + * Overrides the default system trust store. + * @param ca_dirpath - Only used on Unix-style systems where all trust anchors are + * stored in a directory (e.g. /etc/ssl/certs). + * @param ca_filepath - Single file containing all trust CAs, in PEM format + */ + override_default_trust_store_from_path(ca_dirpath, ca_filepath) { + this.ca_dirpath = ca_dirpath; + this.ca_filepath = ca_filepath; + } + /** + * Overrides the default system trust store. + * @param certificate_authority - String containing all trust CAs, in PEM format + */ + override_default_trust_store(certificate_authority) { + this.certificate_authority = certificate_authority; + } + /** + * Create options configured for mutual TLS in client mode, + * with client certificate and private key provided as in-memory strings. + * @param certificate - Client certificate file contents, in PEM format + * @param private_key - Client private key file contents, in PEM format + * + * @returns newly configured TlsContextOptions object + */ + static create_client_with_mtls(certificate, private_key) { + let opt = new TlsContextOptions(); + opt.certificate = certificate; + opt.private_key = private_key; + opt.verify_peer = true; + return opt; + } + /** + * Create options configured for mutual TLS in client mode, + * with client certificate and private key provided via filepath. + * @param certificate_filepath - Path to client certificate, in PEM format + * @param private_key_filepath - Path to private key, in PEM format + * + * @returns newly configured TlsContextOptions object + */ + static create_client_with_mtls_from_path(certificate_filepath, private_key_filepath) { + let opt = new TlsContextOptions(); + opt.certificate_filepath = certificate_filepath; + opt.private_key_filepath = private_key_filepath; + opt.verify_peer = true; + return opt; + } + /** + * Create options for mutual TLS in client mode, + * with client certificate and private key bundled in a single PKCS#12 file. + * @param pkcs12_filepath - Path to PKCS#12 file containing client certificate and private key. + * @param pkcs12_password - PKCS#12 password + * + * @returns newly configured TlsContextOptions object + */ + static create_client_with_mtls_pkcs12_from_path(pkcs12_filepath, pkcs12_password) { + let opt = new TlsContextOptions(); + opt.pkcs12_filepath = pkcs12_filepath; + opt.pkcs12_password = pkcs12_password; + opt.verify_peer = true; + return opt; + } + /** + * @deprecated Renamed [[create_client_with_mtls_pkcs12_from_path]] + */ + static create_client_with_mtls_pkcs_from_path(pkcs12_filepath, pkcs12_password) { + return this.create_client_with_mtls_pkcs12_from_path(pkcs12_filepath, pkcs12_password); + } + /** + * Create options configured for mutual TLS in client mode, + * using a PKCS#11 library for private key operations. + * + * NOTE: This configuration only works on Unix devices. + * + * @param options - PKCS#11 options + * + * @returns newly configured TlsContextOptions object + */ + static create_client_with_mtls_pkcs11(options) { + let opt = new TlsContextOptions(); + opt.pkcs11_options = options; + opt.verify_peer = true; + return opt; + } + /** + * Create options configured for mutual TLS in client mode, + * using a certificate in a Windows certificate store. + * + * NOTE: Windows only. + * + * @param certificate_path - Path to certificate in a Windows certificate store. + * The path must use backslashes and end with the certificate's thumbprint. + * Example: `CurrentUser\MY\A11F8A9B5DF5B98BA3508FBCA575D09570E0D2C6` + */ + static create_client_with_mtls_windows_cert_store_path(certificate_path) { + let opt = new TlsContextOptions(); + opt.windows_cert_store_path = certificate_path; + opt.verify_peer = true; + return opt; + } + /** + * Creates TLS context with peer verification disabled, along with a certificate and private key + * @param certificate_filepath - Path to certificate, in PEM format + * @param private_key_filepath - Path to private key, in PEM format + * + * @returns newly configured TlsContextOptions object + */ + static create_server_with_mtls_from_path(certificate_filepath, private_key_filepath) { + let opt = new TlsContextOptions(); + opt.certificate_filepath = certificate_filepath; + opt.private_key_filepath = private_key_filepath; + opt.verify_peer = false; + return opt; + } + /** + * Creates TLS context with peer verification disabled, along with a certificate and private key + * in PKCS#12 format + * @param pkcs12_filepath - Path to certificate, in PKCS#12 format + * @param pkcs12_password - PKCS#12 Password + * + * @returns newly configured TlsContextOptions object + */ + static create_server_with_mtls_pkcs_from_path(pkcs12_filepath, pkcs12_password) { + let opt = new TlsContextOptions(); + opt.pkcs12_filepath = pkcs12_filepath; + opt.pkcs12_password = pkcs12_password; + opt.verify_peer = false; + return opt; + } +} +exports.TlsContextOptions = TlsContextOptions; +/** + * Abstract base TLS context used for client/server TLS communications over sockets. + * + * @see ClientTlsContext + * @see ServerTlsContext + * + * nodejs only. + * @category TLS + */ +class TlsContext extends native_resource_1.NativeResource { + constructor(ctx_opt) { + super(binding_1.default.io_tls_ctx_new(ctx_opt.min_tls_version, ctx_opt.ca_filepath, ctx_opt.ca_dirpath, ctx_opt.certificate_authority, (ctx_opt.alpn_list && ctx_opt.alpn_list.length > 0) ? ctx_opt.alpn_list.join(';') : undefined, ctx_opt.certificate_filepath, ctx_opt.certificate, ctx_opt.private_key_filepath, ctx_opt.private_key, ctx_opt.pkcs12_filepath, ctx_opt.pkcs12_password, ctx_opt.pkcs11_options, ctx_opt.windows_cert_store_path, ctx_opt.verify_peer)); + } +} +exports.TlsContext = TlsContext; +/** + * TLS context used for client TLS communications over sockets. If no + * options are supplied, the context will default to enabling peer verification + * only. + * + * nodejs only. + * @category TLS + */ +class ClientTlsContext extends TlsContext { + constructor(ctx_opt) { + if (!ctx_opt) { + ctx_opt = new TlsContextOptions(); + ctx_opt.verify_peer = true; + } + super(ctx_opt); + } +} +exports.ClientTlsContext = ClientTlsContext; +/** + * TLS context used for server TLS communications over sockets. If no + * options are supplied, the context will default to disabling peer verification + * only. + * + * nodejs only. + * @category TLS + */ +class ServerTlsContext extends TlsContext { + constructor(ctx_opt) { + if (!ctx_opt) { + ctx_opt = new TlsContextOptions(); + ctx_opt.verify_peer = false; + } + super(ctx_opt); + } +} +exports.ServerTlsContext = ServerTlsContext; +/** + * TLS options that are unique to a given connection using a shared TlsContext. + * + * nodejs only. + * @category TLS + */ +class TlsConnectionOptions extends native_resource_1.NativeResource { + constructor(tls_ctx, server_name, alpn_list = []) { + super(binding_1.default.io_tls_connection_options_new(tls_ctx.native_handle(), server_name, (alpn_list && alpn_list.length > 0) ? alpn_list.join(';') : undefined)); + this.tls_ctx = tls_ctx; + this.server_name = server_name; + this.alpn_list = alpn_list; + } +} +exports.TlsConnectionOptions = TlsConnectionOptions; +/** + * Handle to a loaded PKCS#11 library. + * + * For most use cases, a single instance of Pkcs11Lib should be used + * for the lifetime of your application. + * + * nodejs only. + * @category TLS + */ +class Pkcs11Lib extends native_resource_1.NativeResource { + /** + * @param path - Path to PKCS#11 library. + * @param behavior - Specifies how `C_Initialize()` and `C_Finalize()` + * will be called on the PKCS#11 library. + */ + constructor(path, behavior = Pkcs11Lib.InitializeFinalizeBehavior.DEFAULT) { + super(binding_1.default.io_pkcs11_lib_new(path, behavior)); + } + /** + * Release the PKCS#11 library immediately, without waiting for the GC. + */ + close() { + binding_1.default.io_pkcs11_lib_close(this.native_handle()); + } +} +exports.Pkcs11Lib = Pkcs11Lib; +(function (Pkcs11Lib) { + /** + * Controls `C_Initialize()` and `C_Finalize()` are called on the PKCS#11 library. + */ + let InitializeFinalizeBehavior; + (function (InitializeFinalizeBehavior) { + /** + * Default behavior that accommodates most use cases. + * + * `C_Initialize()` is called on creation, and "already-initialized" + * errors are ignored. `C_Finalize()` is never called, just in case + * another part of your application is still using the PKCS#11 library. + */ + InitializeFinalizeBehavior[InitializeFinalizeBehavior["DEFAULT"] = 0] = "DEFAULT"; + /** + * Skip calling `C_Initialize()` and `C_Finalize()`. + * + * Use this if your application has already initialized the PKCS#11 library, + * and you do not want `C_Initialize()` called again. + */ + InitializeFinalizeBehavior[InitializeFinalizeBehavior["OMIT"] = 1] = "OMIT"; + /** + * `C_Initialize()` is called on creation and `C_Finalize()` is called on cleanup. + * + * If `C_Initialize()` reports that's it's already initialized, this is + * treated as an error. Use this if you need perfect cleanup (ex: running + * valgrind with --leak-check). + */ + InitializeFinalizeBehavior[InitializeFinalizeBehavior["STRICT"] = 2] = "STRICT"; + })(InitializeFinalizeBehavior = Pkcs11Lib.InitializeFinalizeBehavior || (Pkcs11Lib.InitializeFinalizeBehavior = {})); +})(Pkcs11Lib = exports.Pkcs11Lib || (exports.Pkcs11Lib = {})); +//# sourceMappingURL=io.js.map /***/ }), /* 887 */, @@ -96749,21 +100252,27 @@ exports.serializeFloat = serializeFloat; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __webpack_require__(187); -const endpoints_1 = __webpack_require__(751); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2019-06-10", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); +exports.getPayloadHash = void 0; +const is_array_buffer_1 = __webpack_require__(322); +const util_hex_encoding_1 = __webpack_require__(145); +const constants_1 = __webpack_require__(361); +const getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { + return headers[headerName]; + } + } + if (body == undefined) { + return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + } + else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { + const hashCtor = new hashConstructor(); + hashCtor.update(body); + return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + } + return constants_1.UNSIGNED_PAYLOAD; }; -exports.getRuntimeConfig = getRuntimeConfig; +exports.getPayloadHash = getPayloadHash; /***/ }), @@ -97580,82 +101089,57 @@ function descending(a, b) /***/ }), /* 905 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); + + +/***/ }), +/* 906 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0; -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -var invalid_span_constants_1 = __webpack_require__(685); -var NonRecordingSpan_1 = __webpack_require__(437); -var VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i; -var VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i; -function isValidTraceId(traceId) { - return VALID_TRACEID_REGEX.test(traceId) && traceId !== invalid_span_constants_1.INVALID_TRACEID; +exports.GetBucketTaggingCommand = void 0; +const middleware_bucket_endpoint_1 = __webpack_require__(234); +const middleware_serde_1 = __webpack_require__(347); +const smithy_client_1 = __webpack_require__(973); +const models_0_1 = __webpack_require__(832); +const Aws_restXml_1 = __webpack_require__(628); +class GetBucketTaggingCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "S3Client"; + const commandName = "GetBucketTaggingCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetBucketTaggingRequest.filterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetBucketTaggingOutput.filterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return Aws_restXml_1.serializeAws_restXmlGetBucketTaggingCommand(input, context); + } + deserialize(output, context) { + return Aws_restXml_1.deserializeAws_restXmlGetBucketTaggingCommand(output, context); + } } -exports.isValidTraceId = isValidTraceId; -function isValidSpanId(spanId) { - return VALID_SPANID_REGEX.test(spanId) && spanId !== invalid_span_constants_1.INVALID_SPANID; -} -exports.isValidSpanId = isValidSpanId; -/** - * Returns true if this {@link SpanContext} is valid. - * @return true if this {@link SpanContext} is valid. - */ -function isSpanContextValid(spanContext) { - return (isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId)); -} -exports.isSpanContextValid = isSpanContextValid; -/** - * Wrap the given {@link SpanContext} in a new non-recording {@link Span} - * - * @param spanContext span context to be wrapped - * @returns a new non-recording {@link Span} with the provided context - */ -function wrapSpanContext(spanContext) { - return new NonRecordingSpan_1.NonRecordingSpan(spanContext); -} -exports.wrapSpanContext = wrapSpanContext; -//# sourceMappingURL=spancontext-utils.js.map +exports.GetBucketTaggingCommand = GetBucketTaggingCommand; -/***/ }), -/* 906 */ -/***/ (function(__unusedmodule, exports) { - -"use strict"; - -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=attributes.js.map /***/ }), /* 907 */ @@ -97672,7 +101156,7 @@ const DecodeAuthorizationMessageCommand_1 = __webpack_require__(491); const GetAccessKeyInfoCommand_1 = __webpack_require__(194); const GetCallerIdentityCommand_1 = __webpack_require__(133); const GetFederationTokenCommand_1 = __webpack_require__(629); -const GetSessionTokenCommand_1 = __webpack_require__(573); +const GetSessionTokenCommand_1 = __webpack_require__(222); const STSClient_1 = __webpack_require__(570); class STS extends STSClient_1.STSClient { assumeRole(args, optionsOrCb, cb) { @@ -97793,7 +101277,46 @@ exports.STS = STS; /***/ }), /* 908 */, -/* 909 */, +/* 909 */ +/***/ (function(__unusedmodule, exports) { + +// Generated by CoffeeScript 1.12.7 +(function() { + "use strict"; + var prefixMatch; + + prefixMatch = new RegExp(/(?!xmlns)^.*:/); + + exports.normalize = function(str) { + return str.toLowerCase(); + }; + + exports.firstCharLowerCase = function(str) { + return str.charAt(0).toLowerCase() + str.slice(1); + }; + + exports.stripPrefix = function(str) { + return str.replace(prefixMatch, ''); + }; + + exports.parseNumbers = function(str) { + if (!isNaN(str)) { + str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str); + } + return str; + }; + + exports.parseBooleans = function(str) { + if (/^(?:true|false)$/i.test(str)) { + str = str.toLowerCase() === 'true'; + } + return str; + }; + +}).call(this); + + +/***/ }), /* 910 */ /***/ (function(__unusedmodule, exports) { @@ -97831,7 +101354,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.TraceAPI = void 0; var global_utils_1 = __webpack_require__(94); var ProxyTracerProvider_1 = __webpack_require__(402); -var spancontext_utils_1 = __webpack_require__(905); +var spancontext_utils_1 = __webpack_require__(479); var context_utils_1 = __webpack_require__(456); var diag_1 = __webpack_require__(401); var API_NAME = 'trace'; @@ -97900,7 +101423,7 @@ exports.TraceAPI = TraceAPI; Object.defineProperty(exports, "__esModule", { value: true }); exports.readableStreamHasher = void 0; -const HashCalculator_1 = __webpack_require__(222); +const HashCalculator_1 = __webpack_require__(350); const readableStreamHasher = (hashCtor, readableStream) => { const hash = new hashCtor(); const hashCalculator = new HashCalculator_1.HashCalculator(hash); @@ -98470,34 +101993,93 @@ exports.ListMultipartUploadsCommand = ListMultipartUploadsCommand; /***/ }), /* 922 */ -/***/ (function(__unusedmodule, exports) { +/***/ (function(__unusedmodule, exports, __webpack_require__) { "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.AbortSignal = void 0; -class AbortSignal { - constructor() { - this.onabort = null; - this._aborted = false; - Object.defineProperty(this, "_aborted", { - value: false, - writable: true, - }); - } - get aborted() { - return this._aborted; - } - abort() { - this._aborted = true; - if (this.onabort) { - this.onabort(this); - this.onabort = null; - } +exports.BufferedEventEmitter = void 0; +/** + * Module for base types related to event emission + * + * @packageDocumentation + * @module event + */ +const events_1 = __webpack_require__(614); +/** + * @internal + */ +class BufferedEvent { + constructor(event, args) { + this.event = event; + this.args = args; } } -exports.AbortSignal = AbortSignal; - +/** + * Provides buffered event emitting semantics, similar to many Node-style streams. + * Subclasses will override EventEmitter.on() and trigger uncorking. + * NOTE: It is HIGHLY recommended that uncorking should always be done via + * ```process.nextTick()```, not during the EventEmitter.on() call. + * + * See also: [Node writable streams](https://nodejs.org/api/stream.html#stream_writable_cork) + * + * @category Events + */ +class BufferedEventEmitter extends events_1.EventEmitter { + constructor() { + super(); + this.corked = false; + } + /** + * Forces all written events to be buffered in memory. The buffered data will be + * flushed when {@link BufferedEventEmitter.uncork} is called. + */ + cork() { + this.corked = true; + } + /** + * Flushes all data buffered since {@link BufferedEventEmitter.cork} was called. + * + * NOTE: It is HIGHLY recommended that uncorking should always be done via + * ``` process.nextTick```, not during the ```EventEmitter.on()``` call. + */ + uncork() { + this.corked = false; + while (this.eventQueue) { + const event = this.eventQueue; + super.emit(event.event, ...event.args); + this.eventQueue = this.eventQueue.next; + } + } + /** + * Synchronously calls each of the listeners registered for the event key supplied + * in registration order. If the {@link BufferedEventEmitter} is currently corked, + * the event will be buffered until {@link BufferedEventEmitter.uncork} is called. + * @param event The name of the event + * @param args Event payload + */ + emit(event, ...args) { + if (this.corked) { + // queue requests in order + let last = this.lastQueuedEvent; + this.lastQueuedEvent = new BufferedEvent(event, args); + if (last) { + last.next = this.lastQueuedEvent; + } + else { + this.eventQueue = this.lastQueuedEvent; + } + return this.listeners(event).length > 0; + } + return super.emit(event, ...args); + } +} +exports.BufferedEventEmitter = BufferedEventEmitter; +//# sourceMappingURL=event.js.map /***/ }), /* 923 */ @@ -98763,7 +102345,188 @@ exports.Pattern = Pattern; /***/ }), /* 924 */, /* 925 */, -/* 926 */, +/* 926 */ +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Generated by CoffeeScript 1.12.7 +(function() { + var NodeType, WriterState, XMLStreamWriter, XMLWriterBase, + extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; + + NodeType = __webpack_require__(683); + + XMLWriterBase = __webpack_require__(671); + + WriterState = __webpack_require__(518); + + module.exports = XMLStreamWriter = (function(superClass) { + extend(XMLStreamWriter, superClass); + + function XMLStreamWriter(stream, options) { + this.stream = stream; + XMLStreamWriter.__super__.constructor.call(this, options); + } + + XMLStreamWriter.prototype.endline = function(node, options, level) { + if (node.isLastRootNode && options.state === WriterState.CloseTag) { + return ''; + } else { + return XMLStreamWriter.__super__.endline.call(this, node, options, level); + } + }; + + XMLStreamWriter.prototype.document = function(doc, options) { + var child, i, j, k, len, len1, ref, ref1, results; + ref = doc.children; + for (i = j = 0, len = ref.length; j < len; i = ++j) { + child = ref[i]; + child.isLastRootNode = i === doc.children.length - 1; + } + options = this.filterOptions(options); + ref1 = doc.children; + results = []; + for (k = 0, len1 = ref1.length; k < len1; k++) { + child = ref1[k]; + results.push(this.writeChildNode(child, options, 0)); + } + return results; + }; + + XMLStreamWriter.prototype.attribute = function(att, options, level) { + return this.stream.write(XMLStreamWriter.__super__.attribute.call(this, att, options, level)); + }; + + XMLStreamWriter.prototype.cdata = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.cdata.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.comment = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.comment.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.declaration = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.declaration.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.docType = function(node, options, level) { + var child, j, len, ref; + level || (level = 0); + this.openNode(node, options, level); + options.state = WriterState.OpenTag; + this.stream.write(this.indent(node, options, level)); + this.stream.write(' 0) { + this.stream.write(' ['); + this.stream.write(this.endline(node, options, level)); + options.state = WriterState.InsideTag; + ref = node.children; + for (j = 0, len = ref.length; j < len; j++) { + child = ref[j]; + this.writeChildNode(child, options, level + 1); + } + options.state = WriterState.CloseTag; + this.stream.write(']'); + } + options.state = WriterState.CloseTag; + this.stream.write(options.spaceBeforeSlash + '>'); + this.stream.write(this.endline(node, options, level)); + options.state = WriterState.None; + return this.closeNode(node, options, level); + }; + + XMLStreamWriter.prototype.element = function(node, options, level) { + var att, child, childNodeCount, firstChildNode, j, len, name, prettySuppressed, ref, ref1; + level || (level = 0); + this.openNode(node, options, level); + options.state = WriterState.OpenTag; + this.stream.write(this.indent(node, options, level) + '<' + node.name); + ref = node.attribs; + for (name in ref) { + if (!hasProp.call(ref, name)) continue; + att = ref[name]; + this.attribute(att, options, level); + } + childNodeCount = node.children.length; + firstChildNode = childNodeCount === 0 ? null : node.children[0]; + if (childNodeCount === 0 || node.children.every(function(e) { + return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === ''; + })) { + if (options.allowEmpty) { + this.stream.write('>'); + options.state = WriterState.CloseTag; + this.stream.write(''); + } else { + options.state = WriterState.CloseTag; + this.stream.write(options.spaceBeforeSlash + '/>'); + } + } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) { + this.stream.write('>'); + options.state = WriterState.InsideTag; + options.suppressPrettyCount++; + prettySuppressed = true; + this.writeChildNode(firstChildNode, options, level + 1); + options.suppressPrettyCount--; + prettySuppressed = false; + options.state = WriterState.CloseTag; + this.stream.write(''); + } else { + this.stream.write('>' + this.endline(node, options, level)); + options.state = WriterState.InsideTag; + ref1 = node.children; + for (j = 0, len = ref1.length; j < len; j++) { + child = ref1[j]; + this.writeChildNode(child, options, level + 1); + } + options.state = WriterState.CloseTag; + this.stream.write(this.indent(node, options, level) + ''); + } + this.stream.write(this.endline(node, options, level)); + options.state = WriterState.None; + return this.closeNode(node, options, level); + }; + + XMLStreamWriter.prototype.processingInstruction = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.raw = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.raw.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.text = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.text.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.dtdAttList = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.dtdElement = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.dtdEntity = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this, node, options, level)); + }; + + XMLStreamWriter.prototype.dtdNotation = function(node, options, level) { + return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this, node, options, level)); + }; + + return XMLStreamWriter; + + })(XMLWriterBase); + +}).call(this); + + +/***/ }), /* 927 */ /***/ (function(__unusedmodule, exports) { @@ -98874,20 +102637,314 @@ exports.SocketTimeout = 5000; /***/ }), /* 932 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(module) { -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultRetryDecider = void 0; -const service_error_classification_1 = __webpack_require__(223); -const defaultRetryDecider = (error) => { - if (!error) { - return false; - } - return service_error_classification_1.isRetryableByTrait(error) || service_error_classification_1.isClockSkewError(error) || service_error_classification_1.isThrottlingError(error) || service_error_classification_1.isTransientError(error); -}; -exports.defaultRetryDecider = defaultRetryDecider; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); +}); /***/ }), @@ -100553,7 +104610,17 @@ module.exports.parseURL = function (input, options) { /***/ }), -/* 937 */, +/* 937 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = __webpack_require__(79); +tslib_1.__exportStar(__webpack_require__(646), exports); + + +/***/ }), /* 938 */ /***/ (function(__unusedmodule, exports) { @@ -100627,7 +104694,59 @@ exports.PutObjectLegalHoldCommand = PutObjectLegalHoldCommand; /***/ }), -/* 940 */, +/* 940 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.NativeResourceMixin = exports.NativeResource = void 0; +/** + * Represents an object allocated natively inside the AWS CRT. + * @internal + */ +class NativeResource { + constructor(handle) { + this.handle = handle; + } + /** @internal */ + native_handle() { + return this.handle; + } +} +exports.NativeResource = NativeResource; +/** + * Represents an object allocated natively inside the AWS CRT which also + * needs a node/TS base class + * @internal + */ +function NativeResourceMixin(Base) { + /** @internal */ + return class extends Base { + /** @internal */ + constructor(...args) { + const handle = args.shift(); + super(...args); + this._handle = handle; + } + /** @internal */ + _super(handle) { + this._handle = handle; + } + /** @internal */ + native_handle() { + return this._handle; + } + }; +} +exports.NativeResourceMixin = NativeResourceMixin; +//# sourceMappingURL=native_resource.js.map + +/***/ }), /* 941 */, /* 942 */, /* 943 */, @@ -101139,7 +105258,7 @@ Object.defineProperty(exports, "parse", { } }); -var _v = _interopRequireDefault(__webpack_require__(173)); +var _v = _interopRequireDefault(__webpack_require__(547)); var _v2 = _interopRequireDefault(__webpack_require__(298)); @@ -101297,9 +105416,40 @@ exports.GetObjectLockConfigurationCommand = GetObjectLockConfigurationCommand; /***/ }), /* 955 */, /* 956 */ -/***/ (function(module) { +/***/ (function(module, __unusedexports, __webpack_require__) { + +// Generated by CoffeeScript 1.12.7 +(function() { + var NodeType, XMLDummy, XMLNode, + extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + hasProp = {}.hasOwnProperty; + + XMLNode = __webpack_require__(257); + + NodeType = __webpack_require__(683); + + module.exports = XMLDummy = (function(superClass) { + extend(XMLDummy, superClass); + + function XMLDummy(parent) { + XMLDummy.__super__.constructor.call(this, parent); + this.type = NodeType.Dummy; + } + + XMLDummy.prototype.clone = function() { + return Object.create(this); + }; + + XMLDummy.prototype.toString = function(options) { + return ''; + }; + + return XMLDummy; + + })(XMLNode); + +}).call(this); -module.exports = require("process"); /***/ }), /* 957 */ @@ -101331,7 +105481,21 @@ var SpanStatusCode; //# sourceMappingURL=status.js.map /***/ }), -/* 958 */, +/* 958 */ +/***/ (function(__unusedmodule, exports) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getHostnameFromVariants = void 0; +const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; +}; +exports.getHostnameFromVariants = getHostnameFromVariants; + + +/***/ }), /* 959 */, /* 960 */ /***/ (function(__unusedmodule, exports) { @@ -101510,7 +105674,7 @@ tslib_1.__exportStar(__webpack_require__(491), exports); tslib_1.__exportStar(__webpack_require__(194), exports); tslib_1.__exportStar(__webpack_require__(133), exports); tslib_1.__exportStar(__webpack_require__(629), exports); -tslib_1.__exportStar(__webpack_require__(573), exports); +tslib_1.__exportStar(__webpack_require__(222), exports); /***/ }), @@ -105426,15 +109590,49 @@ var __createBinding; "use strict"; +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.loadConfig = void 0; -const property_provider_1 = __webpack_require__(17); -const fromEnv_1 = __webpack_require__(698); -const fromSharedConfigFiles_1 = __webpack_require__(389); -const fromStatic_1 = __webpack_require__(83); -const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => property_provider_1.memoize(property_provider_1.chain(fromEnv_1.fromEnv(environmentVariableSelector), fromSharedConfigFiles_1.fromSharedConfigFiles(configFileSelector, configuration), fromStatic_1.fromStatic(defaultValue))); -exports.loadConfig = loadConfig; - +exports.crc32c = exports.crc32 = void 0; +/** + * + * A module containing various checksum implementations intended for streaming payloads + * + * @packageDocumentation + * @module checksums + * @mergeTarget + */ +const binding_1 = __importDefault(__webpack_require__(513)); +/** + * Computes an crc32 checksum. + * + * @param data The data to checksum + * @param previous previous crc32 checksum result. Used if you are buffering large input. + * + * @category Crypto + */ +function crc32(data, previous) { + return binding_1.default.checksums_crc32(data, previous); +} +exports.crc32 = crc32; +/** + * Computes a crc32c checksum. + * + * @param data The data to checksum + * @param previous previous crc32c checksum result. Used if you are buffering large input. + * + * @category Crypto + */ +function crc32c(data, previous) { + return binding_1.default.checksums_crc32c(data, previous); +} +exports.crc32c = crc32c; +//# sourceMappingURL=checksums.js.map /***/ }), /* 985 */ @@ -105780,53 +109978,321 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(10), exports); +__exportStar(__webpack_require__(764), exports); //# sourceMappingURL=index.js.map /***/ }), -/* 991 */, +/* 991 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.defaultRegionInfoProvider = void 0; +const config_resolver_1 = __webpack_require__(529); +const regionHash = { + "ap-northeast-1": { + variants: [ + { + hostname: "portal.sso.ap-northeast-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-northeast-1", + }, + "ap-northeast-2": { + variants: [ + { + hostname: "portal.sso.ap-northeast-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-northeast-2", + }, + "ap-south-1": { + variants: [ + { + hostname: "portal.sso.ap-south-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-south-1", + }, + "ap-southeast-1": { + variants: [ + { + hostname: "portal.sso.ap-southeast-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-southeast-1", + }, + "ap-southeast-2": { + variants: [ + { + hostname: "portal.sso.ap-southeast-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-southeast-2", + }, + "ca-central-1": { + variants: [ + { + hostname: "portal.sso.ca-central-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ca-central-1", + }, + "eu-central-1": { + variants: [ + { + hostname: "portal.sso.eu-central-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-central-1", + }, + "eu-north-1": { + variants: [ + { + hostname: "portal.sso.eu-north-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-north-1", + }, + "eu-west-1": { + variants: [ + { + hostname: "portal.sso.eu-west-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-1", + }, + "eu-west-2": { + variants: [ + { + hostname: "portal.sso.eu-west-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-2", + }, + "eu-west-3": { + variants: [ + { + hostname: "portal.sso.eu-west-3.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-3", + }, + "sa-east-1": { + variants: [ + { + hostname: "portal.sso.sa-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "sa-east-1", + }, + "us-east-1": { + variants: [ + { + hostname: "portal.sso.us-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-1", + }, + "us-east-2": { + variants: [ + { + hostname: "portal.sso.us-east-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-2", + }, + "us-gov-east-1": { + variants: [ + { + hostname: "portal.sso.us-gov-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-gov-east-1", + }, + "us-gov-west-1": { + variants: [ + { + hostname: "portal.sso.us-gov-west-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-gov-west-1", + }, + "us-west-2": { + variants: [ + { + hostname: "portal.sso.us-west-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-west-2", + }, +}; +const partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com.cn", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com.cn", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"], + }, + ], + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.c2s.ic.gov", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.c2s.ic.gov", + tags: ["fips"], + }, + ], + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.sc2s.sgov.gov", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", + tags: ["fips"], + }, + ], + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-west-1"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, +}; +const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, { + ...options, + signingService: "awsssoportal", + regionHash, + partitionHash, +}); +exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + + +/***/ }), /* 992 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { -// Generated by CoffeeScript 1.12.7 -(function() { - "use strict"; - var builder, defaults, parser, processors, - extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, - hasProp = {}.hasOwnProperty; +"use strict"; - defaults = __webpack_require__(791); - - builder = __webpack_require__(860); - - parser = __webpack_require__(549); - - processors = __webpack_require__(350); - - exports.defaults = defaults.defaults; - - exports.processors = processors; - - exports.ValidationError = (function(superClass) { - extend(ValidationError, superClass); - - function ValidationError(message) { - this.message = message; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Collector = void 0; +const stream_1 = __webpack_require__(794); +class Collector extends stream_1.Writable { + constructor() { + super(...arguments); + this.bufferedBytes = []; } - - return ValidationError; - - })(Error); - - exports.Builder = builder.Builder; - - exports.Parser = parser.Parser; - - exports.parseString = parser.parseString; - - exports.parseStringPromise = parser.parseStringPromise; - -}).call(this); + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } +} +exports.Collector = Collector; /***/ }), @@ -105847,7 +110313,29 @@ exports.resolveUserAgentConfig = resolveUserAgentConfig; /***/ }), -/* 994 */, +/* 994 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; +const tslib_1 = __webpack_require__(79); +tslib_1.__exportStar(__webpack_require__(244), exports); +var getCanonicalHeaders_1 = __webpack_require__(823); +Object.defineProperty(exports, "getCanonicalHeaders", { enumerable: true, get: function () { return getCanonicalHeaders_1.getCanonicalHeaders; } }); +var getCanonicalQuery_1 = __webpack_require__(363); +Object.defineProperty(exports, "getCanonicalQuery", { enumerable: true, get: function () { return getCanonicalQuery_1.getCanonicalQuery; } }); +var getPayloadHash_1 = __webpack_require__(892); +Object.defineProperty(exports, "getPayloadHash", { enumerable: true, get: function () { return getPayloadHash_1.getPayloadHash; } }); +var moveHeadersToQuery_1 = __webpack_require__(546); +Object.defineProperty(exports, "moveHeadersToQuery", { enumerable: true, get: function () { return moveHeadersToQuery_1.moveHeadersToQuery; } }); +var prepareRequest_1 = __webpack_require__(825); +Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function () { return prepareRequest_1.prepareRequest; } }); +tslib_1.__exportStar(__webpack_require__(677), exports); + + +/***/ }), /* 995 */ /***/ (function(__unusedmodule, exports) { @@ -106446,7 +110934,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); var uuid = __webpack_require__(951); var util = __webpack_require__(669); var tslib = __webpack_require__(44); -var xml2js = __webpack_require__(992); +var xml2js = __webpack_require__(338); var abortController = __webpack_require__(819); var coreUtil = __webpack_require__(900); var logger$1 = __webpack_require__(492); diff --git a/package-lock.json b/package-lock.json index fb4c5c1..94d45b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "cache-s3", - "version": "1.0.0", + "name": "actions-s3-caching", + "version": "1.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "cache-s3", - "version": "1.0.0", + "name": "actions-s3-caching", + "version": "1.0.3", "license": "MIT", "dependencies": { "@actions/cache": "https://gitpkg.now.sh/whywaita/toolkit/packages/cache?0dcc12b18a1f353a46b14188aa30a2c28c57ae74", @@ -14,7 +14,8 @@ "@actions/exec": "^1.0.1", "@actions/io": "^1.1.0", "@aws-sdk/client-s3": "^3.51.0", - "@aws-sdk/credential-providers": "^3.50.0", + "@aws-sdk/client-sts": "^3.50.0", + "@aws-sdk/credential-provider-web-identity": "^3.50.0", "@aws-sdk/types": "^3.50.0" }, "devDependencies": { @@ -209,762 +210,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, - "node_modules/@aws-sdk/client-cognito-identity": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.186.0.tgz", - "integrity": "sha512-WGWGAozf4f+znTmV3UC7F/3wvZeO2Hcza1v4zy/yD83yoYtMoSc+X71lDw6SS56snPsxHkXRSppvqliOL7J0kA==", - "dependencies": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/client-sts": "3.186.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-node": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/abort-controller": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.186.0.tgz", - "integrity": "sha512-JFvvvtEcbYOvVRRXasi64Dd1VcOz5kJmPvtzsJ+HzMHvPbGGs/aopOJAZQJMJttzJmJwVTay0QL6yag9Kk8nYA==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sso": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.186.0.tgz", - "integrity": "sha512-qwLPomqq+fjvp42izzEpBEtGL2+dIlWH5pUCteV55hTEwHgo+m9LJPIrMWkPeoMBzqbNiu5n6+zihnwYlCIlEA==", - "dependencies": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/client-sts": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.186.0.tgz", - "integrity": "sha512-lyAPI6YmIWWYZHQ9fBZ7QgXjGMTtktL5fk8kOcZ98ja+8Vu0STH1/u837uxqvZta8/k0wijunIL3jWUhjsNRcg==", - "dependencies": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-node": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-sdk-sts": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "entities": "2.2.0", - "fast-xml-parser": "3.19.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/config-resolver": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.186.0.tgz", - "integrity": "sha512-l8DR7Q4grEn1fgo2/KvtIfIHJS33HGKPQnht8OPxkl0dMzOJ0jxjOw/tMbrIcPnr2T3Fi7LLcj3dY1Fo1poruQ==", - "dependencies": { - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-config-provider": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.186.0.tgz", - "integrity": "sha512-N9LPAqi1lsQWgxzmU4NPvLPnCN5+IQ3Ai1IFf3wM6FFPNoSUd1kIA2c6xaf0BE7j5Kelm0raZOb4LnV3TBAv+g==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-imds": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.186.0.tgz", - "integrity": "sha512-iJeC7KrEgPPAuXjCZ3ExYZrRQvzpSdTZopYgUm5TnNZ8S1NU/4nvv5xVy61JvMj3JQAeG8UDYYgC421Foc8wQw==", - "dependencies": { - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.186.0.tgz", - "integrity": "sha512-ecrFh3MoZhAj5P2k/HXo/hMJQ3sfmvlommzXuZ/D1Bj2yMcyWuBhF1A83Fwd2gtYrWRrllsK3IOMM5Jr8UIVZA==", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.186.0.tgz", - "integrity": "sha512-HIt2XhSRhEvVgRxTveLCzIkd/SzEBQfkQ6xMJhkBtfJw1o3+jeCk+VysXM0idqmXytctL0O3g9cvvTHOsUgxOA==", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-ini": "3.186.0", - "@aws-sdk/credential-provider-process": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.186.0.tgz", - "integrity": "sha512-ATRU6gbXvWC1TLnjOEZugC/PBXHBoZgBADid4fDcEQY1vF5e5Ux1kmqkJxyHtV5Wl8sE2uJfwWn+FlpUHRX67g==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.186.0.tgz", - "integrity": "sha512-mJ+IZljgXPx99HCmuLgBVDPLepHrwqnEEC/0wigrLCx6uz3SrAWmGZsNbxSEtb2CFSAaczlTHcU/kIl7XZIyeQ==", - "dependencies": { - "@aws-sdk/client-sso": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.186.0.tgz", - "integrity": "sha512-KqzI5eBV72FE+8SuOQAu+r53RXGVHg4AuDJmdXyo7Gc4wS/B9FNElA8jVUjjYgVnf0FSiri+l41VzQ44dCopSA==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/fetch-http-handler": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.186.0.tgz", - "integrity": "sha512-k2v4AAHRD76WnLg7arH94EvIclClo/YfuqO7NoQ6/KwOxjRhs4G6TgIsAZ9E0xmqoJoV81Xqy8H8ldfy9F8LEw==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/querystring-builder": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/hash-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.186.0.tgz", - "integrity": "sha512-G3zuK8/3KExDTxqrGqko+opOMLRF0BwcwekV/wm3GKIM/NnLhHblBs2zd/yi7VsEoWmuzibfp6uzxgFpEoJ87w==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/invalid-dependency": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.186.0.tgz", - "integrity": "sha512-hjeZKqORhG2DPWYZ776lQ9YO3gjw166vZHZCZU/43kEYaCZHsF4mexHwHzreAY6RfS25cH60Um7dUh1aeVIpkw==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/is-array-buffer": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.186.0.tgz", - "integrity": "sha512-fObm+P6mjWYzxoFY4y2STHBmSdgKbIAXez0xope563mox62I8I4hhVPUCaDVydXvDpJv8tbedJMk0meJl22+xA==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-content-length": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.186.0.tgz", - "integrity": "sha512-Ol3c1ks3IK1s+Okc/rHIX7w2WpXofuQdoAEme37gHeml+8FtUlWH/881h62xfMdf+0YZpRuYv/eM7lBmJBPNJw==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.186.0.tgz", - "integrity": "sha512-5bTzrRzP2IGwyF3QCyMGtSXpOOud537x32htZf344IvVjrqZF/P8CDfGTkHkeBCIH+wnJxjK+l/QBb3ypAMIqQ==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-logger": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.186.0.tgz", - "integrity": "sha512-/1gGBImQT8xYh80pB7QtyzA799TqXtLZYQUohWAsFReYB7fdh5o+mu2rX0FNzZnrLIh2zBUNs4yaWGsnab4uXg==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-retry": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.186.0.tgz", - "integrity": "sha512-/VI9emEKhhDzlNv9lQMmkyxx3GjJ8yPfXH3HuAeOgM1wx1BjCTLRYEWnTbQwq7BDzVENdneleCsGAp7yaj80Aw==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/service-error-classification": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1", - "uuid": "^8.3.2" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-sdk-sts": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.186.0.tgz", - "integrity": "sha512-GDcK0O8rjtnd+XRGnxzheq1V2jk4Sj4HtjrxW/ROyhzLOAOyyxutBt+/zOpDD6Gba3qxc69wE+Cf/qngOkEkDw==", - "dependencies": { - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-serde": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.186.0.tgz", - "integrity": "sha512-6FEAz70RNf18fKL5O7CepPSwTKJEIoyG9zU6p17GzKMgPeFsxS5xO94Hcq5tV2/CqeHliebjqhKY7yi+Pgok7g==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-signing": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.186.0.tgz", - "integrity": "sha512-riCJYG/LlF/rkgVbHkr4xJscc0/sECzDivzTaUmfb9kJhAwGxCyNqnTvg0q6UO00kxSdEB9zNZI2/iJYVBijBQ==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-stack": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.186.0.tgz", - "integrity": "sha512-fENMoo0pW7UBrbuycPf+3WZ+fcUgP9PnQ0jcOK3WWZlZ9d2ewh4HNxLh4EE3NkNYj4VIUFXtTUuVNHlG8trXjQ==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.186.0.tgz", - "integrity": "sha512-fb+F2PF9DLKOVMgmhkr+ltN8ZhNJavTla9aqmbd01846OLEaN1n5xEnV7p8q5+EznVBWDF38Oz9Ae5BMt3Hs7w==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/node-config-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.186.0.tgz", - "integrity": "sha512-De93mgmtuUUeoiKXU8pVHXWKPBfJQlS/lh1k2H9T2Pd9Tzi0l7p5ttddx4BsEx4gk+Pc5flNz+DeptiSjZpa4A==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/node-http-handler": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.186.0.tgz", - "integrity": "sha512-CbkbDuPZT9UNJ4dAZJWB3BV+Z65wFy7OduqGkzNNrKq6ZYMUfehthhUOTk8vU6RMe/0FkN+J0fFXlBx/bs/cHw==", - "dependencies": { - "@aws-sdk/abort-controller": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/querystring-builder": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/property-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.186.0.tgz", - "integrity": "sha512-nWKqt36UW3xV23RlHUmat+yevw9up+T+953nfjcmCBKtgWlCWu/aUzewTRhKj3VRscbN+Wer95SBw9Lr/MMOlQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/protocol-http": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.186.0.tgz", - "integrity": "sha512-l/KYr/UBDUU5ginqTgHtFfHR3X6ljf/1J1ThIiUg3C3kVC/Zwztm7BEOw8hHRWnWQGU/jYasGYcrcPLdQqFZyQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/querystring-builder": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.186.0.tgz", - "integrity": "sha512-mweCpuLufImxfq/rRBTEpjGuB4xhQvbokA+otjnUxlPdIobytLqEs7pCGQfLzQ7+1ZMo8LBXt70RH4A2nSX/JQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-uri-escape": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/querystring-parser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.186.0.tgz", - "integrity": "sha512-0iYfEloghzPVXJjmnzHamNx1F1jIiTW9Svy5ZF9LVqyr/uHZcQuiWYsuhWloBMLs8mfWarkZM02WfxZ8buAuhg==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/service-error-classification": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.186.0.tgz", - "integrity": "sha512-DRl3ORk4tF+jmH5uvftlfaq0IeKKpt0UPAOAFQ/JFWe+TjOcQd/K+VC0iiIG97YFp3aeFmH1JbEgsNxd+8fdxw==", - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/shared-ini-file-loader": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.186.0.tgz", - "integrity": "sha512-2FZqxmICtwN9CYid4dwfJSz/gGFHyStFQ3HCOQ8DsJUf2yREMSBsVmKqsyWgOrYcQ98gPcD5GIa7QO5yl3XF6A==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/signature-v4": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.186.0.tgz", - "integrity": "sha512-18i96P5c4suMqwSNhnEOqhq4doqqyjH4fn0YV3F8TkekHPIWP4mtIJ0PWAN4eievqdtcKgD/GqVO6FaJG9texw==", - "dependencies": { - "@aws-sdk/is-array-buffer": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-hex-encoding": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "@aws-sdk/util-uri-escape": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/smithy-client": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.186.0.tgz", - "integrity": "sha512-rdAxSFGSnrSprVJ6i1BXi65r4X14cuya6fYe8dSdgmFSa+U2ZevT97lb3tSINCUxBGeMXhENIzbVGkRZuMh+DQ==", - "dependencies": { - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.186.0.tgz", - "integrity": "sha512-NatmSU37U+XauMFJCdFI6nougC20JUFZar+ump5wVv0i54H+2Refg1YbFDxSs0FY28TSB9jfhWIpfFBmXgL5MQ==", - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/url-parser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.186.0.tgz", - "integrity": "sha512-jfdJkKqJZp8qjjwEjIGDqbqTuajBsddw02f86WiL8bPqD8W13/hdqbG4Fpwc+Bm6GwR6/4MY6xWXFnk8jDUKeA==", - "dependencies": { - "@aws-sdk/querystring-parser": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-base64-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-browser/-/util-base64-browser-3.186.0.tgz", - "integrity": "sha512-TpQL8opoFfzTwUDxKeon/vuc83kGXpYqjl6hR8WzmHoQgmFfdFlV+0KXZOohra1001OP3FhqvMqaYbO8p9vXVQ==", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-base64-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-node/-/util-base64-node-3.186.0.tgz", - "integrity": "sha512-wH5Y/EQNBfGS4VkkmiMyZXU+Ak6VCoFM1GKWopV+sj03zR2D4FHexi4SxWwEBMpZCd6foMtihhbNBuPA5fnh6w==", - "dependencies": { - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-body-length-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.186.0.tgz", - "integrity": "sha512-zKtjkI/dkj9oGkjo+7fIz+I9KuHrVt1ROAeL4OmDESS8UZi3/O8uMDFMuCp8jft6H+WFuYH6qRVWAVwXMiasXw==", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-body-length-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.186.0.tgz", - "integrity": "sha512-U7Ii8u8Wvu9EnBWKKeuwkdrWto3c0j7LG677Spe6vtwWkvY70n9WGfiKHTgBpVeLNv8jvfcx5+H0UOPQK1o9SQ==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-buffer-from": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.186.0.tgz", - "integrity": "sha512-be2GCk2lsLWg/2V5Y+S4/9pOMXhOQo4DR4dIqBdR2R+jrMMHN9Xsr5QrkT6chcqLaJ/SBlwiAEEi3StMRmCOXA==", - "dependencies": { - "@aws-sdk/is-array-buffer": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-config-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.186.0.tgz", - "integrity": "sha512-71Qwu/PN02XsRLApyxG0EUy/NxWh/CXxtl2C7qY14t+KTiRapwbDkdJ1cMsqYqghYP4BwJoj1M+EFMQSSlkZQQ==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-defaults-mode-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.186.0.tgz", - "integrity": "sha512-U8GOfIdQ0dZ7RRVpPynGteAHx4URtEh+JfWHHVfS6xLPthPHWTbyRhkQX++K/F8Jk+T5U8Anrrqlea4TlcO2DA==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "bowser": "^2.11.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-defaults-mode-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.186.0.tgz", - "integrity": "sha512-N6O5bpwCiE4z8y7SPHd7KYlszmNOYREa+mMgtOIXRU3VXSEHVKVWTZsHKvNTTHpW0qMqtgIvjvXCo3vsch5l3A==", - "dependencies": { - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-hex-encoding": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.186.0.tgz", - "integrity": "sha512-UL9rdgIZz1E/jpAfaKH8QgUxNK9VP5JPgoR0bSiaefMjnsoBh0x/VVMsfUyziOoJCMLebhJzFowtwrSKEGsxNg==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-uri-escape": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.186.0.tgz", - "integrity": "sha512-imtOrJFpIZAipAg8VmRqYwv1G/x4xzyoxOJ48ZSn1/ZGnKEEnB6n6E9gwYRebi4mlRuMSVeZwCPLq0ey5hReeQ==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.186.0.tgz", - "integrity": "sha512-fbRcTTutMk4YXY3A2LePI4jWSIeHOT8DaYavpc/9Xshz/WH9RTGMmokeVOcClRNBeDSi5cELPJJ7gx6SFD3ZlQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "bowser": "^2.11.0", - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.186.0.tgz", - "integrity": "sha512-oWZR7hN6NtOgnT6fUvHaafgbipQc2xJCRB93XHiF9aZGptGNLJzznIOP7uURdn0bTnF73ejbUXWLQIm8/6ue6w==", - "dependencies": { - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-utf8-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.186.0.tgz", - "integrity": "sha512-n+IdFYF/4qT2WxhMOCeig8LndDggaYHw3BJJtfIBZRiS16lgwcGYvOUmhCkn0aSlG1f/eyg9YZHQG0iz9eLdHQ==", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/@aws-sdk/util-utf8-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-node/-/util-utf8-node-3.186.0.tgz", - "integrity": "sha512-7qlE0dOVdjuRbZTb7HFywnHHCrsN7AeQiTnsWT63mjXGDbPeUWQQw3TrdI20um3cxZXnKoeudGq8K6zbXyQ4iA==", - "dependencies": { - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, - "node_modules/@aws-sdk/client-cognito-identity/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/@aws-sdk/client-s3": { "version": "3.51.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.51.0.tgz", @@ -1143,45 +388,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, - "node_modules/@aws-sdk/credential-provider-cognito-identity": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.186.0.tgz", - "integrity": "sha512-5Zk1DT0EFYBqXqkggnaGTnwSh5L7dGm7S2dQbbopMxzS9pmZNxQtixOVp6F1bRPq5skqgQoiPk5OkSbvD3tSIA==", - "dependencies": { - "@aws-sdk/client-cognito-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/property-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.186.0.tgz", - "integrity": "sha512-nWKqt36UW3xV23RlHUmat+yevw9up+T+953nfjcmCBKtgWlCWu/aUzewTRhKj3VRscbN+Wer95SBw9Lr/MMOlQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/@aws-sdk/types": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.186.0.tgz", - "integrity": "sha512-NatmSU37U+XauMFJCdFI6nougC20JUFZar+ump5wVv0i54H+2Refg1YbFDxSs0FY28TSB9jfhWIpfFBmXgL5MQ==", - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, "node_modules/@aws-sdk/credential-provider-env": { "version": "3.50.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.50.0.tgz", @@ -1329,743 +535,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, - "node_modules/@aws-sdk/credential-providers": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.186.0.tgz", - "integrity": "sha512-Jw/oIqbdjXp4+FUt0GoHwSJsqGkkaZ7pOjblcVM4uXyZJTKYeXc7o5w/NefnfPyyx/aoBnRZkPCTv87woI/WQg==", - "dependencies": { - "@aws-sdk/client-cognito-identity": "3.186.0", - "@aws-sdk/client-sso": "3.186.0", - "@aws-sdk/client-sts": "3.186.0", - "@aws-sdk/credential-provider-cognito-identity": "3.186.0", - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-ini": "3.186.0", - "@aws-sdk/credential-provider-node": "3.186.0", - "@aws-sdk/credential-provider-process": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/abort-controller": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.186.0.tgz", - "integrity": "sha512-JFvvvtEcbYOvVRRXasi64Dd1VcOz5kJmPvtzsJ+HzMHvPbGGs/aopOJAZQJMJttzJmJwVTay0QL6yag9Kk8nYA==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sso": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.186.0.tgz", - "integrity": "sha512-qwLPomqq+fjvp42izzEpBEtGL2+dIlWH5pUCteV55hTEwHgo+m9LJPIrMWkPeoMBzqbNiu5n6+zihnwYlCIlEA==", - "dependencies": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/client-sts": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.186.0.tgz", - "integrity": "sha512-lyAPI6YmIWWYZHQ9fBZ7QgXjGMTtktL5fk8kOcZ98ja+8Vu0STH1/u837uxqvZta8/k0wijunIL3jWUhjsNRcg==", - "dependencies": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-node": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-sdk-sts": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "entities": "2.2.0", - "fast-xml-parser": "3.19.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/config-resolver": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.186.0.tgz", - "integrity": "sha512-l8DR7Q4grEn1fgo2/KvtIfIHJS33HGKPQnht8OPxkl0dMzOJ0jxjOw/tMbrIcPnr2T3Fi7LLcj3dY1Fo1poruQ==", - "dependencies": { - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-config-provider": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-env": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.186.0.tgz", - "integrity": "sha512-N9LPAqi1lsQWgxzmU4NPvLPnCN5+IQ3Ai1IFf3wM6FFPNoSUd1kIA2c6xaf0BE7j5Kelm0raZOb4LnV3TBAv+g==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-imds": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.186.0.tgz", - "integrity": "sha512-iJeC7KrEgPPAuXjCZ3ExYZrRQvzpSdTZopYgUm5TnNZ8S1NU/4nvv5xVy61JvMj3JQAeG8UDYYgC421Foc8wQw==", - "dependencies": { - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.186.0.tgz", - "integrity": "sha512-ecrFh3MoZhAj5P2k/HXo/hMJQ3sfmvlommzXuZ/D1Bj2yMcyWuBhF1A83Fwd2gtYrWRrllsK3IOMM5Jr8UIVZA==", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.186.0.tgz", - "integrity": "sha512-HIt2XhSRhEvVgRxTveLCzIkd/SzEBQfkQ6xMJhkBtfJw1o3+jeCk+VysXM0idqmXytctL0O3g9cvvTHOsUgxOA==", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-ini": "3.186.0", - "@aws-sdk/credential-provider-process": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-process": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.186.0.tgz", - "integrity": "sha512-ATRU6gbXvWC1TLnjOEZugC/PBXHBoZgBADid4fDcEQY1vF5e5Ux1kmqkJxyHtV5Wl8sE2uJfwWn+FlpUHRX67g==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.186.0.tgz", - "integrity": "sha512-mJ+IZljgXPx99HCmuLgBVDPLepHrwqnEEC/0wigrLCx6uz3SrAWmGZsNbxSEtb2CFSAaczlTHcU/kIl7XZIyeQ==", - "dependencies": { - "@aws-sdk/client-sso": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.186.0.tgz", - "integrity": "sha512-KqzI5eBV72FE+8SuOQAu+r53RXGVHg4AuDJmdXyo7Gc4wS/B9FNElA8jVUjjYgVnf0FSiri+l41VzQ44dCopSA==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/fetch-http-handler": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.186.0.tgz", - "integrity": "sha512-k2v4AAHRD76WnLg7arH94EvIclClo/YfuqO7NoQ6/KwOxjRhs4G6TgIsAZ9E0xmqoJoV81Xqy8H8ldfy9F8LEw==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/querystring-builder": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/hash-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.186.0.tgz", - "integrity": "sha512-G3zuK8/3KExDTxqrGqko+opOMLRF0BwcwekV/wm3GKIM/NnLhHblBs2zd/yi7VsEoWmuzibfp6uzxgFpEoJ87w==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/invalid-dependency": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.186.0.tgz", - "integrity": "sha512-hjeZKqORhG2DPWYZ776lQ9YO3gjw166vZHZCZU/43kEYaCZHsF4mexHwHzreAY6RfS25cH60Um7dUh1aeVIpkw==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/is-array-buffer": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.186.0.tgz", - "integrity": "sha512-fObm+P6mjWYzxoFY4y2STHBmSdgKbIAXez0xope563mox62I8I4hhVPUCaDVydXvDpJv8tbedJMk0meJl22+xA==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-content-length": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.186.0.tgz", - "integrity": "sha512-Ol3c1ks3IK1s+Okc/rHIX7w2WpXofuQdoAEme37gHeml+8FtUlWH/881h62xfMdf+0YZpRuYv/eM7lBmJBPNJw==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-host-header": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.186.0.tgz", - "integrity": "sha512-5bTzrRzP2IGwyF3QCyMGtSXpOOud537x32htZf344IvVjrqZF/P8CDfGTkHkeBCIH+wnJxjK+l/QBb3ypAMIqQ==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-logger": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.186.0.tgz", - "integrity": "sha512-/1gGBImQT8xYh80pB7QtyzA799TqXtLZYQUohWAsFReYB7fdh5o+mu2rX0FNzZnrLIh2zBUNs4yaWGsnab4uXg==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-retry": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.186.0.tgz", - "integrity": "sha512-/VI9emEKhhDzlNv9lQMmkyxx3GjJ8yPfXH3HuAeOgM1wx1BjCTLRYEWnTbQwq7BDzVENdneleCsGAp7yaj80Aw==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/service-error-classification": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1", - "uuid": "^8.3.2" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-sdk-sts": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.186.0.tgz", - "integrity": "sha512-GDcK0O8rjtnd+XRGnxzheq1V2jk4Sj4HtjrxW/ROyhzLOAOyyxutBt+/zOpDD6Gba3qxc69wE+Cf/qngOkEkDw==", - "dependencies": { - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-serde": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.186.0.tgz", - "integrity": "sha512-6FEAz70RNf18fKL5O7CepPSwTKJEIoyG9zU6p17GzKMgPeFsxS5xO94Hcq5tV2/CqeHliebjqhKY7yi+Pgok7g==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-signing": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.186.0.tgz", - "integrity": "sha512-riCJYG/LlF/rkgVbHkr4xJscc0/sECzDivzTaUmfb9kJhAwGxCyNqnTvg0q6UO00kxSdEB9zNZI2/iJYVBijBQ==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-stack": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.186.0.tgz", - "integrity": "sha512-fENMoo0pW7UBrbuycPf+3WZ+fcUgP9PnQ0jcOK3WWZlZ9d2ewh4HNxLh4EE3NkNYj4VIUFXtTUuVNHlG8trXjQ==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.186.0.tgz", - "integrity": "sha512-fb+F2PF9DLKOVMgmhkr+ltN8ZhNJavTla9aqmbd01846OLEaN1n5xEnV7p8q5+EznVBWDF38Oz9Ae5BMt3Hs7w==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/node-config-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.186.0.tgz", - "integrity": "sha512-De93mgmtuUUeoiKXU8pVHXWKPBfJQlS/lh1k2H9T2Pd9Tzi0l7p5ttddx4BsEx4gk+Pc5flNz+DeptiSjZpa4A==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/node-http-handler": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.186.0.tgz", - "integrity": "sha512-CbkbDuPZT9UNJ4dAZJWB3BV+Z65wFy7OduqGkzNNrKq6ZYMUfehthhUOTk8vU6RMe/0FkN+J0fFXlBx/bs/cHw==", - "dependencies": { - "@aws-sdk/abort-controller": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/querystring-builder": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/property-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.186.0.tgz", - "integrity": "sha512-nWKqt36UW3xV23RlHUmat+yevw9up+T+953nfjcmCBKtgWlCWu/aUzewTRhKj3VRscbN+Wer95SBw9Lr/MMOlQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/protocol-http": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.186.0.tgz", - "integrity": "sha512-l/KYr/UBDUU5ginqTgHtFfHR3X6ljf/1J1ThIiUg3C3kVC/Zwztm7BEOw8hHRWnWQGU/jYasGYcrcPLdQqFZyQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/querystring-builder": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.186.0.tgz", - "integrity": "sha512-mweCpuLufImxfq/rRBTEpjGuB4xhQvbokA+otjnUxlPdIobytLqEs7pCGQfLzQ7+1ZMo8LBXt70RH4A2nSX/JQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-uri-escape": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/querystring-parser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.186.0.tgz", - "integrity": "sha512-0iYfEloghzPVXJjmnzHamNx1F1jIiTW9Svy5ZF9LVqyr/uHZcQuiWYsuhWloBMLs8mfWarkZM02WfxZ8buAuhg==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/service-error-classification": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.186.0.tgz", - "integrity": "sha512-DRl3ORk4tF+jmH5uvftlfaq0IeKKpt0UPAOAFQ/JFWe+TjOcQd/K+VC0iiIG97YFp3aeFmH1JbEgsNxd+8fdxw==", - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/shared-ini-file-loader": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.186.0.tgz", - "integrity": "sha512-2FZqxmICtwN9CYid4dwfJSz/gGFHyStFQ3HCOQ8DsJUf2yREMSBsVmKqsyWgOrYcQ98gPcD5GIa7QO5yl3XF6A==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/signature-v4": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.186.0.tgz", - "integrity": "sha512-18i96P5c4suMqwSNhnEOqhq4doqqyjH4fn0YV3F8TkekHPIWP4mtIJ0PWAN4eievqdtcKgD/GqVO6FaJG9texw==", - "dependencies": { - "@aws-sdk/is-array-buffer": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-hex-encoding": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "@aws-sdk/util-uri-escape": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/smithy-client": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.186.0.tgz", - "integrity": "sha512-rdAxSFGSnrSprVJ6i1BXi65r4X14cuya6fYe8dSdgmFSa+U2ZevT97lb3tSINCUxBGeMXhENIzbVGkRZuMh+DQ==", - "dependencies": { - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/types": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.186.0.tgz", - "integrity": "sha512-NatmSU37U+XauMFJCdFI6nougC20JUFZar+ump5wVv0i54H+2Refg1YbFDxSs0FY28TSB9jfhWIpfFBmXgL5MQ==", - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/url-parser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.186.0.tgz", - "integrity": "sha512-jfdJkKqJZp8qjjwEjIGDqbqTuajBsddw02f86WiL8bPqD8W13/hdqbG4Fpwc+Bm6GwR6/4MY6xWXFnk8jDUKeA==", - "dependencies": { - "@aws-sdk/querystring-parser": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-base64-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-browser/-/util-base64-browser-3.186.0.tgz", - "integrity": "sha512-TpQL8opoFfzTwUDxKeon/vuc83kGXpYqjl6hR8WzmHoQgmFfdFlV+0KXZOohra1001OP3FhqvMqaYbO8p9vXVQ==", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-base64-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-node/-/util-base64-node-3.186.0.tgz", - "integrity": "sha512-wH5Y/EQNBfGS4VkkmiMyZXU+Ak6VCoFM1GKWopV+sj03zR2D4FHexi4SxWwEBMpZCd6foMtihhbNBuPA5fnh6w==", - "dependencies": { - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-body-length-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.186.0.tgz", - "integrity": "sha512-zKtjkI/dkj9oGkjo+7fIz+I9KuHrVt1ROAeL4OmDESS8UZi3/O8uMDFMuCp8jft6H+WFuYH6qRVWAVwXMiasXw==", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-body-length-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.186.0.tgz", - "integrity": "sha512-U7Ii8u8Wvu9EnBWKKeuwkdrWto3c0j7LG677Spe6vtwWkvY70n9WGfiKHTgBpVeLNv8jvfcx5+H0UOPQK1o9SQ==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-buffer-from": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.186.0.tgz", - "integrity": "sha512-be2GCk2lsLWg/2V5Y+S4/9pOMXhOQo4DR4dIqBdR2R+jrMMHN9Xsr5QrkT6chcqLaJ/SBlwiAEEi3StMRmCOXA==", - "dependencies": { - "@aws-sdk/is-array-buffer": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-config-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.186.0.tgz", - "integrity": "sha512-71Qwu/PN02XsRLApyxG0EUy/NxWh/CXxtl2C7qY14t+KTiRapwbDkdJ1cMsqYqghYP4BwJoj1M+EFMQSSlkZQQ==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-defaults-mode-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.186.0.tgz", - "integrity": "sha512-U8GOfIdQ0dZ7RRVpPynGteAHx4URtEh+JfWHHVfS6xLPthPHWTbyRhkQX++K/F8Jk+T5U8Anrrqlea4TlcO2DA==", - "dependencies": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "bowser": "^2.11.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-defaults-mode-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.186.0.tgz", - "integrity": "sha512-N6O5bpwCiE4z8y7SPHd7KYlszmNOYREa+mMgtOIXRU3VXSEHVKVWTZsHKvNTTHpW0qMqtgIvjvXCo3vsch5l3A==", - "dependencies": { - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-hex-encoding": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.186.0.tgz", - "integrity": "sha512-UL9rdgIZz1E/jpAfaKH8QgUxNK9VP5JPgoR0bSiaefMjnsoBh0x/VVMsfUyziOoJCMLebhJzFowtwrSKEGsxNg==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-uri-escape": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.186.0.tgz", - "integrity": "sha512-imtOrJFpIZAipAg8VmRqYwv1G/x4xzyoxOJ48ZSn1/ZGnKEEnB6n6E9gwYRebi4mlRuMSVeZwCPLq0ey5hReeQ==", - "dependencies": { - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.186.0.tgz", - "integrity": "sha512-fbRcTTutMk4YXY3A2LePI4jWSIeHOT8DaYavpc/9Xshz/WH9RTGMmokeVOcClRNBeDSi5cELPJJ7gx6SFD3ZlQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "bowser": "^2.11.0", - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.186.0.tgz", - "integrity": "sha512-oWZR7hN6NtOgnT6fUvHaafgbipQc2xJCRB93XHiF9aZGptGNLJzznIOP7uURdn0bTnF73ejbUXWLQIm8/6ue6w==", - "dependencies": { - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-utf8-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.186.0.tgz", - "integrity": "sha512-n+IdFYF/4qT2WxhMOCeig8LndDggaYHw3BJJtfIBZRiS16lgwcGYvOUmhCkn0aSlG1f/eyg9YZHQG0iz9eLdHQ==", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/util-utf8-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-node/-/util-utf8-node-3.186.0.tgz", - "integrity": "sha512-7qlE0dOVdjuRbZTb7HFywnHHCrsN7AeQiTnsWT63mjXGDbPeUWQQw3TrdI20um3cxZXnKoeudGq8K6zbXyQ4iA==", - "dependencies": { - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/credential-providers/node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, - "node_modules/@aws-sdk/credential-providers/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/@aws-sdk/eventstream-marshaller": { "version": "3.50.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-marshaller/-/eventstream-marshaller-3.50.0.tgz", @@ -2472,44 +941,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, - "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.186.0.tgz", - "integrity": "sha512-Za7k26Kovb4LuV5tmC6wcVILDCt0kwztwSlB991xk4vwNTja8kKxSt53WsYG8Q2wSaW6UOIbSoguZVyxbIY07Q==", - "dependencies": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/middleware-recursion-detection/node_modules/@aws-sdk/protocol-http": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.186.0.tgz", - "integrity": "sha512-l/KYr/UBDUU5ginqTgHtFfHR3X6ljf/1J1ThIiUg3C3kVC/Zwztm7BEOw8hHRWnWQGU/jYasGYcrcPLdQqFZyQ==", - "dependencies": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/middleware-recursion-detection/node_modules/@aws-sdk/types": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.186.0.tgz", - "integrity": "sha512-NatmSU37U+XauMFJCdFI6nougC20JUFZar+ump5wVv0i54H+2Refg1YbFDxSs0FY28TSB9jfhWIpfFBmXgL5MQ==", - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@aws-sdk/middleware-recursion-detection/node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, "node_modules/@aws-sdk/middleware-retry": { "version": "3.51.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.51.0.tgz", @@ -3164,6 +1595,7 @@ "version": "3.186.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-middleware/-/util-middleware-3.186.0.tgz", "integrity": "sha512-fddwDgXtnHyL9mEZ4s1tBBsKnVQHqTUmFbZKUUKPrg9CxOh0Y/zZxEa5Olg/8dS/LzM1tvg0ATkcyd4/kEHIhg==", + "peer": true, "dependencies": { "tslib": "^2.3.1" }, @@ -3174,7 +1606,8 @@ "node_modules/@aws-sdk/util-middleware/node_modules/tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "peer": true }, "node_modules/@aws-sdk/util-uri-escape": { "version": "3.49.0", @@ -14818,621 +13251,6 @@ } } }, - "@aws-sdk/client-cognito-identity": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.186.0.tgz", - "integrity": "sha512-WGWGAozf4f+znTmV3UC7F/3wvZeO2Hcza1v4zy/yD83yoYtMoSc+X71lDw6SS56snPsxHkXRSppvqliOL7J0kA==", - "requires": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/client-sts": "3.186.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-node": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "tslib": "^2.3.1" - }, - "dependencies": { - "@aws-sdk/abort-controller": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.186.0.tgz", - "integrity": "sha512-JFvvvtEcbYOvVRRXasi64Dd1VcOz5kJmPvtzsJ+HzMHvPbGGs/aopOJAZQJMJttzJmJwVTay0QL6yag9Kk8nYA==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/client-sso": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.186.0.tgz", - "integrity": "sha512-qwLPomqq+fjvp42izzEpBEtGL2+dIlWH5pUCteV55hTEwHgo+m9LJPIrMWkPeoMBzqbNiu5n6+zihnwYlCIlEA==", - "requires": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/client-sts": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.186.0.tgz", - "integrity": "sha512-lyAPI6YmIWWYZHQ9fBZ7QgXjGMTtktL5fk8kOcZ98ja+8Vu0STH1/u837uxqvZta8/k0wijunIL3jWUhjsNRcg==", - "requires": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-node": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-sdk-sts": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "entities": "2.2.0", - "fast-xml-parser": "3.19.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/config-resolver": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.186.0.tgz", - "integrity": "sha512-l8DR7Q4grEn1fgo2/KvtIfIHJS33HGKPQnht8OPxkl0dMzOJ0jxjOw/tMbrIcPnr2T3Fi7LLcj3dY1Fo1poruQ==", - "requires": { - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-config-provider": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-env": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.186.0.tgz", - "integrity": "sha512-N9LPAqi1lsQWgxzmU4NPvLPnCN5+IQ3Ai1IFf3wM6FFPNoSUd1kIA2c6xaf0BE7j5Kelm0raZOb4LnV3TBAv+g==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-imds": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.186.0.tgz", - "integrity": "sha512-iJeC7KrEgPPAuXjCZ3ExYZrRQvzpSdTZopYgUm5TnNZ8S1NU/4nvv5xVy61JvMj3JQAeG8UDYYgC421Foc8wQw==", - "requires": { - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-ini": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.186.0.tgz", - "integrity": "sha512-ecrFh3MoZhAj5P2k/HXo/hMJQ3sfmvlommzXuZ/D1Bj2yMcyWuBhF1A83Fwd2gtYrWRrllsK3IOMM5Jr8UIVZA==", - "requires": { - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.186.0.tgz", - "integrity": "sha512-HIt2XhSRhEvVgRxTveLCzIkd/SzEBQfkQ6xMJhkBtfJw1o3+jeCk+VysXM0idqmXytctL0O3g9cvvTHOsUgxOA==", - "requires": { - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-ini": "3.186.0", - "@aws-sdk/credential-provider-process": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-process": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.186.0.tgz", - "integrity": "sha512-ATRU6gbXvWC1TLnjOEZugC/PBXHBoZgBADid4fDcEQY1vF5e5Ux1kmqkJxyHtV5Wl8sE2uJfwWn+FlpUHRX67g==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-sso": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.186.0.tgz", - "integrity": "sha512-mJ+IZljgXPx99HCmuLgBVDPLepHrwqnEEC/0wigrLCx6uz3SrAWmGZsNbxSEtb2CFSAaczlTHcU/kIl7XZIyeQ==", - "requires": { - "@aws-sdk/client-sso": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-web-identity": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.186.0.tgz", - "integrity": "sha512-KqzI5eBV72FE+8SuOQAu+r53RXGVHg4AuDJmdXyo7Gc4wS/B9FNElA8jVUjjYgVnf0FSiri+l41VzQ44dCopSA==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/fetch-http-handler": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.186.0.tgz", - "integrity": "sha512-k2v4AAHRD76WnLg7arH94EvIclClo/YfuqO7NoQ6/KwOxjRhs4G6TgIsAZ9E0xmqoJoV81Xqy8H8ldfy9F8LEw==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/querystring-builder": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/hash-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.186.0.tgz", - "integrity": "sha512-G3zuK8/3KExDTxqrGqko+opOMLRF0BwcwekV/wm3GKIM/NnLhHblBs2zd/yi7VsEoWmuzibfp6uzxgFpEoJ87w==", - "requires": { - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/invalid-dependency": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.186.0.tgz", - "integrity": "sha512-hjeZKqORhG2DPWYZ776lQ9YO3gjw166vZHZCZU/43kEYaCZHsF4mexHwHzreAY6RfS25cH60Um7dUh1aeVIpkw==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/is-array-buffer": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.186.0.tgz", - "integrity": "sha512-fObm+P6mjWYzxoFY4y2STHBmSdgKbIAXez0xope563mox62I8I4hhVPUCaDVydXvDpJv8tbedJMk0meJl22+xA==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-content-length": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.186.0.tgz", - "integrity": "sha512-Ol3c1ks3IK1s+Okc/rHIX7w2WpXofuQdoAEme37gHeml+8FtUlWH/881h62xfMdf+0YZpRuYv/eM7lBmJBPNJw==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-host-header": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.186.0.tgz", - "integrity": "sha512-5bTzrRzP2IGwyF3QCyMGtSXpOOud537x32htZf344IvVjrqZF/P8CDfGTkHkeBCIH+wnJxjK+l/QBb3ypAMIqQ==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-logger": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.186.0.tgz", - "integrity": "sha512-/1gGBImQT8xYh80pB7QtyzA799TqXtLZYQUohWAsFReYB7fdh5o+mu2rX0FNzZnrLIh2zBUNs4yaWGsnab4uXg==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-retry": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.186.0.tgz", - "integrity": "sha512-/VI9emEKhhDzlNv9lQMmkyxx3GjJ8yPfXH3HuAeOgM1wx1BjCTLRYEWnTbQwq7BDzVENdneleCsGAp7yaj80Aw==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/service-error-classification": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1", - "uuid": "^8.3.2" - } - }, - "@aws-sdk/middleware-sdk-sts": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.186.0.tgz", - "integrity": "sha512-GDcK0O8rjtnd+XRGnxzheq1V2jk4Sj4HtjrxW/ROyhzLOAOyyxutBt+/zOpDD6Gba3qxc69wE+Cf/qngOkEkDw==", - "requires": { - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-serde": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.186.0.tgz", - "integrity": "sha512-6FEAz70RNf18fKL5O7CepPSwTKJEIoyG9zU6p17GzKMgPeFsxS5xO94Hcq5tV2/CqeHliebjqhKY7yi+Pgok7g==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-signing": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.186.0.tgz", - "integrity": "sha512-riCJYG/LlF/rkgVbHkr4xJscc0/sECzDivzTaUmfb9kJhAwGxCyNqnTvg0q6UO00kxSdEB9zNZI2/iJYVBijBQ==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-stack": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.186.0.tgz", - "integrity": "sha512-fENMoo0pW7UBrbuycPf+3WZ+fcUgP9PnQ0jcOK3WWZlZ9d2ewh4HNxLh4EE3NkNYj4VIUFXtTUuVNHlG8trXjQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-user-agent": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.186.0.tgz", - "integrity": "sha512-fb+F2PF9DLKOVMgmhkr+ltN8ZhNJavTla9aqmbd01846OLEaN1n5xEnV7p8q5+EznVBWDF38Oz9Ae5BMt3Hs7w==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/node-config-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.186.0.tgz", - "integrity": "sha512-De93mgmtuUUeoiKXU8pVHXWKPBfJQlS/lh1k2H9T2Pd9Tzi0l7p5ttddx4BsEx4gk+Pc5flNz+DeptiSjZpa4A==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/node-http-handler": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.186.0.tgz", - "integrity": "sha512-CbkbDuPZT9UNJ4dAZJWB3BV+Z65wFy7OduqGkzNNrKq6ZYMUfehthhUOTk8vU6RMe/0FkN+J0fFXlBx/bs/cHw==", - "requires": { - "@aws-sdk/abort-controller": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/querystring-builder": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/property-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.186.0.tgz", - "integrity": "sha512-nWKqt36UW3xV23RlHUmat+yevw9up+T+953nfjcmCBKtgWlCWu/aUzewTRhKj3VRscbN+Wer95SBw9Lr/MMOlQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/protocol-http": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.186.0.tgz", - "integrity": "sha512-l/KYr/UBDUU5ginqTgHtFfHR3X6ljf/1J1ThIiUg3C3kVC/Zwztm7BEOw8hHRWnWQGU/jYasGYcrcPLdQqFZyQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/querystring-builder": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.186.0.tgz", - "integrity": "sha512-mweCpuLufImxfq/rRBTEpjGuB4xhQvbokA+otjnUxlPdIobytLqEs7pCGQfLzQ7+1ZMo8LBXt70RH4A2nSX/JQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-uri-escape": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/querystring-parser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.186.0.tgz", - "integrity": "sha512-0iYfEloghzPVXJjmnzHamNx1F1jIiTW9Svy5ZF9LVqyr/uHZcQuiWYsuhWloBMLs8mfWarkZM02WfxZ8buAuhg==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/service-error-classification": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.186.0.tgz", - "integrity": "sha512-DRl3ORk4tF+jmH5uvftlfaq0IeKKpt0UPAOAFQ/JFWe+TjOcQd/K+VC0iiIG97YFp3aeFmH1JbEgsNxd+8fdxw==" - }, - "@aws-sdk/shared-ini-file-loader": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.186.0.tgz", - "integrity": "sha512-2FZqxmICtwN9CYid4dwfJSz/gGFHyStFQ3HCOQ8DsJUf2yREMSBsVmKqsyWgOrYcQ98gPcD5GIa7QO5yl3XF6A==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/signature-v4": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.186.0.tgz", - "integrity": "sha512-18i96P5c4suMqwSNhnEOqhq4doqqyjH4fn0YV3F8TkekHPIWP4mtIJ0PWAN4eievqdtcKgD/GqVO6FaJG9texw==", - "requires": { - "@aws-sdk/is-array-buffer": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-hex-encoding": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "@aws-sdk/util-uri-escape": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/smithy-client": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.186.0.tgz", - "integrity": "sha512-rdAxSFGSnrSprVJ6i1BXi65r4X14cuya6fYe8dSdgmFSa+U2ZevT97lb3tSINCUxBGeMXhENIzbVGkRZuMh+DQ==", - "requires": { - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/types": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.186.0.tgz", - "integrity": "sha512-NatmSU37U+XauMFJCdFI6nougC20JUFZar+ump5wVv0i54H+2Refg1YbFDxSs0FY28TSB9jfhWIpfFBmXgL5MQ==" - }, - "@aws-sdk/url-parser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.186.0.tgz", - "integrity": "sha512-jfdJkKqJZp8qjjwEjIGDqbqTuajBsddw02f86WiL8bPqD8W13/hdqbG4Fpwc+Bm6GwR6/4MY6xWXFnk8jDUKeA==", - "requires": { - "@aws-sdk/querystring-parser": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-base64-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-browser/-/util-base64-browser-3.186.0.tgz", - "integrity": "sha512-TpQL8opoFfzTwUDxKeon/vuc83kGXpYqjl6hR8WzmHoQgmFfdFlV+0KXZOohra1001OP3FhqvMqaYbO8p9vXVQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-base64-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-node/-/util-base64-node-3.186.0.tgz", - "integrity": "sha512-wH5Y/EQNBfGS4VkkmiMyZXU+Ak6VCoFM1GKWopV+sj03zR2D4FHexi4SxWwEBMpZCd6foMtihhbNBuPA5fnh6w==", - "requires": { - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-body-length-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.186.0.tgz", - "integrity": "sha512-zKtjkI/dkj9oGkjo+7fIz+I9KuHrVt1ROAeL4OmDESS8UZi3/O8uMDFMuCp8jft6H+WFuYH6qRVWAVwXMiasXw==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-body-length-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.186.0.tgz", - "integrity": "sha512-U7Ii8u8Wvu9EnBWKKeuwkdrWto3c0j7LG677Spe6vtwWkvY70n9WGfiKHTgBpVeLNv8jvfcx5+H0UOPQK1o9SQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-buffer-from": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.186.0.tgz", - "integrity": "sha512-be2GCk2lsLWg/2V5Y+S4/9pOMXhOQo4DR4dIqBdR2R+jrMMHN9Xsr5QrkT6chcqLaJ/SBlwiAEEi3StMRmCOXA==", - "requires": { - "@aws-sdk/is-array-buffer": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-config-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.186.0.tgz", - "integrity": "sha512-71Qwu/PN02XsRLApyxG0EUy/NxWh/CXxtl2C7qY14t+KTiRapwbDkdJ1cMsqYqghYP4BwJoj1M+EFMQSSlkZQQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-defaults-mode-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.186.0.tgz", - "integrity": "sha512-U8GOfIdQ0dZ7RRVpPynGteAHx4URtEh+JfWHHVfS6xLPthPHWTbyRhkQX++K/F8Jk+T5U8Anrrqlea4TlcO2DA==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "bowser": "^2.11.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-defaults-mode-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.186.0.tgz", - "integrity": "sha512-N6O5bpwCiE4z8y7SPHd7KYlszmNOYREa+mMgtOIXRU3VXSEHVKVWTZsHKvNTTHpW0qMqtgIvjvXCo3vsch5l3A==", - "requires": { - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-hex-encoding": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.186.0.tgz", - "integrity": "sha512-UL9rdgIZz1E/jpAfaKH8QgUxNK9VP5JPgoR0bSiaefMjnsoBh0x/VVMsfUyziOoJCMLebhJzFowtwrSKEGsxNg==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-uri-escape": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.186.0.tgz", - "integrity": "sha512-imtOrJFpIZAipAg8VmRqYwv1G/x4xzyoxOJ48ZSn1/ZGnKEEnB6n6E9gwYRebi4mlRuMSVeZwCPLq0ey5hReeQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-user-agent-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.186.0.tgz", - "integrity": "sha512-fbRcTTutMk4YXY3A2LePI4jWSIeHOT8DaYavpc/9Xshz/WH9RTGMmokeVOcClRNBeDSi5cELPJJ7gx6SFD3ZlQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "bowser": "^2.11.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-user-agent-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.186.0.tgz", - "integrity": "sha512-oWZR7hN6NtOgnT6fUvHaafgbipQc2xJCRB93XHiF9aZGptGNLJzznIOP7uURdn0bTnF73ejbUXWLQIm8/6ue6w==", - "requires": { - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-utf8-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.186.0.tgz", - "integrity": "sha512-n+IdFYF/4qT2WxhMOCeig8LndDggaYHw3BJJtfIBZRiS16lgwcGYvOUmhCkn0aSlG1f/eyg9YZHQG0iz9eLdHQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-utf8-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-node/-/util-utf8-node-3.186.0.tgz", - "integrity": "sha512-7qlE0dOVdjuRbZTb7HFywnHHCrsN7AeQiTnsWT63mjXGDbPeUWQQw3TrdI20um3cxZXnKoeudGq8K6zbXyQ4iA==", - "requires": { - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - } - }, - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - } - } - }, "@aws-sdk/client-s3": { "version": "3.51.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.51.0.tgz", @@ -15607,38 +13425,6 @@ } } }, - "@aws-sdk/credential-provider-cognito-identity": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.186.0.tgz", - "integrity": "sha512-5Zk1DT0EFYBqXqkggnaGTnwSh5L7dGm7S2dQbbopMxzS9pmZNxQtixOVp6F1bRPq5skqgQoiPk5OkSbvD3tSIA==", - "requires": { - "@aws-sdk/client-cognito-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "dependencies": { - "@aws-sdk/property-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.186.0.tgz", - "integrity": "sha512-nWKqt36UW3xV23RlHUmat+yevw9up+T+953nfjcmCBKtgWlCWu/aUzewTRhKj3VRscbN+Wer95SBw9Lr/MMOlQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/types": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.186.0.tgz", - "integrity": "sha512-NatmSU37U+XauMFJCdFI6nougC20JUFZar+ump5wVv0i54H+2Refg1YbFDxSs0FY28TSB9jfhWIpfFBmXgL5MQ==" - }, - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - } - } - }, "@aws-sdk/credential-provider-env": { "version": "3.50.0", "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.50.0.tgz", @@ -15779,602 +13565,6 @@ } } }, - "@aws-sdk/credential-providers": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.186.0.tgz", - "integrity": "sha512-Jw/oIqbdjXp4+FUt0GoHwSJsqGkkaZ7pOjblcVM4uXyZJTKYeXc7o5w/NefnfPyyx/aoBnRZkPCTv87woI/WQg==", - "requires": { - "@aws-sdk/client-cognito-identity": "3.186.0", - "@aws-sdk/client-sso": "3.186.0", - "@aws-sdk/client-sts": "3.186.0", - "@aws-sdk/credential-provider-cognito-identity": "3.186.0", - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-ini": "3.186.0", - "@aws-sdk/credential-provider-node": "3.186.0", - "@aws-sdk/credential-provider-process": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "dependencies": { - "@aws-sdk/abort-controller": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.186.0.tgz", - "integrity": "sha512-JFvvvtEcbYOvVRRXasi64Dd1VcOz5kJmPvtzsJ+HzMHvPbGGs/aopOJAZQJMJttzJmJwVTay0QL6yag9Kk8nYA==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/client-sso": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.186.0.tgz", - "integrity": "sha512-qwLPomqq+fjvp42izzEpBEtGL2+dIlWH5pUCteV55hTEwHgo+m9LJPIrMWkPeoMBzqbNiu5n6+zihnwYlCIlEA==", - "requires": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/client-sts": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.186.0.tgz", - "integrity": "sha512-lyAPI6YmIWWYZHQ9fBZ7QgXjGMTtktL5fk8kOcZ98ja+8Vu0STH1/u837uxqvZta8/k0wijunIL3jWUhjsNRcg==", - "requires": { - "@aws-crypto/sha256-browser": "2.0.0", - "@aws-crypto/sha256-js": "2.0.0", - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-node": "3.186.0", - "@aws-sdk/fetch-http-handler": "3.186.0", - "@aws-sdk/hash-node": "3.186.0", - "@aws-sdk/invalid-dependency": "3.186.0", - "@aws-sdk/middleware-content-length": "3.186.0", - "@aws-sdk/middleware-host-header": "3.186.0", - "@aws-sdk/middleware-logger": "3.186.0", - "@aws-sdk/middleware-recursion-detection": "3.186.0", - "@aws-sdk/middleware-retry": "3.186.0", - "@aws-sdk/middleware-sdk-sts": "3.186.0", - "@aws-sdk/middleware-serde": "3.186.0", - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/middleware-user-agent": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/node-http-handler": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/smithy-client": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "@aws-sdk/util-base64-node": "3.186.0", - "@aws-sdk/util-body-length-browser": "3.186.0", - "@aws-sdk/util-body-length-node": "3.186.0", - "@aws-sdk/util-defaults-mode-browser": "3.186.0", - "@aws-sdk/util-defaults-mode-node": "3.186.0", - "@aws-sdk/util-user-agent-browser": "3.186.0", - "@aws-sdk/util-user-agent-node": "3.186.0", - "@aws-sdk/util-utf8-browser": "3.186.0", - "@aws-sdk/util-utf8-node": "3.186.0", - "entities": "2.2.0", - "fast-xml-parser": "3.19.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/config-resolver": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.186.0.tgz", - "integrity": "sha512-l8DR7Q4grEn1fgo2/KvtIfIHJS33HGKPQnht8OPxkl0dMzOJ0jxjOw/tMbrIcPnr2T3Fi7LLcj3dY1Fo1poruQ==", - "requires": { - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-config-provider": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-env": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.186.0.tgz", - "integrity": "sha512-N9LPAqi1lsQWgxzmU4NPvLPnCN5+IQ3Ai1IFf3wM6FFPNoSUd1kIA2c6xaf0BE7j5Kelm0raZOb4LnV3TBAv+g==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-imds": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.186.0.tgz", - "integrity": "sha512-iJeC7KrEgPPAuXjCZ3ExYZrRQvzpSdTZopYgUm5TnNZ8S1NU/4nvv5xVy61JvMj3JQAeG8UDYYgC421Foc8wQw==", - "requires": { - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/url-parser": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-ini": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.186.0.tgz", - "integrity": "sha512-ecrFh3MoZhAj5P2k/HXo/hMJQ3sfmvlommzXuZ/D1Bj2yMcyWuBhF1A83Fwd2gtYrWRrllsK3IOMM5Jr8UIVZA==", - "requires": { - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.186.0.tgz", - "integrity": "sha512-HIt2XhSRhEvVgRxTveLCzIkd/SzEBQfkQ6xMJhkBtfJw1o3+jeCk+VysXM0idqmXytctL0O3g9cvvTHOsUgxOA==", - "requires": { - "@aws-sdk/credential-provider-env": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/credential-provider-ini": "3.186.0", - "@aws-sdk/credential-provider-process": "3.186.0", - "@aws-sdk/credential-provider-sso": "3.186.0", - "@aws-sdk/credential-provider-web-identity": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-process": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.186.0.tgz", - "integrity": "sha512-ATRU6gbXvWC1TLnjOEZugC/PBXHBoZgBADid4fDcEQY1vF5e5Ux1kmqkJxyHtV5Wl8sE2uJfwWn+FlpUHRX67g==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-sso": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.186.0.tgz", - "integrity": "sha512-mJ+IZljgXPx99HCmuLgBVDPLepHrwqnEEC/0wigrLCx6uz3SrAWmGZsNbxSEtb2CFSAaczlTHcU/kIl7XZIyeQ==", - "requires": { - "@aws-sdk/client-sso": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/credential-provider-web-identity": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.186.0.tgz", - "integrity": "sha512-KqzI5eBV72FE+8SuOQAu+r53RXGVHg4AuDJmdXyo7Gc4wS/B9FNElA8jVUjjYgVnf0FSiri+l41VzQ44dCopSA==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/fetch-http-handler": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.186.0.tgz", - "integrity": "sha512-k2v4AAHRD76WnLg7arH94EvIclClo/YfuqO7NoQ6/KwOxjRhs4G6TgIsAZ9E0xmqoJoV81Xqy8H8ldfy9F8LEw==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/querystring-builder": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-base64-browser": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/hash-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.186.0.tgz", - "integrity": "sha512-G3zuK8/3KExDTxqrGqko+opOMLRF0BwcwekV/wm3GKIM/NnLhHblBs2zd/yi7VsEoWmuzibfp6uzxgFpEoJ87w==", - "requires": { - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/invalid-dependency": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.186.0.tgz", - "integrity": "sha512-hjeZKqORhG2DPWYZ776lQ9YO3gjw166vZHZCZU/43kEYaCZHsF4mexHwHzreAY6RfS25cH60Um7dUh1aeVIpkw==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/is-array-buffer": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.186.0.tgz", - "integrity": "sha512-fObm+P6mjWYzxoFY4y2STHBmSdgKbIAXez0xope563mox62I8I4hhVPUCaDVydXvDpJv8tbedJMk0meJl22+xA==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-content-length": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.186.0.tgz", - "integrity": "sha512-Ol3c1ks3IK1s+Okc/rHIX7w2WpXofuQdoAEme37gHeml+8FtUlWH/881h62xfMdf+0YZpRuYv/eM7lBmJBPNJw==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-host-header": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.186.0.tgz", - "integrity": "sha512-5bTzrRzP2IGwyF3QCyMGtSXpOOud537x32htZf344IvVjrqZF/P8CDfGTkHkeBCIH+wnJxjK+l/QBb3ypAMIqQ==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-logger": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.186.0.tgz", - "integrity": "sha512-/1gGBImQT8xYh80pB7QtyzA799TqXtLZYQUohWAsFReYB7fdh5o+mu2rX0FNzZnrLIh2zBUNs4yaWGsnab4uXg==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-retry": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.186.0.tgz", - "integrity": "sha512-/VI9emEKhhDzlNv9lQMmkyxx3GjJ8yPfXH3HuAeOgM1wx1BjCTLRYEWnTbQwq7BDzVENdneleCsGAp7yaj80Aw==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/service-error-classification": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1", - "uuid": "^8.3.2" - } - }, - "@aws-sdk/middleware-sdk-sts": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.186.0.tgz", - "integrity": "sha512-GDcK0O8rjtnd+XRGnxzheq1V2jk4Sj4HtjrxW/ROyhzLOAOyyxutBt+/zOpDD6Gba3qxc69wE+Cf/qngOkEkDw==", - "requires": { - "@aws-sdk/middleware-signing": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-serde": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.186.0.tgz", - "integrity": "sha512-6FEAz70RNf18fKL5O7CepPSwTKJEIoyG9zU6p17GzKMgPeFsxS5xO94Hcq5tV2/CqeHliebjqhKY7yi+Pgok7g==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-signing": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.186.0.tgz", - "integrity": "sha512-riCJYG/LlF/rkgVbHkr4xJscc0/sECzDivzTaUmfb9kJhAwGxCyNqnTvg0q6UO00kxSdEB9zNZI2/iJYVBijBQ==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/signature-v4": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-stack": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.186.0.tgz", - "integrity": "sha512-fENMoo0pW7UBrbuycPf+3WZ+fcUgP9PnQ0jcOK3WWZlZ9d2ewh4HNxLh4EE3NkNYj4VIUFXtTUuVNHlG8trXjQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/middleware-user-agent": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.186.0.tgz", - "integrity": "sha512-fb+F2PF9DLKOVMgmhkr+ltN8ZhNJavTla9aqmbd01846OLEaN1n5xEnV7p8q5+EznVBWDF38Oz9Ae5BMt3Hs7w==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/node-config-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.186.0.tgz", - "integrity": "sha512-De93mgmtuUUeoiKXU8pVHXWKPBfJQlS/lh1k2H9T2Pd9Tzi0l7p5ttddx4BsEx4gk+Pc5flNz+DeptiSjZpa4A==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/shared-ini-file-loader": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/node-http-handler": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.186.0.tgz", - "integrity": "sha512-CbkbDuPZT9UNJ4dAZJWB3BV+Z65wFy7OduqGkzNNrKq6ZYMUfehthhUOTk8vU6RMe/0FkN+J0fFXlBx/bs/cHw==", - "requires": { - "@aws-sdk/abort-controller": "3.186.0", - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/querystring-builder": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/property-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.186.0.tgz", - "integrity": "sha512-nWKqt36UW3xV23RlHUmat+yevw9up+T+953nfjcmCBKtgWlCWu/aUzewTRhKj3VRscbN+Wer95SBw9Lr/MMOlQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/protocol-http": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.186.0.tgz", - "integrity": "sha512-l/KYr/UBDUU5ginqTgHtFfHR3X6ljf/1J1ThIiUg3C3kVC/Zwztm7BEOw8hHRWnWQGU/jYasGYcrcPLdQqFZyQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/querystring-builder": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.186.0.tgz", - "integrity": "sha512-mweCpuLufImxfq/rRBTEpjGuB4xhQvbokA+otjnUxlPdIobytLqEs7pCGQfLzQ7+1ZMo8LBXt70RH4A2nSX/JQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-uri-escape": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/querystring-parser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.186.0.tgz", - "integrity": "sha512-0iYfEloghzPVXJjmnzHamNx1F1jIiTW9Svy5ZF9LVqyr/uHZcQuiWYsuhWloBMLs8mfWarkZM02WfxZ8buAuhg==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/service-error-classification": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.186.0.tgz", - "integrity": "sha512-DRl3ORk4tF+jmH5uvftlfaq0IeKKpt0UPAOAFQ/JFWe+TjOcQd/K+VC0iiIG97YFp3aeFmH1JbEgsNxd+8fdxw==" - }, - "@aws-sdk/shared-ini-file-loader": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.186.0.tgz", - "integrity": "sha512-2FZqxmICtwN9CYid4dwfJSz/gGFHyStFQ3HCOQ8DsJUf2yREMSBsVmKqsyWgOrYcQ98gPcD5GIa7QO5yl3XF6A==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/signature-v4": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.186.0.tgz", - "integrity": "sha512-18i96P5c4suMqwSNhnEOqhq4doqqyjH4fn0YV3F8TkekHPIWP4mtIJ0PWAN4eievqdtcKgD/GqVO6FaJG9texw==", - "requires": { - "@aws-sdk/is-array-buffer": "3.186.0", - "@aws-sdk/types": "3.186.0", - "@aws-sdk/util-hex-encoding": "3.186.0", - "@aws-sdk/util-middleware": "3.186.0", - "@aws-sdk/util-uri-escape": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/smithy-client": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.186.0.tgz", - "integrity": "sha512-rdAxSFGSnrSprVJ6i1BXi65r4X14cuya6fYe8dSdgmFSa+U2ZevT97lb3tSINCUxBGeMXhENIzbVGkRZuMh+DQ==", - "requires": { - "@aws-sdk/middleware-stack": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/types": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.186.0.tgz", - "integrity": "sha512-NatmSU37U+XauMFJCdFI6nougC20JUFZar+ump5wVv0i54H+2Refg1YbFDxSs0FY28TSB9jfhWIpfFBmXgL5MQ==" - }, - "@aws-sdk/url-parser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.186.0.tgz", - "integrity": "sha512-jfdJkKqJZp8qjjwEjIGDqbqTuajBsddw02f86WiL8bPqD8W13/hdqbG4Fpwc+Bm6GwR6/4MY6xWXFnk8jDUKeA==", - "requires": { - "@aws-sdk/querystring-parser": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-base64-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-browser/-/util-base64-browser-3.186.0.tgz", - "integrity": "sha512-TpQL8opoFfzTwUDxKeon/vuc83kGXpYqjl6hR8WzmHoQgmFfdFlV+0KXZOohra1001OP3FhqvMqaYbO8p9vXVQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-base64-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-base64-node/-/util-base64-node-3.186.0.tgz", - "integrity": "sha512-wH5Y/EQNBfGS4VkkmiMyZXU+Ak6VCoFM1GKWopV+sj03zR2D4FHexi4SxWwEBMpZCd6foMtihhbNBuPA5fnh6w==", - "requires": { - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-body-length-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.186.0.tgz", - "integrity": "sha512-zKtjkI/dkj9oGkjo+7fIz+I9KuHrVt1ROAeL4OmDESS8UZi3/O8uMDFMuCp8jft6H+WFuYH6qRVWAVwXMiasXw==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-body-length-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.186.0.tgz", - "integrity": "sha512-U7Ii8u8Wvu9EnBWKKeuwkdrWto3c0j7LG677Spe6vtwWkvY70n9WGfiKHTgBpVeLNv8jvfcx5+H0UOPQK1o9SQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-buffer-from": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.186.0.tgz", - "integrity": "sha512-be2GCk2lsLWg/2V5Y+S4/9pOMXhOQo4DR4dIqBdR2R+jrMMHN9Xsr5QrkT6chcqLaJ/SBlwiAEEi3StMRmCOXA==", - "requires": { - "@aws-sdk/is-array-buffer": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-config-provider": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-config-provider/-/util-config-provider-3.186.0.tgz", - "integrity": "sha512-71Qwu/PN02XsRLApyxG0EUy/NxWh/CXxtl2C7qY14t+KTiRapwbDkdJ1cMsqYqghYP4BwJoj1M+EFMQSSlkZQQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-defaults-mode-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-browser/-/util-defaults-mode-browser-3.186.0.tgz", - "integrity": "sha512-U8GOfIdQ0dZ7RRVpPynGteAHx4URtEh+JfWHHVfS6xLPthPHWTbyRhkQX++K/F8Jk+T5U8Anrrqlea4TlcO2DA==", - "requires": { - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "bowser": "^2.11.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-defaults-mode-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-defaults-mode-node/-/util-defaults-mode-node-3.186.0.tgz", - "integrity": "sha512-N6O5bpwCiE4z8y7SPHd7KYlszmNOYREa+mMgtOIXRU3VXSEHVKVWTZsHKvNTTHpW0qMqtgIvjvXCo3vsch5l3A==", - "requires": { - "@aws-sdk/config-resolver": "3.186.0", - "@aws-sdk/credential-provider-imds": "3.186.0", - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/property-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-hex-encoding": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.186.0.tgz", - "integrity": "sha512-UL9rdgIZz1E/jpAfaKH8QgUxNK9VP5JPgoR0bSiaefMjnsoBh0x/VVMsfUyziOoJCMLebhJzFowtwrSKEGsxNg==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-uri-escape": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.186.0.tgz", - "integrity": "sha512-imtOrJFpIZAipAg8VmRqYwv1G/x4xzyoxOJ48ZSn1/ZGnKEEnB6n6E9gwYRebi4mlRuMSVeZwCPLq0ey5hReeQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-user-agent-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.186.0.tgz", - "integrity": "sha512-fbRcTTutMk4YXY3A2LePI4jWSIeHOT8DaYavpc/9Xshz/WH9RTGMmokeVOcClRNBeDSi5cELPJJ7gx6SFD3ZlQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "bowser": "^2.11.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-user-agent-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.186.0.tgz", - "integrity": "sha512-oWZR7hN6NtOgnT6fUvHaafgbipQc2xJCRB93XHiF9aZGptGNLJzznIOP7uURdn0bTnF73ejbUXWLQIm8/6ue6w==", - "requires": { - "@aws-sdk/node-config-provider": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-utf8-browser": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.186.0.tgz", - "integrity": "sha512-n+IdFYF/4qT2WxhMOCeig8LndDggaYHw3BJJtfIBZRiS16lgwcGYvOUmhCkn0aSlG1f/eyg9YZHQG0iz9eLdHQ==", - "requires": { - "tslib": "^2.3.1" - } - }, - "@aws-sdk/util-utf8-node": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-node/-/util-utf8-node-3.186.0.tgz", - "integrity": "sha512-7qlE0dOVdjuRbZTb7HFywnHHCrsN7AeQiTnsWT63mjXGDbPeUWQQw3TrdI20um3cxZXnKoeudGq8K6zbXyQ4iA==", - "requires": { - "@aws-sdk/util-buffer-from": "3.186.0", - "tslib": "^2.3.1" - } - }, - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - } - } - }, "@aws-sdk/eventstream-marshaller": { "version": "3.50.0", "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-marshaller/-/eventstream-marshaller-3.50.0.tgz", @@ -16761,37 +13951,6 @@ } } }, - "@aws-sdk/middleware-recursion-detection": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.186.0.tgz", - "integrity": "sha512-Za7k26Kovb4LuV5tmC6wcVILDCt0kwztwSlB991xk4vwNTja8kKxSt53WsYG8Q2wSaW6UOIbSoguZVyxbIY07Q==", - "requires": { - "@aws-sdk/protocol-http": "3.186.0", - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - }, - "dependencies": { - "@aws-sdk/protocol-http": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.186.0.tgz", - "integrity": "sha512-l/KYr/UBDUU5ginqTgHtFfHR3X6ljf/1J1ThIiUg3C3kVC/Zwztm7BEOw8hHRWnWQGU/jYasGYcrcPLdQqFZyQ==", - "requires": { - "@aws-sdk/types": "3.186.0", - "tslib": "^2.3.1" - } - }, - "@aws-sdk/types": { - "version": "3.186.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.186.0.tgz", - "integrity": "sha512-NatmSU37U+XauMFJCdFI6nougC20JUFZar+ump5wVv0i54H+2Refg1YbFDxSs0FY28TSB9jfhWIpfFBmXgL5MQ==" - }, - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - } - } - }, "@aws-sdk/middleware-retry": { "version": "3.51.0", "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.51.0.tgz", @@ -17394,6 +14553,7 @@ "version": "3.186.0", "resolved": "https://registry.npmjs.org/@aws-sdk/util-middleware/-/util-middleware-3.186.0.tgz", "integrity": "sha512-fddwDgXtnHyL9mEZ4s1tBBsKnVQHqTUmFbZKUUKPrg9CxOh0Y/zZxEa5Olg/8dS/LzM1tvg0ATkcyd4/kEHIhg==", + "peer": true, "requires": { "tslib": "^2.3.1" }, @@ -17401,7 +14561,8 @@ "tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "peer": true } } }, diff --git a/package.json b/package.json index b3308ca..fddfe52 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "cache-s3", - "version": "1.0.0", + "name": "actions-s3-caching", + "version": "1.0.3", "private": true, "description": "Cache dependencies and build outputs", "main": "dist/restore/index.js", @@ -13,7 +13,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/dmolik/actions-cache-s3.git" + "url": "git+https://github.com/dmolik/actions-s3-caching.git" }, "keywords": [ "actions", @@ -29,7 +29,8 @@ "@actions/io": "^1.1.0", "@aws-sdk/client-s3": "^3.51.0", "@aws-sdk/types": "^3.50.0", - "@aws-sdk/credential-providers": "^3.50.0" + "@aws-sdk/client-sts": "^3.50.0", + "@aws-sdk/credential-provider-web-identity": "^3.50.0" }, "devDependencies": { "@types/jest": "^27.4.0", diff --git a/src/utils/actionUtils.ts b/src/utils/actionUtils.ts index 21ea281..d41247b 100644 --- a/src/utils/actionUtils.ts +++ b/src/utils/actionUtils.ts @@ -1,7 +1,8 @@ import * as core from "@actions/core"; import { Inputs, Outputs, RefKey, State } from "../constants"; import { CommonPrefix, InputSerialization, S3ClientConfig } from "@aws-sdk/client-s3"; -import { fromTokenFile } from "@aws-sdk/credential-providers"; +import { fromTokenFile } from "@aws-sdk/credential-provider-web-identity"; +import { getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts"; export function isGhes(): boolean { const ghUrl = new URL( @@ -81,16 +82,18 @@ export function getInputS3ClientConfig(): S3ClientConfig | undefined { if (!s3BucketName) { return undefined } + const credentials = core.getInput(Inputs.AWSAccessKeyId) ? { credentials: { accessKeyId: core.getInput(Inputs.AWSAccessKeyId), secretAccessKey: core.getInput(Inputs.AWSSecretAccessKey) } } : { - credentials: { - fromTokenFile({}) - } + credentials: fromTokenFile({ + roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(), + }) } + const s3config = { ...credentials, region: core.getInput(Inputs.AWSRegion),