Initial
This commit is contained in:
5
resources/app/node_modules/@aws-sdk/core/client.js
generated
vendored
Normal file
5
resources/app/node_modules/@aws-sdk/core/client.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Do not edit:
|
||||
* This is a compatibility redirect for contexts that do not understand package.json exports field.
|
||||
*/
|
||||
module.exports = require("./dist-cjs/submodules/client/index.js");
|
||||
6
resources/app/node_modules/@aws-sdk/core/dist-cjs/index.js
generated
vendored
Normal file
6
resources/app/node_modules/@aws-sdk/core/dist-cjs/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./submodules/client/index"), exports);
|
||||
tslib_1.__exportStar(require("./submodules/httpAuthSchemes/index"), exports);
|
||||
tslib_1.__exportStar(require("./submodules/protocols/index"), exports);
|
||||
38
resources/app/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
generated
vendored
Normal file
38
resources/app/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/submodules/client/index.ts
|
||||
var client_exports = {};
|
||||
__export(client_exports, {
|
||||
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion
|
||||
});
|
||||
module.exports = __toCommonJS(client_exports);
|
||||
|
||||
// src/submodules/client/emitWarningIfUnsupportedVersion.ts
|
||||
var warningEmitted = false;
|
||||
var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {
|
||||
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
|
||||
warningEmitted = true;
|
||||
}
|
||||
}, "emitWarningIfUnsupportedVersion");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
emitWarningIfUnsupportedVersion
|
||||
});
|
||||
226
resources/app/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
generated
vendored
Normal file
226
resources/app/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js
generated
vendored
Normal file
@@ -0,0 +1,226 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/submodules/httpAuthSchemes/index.ts
|
||||
var httpAuthSchemes_exports = {};
|
||||
__export(httpAuthSchemes_exports, {
|
||||
AWSSDKSigV4Signer: () => AWSSDKSigV4Signer,
|
||||
AwsSdkSigV4Signer: () => AwsSdkSigV4Signer,
|
||||
resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config,
|
||||
resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config
|
||||
});
|
||||
module.exports = __toCommonJS(httpAuthSchemes_exports);
|
||||
|
||||
// src/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts
|
||||
var import_protocol_http2 = require("@smithy/protocol-http");
|
||||
|
||||
// src/submodules/httpAuthSchemes/utils/getDateHeader.ts
|
||||
var import_protocol_http = require("@smithy/protocol-http");
|
||||
var getDateHeader = /* @__PURE__ */ __name((response) => {
|
||||
var _a, _b;
|
||||
return import_protocol_http.HttpResponse.isInstance(response) ? ((_a = response.headers) == null ? void 0 : _a.date) ?? ((_b = response.headers) == null ? void 0 : _b.Date) : void 0;
|
||||
}, "getDateHeader");
|
||||
|
||||
// src/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.ts
|
||||
var getSkewCorrectedDate = /* @__PURE__ */ __name((systemClockOffset) => new Date(Date.now() + systemClockOffset), "getSkewCorrectedDate");
|
||||
|
||||
// src/submodules/httpAuthSchemes/utils/isClockSkewed.ts
|
||||
var isClockSkewed = /* @__PURE__ */ __name((clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5, "isClockSkewed");
|
||||
|
||||
// src/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.ts
|
||||
var getUpdatedSystemClockOffset = /* @__PURE__ */ __name((clockTime, currentSystemClockOffset) => {
|
||||
const clockTimeInMs = Date.parse(clockTime);
|
||||
if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
|
||||
return clockTimeInMs - Date.now();
|
||||
}
|
||||
return currentSystemClockOffset;
|
||||
}, "getUpdatedSystemClockOffset");
|
||||
|
||||
// src/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts
|
||||
var throwSigningPropertyError = /* @__PURE__ */ __name((name, property) => {
|
||||
if (!property) {
|
||||
throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
|
||||
}
|
||||
return property;
|
||||
}, "throwSigningPropertyError");
|
||||
var validateSigningProperties = /* @__PURE__ */ __name(async (signingProperties) => {
|
||||
var _a, _b, _c;
|
||||
const context = throwSigningPropertyError(
|
||||
"context",
|
||||
signingProperties.context
|
||||
);
|
||||
const config = throwSigningPropertyError("config", signingProperties.config);
|
||||
const authScheme = (_c = (_b = (_a = context.endpointV2) == null ? void 0 : _a.properties) == null ? void 0 : _b.authSchemes) == null ? void 0 : _c[0];
|
||||
const signerFunction = throwSigningPropertyError(
|
||||
"signer",
|
||||
config.signer
|
||||
);
|
||||
const signer = await signerFunction(authScheme);
|
||||
const signingRegion = signingProperties == null ? void 0 : signingProperties.signingRegion;
|
||||
const signingName = signingProperties == null ? void 0 : signingProperties.signingName;
|
||||
return {
|
||||
config,
|
||||
signer,
|
||||
signingRegion,
|
||||
signingName
|
||||
};
|
||||
}, "validateSigningProperties");
|
||||
var _AwsSdkSigV4Signer = class _AwsSdkSigV4Signer {
|
||||
async sign(httpRequest, identity, signingProperties) {
|
||||
if (!import_protocol_http2.HttpRequest.isInstance(httpRequest)) {
|
||||
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
||||
}
|
||||
const { config, signer, signingRegion, signingName } = await validateSigningProperties(signingProperties);
|
||||
const signedRequest = await signer.sign(httpRequest, {
|
||||
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
||||
signingRegion,
|
||||
signingService: signingName
|
||||
});
|
||||
return signedRequest;
|
||||
}
|
||||
errorHandler(signingProperties) {
|
||||
return (error) => {
|
||||
const serverTime = error.ServerTime ?? getDateHeader(error.$response);
|
||||
if (serverTime) {
|
||||
const config = throwSigningPropertyError("config", signingProperties.config);
|
||||
const initialSystemClockOffset = config.systemClockOffset;
|
||||
config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
|
||||
const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
|
||||
if (clockSkewCorrected && error.$metadata) {
|
||||
error.$metadata.clockSkewCorrected = true;
|
||||
}
|
||||
}
|
||||
throw error;
|
||||
};
|
||||
}
|
||||
successHandler(httpResponse, signingProperties) {
|
||||
const dateHeader = getDateHeader(httpResponse);
|
||||
if (dateHeader) {
|
||||
const config = throwSigningPropertyError("config", signingProperties.config);
|
||||
config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
|
||||
}
|
||||
}
|
||||
};
|
||||
__name(_AwsSdkSigV4Signer, "AwsSdkSigV4Signer");
|
||||
var AwsSdkSigV4Signer = _AwsSdkSigV4Signer;
|
||||
var AWSSDKSigV4Signer = AwsSdkSigV4Signer;
|
||||
|
||||
// src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts
|
||||
var import_core = require("@smithy/core");
|
||||
var import_signature_v4 = require("@smithy/signature-v4");
|
||||
var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
||||
let normalizedCreds;
|
||||
if (config.credentials) {
|
||||
normalizedCreds = (0, import_core.memoizeIdentityProvider)(config.credentials, import_core.isIdentityExpired, import_core.doesIdentityRequireRefresh);
|
||||
}
|
||||
if (!normalizedCreds) {
|
||||
if (config.credentialDefaultProvider) {
|
||||
normalizedCreds = (0, import_core.normalizeProvider)(
|
||||
config.credentialDefaultProvider(
|
||||
Object.assign({}, config, {
|
||||
parentClientConfig: config
|
||||
})
|
||||
)
|
||||
);
|
||||
} else {
|
||||
normalizedCreds = /* @__PURE__ */ __name(async () => {
|
||||
throw new Error("`credentials` is missing");
|
||||
}, "normalizedCreds");
|
||||
}
|
||||
}
|
||||
const {
|
||||
// Default for signingEscapePath
|
||||
signingEscapePath = true,
|
||||
// Default for systemClockOffset
|
||||
systemClockOffset = config.systemClockOffset || 0,
|
||||
// No default for sha256 since it is platform dependent
|
||||
sha256
|
||||
} = config;
|
||||
let signer;
|
||||
if (config.signer) {
|
||||
signer = (0, import_core.normalizeProvider)(config.signer);
|
||||
} else if (config.regionInfoProvider) {
|
||||
signer = /* @__PURE__ */ __name(() => (0, import_core.normalizeProvider)(config.region)().then(
|
||||
async (region) => [
|
||||
await config.regionInfoProvider(region, {
|
||||
useFipsEndpoint: await config.useFipsEndpoint(),
|
||||
useDualstackEndpoint: await config.useDualstackEndpoint()
|
||||
}) || {},
|
||||
region
|
||||
]
|
||||
).then(([regionInfo, region]) => {
|
||||
const { signingRegion, signingService } = regionInfo;
|
||||
config.signingRegion = config.signingRegion || signingRegion || region;
|
||||
config.signingName = config.signingName || signingService || config.serviceId;
|
||||
const params = {
|
||||
...config,
|
||||
credentials: normalizedCreds,
|
||||
region: config.signingRegion,
|
||||
service: config.signingName,
|
||||
sha256,
|
||||
uriEscapePath: signingEscapePath
|
||||
};
|
||||
const SignerCtor = config.signerConstructor || import_signature_v4.SignatureV4;
|
||||
return new SignerCtor(params);
|
||||
}), "signer");
|
||||
} else {
|
||||
signer = /* @__PURE__ */ __name(async (authScheme) => {
|
||||
authScheme = Object.assign(
|
||||
{},
|
||||
{
|
||||
name: "sigv4",
|
||||
signingName: config.signingName || config.defaultSigningName,
|
||||
signingRegion: await (0, import_core.normalizeProvider)(config.region)(),
|
||||
properties: {}
|
||||
},
|
||||
authScheme
|
||||
);
|
||||
const signingRegion = authScheme.signingRegion;
|
||||
const signingService = authScheme.signingName;
|
||||
config.signingRegion = config.signingRegion || signingRegion;
|
||||
config.signingName = config.signingName || signingService || config.serviceId;
|
||||
const params = {
|
||||
...config,
|
||||
credentials: normalizedCreds,
|
||||
region: config.signingRegion,
|
||||
service: config.signingName,
|
||||
sha256,
|
||||
uriEscapePath: signingEscapePath
|
||||
};
|
||||
const SignerCtor = config.signerConstructor || import_signature_v4.SignatureV4;
|
||||
return new SignerCtor(params);
|
||||
}, "signer");
|
||||
}
|
||||
return {
|
||||
...config,
|
||||
systemClockOffset,
|
||||
signingEscapePath,
|
||||
credentials: normalizedCreds,
|
||||
signer
|
||||
};
|
||||
}, "resolveAwsSdkSigV4Config");
|
||||
var resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
AWSSDKSigV4Signer,
|
||||
AwsSdkSigV4Signer,
|
||||
resolveAWSSDKSigV4Config,
|
||||
resolveAwsSdkSigV4Config
|
||||
});
|
||||
228
resources/app/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
generated
vendored
Normal file
228
resources/app/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js
generated
vendored
Normal file
@@ -0,0 +1,228 @@
|
||||
"use strict";
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/submodules/protocols/index.ts
|
||||
var protocols_exports = {};
|
||||
__export(protocols_exports, {
|
||||
_toBool: () => _toBool,
|
||||
_toNum: () => _toNum,
|
||||
_toStr: () => _toStr,
|
||||
awsExpectUnion: () => awsExpectUnion,
|
||||
loadRestJsonErrorCode: () => loadRestJsonErrorCode,
|
||||
loadRestXmlErrorCode: () => loadRestXmlErrorCode,
|
||||
parseJsonBody: () => parseJsonBody,
|
||||
parseJsonErrorBody: () => parseJsonErrorBody,
|
||||
parseXmlBody: () => parseXmlBody,
|
||||
parseXmlErrorBody: () => parseXmlErrorBody
|
||||
});
|
||||
module.exports = __toCommonJS(protocols_exports);
|
||||
|
||||
// src/submodules/protocols/coercing-serializers.ts
|
||||
var _toStr = /* @__PURE__ */ __name((val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "number" || typeof val === "bigint") {
|
||||
const warning = new Error(`Received number ${val} where a string was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return String(val);
|
||||
}
|
||||
if (typeof val === "boolean") {
|
||||
const warning = new Error(`Received boolean ${val} where a string was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return String(val);
|
||||
}
|
||||
return val;
|
||||
}, "_toStr");
|
||||
var _toBool = /* @__PURE__ */ __name((val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "number") {
|
||||
}
|
||||
if (typeof val === "string") {
|
||||
const lowercase = val.toLowerCase();
|
||||
if (val !== "" && lowercase !== "false" && lowercase !== "true") {
|
||||
const warning = new Error(`Received string "${val}" where a boolean was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
}
|
||||
return val !== "" && lowercase !== "false";
|
||||
}
|
||||
return val;
|
||||
}, "_toBool");
|
||||
var _toNum = /* @__PURE__ */ __name((val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "boolean") {
|
||||
}
|
||||
if (typeof val === "string") {
|
||||
const num = Number(val);
|
||||
if (num.toString() !== val) {
|
||||
const warning = new Error(`Received string "${val}" where a number was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return val;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
return val;
|
||||
}, "_toNum");
|
||||
|
||||
// src/submodules/protocols/json/awsExpectUnion.ts
|
||||
var import_smithy_client = require("@smithy/smithy-client");
|
||||
var awsExpectUnion = /* @__PURE__ */ __name((value) => {
|
||||
if (value == null) {
|
||||
return void 0;
|
||||
}
|
||||
if (typeof value === "object" && "__type" in value) {
|
||||
delete value.__type;
|
||||
}
|
||||
return (0, import_smithy_client.expectUnion)(value);
|
||||
}, "awsExpectUnion");
|
||||
|
||||
// src/submodules/protocols/common.ts
|
||||
var import_smithy_client2 = require("@smithy/smithy-client");
|
||||
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client2.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
||||
|
||||
// src/submodules/protocols/json/parseJsonBody.ts
|
||||
var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
||||
if (encoded.length) {
|
||||
try {
|
||||
return JSON.parse(encoded);
|
||||
} catch (e) {
|
||||
if ((e == null ? void 0 : e.name) === "SyntaxError") {
|
||||
Object.defineProperty(e, "$responseBodyText", {
|
||||
value: encoded
|
||||
});
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
return {};
|
||||
}), "parseJsonBody");
|
||||
var parseJsonErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
||||
const value = await parseJsonBody(errorBody, context);
|
||||
value.message = value.message ?? value.Message;
|
||||
return value;
|
||||
}, "parseJsonErrorBody");
|
||||
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
||||
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
||||
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
||||
let cleanValue = rawValue;
|
||||
if (typeof cleanValue === "number") {
|
||||
cleanValue = cleanValue.toString();
|
||||
}
|
||||
if (cleanValue.indexOf(",") >= 0) {
|
||||
cleanValue = cleanValue.split(",")[0];
|
||||
}
|
||||
if (cleanValue.indexOf(":") >= 0) {
|
||||
cleanValue = cleanValue.split(":")[0];
|
||||
}
|
||||
if (cleanValue.indexOf("#") >= 0) {
|
||||
cleanValue = cleanValue.split("#")[1];
|
||||
}
|
||||
return cleanValue;
|
||||
}, "sanitizeErrorCode");
|
||||
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
||||
if (headerKey !== void 0) {
|
||||
return sanitizeErrorCode(output.headers[headerKey]);
|
||||
}
|
||||
if (data.code !== void 0) {
|
||||
return sanitizeErrorCode(data.code);
|
||||
}
|
||||
if (data["__type"] !== void 0) {
|
||||
return sanitizeErrorCode(data["__type"]);
|
||||
}
|
||||
}, "loadRestJsonErrorCode");
|
||||
|
||||
// src/submodules/protocols/xml/parseXmlBody.ts
|
||||
var import_smithy_client3 = require("@smithy/smithy-client");
|
||||
var import_fast_xml_parser = require("fast-xml-parser");
|
||||
var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
||||
if (encoded.length) {
|
||||
const parser = new import_fast_xml_parser.XMLParser({
|
||||
attributeNamePrefix: "",
|
||||
htmlEntities: true,
|
||||
ignoreAttributes: false,
|
||||
ignoreDeclaration: true,
|
||||
parseTagValue: false,
|
||||
trimValues: false,
|
||||
tagValueProcessor: (_, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
|
||||
});
|
||||
parser.addEntity("#xD", "\r");
|
||||
parser.addEntity("#10", "\n");
|
||||
let parsedObj;
|
||||
try {
|
||||
parsedObj = parser.parse(encoded, true);
|
||||
} catch (e) {
|
||||
if (e && typeof e === "object") {
|
||||
Object.defineProperty(e, "$responseBodyText", {
|
||||
value: encoded
|
||||
});
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
const textNodeName = "#text";
|
||||
const key = Object.keys(parsedObj)[0];
|
||||
const parsedObjToReturn = parsedObj[key];
|
||||
if (parsedObjToReturn[textNodeName]) {
|
||||
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
||||
delete parsedObjToReturn[textNodeName];
|
||||
}
|
||||
return (0, import_smithy_client3.getValueFromTextNode)(parsedObjToReturn);
|
||||
}
|
||||
return {};
|
||||
}), "parseXmlBody");
|
||||
var parseXmlErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
||||
const value = await parseXmlBody(errorBody, context);
|
||||
if (value.Error) {
|
||||
value.Error.message = value.Error.message ?? value.Error.Message;
|
||||
}
|
||||
return value;
|
||||
}, "parseXmlErrorBody");
|
||||
var loadRestXmlErrorCode = /* @__PURE__ */ __name((output, data) => {
|
||||
var _a;
|
||||
if (((_a = data == null ? void 0 : data.Error) == null ? void 0 : _a.Code) !== void 0) {
|
||||
return data.Error.Code;
|
||||
}
|
||||
if ((data == null ? void 0 : data.Code) !== void 0) {
|
||||
return data.Code;
|
||||
}
|
||||
if (output.statusCode == 404) {
|
||||
return "NotFound";
|
||||
}
|
||||
}, "loadRestXmlErrorCode");
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
_toBool,
|
||||
_toNum,
|
||||
_toStr,
|
||||
awsExpectUnion,
|
||||
loadRestJsonErrorCode,
|
||||
loadRestXmlErrorCode,
|
||||
parseJsonBody,
|
||||
parseJsonErrorBody,
|
||||
parseXmlBody,
|
||||
parseXmlErrorBody
|
||||
});
|
||||
3
resources/app/node_modules/@aws-sdk/core/dist-es/index.js
generated
vendored
Normal file
3
resources/app/node_modules/@aws-sdk/core/dist-es/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./submodules/client/index";
|
||||
export * from "./submodules/httpAuthSchemes/index";
|
||||
export * from "./submodules/protocols/index";
|
||||
6
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
generated
vendored
Normal file
6
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
let warningEmitted = false;
|
||||
export const emitWarningIfUnsupportedVersion = (version) => {
|
||||
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
|
||||
warningEmitted = true;
|
||||
}
|
||||
};
|
||||
1
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js
generated
vendored
Normal file
1
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./emitWarningIfUnsupportedVersion";
|
||||
60
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
generated
vendored
Normal file
60
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
import { HttpRequest } from "@smithy/protocol-http";
|
||||
import { getDateHeader, getSkewCorrectedDate, getUpdatedSystemClockOffset } from "../utils";
|
||||
const throwSigningPropertyError = (name, property) => {
|
||||
if (!property) {
|
||||
throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
|
||||
}
|
||||
return property;
|
||||
};
|
||||
const validateSigningProperties = async (signingProperties) => {
|
||||
const context = throwSigningPropertyError("context", signingProperties.context);
|
||||
const config = throwSigningPropertyError("config", signingProperties.config);
|
||||
const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
|
||||
const signerFunction = throwSigningPropertyError("signer", config.signer);
|
||||
const signer = await signerFunction(authScheme);
|
||||
const signingRegion = signingProperties?.signingRegion;
|
||||
const signingName = signingProperties?.signingName;
|
||||
return {
|
||||
config,
|
||||
signer,
|
||||
signingRegion,
|
||||
signingName,
|
||||
};
|
||||
};
|
||||
export class AwsSdkSigV4Signer {
|
||||
async sign(httpRequest, identity, signingProperties) {
|
||||
if (!HttpRequest.isInstance(httpRequest)) {
|
||||
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
||||
}
|
||||
const { config, signer, signingRegion, signingName } = await validateSigningProperties(signingProperties);
|
||||
const signedRequest = await signer.sign(httpRequest, {
|
||||
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
||||
signingRegion: signingRegion,
|
||||
signingService: signingName,
|
||||
});
|
||||
return signedRequest;
|
||||
}
|
||||
errorHandler(signingProperties) {
|
||||
return (error) => {
|
||||
const serverTime = error.ServerTime ?? getDateHeader(error.$response);
|
||||
if (serverTime) {
|
||||
const config = throwSigningPropertyError("config", signingProperties.config);
|
||||
const initialSystemClockOffset = config.systemClockOffset;
|
||||
config.systemClockOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
|
||||
const clockSkewCorrected = config.systemClockOffset !== initialSystemClockOffset;
|
||||
if (clockSkewCorrected && error.$metadata) {
|
||||
error.$metadata.clockSkewCorrected = true;
|
||||
}
|
||||
}
|
||||
throw error;
|
||||
};
|
||||
}
|
||||
successHandler(httpResponse, signingProperties) {
|
||||
const dateHeader = getDateHeader(httpResponse);
|
||||
if (dateHeader) {
|
||||
const config = throwSigningPropertyError("config", signingProperties.config);
|
||||
config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
|
||||
}
|
||||
}
|
||||
}
|
||||
export const AWSSDKSigV4Signer = AwsSdkSigV4Signer;
|
||||
2
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js
generated
vendored
Normal file
2
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./AwsSdkSigV4Signer";
|
||||
export * from "./resolveAwsSdkSigV4Config";
|
||||
82
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
generated
vendored
Normal file
82
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider, normalizeProvider, } from "@smithy/core";
|
||||
import { SignatureV4 } from "@smithy/signature-v4";
|
||||
export const resolveAwsSdkSigV4Config = (config) => {
|
||||
let normalizedCreds;
|
||||
if (config.credentials) {
|
||||
normalizedCreds = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh);
|
||||
}
|
||||
if (!normalizedCreds) {
|
||||
if (config.credentialDefaultProvider) {
|
||||
normalizedCreds = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, {
|
||||
parentClientConfig: config,
|
||||
})));
|
||||
}
|
||||
else {
|
||||
normalizedCreds = async () => {
|
||||
throw new Error("`credentials` is missing");
|
||||
};
|
||||
}
|
||||
}
|
||||
const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
|
||||
let signer;
|
||||
if (config.signer) {
|
||||
signer = normalizeProvider(config.signer);
|
||||
}
|
||||
else if (config.regionInfoProvider) {
|
||||
signer = () => normalizeProvider(config.region)()
|
||||
.then(async (region) => [
|
||||
(await config.regionInfoProvider(region, {
|
||||
useFipsEndpoint: await config.useFipsEndpoint(),
|
||||
useDualstackEndpoint: await config.useDualstackEndpoint(),
|
||||
})) || {},
|
||||
region,
|
||||
])
|
||||
.then(([regionInfo, region]) => {
|
||||
const { signingRegion, signingService } = regionInfo;
|
||||
config.signingRegion = config.signingRegion || signingRegion || region;
|
||||
config.signingName = config.signingName || signingService || config.serviceId;
|
||||
const params = {
|
||||
...config,
|
||||
credentials: normalizedCreds,
|
||||
region: config.signingRegion,
|
||||
service: config.signingName,
|
||||
sha256,
|
||||
uriEscapePath: signingEscapePath,
|
||||
};
|
||||
const SignerCtor = config.signerConstructor || SignatureV4;
|
||||
return new SignerCtor(params);
|
||||
});
|
||||
}
|
||||
else {
|
||||
signer = async (authScheme) => {
|
||||
authScheme = Object.assign({}, {
|
||||
name: "sigv4",
|
||||
signingName: config.signingName || config.defaultSigningName,
|
||||
signingRegion: await normalizeProvider(config.region)(),
|
||||
properties: {},
|
||||
}, authScheme);
|
||||
const signingRegion = authScheme.signingRegion;
|
||||
const signingService = authScheme.signingName;
|
||||
config.signingRegion = config.signingRegion || signingRegion;
|
||||
config.signingName = config.signingName || signingService || config.serviceId;
|
||||
const params = {
|
||||
...config,
|
||||
credentials: normalizedCreds,
|
||||
region: config.signingRegion,
|
||||
service: config.signingName,
|
||||
sha256,
|
||||
uriEscapePath: signingEscapePath,
|
||||
};
|
||||
const SignerCtor = config.signerConstructor || SignatureV4;
|
||||
return new SignerCtor(params);
|
||||
};
|
||||
}
|
||||
return {
|
||||
...config,
|
||||
systemClockOffset,
|
||||
signingEscapePath,
|
||||
credentials: normalizedCreds,
|
||||
signer,
|
||||
};
|
||||
};
|
||||
export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
|
||||
1
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js
generated
vendored
Normal file
1
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./aws_sdk";
|
||||
2
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
generated
vendored
Normal file
2
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { HttpResponse } from "@smithy/protocol-http";
|
||||
export const getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined;
|
||||
1
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
generated
vendored
Normal file
1
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
|
||||
8
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
generated
vendored
Normal file
8
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { isClockSkewed } from "./isClockSkewed";
|
||||
export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
|
||||
const clockTimeInMs = Date.parse(clockTime);
|
||||
if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
|
||||
return clockTimeInMs - Date.now();
|
||||
}
|
||||
return currentSystemClockOffset;
|
||||
};
|
||||
3
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js
generated
vendored
Normal file
3
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from "./getDateHeader";
|
||||
export * from "./getSkewCorrectedDate";
|
||||
export * from "./getUpdatedSystemClockOffset";
|
||||
2
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
generated
vendored
Normal file
2
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { getSkewCorrectedDate } from "./getSkewCorrectedDate";
|
||||
export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;
|
||||
53
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js
generated
vendored
Normal file
53
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/coercing-serializers.js
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
export const _toStr = (val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "number" || typeof val === "bigint") {
|
||||
const warning = new Error(`Received number ${val} where a string was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return String(val);
|
||||
}
|
||||
if (typeof val === "boolean") {
|
||||
const warning = new Error(`Received boolean ${val} where a string was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return String(val);
|
||||
}
|
||||
return val;
|
||||
};
|
||||
export const _toBool = (val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "number") {
|
||||
}
|
||||
if (typeof val === "string") {
|
||||
const lowercase = val.toLowerCase();
|
||||
if (val !== "" && lowercase !== "false" && lowercase !== "true") {
|
||||
const warning = new Error(`Received string "${val}" where a boolean was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
}
|
||||
return val !== "" && lowercase !== "false";
|
||||
}
|
||||
return val;
|
||||
};
|
||||
export const _toNum = (val) => {
|
||||
if (val == null) {
|
||||
return val;
|
||||
}
|
||||
if (typeof val === "boolean") {
|
||||
}
|
||||
if (typeof val === "string") {
|
||||
const num = Number(val);
|
||||
if (num.toString() !== val) {
|
||||
const warning = new Error(`Received string "${val}" where a number was expected.`);
|
||||
warning.name = "Warning";
|
||||
console.warn(warning);
|
||||
return val;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
return val;
|
||||
};
|
||||
2
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
generated
vendored
Normal file
2
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { collectBody } from "@smithy/smithy-client";
|
||||
export const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
||||
4
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js
generated
vendored
Normal file
4
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from "./coercing-serializers";
|
||||
export * from "./json/awsExpectUnion";
|
||||
export * from "./json/parseJsonBody";
|
||||
export * from "./xml/parseXmlBody";
|
||||
10
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js
generated
vendored
Normal file
10
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/awsExpectUnion.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { expectUnion } from "@smithy/smithy-client";
|
||||
export const awsExpectUnion = (value) => {
|
||||
if (value == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (typeof value === "object" && "__type" in value) {
|
||||
delete value.__type;
|
||||
}
|
||||
return expectUnion(value);
|
||||
};
|
||||
51
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
generated
vendored
Normal file
51
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
import { collectBodyString } from "../common";
|
||||
export const parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
||||
if (encoded.length) {
|
||||
try {
|
||||
return JSON.parse(encoded);
|
||||
}
|
||||
catch (e) {
|
||||
if (e?.name === "SyntaxError") {
|
||||
Object.defineProperty(e, "$responseBodyText", {
|
||||
value: encoded,
|
||||
});
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
return {};
|
||||
});
|
||||
export const parseJsonErrorBody = async (errorBody, context) => {
|
||||
const value = await parseJsonBody(errorBody, context);
|
||||
value.message = value.message ?? value.Message;
|
||||
return value;
|
||||
};
|
||||
export const loadRestJsonErrorCode = (output, data) => {
|
||||
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
||||
const sanitizeErrorCode = (rawValue) => {
|
||||
let cleanValue = rawValue;
|
||||
if (typeof cleanValue === "number") {
|
||||
cleanValue = cleanValue.toString();
|
||||
}
|
||||
if (cleanValue.indexOf(",") >= 0) {
|
||||
cleanValue = cleanValue.split(",")[0];
|
||||
}
|
||||
if (cleanValue.indexOf(":") >= 0) {
|
||||
cleanValue = cleanValue.split(":")[0];
|
||||
}
|
||||
if (cleanValue.indexOf("#") >= 0) {
|
||||
cleanValue = cleanValue.split("#")[1];
|
||||
}
|
||||
return cleanValue;
|
||||
};
|
||||
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
||||
if (headerKey !== undefined) {
|
||||
return sanitizeErrorCode(output.headers[headerKey]);
|
||||
}
|
||||
if (data.code !== undefined) {
|
||||
return sanitizeErrorCode(data.code);
|
||||
}
|
||||
if (data["__type"] !== undefined) {
|
||||
return sanitizeErrorCode(data["__type"]);
|
||||
}
|
||||
};
|
||||
57
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js
generated
vendored
Normal file
57
resources/app/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
import { getValueFromTextNode } from "@smithy/smithy-client";
|
||||
import { XMLParser } from "fast-xml-parser";
|
||||
import { collectBodyString } from "../common";
|
||||
export const parseXmlBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
||||
if (encoded.length) {
|
||||
const parser = new XMLParser({
|
||||
attributeNamePrefix: "",
|
||||
htmlEntities: true,
|
||||
ignoreAttributes: false,
|
||||
ignoreDeclaration: true,
|
||||
parseTagValue: false,
|
||||
trimValues: false,
|
||||
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
||||
});
|
||||
parser.addEntity("#xD", "\r");
|
||||
parser.addEntity("#10", "\n");
|
||||
let parsedObj;
|
||||
try {
|
||||
parsedObj = parser.parse(encoded, true);
|
||||
}
|
||||
catch (e) {
|
||||
if (e && typeof e === "object") {
|
||||
Object.defineProperty(e, "$responseBodyText", {
|
||||
value: encoded,
|
||||
});
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
const textNodeName = "#text";
|
||||
const key = Object.keys(parsedObj)[0];
|
||||
const parsedObjToReturn = parsedObj[key];
|
||||
if (parsedObjToReturn[textNodeName]) {
|
||||
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
||||
delete parsedObjToReturn[textNodeName];
|
||||
}
|
||||
return getValueFromTextNode(parsedObjToReturn);
|
||||
}
|
||||
return {};
|
||||
});
|
||||
export const parseXmlErrorBody = async (errorBody, context) => {
|
||||
const value = await parseXmlBody(errorBody, context);
|
||||
if (value.Error) {
|
||||
value.Error.message = value.Error.message ?? value.Error.Message;
|
||||
}
|
||||
return value;
|
||||
};
|
||||
export const loadRestXmlErrorCode = (output, data) => {
|
||||
if (data?.Error?.Code !== undefined) {
|
||||
return data.Error.Code;
|
||||
}
|
||||
if (data?.Code !== undefined) {
|
||||
return data.Code;
|
||||
}
|
||||
if (output.statusCode == 404) {
|
||||
return "NotFound";
|
||||
}
|
||||
};
|
||||
5
resources/app/node_modules/@aws-sdk/core/httpAuthSchemes.js
generated
vendored
Normal file
5
resources/app/node_modules/@aws-sdk/core/httpAuthSchemes.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Do not edit:
|
||||
* This is a compatibility redirect for contexts that do not understand package.json exports field.
|
||||
*/
|
||||
module.exports = require("./dist-cjs/submodules/httpAuthSchemes/index.js");
|
||||
83
resources/app/node_modules/@aws-sdk/core/package.json
generated
vendored
Normal file
83
resources/app/node_modules/@aws-sdk/core/package.json
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"name": "@aws-sdk/core",
|
||||
"version": "3.576.0",
|
||||
"description": "Core functions & classes shared by multiple AWS SDK clients",
|
||||
"main": "./dist-cjs/index.js",
|
||||
"module": "./dist-es/index.js",
|
||||
"types": "./dist-types/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"node": "./dist-cjs/index.js",
|
||||
"import": "./dist-es/index.js",
|
||||
"require": "./dist-cjs/index.js",
|
||||
"types": "./dist-types/index.d.ts"
|
||||
},
|
||||
"./package.json": {
|
||||
"node": "./package.json",
|
||||
"import": "./package.json",
|
||||
"require": "./package.json"
|
||||
},
|
||||
"./client": {
|
||||
"node": "./dist-cjs/submodules/client/index.js",
|
||||
"import": "./dist-es/submodules/client/index.js",
|
||||
"require": "./dist-cjs/submodules/client/index.js",
|
||||
"types": "./dist-types/submodules/client/index.d.ts"
|
||||
},
|
||||
"./httpAuthSchemes": {
|
||||
"node": "./dist-cjs/submodules/httpAuthSchemes/index.js",
|
||||
"import": "./dist-es/submodules/httpAuthSchemes/index.js",
|
||||
"require": "./dist-cjs/submodules/httpAuthSchemes/index.js",
|
||||
"types": "./dist-types/submodules/httpAuthSchemes/index.d.ts"
|
||||
},
|
||||
"./protocols": {
|
||||
"node": "./dist-cjs/submodules/protocols/index.js",
|
||||
"import": "./dist-es/submodules/protocols/index.js",
|
||||
"require": "./dist-cjs/submodules/protocols/index.js",
|
||||
"types": "./dist-types/submodules/protocols/index.d.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist-*/**",
|
||||
"./client.js",
|
||||
"./httpAuthSchemes.js",
|
||||
"./protocols.js"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"author": {
|
||||
"name": "AWS SDK for JavaScript Team",
|
||||
"url": "https://aws.amazon.com/javascript/"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@smithy/core": "^2.0.0",
|
||||
"@smithy/protocol-http": "^4.0.0",
|
||||
"@smithy/signature-v4": "^3.0.0",
|
||||
"@smithy/smithy-client": "^3.0.0",
|
||||
"@smithy/types": "^3.0.0",
|
||||
"fast-xml-parser": "4.2.5",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tsconfig/recommended": "1.0.1",
|
||||
"concurrently": "7.0.0",
|
||||
"downlevel-dts": "0.10.1",
|
||||
"rimraf": "3.0.2",
|
||||
"typescript": "~4.9.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
},
|
||||
"typesVersions": {
|
||||
"<4.0": {
|
||||
"dist-types/*": [
|
||||
"dist-types/ts3.4/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/core",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
||||
"directory": "packages/core"
|
||||
}
|
||||
}
|
||||
5
resources/app/node_modules/@aws-sdk/core/protocols.js
generated
vendored
Normal file
5
resources/app/node_modules/@aws-sdk/core/protocols.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Do not edit:
|
||||
* This is a compatibility redirect for contexts that do not understand package.json exports field.
|
||||
*/
|
||||
module.exports = require("./dist-cjs/submodules/protocols/index.js");
|
||||
Reference in New Issue
Block a user