@rharkor/caching-for-turbo 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/cli/index.js +185 -56
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ the following step **before** you run `turbo build`:
|
|
|
55
55
|
|
|
56
56
|
```yaml
|
|
57
57
|
- name: Cache for Turbo
|
|
58
|
-
uses: rharkor/caching-for-turbo@v2.1
|
|
58
|
+
uses: rharkor/caching-for-turbo@v2.2.1
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
This GitHub Action facilitates:
|
|
@@ -165,6 +165,7 @@ with:
|
|
|
165
165
|
# S3 Provider Configuration (variables will be read from environment variables if not provided)
|
|
166
166
|
s3-access-key-id: ${{ secrets.S3_ACCESS_KEY_ID }} # S3 access key
|
|
167
167
|
s3-secret-access-key: ${{ secrets.S3_SECRET_ACCESS_KEY }} # S3 secret key
|
|
168
|
+
s3-session-token: ${{ secrets.S3_SESSION_TOKEN }} # Optional S3 session token, for temporary credentials (e.g. OIDC)
|
|
168
169
|
s3-bucket: your-bucket-name # S3 bucket name
|
|
169
170
|
s3-region: us-east-1 # S3 bucket region
|
|
170
171
|
s3-endpoint: https://s3.amazonaws.com # S3 endpoint
|
|
@@ -200,7 +201,7 @@ Example S3 configuration:
|
|
|
200
201
|
|
|
201
202
|
```yaml
|
|
202
203
|
- name: Cache for Turbo
|
|
203
|
-
uses: rharkor/caching-for-turbo@v2.1
|
|
204
|
+
uses: rharkor/caching-for-turbo@v2.2.1
|
|
204
205
|
with:
|
|
205
206
|
provider: s3
|
|
206
207
|
s3-bucket: my-turbo-cache-bucket
|
|
@@ -234,7 +235,7 @@ Example with cleanup configuration:
|
|
|
234
235
|
|
|
235
236
|
```yaml
|
|
236
237
|
- name: Cache for Turbo
|
|
237
|
-
uses: rharkor/caching-for-turbo@v2.1
|
|
238
|
+
uses: rharkor/caching-for-turbo@v2.2.1
|
|
238
239
|
with:
|
|
239
240
|
provider: s3
|
|
240
241
|
s3-bucket: my-turbo-cache-bucket
|
package/dist/cli/index.js
CHANGED
|
@@ -25045,7 +25045,7 @@ var import_protocols3 = __nccwpck_require__(93422);
|
|
|
25045
25045
|
var import_schema5 = __nccwpck_require__(26890);
|
|
25046
25046
|
var import_smithy_client3 = __nccwpck_require__(61411);
|
|
25047
25047
|
var import_util_utf8 = __nccwpck_require__(71577);
|
|
25048
|
-
var import_fast_xml_parser = __nccwpck_require__(
|
|
25048
|
+
var import_fast_xml_parser = __nccwpck_require__(77597);
|
|
25049
25049
|
var XmlShapeDeserializer = class extends SerdeContextConfig {
|
|
25050
25050
|
constructor(settings) {
|
|
25051
25051
|
super();
|
|
@@ -25521,7 +25521,7 @@ var import_util_body_length_browser4 = __nccwpck_require__(12098);
|
|
|
25521
25521
|
|
|
25522
25522
|
// src/submodules/protocols/xml/parseXmlBody.ts
|
|
25523
25523
|
var import_smithy_client5 = __nccwpck_require__(61411);
|
|
25524
|
-
var import_fast_xml_parser2 = __nccwpck_require__(
|
|
25524
|
+
var import_fast_xml_parser2 = __nccwpck_require__(77597);
|
|
25525
25525
|
var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
25526
25526
|
if (encoded.length) {
|
|
25527
25527
|
const parser = new import_fast_xml_parser2.XMLParser({
|
|
@@ -33143,8 +33143,10 @@ __export(index_exports, {
|
|
|
33143
33143
|
getUserAgentPrefix: () => getUserAgentPrefix,
|
|
33144
33144
|
isIpAddress: () => import_util_endpoints.isIpAddress,
|
|
33145
33145
|
partition: () => partition,
|
|
33146
|
+
resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
|
|
33146
33147
|
resolveEndpoint: () => import_util_endpoints.resolveEndpoint,
|
|
33147
33148
|
setPartitionInfo: () => setPartitionInfo,
|
|
33149
|
+
toEndpointV1: () => toEndpointV1,
|
|
33148
33150
|
useDefaultPartitionInfo: () => useDefaultPartitionInfo
|
|
33149
33151
|
});
|
|
33150
33152
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -33515,6 +33517,32 @@ var awsEndpointFunctions = {
|
|
|
33515
33517
|
};
|
|
33516
33518
|
import_util_endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
|
33517
33519
|
|
|
33520
|
+
// src/resolveDefaultAwsRegionalEndpointsConfig.ts
|
|
33521
|
+
var import_url_parser = __nccwpck_require__(14494);
|
|
33522
|
+
var resolveDefaultAwsRegionalEndpointsConfig = /* @__PURE__ */ __name((input) => {
|
|
33523
|
+
if (typeof input.endpointProvider !== "function") {
|
|
33524
|
+
throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");
|
|
33525
|
+
}
|
|
33526
|
+
const { endpoint } = input;
|
|
33527
|
+
if (endpoint === void 0) {
|
|
33528
|
+
input.endpoint = async () => {
|
|
33529
|
+
return toEndpointV1(
|
|
33530
|
+
input.endpointProvider(
|
|
33531
|
+
{
|
|
33532
|
+
Region: typeof input.region === "function" ? await input.region() : input.region,
|
|
33533
|
+
UseDualStack: typeof input.useDualstackEndpoint === "function" ? await input.useDualstackEndpoint() : input.useDualstackEndpoint,
|
|
33534
|
+
UseFIPS: typeof input.useFipsEndpoint === "function" ? await input.useFipsEndpoint() : input.useFipsEndpoint,
|
|
33535
|
+
Endpoint: void 0
|
|
33536
|
+
},
|
|
33537
|
+
{ logger: input.logger }
|
|
33538
|
+
)
|
|
33539
|
+
);
|
|
33540
|
+
};
|
|
33541
|
+
}
|
|
33542
|
+
return input;
|
|
33543
|
+
}, "resolveDefaultAwsRegionalEndpointsConfig");
|
|
33544
|
+
var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => (0, import_url_parser.parseUrl)(endpoint.url), "toEndpointV1");
|
|
33545
|
+
|
|
33518
33546
|
// src/resolveEndpoint.ts
|
|
33519
33547
|
|
|
33520
33548
|
|
|
@@ -77112,7 +77140,10 @@ var HttpProtocol = class {
|
|
|
77112
77140
|
|
|
77113
77141
|
// src/submodules/protocols/HttpBindingProtocol.ts
|
|
77114
77142
|
var HttpBindingProtocol = class extends HttpProtocol {
|
|
77115
|
-
async serializeRequest(operationSchema,
|
|
77143
|
+
async serializeRequest(operationSchema, _input, context) {
|
|
77144
|
+
const input = {
|
|
77145
|
+
..._input ?? {}
|
|
77146
|
+
};
|
|
77116
77147
|
const serializer = this.serializer;
|
|
77117
77148
|
const query = {};
|
|
77118
77149
|
const headers = {};
|
|
@@ -77147,16 +77178,12 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
77147
77178
|
Object.assign(query, Object.fromEntries(traitSearchParams));
|
|
77148
77179
|
}
|
|
77149
77180
|
}
|
|
77150
|
-
const
|
|
77151
|
-
|
|
77152
|
-
|
|
77153
|
-
|
|
77154
|
-
const memberNs = ns.getMemberSchema(memberName);
|
|
77155
|
-
if (memberNs === void 0) {
|
|
77181
|
+
for (const [memberName, memberNs] of ns.structIterator()) {
|
|
77182
|
+
const memberTraits = memberNs.getMergedTraits() ?? {};
|
|
77183
|
+
const inputMemberValue = input[memberName];
|
|
77184
|
+
if (inputMemberValue == null) {
|
|
77156
77185
|
continue;
|
|
77157
77186
|
}
|
|
77158
|
-
const memberTraits = memberNs.getMergedTraits();
|
|
77159
|
-
const inputMember = _input[memberName];
|
|
77160
77187
|
if (memberTraits.httpPayload) {
|
|
77161
77188
|
const isStreaming = memberNs.isStreaming();
|
|
77162
77189
|
if (isStreaming) {
|
|
@@ -77164,14 +77191,15 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
77164
77191
|
if (isEventStream) {
|
|
77165
77192
|
throw new Error("serialization of event streams is not yet implemented");
|
|
77166
77193
|
} else {
|
|
77167
|
-
payload =
|
|
77194
|
+
payload = inputMemberValue;
|
|
77168
77195
|
}
|
|
77169
77196
|
} else {
|
|
77170
|
-
serializer.write(memberNs,
|
|
77197
|
+
serializer.write(memberNs, inputMemberValue);
|
|
77171
77198
|
payload = serializer.flush();
|
|
77172
77199
|
}
|
|
77200
|
+
delete input[memberName];
|
|
77173
77201
|
} else if (memberTraits.httpLabel) {
|
|
77174
|
-
serializer.write(memberNs,
|
|
77202
|
+
serializer.write(memberNs, inputMemberValue);
|
|
77175
77203
|
const replacement = serializer.flush();
|
|
77176
77204
|
if (request.path.includes(`{${memberName}+}`)) {
|
|
77177
77205
|
request.path = request.path.replace(
|
|
@@ -77181,27 +77209,27 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
77181
77209
|
} else if (request.path.includes(`{${memberName}}`)) {
|
|
77182
77210
|
request.path = request.path.replace(`{${memberName}}`, extendedEncodeURIComponent(replacement));
|
|
77183
77211
|
}
|
|
77184
|
-
delete
|
|
77212
|
+
delete input[memberName];
|
|
77185
77213
|
} else if (memberTraits.httpHeader) {
|
|
77186
|
-
serializer.write(memberNs,
|
|
77214
|
+
serializer.write(memberNs, inputMemberValue);
|
|
77187
77215
|
headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
|
|
77188
|
-
delete
|
|
77216
|
+
delete input[memberName];
|
|
77189
77217
|
} else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
77190
|
-
for (const [key, val] of Object.entries(
|
|
77218
|
+
for (const [key, val] of Object.entries(inputMemberValue)) {
|
|
77191
77219
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
77192
77220
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
77193
77221
|
headers[amalgam.toLowerCase()] = serializer.flush();
|
|
77194
77222
|
}
|
|
77195
|
-
delete
|
|
77223
|
+
delete input[memberName];
|
|
77196
77224
|
} else if (memberTraits.httpQuery || memberTraits.httpQueryParams) {
|
|
77197
|
-
this.serializeQuery(memberNs,
|
|
77198
|
-
delete
|
|
77225
|
+
this.serializeQuery(memberNs, inputMemberValue, query);
|
|
77226
|
+
delete input[memberName];
|
|
77199
77227
|
} else {
|
|
77200
77228
|
hasNonHttpBindingMember = true;
|
|
77201
77229
|
}
|
|
77202
77230
|
}
|
|
77203
77231
|
if (hasNonHttpBindingMember && input) {
|
|
77204
|
-
serializer.write(schema,
|
|
77232
|
+
serializer.write(schema, input);
|
|
77205
77233
|
payload = serializer.flush();
|
|
77206
77234
|
}
|
|
77207
77235
|
request.headers = headers;
|
|
@@ -77958,12 +77986,24 @@ var Schema = class {
|
|
|
77958
77986
|
};
|
|
77959
77987
|
|
|
77960
77988
|
// src/submodules/schema/schemas/ListSchema.ts
|
|
77961
|
-
var ListSchema = class extends Schema {
|
|
77989
|
+
var ListSchema = class _ListSchema extends Schema {
|
|
77962
77990
|
constructor(name, traits, valueSchema) {
|
|
77963
77991
|
super(name, traits);
|
|
77964
77992
|
this.name = name;
|
|
77965
77993
|
this.traits = traits;
|
|
77966
77994
|
this.valueSchema = valueSchema;
|
|
77995
|
+
this.symbol = _ListSchema.symbol;
|
|
77996
|
+
}
|
|
77997
|
+
static {
|
|
77998
|
+
this.symbol = Symbol.for("@smithy/core/schema::ListSchema");
|
|
77999
|
+
}
|
|
78000
|
+
static [Symbol.hasInstance](lhs) {
|
|
78001
|
+
const isPrototype = _ListSchema.prototype.isPrototypeOf(lhs);
|
|
78002
|
+
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
78003
|
+
const list2 = lhs;
|
|
78004
|
+
return list2.symbol === _ListSchema.symbol;
|
|
78005
|
+
}
|
|
78006
|
+
return isPrototype;
|
|
77967
78007
|
}
|
|
77968
78008
|
};
|
|
77969
78009
|
function list(namespace, name, traits = {}, valueSchema) {
|
|
@@ -77977,13 +78017,25 @@ function list(namespace, name, traits = {}, valueSchema) {
|
|
|
77977
78017
|
}
|
|
77978
78018
|
|
|
77979
78019
|
// src/submodules/schema/schemas/MapSchema.ts
|
|
77980
|
-
var MapSchema = class extends Schema {
|
|
78020
|
+
var MapSchema = class _MapSchema extends Schema {
|
|
77981
78021
|
constructor(name, traits, keySchema, valueSchema) {
|
|
77982
78022
|
super(name, traits);
|
|
77983
78023
|
this.name = name;
|
|
77984
78024
|
this.traits = traits;
|
|
77985
78025
|
this.keySchema = keySchema;
|
|
77986
78026
|
this.valueSchema = valueSchema;
|
|
78027
|
+
this.symbol = _MapSchema.symbol;
|
|
78028
|
+
}
|
|
78029
|
+
static {
|
|
78030
|
+
this.symbol = Symbol.for("@smithy/core/schema::MapSchema");
|
|
78031
|
+
}
|
|
78032
|
+
static [Symbol.hasInstance](lhs) {
|
|
78033
|
+
const isPrototype = _MapSchema.prototype.isPrototypeOf(lhs);
|
|
78034
|
+
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
78035
|
+
const map2 = lhs;
|
|
78036
|
+
return map2.symbol === _MapSchema.symbol;
|
|
78037
|
+
}
|
|
78038
|
+
return isPrototype;
|
|
77987
78039
|
}
|
|
77988
78040
|
};
|
|
77989
78041
|
function map(namespace, name, traits = {}, keySchema, valueSchema) {
|
|
@@ -78014,18 +78066,30 @@ function op(namespace, name, traits = {}, input, output) {
|
|
|
78014
78066
|
}
|
|
78015
78067
|
|
|
78016
78068
|
// src/submodules/schema/schemas/StructureSchema.ts
|
|
78017
|
-
var StructureSchema = class extends Schema {
|
|
78069
|
+
var StructureSchema = class _StructureSchema extends Schema {
|
|
78018
78070
|
constructor(name, traits, memberNames, memberList) {
|
|
78019
78071
|
super(name, traits);
|
|
78020
78072
|
this.name = name;
|
|
78021
78073
|
this.traits = traits;
|
|
78022
78074
|
this.memberNames = memberNames;
|
|
78023
78075
|
this.memberList = memberList;
|
|
78076
|
+
this.symbol = _StructureSchema.symbol;
|
|
78024
78077
|
this.members = {};
|
|
78025
78078
|
for (let i = 0; i < memberNames.length; ++i) {
|
|
78026
78079
|
this.members[memberNames[i]] = Array.isArray(memberList[i]) ? memberList[i] : [memberList[i], 0];
|
|
78027
78080
|
}
|
|
78028
78081
|
}
|
|
78082
|
+
static {
|
|
78083
|
+
this.symbol = Symbol.for("@smithy/core/schema::StructureSchema");
|
|
78084
|
+
}
|
|
78085
|
+
static [Symbol.hasInstance](lhs) {
|
|
78086
|
+
const isPrototype = _StructureSchema.prototype.isPrototypeOf(lhs);
|
|
78087
|
+
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
78088
|
+
const struct2 = lhs;
|
|
78089
|
+
return struct2.symbol === _StructureSchema.symbol;
|
|
78090
|
+
}
|
|
78091
|
+
return isPrototype;
|
|
78092
|
+
}
|
|
78029
78093
|
};
|
|
78030
78094
|
function struct(namespace, name, traits, memberNames, memberList) {
|
|
78031
78095
|
const schema = new StructureSchema(namespace + "#" + name, traits, memberNames, memberList);
|
|
@@ -78034,7 +78098,7 @@ function struct(namespace, name, traits, memberNames, memberList) {
|
|
|
78034
78098
|
}
|
|
78035
78099
|
|
|
78036
78100
|
// src/submodules/schema/schemas/ErrorSchema.ts
|
|
78037
|
-
var ErrorSchema = class extends StructureSchema {
|
|
78101
|
+
var ErrorSchema = class _ErrorSchema extends StructureSchema {
|
|
78038
78102
|
constructor(name, traits, memberNames, memberList, ctor) {
|
|
78039
78103
|
super(name, traits, memberNames, memberList);
|
|
78040
78104
|
this.name = name;
|
|
@@ -78042,6 +78106,18 @@ var ErrorSchema = class extends StructureSchema {
|
|
|
78042
78106
|
this.memberNames = memberNames;
|
|
78043
78107
|
this.memberList = memberList;
|
|
78044
78108
|
this.ctor = ctor;
|
|
78109
|
+
this.symbol = _ErrorSchema.symbol;
|
|
78110
|
+
}
|
|
78111
|
+
static {
|
|
78112
|
+
this.symbol = Symbol.for("@smithy/core/schema::ErrorSchema");
|
|
78113
|
+
}
|
|
78114
|
+
static [Symbol.hasInstance](lhs) {
|
|
78115
|
+
const isPrototype = _ErrorSchema.prototype.isPrototypeOf(lhs);
|
|
78116
|
+
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
78117
|
+
const err = lhs;
|
|
78118
|
+
return err.symbol === _ErrorSchema.symbol;
|
|
78119
|
+
}
|
|
78120
|
+
return isPrototype;
|
|
78045
78121
|
}
|
|
78046
78122
|
};
|
|
78047
78123
|
function error(namespace, name, traits = {}, memberNames, memberList, ctor) {
|
|
@@ -78083,12 +78159,24 @@ var SCHEMA = {
|
|
|
78083
78159
|
};
|
|
78084
78160
|
|
|
78085
78161
|
// src/submodules/schema/schemas/SimpleSchema.ts
|
|
78086
|
-
var SimpleSchema = class extends Schema {
|
|
78162
|
+
var SimpleSchema = class _SimpleSchema extends Schema {
|
|
78087
78163
|
constructor(name, schemaRef, traits) {
|
|
78088
78164
|
super(name, traits);
|
|
78089
78165
|
this.name = name;
|
|
78090
78166
|
this.schemaRef = schemaRef;
|
|
78091
78167
|
this.traits = traits;
|
|
78168
|
+
this.symbol = _SimpleSchema.symbol;
|
|
78169
|
+
}
|
|
78170
|
+
static {
|
|
78171
|
+
this.symbol = Symbol.for("@smithy/core/schema::SimpleSchema");
|
|
78172
|
+
}
|
|
78173
|
+
static [Symbol.hasInstance](lhs) {
|
|
78174
|
+
const isPrototype = _SimpleSchema.prototype.isPrototypeOf(lhs);
|
|
78175
|
+
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
78176
|
+
const sim2 = lhs;
|
|
78177
|
+
return sim2.symbol === _SimpleSchema.symbol;
|
|
78178
|
+
}
|
|
78179
|
+
return isPrototype;
|
|
78092
78180
|
}
|
|
78093
78181
|
};
|
|
78094
78182
|
function sim(namespace, name, schemaRef, traits) {
|
|
@@ -78106,6 +78194,7 @@ var NormalizedSchema = class _NormalizedSchema {
|
|
|
78106
78194
|
constructor(ref, memberName) {
|
|
78107
78195
|
this.ref = ref;
|
|
78108
78196
|
this.memberName = memberName;
|
|
78197
|
+
this.symbol = _NormalizedSchema.symbol;
|
|
78109
78198
|
const traitStack = [];
|
|
78110
78199
|
let _ref = ref;
|
|
78111
78200
|
let schema = ref;
|
|
@@ -78145,10 +78234,23 @@ var NormalizedSchema = class _NormalizedSchema {
|
|
|
78145
78234
|
this.name = (typeof this.schema === "object" ? this.schema?.name : void 0) ?? this.memberName ?? this.getSchemaName();
|
|
78146
78235
|
if (this._isMemberSchema && !memberName) {
|
|
78147
78236
|
throw new Error(
|
|
78148
|
-
`@smithy/core/schema - NormalizedSchema member schema ${this.getName(
|
|
78237
|
+
`@smithy/core/schema - NormalizedSchema member schema ${this.getName(
|
|
78238
|
+
true
|
|
78239
|
+
)} must initialize with memberName argument.`
|
|
78149
78240
|
);
|
|
78150
78241
|
}
|
|
78151
78242
|
}
|
|
78243
|
+
static {
|
|
78244
|
+
this.symbol = Symbol.for("@smithy/core/schema::NormalizedSchema");
|
|
78245
|
+
}
|
|
78246
|
+
static [Symbol.hasInstance](lhs) {
|
|
78247
|
+
const isPrototype = _NormalizedSchema.prototype.isPrototypeOf(lhs);
|
|
78248
|
+
if (!isPrototype && typeof lhs === "object" && lhs !== null) {
|
|
78249
|
+
const ns = lhs;
|
|
78250
|
+
return ns.symbol === _NormalizedSchema.symbol;
|
|
78251
|
+
}
|
|
78252
|
+
return isPrototype;
|
|
78253
|
+
}
|
|
78152
78254
|
/**
|
|
78153
78255
|
* Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
|
|
78154
78256
|
*/
|
|
@@ -80508,11 +80610,11 @@ var FetchHttpHandler = class _FetchHttpHandler {
|
|
|
80508
80610
|
}
|
|
80509
80611
|
destroy() {
|
|
80510
80612
|
}
|
|
80511
|
-
async handle(request, { abortSignal } = {}) {
|
|
80613
|
+
async handle(request, { abortSignal, requestTimeout: requestTimeout2 } = {}) {
|
|
80512
80614
|
if (!this.config) {
|
|
80513
80615
|
this.config = await this.configProvider;
|
|
80514
80616
|
}
|
|
80515
|
-
const requestTimeoutInMs = this.config.requestTimeout;
|
|
80617
|
+
const requestTimeoutInMs = requestTimeout2 ?? this.config.requestTimeout;
|
|
80516
80618
|
const keepAlive = this.config.keepAlive === true;
|
|
80517
80619
|
const credentials = this.config.credentials;
|
|
80518
80620
|
if (abortSignal?.aborted) {
|
|
@@ -81125,6 +81227,9 @@ var createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndp
|
|
|
81125
81227
|
}
|
|
81126
81228
|
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
|
|
81127
81229
|
return async () => {
|
|
81230
|
+
if (config.isCustomEndpoint === false) {
|
|
81231
|
+
return void 0;
|
|
81232
|
+
}
|
|
81128
81233
|
const endpoint = await configProvider();
|
|
81129
81234
|
if (endpoint && typeof endpoint === "object") {
|
|
81130
81235
|
if ("url" in endpoint) {
|
|
@@ -81158,7 +81263,7 @@ var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => {
|
|
|
81158
81263
|
|
|
81159
81264
|
// src/adaptors/getEndpointFromInstructions.ts
|
|
81160
81265
|
var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => {
|
|
81161
|
-
if (!clientConfig.
|
|
81266
|
+
if (!clientConfig.isCustomEndpoint) {
|
|
81162
81267
|
let endpointFromConfig;
|
|
81163
81268
|
if (clientConfig.serviceConfiguredEndpoint) {
|
|
81164
81269
|
endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
|
|
@@ -81215,7 +81320,7 @@ var endpointMiddleware = /* @__PURE__ */ __name(({
|
|
|
81215
81320
|
instructions
|
|
81216
81321
|
}) => {
|
|
81217
81322
|
return (next, context) => async (args) => {
|
|
81218
|
-
if (config.
|
|
81323
|
+
if (config.isCustomEndpoint) {
|
|
81219
81324
|
(0, import_core.setFeature)(context, "ENDPOINT_OVERRIDE", "N");
|
|
81220
81325
|
}
|
|
81221
81326
|
const endpoint = await getEndpointFromInstructions(
|
|
@@ -83275,7 +83380,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
83275
83380
|
this.config?.httpAgent?.destroy();
|
|
83276
83381
|
this.config?.httpsAgent?.destroy();
|
|
83277
83382
|
}
|
|
83278
|
-
async handle(request, { abortSignal } = {}) {
|
|
83383
|
+
async handle(request, { abortSignal, requestTimeout } = {}) {
|
|
83279
83384
|
if (!this.config) {
|
|
83280
83385
|
this.config = await this.configProvider;
|
|
83281
83386
|
}
|
|
@@ -83376,8 +83481,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
83376
83481
|
abortSignal.onabort = onAbort;
|
|
83377
83482
|
}
|
|
83378
83483
|
}
|
|
83484
|
+
const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
|
|
83379
83485
|
timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
|
|
83380
|
-
timeouts.push(setSocketTimeout(req, reject,
|
|
83486
|
+
timeouts.push(setSocketTimeout(req, reject, effectiveRequestTimeout));
|
|
83381
83487
|
const httpAgent = nodeHttpsOptions.agent;
|
|
83382
83488
|
if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
|
|
83383
83489
|
timeouts.push(
|
|
@@ -83389,7 +83495,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
83389
83495
|
})
|
|
83390
83496
|
);
|
|
83391
83497
|
}
|
|
83392
|
-
writeRequestBodyPromise = writeRequestBody(req, request,
|
|
83498
|
+
writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout).catch((e) => {
|
|
83393
83499
|
timeouts.forEach(timing.clearTimeout);
|
|
83394
83500
|
return _reject(e);
|
|
83395
83501
|
});
|
|
@@ -83578,7 +83684,7 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
|
83578
83684
|
destroy() {
|
|
83579
83685
|
this.connectionManager.destroy();
|
|
83580
83686
|
}
|
|
83581
|
-
async handle(request, { abortSignal } = {}) {
|
|
83687
|
+
async handle(request, { abortSignal, requestTimeout } = {}) {
|
|
83582
83688
|
if (!this.config) {
|
|
83583
83689
|
this.config = await this.configProvider;
|
|
83584
83690
|
this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false);
|
|
@@ -83586,7 +83692,8 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
|
83586
83692
|
this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
|
|
83587
83693
|
}
|
|
83588
83694
|
}
|
|
83589
|
-
const { requestTimeout, disableConcurrentStreams } = this.config;
|
|
83695
|
+
const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config;
|
|
83696
|
+
const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout;
|
|
83590
83697
|
return new Promise((_resolve, _reject) => {
|
|
83591
83698
|
let fulfilled = false;
|
|
83592
83699
|
let writeRequestBodyPromise = void 0;
|
|
@@ -83652,10 +83759,10 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
|
83652
83759
|
this.connectionManager.deleteSession(authority, session);
|
|
83653
83760
|
}
|
|
83654
83761
|
});
|
|
83655
|
-
if (
|
|
83656
|
-
req.setTimeout(
|
|
83762
|
+
if (effectiveRequestTimeout) {
|
|
83763
|
+
req.setTimeout(effectiveRequestTimeout, () => {
|
|
83657
83764
|
req.close();
|
|
83658
|
-
const timeoutError = new Error(`Stream timed out because of no activity for ${
|
|
83765
|
+
const timeoutError = new Error(`Stream timed out because of no activity for ${effectiveRequestTimeout} ms`);
|
|
83659
83766
|
timeoutError.name = "TimeoutError";
|
|
83660
83767
|
rejectWithDestroy(timeoutError);
|
|
83661
83768
|
});
|
|
@@ -83693,7 +83800,7 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
|
83693
83800
|
rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
|
|
83694
83801
|
}
|
|
83695
83802
|
});
|
|
83696
|
-
writeRequestBodyPromise = writeRequestBody(req, request,
|
|
83803
|
+
writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout);
|
|
83697
83804
|
});
|
|
83698
83805
|
}
|
|
83699
83806
|
updateHttpClientConfig(key, value) {
|
|
@@ -97450,6 +97557,13 @@ function _getRandomTip () {
|
|
|
97450
97557
|
return TIPS[Math.floor(Math.random() * TIPS.length)]
|
|
97451
97558
|
}
|
|
97452
97559
|
|
|
97560
|
+
function parseBoolean (value) {
|
|
97561
|
+
if (typeof value === 'string') {
|
|
97562
|
+
return !['false', '0', 'no', 'off', ''].includes(value.toLowerCase())
|
|
97563
|
+
}
|
|
97564
|
+
return Boolean(value)
|
|
97565
|
+
}
|
|
97566
|
+
|
|
97453
97567
|
function supportsAnsi () {
|
|
97454
97568
|
return process.stdout.isTTY // && process.env.TERM !== 'dumb'
|
|
97455
97569
|
}
|
|
@@ -97641,8 +97755,8 @@ function _resolveHome (envPath) {
|
|
|
97641
97755
|
}
|
|
97642
97756
|
|
|
97643
97757
|
function _configVault (options) {
|
|
97644
|
-
const debug =
|
|
97645
|
-
const quiet =
|
|
97758
|
+
const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || (options && options.debug))
|
|
97759
|
+
const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || (options && options.quiet))
|
|
97646
97760
|
|
|
97647
97761
|
if (debug || !quiet) {
|
|
97648
97762
|
_log('Loading env from encrypted .env.vault')
|
|
@@ -97663,8 +97777,12 @@ function _configVault (options) {
|
|
|
97663
97777
|
function configDotenv (options) {
|
|
97664
97778
|
const dotenvPath = path.resolve(process.cwd(), '.env')
|
|
97665
97779
|
let encoding = 'utf8'
|
|
97666
|
-
|
|
97667
|
-
|
|
97780
|
+
let processEnv = process.env
|
|
97781
|
+
if (options && options.processEnv != null) {
|
|
97782
|
+
processEnv = options.processEnv
|
|
97783
|
+
}
|
|
97784
|
+
let debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || (options && options.debug))
|
|
97785
|
+
let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || (options && options.quiet))
|
|
97668
97786
|
|
|
97669
97787
|
if (options && options.encoding) {
|
|
97670
97788
|
encoding = options.encoding
|
|
@@ -97704,13 +97822,12 @@ function configDotenv (options) {
|
|
|
97704
97822
|
}
|
|
97705
97823
|
}
|
|
97706
97824
|
|
|
97707
|
-
let processEnv = process.env
|
|
97708
|
-
if (options && options.processEnv != null) {
|
|
97709
|
-
processEnv = options.processEnv
|
|
97710
|
-
}
|
|
97711
|
-
|
|
97712
97825
|
const populated = DotenvModule.populate(processEnv, parsedAll, options)
|
|
97713
97826
|
|
|
97827
|
+
// handle user settings DOTENV_CONFIG_ options inside .env file(s)
|
|
97828
|
+
debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug)
|
|
97829
|
+
quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet)
|
|
97830
|
+
|
|
97714
97831
|
if (debug || !quiet) {
|
|
97715
97832
|
const keysCount = Object.keys(populated).length
|
|
97716
97833
|
const shortPaths = []
|
|
@@ -195338,6 +195455,13 @@ function negateAsync(asyncFn) {
|
|
|
195338
195455
|
module.exports = waitOn;
|
|
195339
195456
|
|
|
195340
195457
|
|
|
195458
|
+
/***/ }),
|
|
195459
|
+
|
|
195460
|
+
/***/ 77597:
|
|
195461
|
+
/***/ ((module) => {
|
|
195462
|
+
|
|
195463
|
+
(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{XMLBuilder:()=>ft,XMLParser:()=>st,XMLValidator:()=>mt});const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("^["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(t,e){const n=[];let i=e.exec(t);for(;i;){const s=[];s.startIndex=e.lastIndex-i[0].length;const r=i.length;for(let t=0;t<r;t++)s.push(i[t]);n.push(s),i=e.exec(t)}return n}const r=function(t){return!(null==i.exec(t))},o={allowBooleanAttributes:!1,unpairedTags:[]};function a(t,e){e=Object.assign({},o,e);const n=[];let i=!1,s=!1;"\ufeff"===t[0]&&(t=t.substr(1));for(let o=0;o<t.length;o++)if("<"===t[o]&&"?"===t[o+1]){if(o+=2,o=u(t,o),o.err)return o}else{if("<"!==t[o]){if(l(t[o]))continue;return x("InvalidChar","char '"+t[o]+"' is not expected.",N(t,o))}{let a=o;if(o++,"!"===t[o]){o=h(t,o);continue}{let d=!1;"/"===t[o]&&(d=!0,o++);let f="";for(;o<t.length&&">"!==t[o]&&" "!==t[o]&&"\t"!==t[o]&&"\n"!==t[o]&&"\r"!==t[o];o++)f+=t[o];if(f=f.trim(),"/"===f[f.length-1]&&(f=f.substring(0,f.length-1),o--),!r(f)){let e;return e=0===f.trim().length?"Invalid space after '<'.":"Tag '"+f+"' is an invalid name.",x("InvalidTag",e,N(t,o))}const p=c(t,o);if(!1===p)return x("InvalidAttr","Attributes for '"+f+"' have open quote.",N(t,o));let b=p.value;if(o=p.index,"/"===b[b.length-1]){const n=o-b.length;b=b.substring(0,b.length-1);const s=g(b,e);if(!0!==s)return x(s.err.code,s.err.msg,N(t,n+s.err.line));i=!0}else if(d){if(!p.tagClosed)return x("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",N(t,o));if(b.trim().length>0)return x("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",N(t,a));if(0===n.length)return x("InvalidTag","Closing tag '"+f+"' has not been opened.",N(t,a));{const e=n.pop();if(f!==e.tagName){let n=N(t,e.tagStartPos);return x("InvalidTag","Expected closing tag '"+e.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+f+"'.",N(t,a))}0==n.length&&(s=!0)}}else{const r=g(b,e);if(!0!==r)return x(r.err.code,r.err.msg,N(t,o-b.length+r.err.line));if(!0===s)return x("InvalidXml","Multiple possible root nodes found.",N(t,o));-1!==e.unpairedTags.indexOf(f)||n.push({tagName:f,tagStartPos:a}),i=!0}for(o++;o<t.length;o++)if("<"===t[o]){if("!"===t[o+1]){o++,o=h(t,o);continue}if("?"!==t[o+1])break;if(o=u(t,++o),o.err)return o}else if("&"===t[o]){const e=m(t,o);if(-1==e)return x("InvalidChar","char '&' is not expected.",N(t,o));o=e}else if(!0===s&&!l(t[o]))return x("InvalidXml","Extra text at the end",N(t,o));"<"===t[o]&&o--}}}return i?1==n.length?x("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",N(t,n[0].tagStartPos)):!(n.length>0)||x("InvalidXml","Invalid '"+JSON.stringify(n.map((t=>t.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):x("InvalidXml","Start tag expected.",1)}function l(t){return" "===t||"\t"===t||"\n"===t||"\r"===t}function u(t,e){const n=e;for(;e<t.length;e++)if("?"!=t[e]&&" "!=t[e]);else{const i=t.substr(n,e-n);if(e>5&&"xml"===i)return x("InvalidXml","XML declaration allowed only at the start of the document.",N(t,e));if("?"==t[e]&&">"==t[e+1]){e++;break}}return e}function h(t,e){if(t.length>e+5&&"-"===t[e+1]&&"-"===t[e+2]){for(e+=3;e<t.length;e++)if("-"===t[e]&&"-"===t[e+1]&&">"===t[e+2]){e+=2;break}}else if(t.length>e+8&&"D"===t[e+1]&&"O"===t[e+2]&&"C"===t[e+3]&&"T"===t[e+4]&&"Y"===t[e+5]&&"P"===t[e+6]&&"E"===t[e+7]){let n=1;for(e+=8;e<t.length;e++)if("<"===t[e])n++;else if(">"===t[e]&&(n--,0===n))break}else if(t.length>e+9&&"["===t[e+1]&&"C"===t[e+2]&&"D"===t[e+3]&&"A"===t[e+4]&&"T"===t[e+5]&&"A"===t[e+6]&&"["===t[e+7])for(e+=8;e<t.length;e++)if("]"===t[e]&&"]"===t[e+1]&&">"===t[e+2]){e+=2;break}return e}const d='"',f="'";function c(t,e){let n="",i="",s=!1;for(;e<t.length;e++){if(t[e]===d||t[e]===f)""===i?i=t[e]:i!==t[e]||(i="");else if(">"===t[e]&&""===i){s=!0;break}n+=t[e]}return""===i&&{value:n,index:e,tagClosed:s}}const p=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function g(t,e){const n=s(t,p),i={};for(let t=0;t<n.length;t++){if(0===n[t][1].length)return x("InvalidAttr","Attribute '"+n[t][2]+"' has no space in starting.",E(n[t]));if(void 0!==n[t][3]&&void 0===n[t][4])return x("InvalidAttr","Attribute '"+n[t][2]+"' is without value.",E(n[t]));if(void 0===n[t][3]&&!e.allowBooleanAttributes)return x("InvalidAttr","boolean attribute '"+n[t][2]+"' is not allowed.",E(n[t]));const s=n[t][2];if(!b(s))return x("InvalidAttr","Attribute '"+s+"' is an invalid name.",E(n[t]));if(i.hasOwnProperty(s))return x("InvalidAttr","Attribute '"+s+"' is repeated.",E(n[t]));i[s]=1}return!0}function m(t,e){if(";"===t[++e])return-1;if("#"===t[e])return function(t,e){let n=/\d/;for("x"===t[e]&&(e++,n=/[\da-fA-F]/);e<t.length;e++){if(";"===t[e])return e;if(!t[e].match(n))break}return-1}(t,++e);let n=0;for(;e<t.length;e++,n++)if(!(t[e].match(/\w/)&&n<20)){if(";"===t[e])break;return-1}return e}function x(t,e,n){return{err:{code:t,msg:e,line:n.line||n,col:n.col}}}function b(t){return r(t)}function N(t,e){const n=t.substring(0,e).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function E(t){return t.startIndex+t[1].length}const v={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,n){return t},captureMetaData:!1};let y;y="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class T{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,e){"__proto__"===t&&(t="#__proto__"),this.child.push({[t]:e})}addChild(t,e){"__proto__"===t.tagname&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),void 0!==e&&(this.child[this.child.length-1][y]={startIndex:e})}static getMetaDataSymbol(){return y}}function w(t,e){const n={};if("O"!==t[e+3]||"C"!==t[e+4]||"T"!==t[e+5]||"Y"!==t[e+6]||"P"!==t[e+7]||"E"!==t[e+8])throw new Error("Invalid Tag instead of DOCTYPE");{e+=9;let i=1,s=!1,r=!1,o="";for(;e<t.length;e++)if("<"!==t[e]||r)if(">"===t[e]){if(r?"-"===t[e-1]&&"-"===t[e-2]&&(r=!1,i--):i--,0===i)break}else"["===t[e]?s=!0:o+=t[e];else{if(s&&C(t,"!ENTITY",e)){let i,s;e+=7,[i,s,e]=O(t,e+1),-1===s.indexOf("&")&&(n[i]={regx:RegExp(`&${i};`,"g"),val:s})}else if(s&&C(t,"!ELEMENT",e)){e+=8;const{index:n}=S(t,e+1);e=n}else if(s&&C(t,"!ATTLIST",e))e+=8;else if(s&&C(t,"!NOTATION",e)){e+=9;const{index:n}=A(t,e+1);e=n}else{if(!C(t,"!--",e))throw new Error("Invalid DOCTYPE");r=!0}i++,o=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:e}}const P=(t,e)=>{for(;e<t.length&&/\s/.test(t[e]);)e++;return e};function O(t,e){e=P(t,e);let n="";for(;e<t.length&&!/\s/.test(t[e])&&'"'!==t[e]&&"'"!==t[e];)n+=t[e],e++;if($(n),e=P(t,e),"SYSTEM"===t.substring(e,e+6).toUpperCase())throw new Error("External entities are not supported");if("%"===t[e])throw new Error("Parameter entities are not supported");let i="";return[e,i]=I(t,e,"entity"),[n,i,--e]}function A(t,e){e=P(t,e);let n="";for(;e<t.length&&!/\s/.test(t[e]);)n+=t[e],e++;$(n),e=P(t,e);const i=t.substring(e,e+6).toUpperCase();if("SYSTEM"!==i&&"PUBLIC"!==i)throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);e+=i.length,e=P(t,e);let s=null,r=null;if("PUBLIC"===i)[e,s]=I(t,e,"publicIdentifier"),'"'!==t[e=P(t,e)]&&"'"!==t[e]||([e,r]=I(t,e,"systemIdentifier"));else if("SYSTEM"===i&&([e,r]=I(t,e,"systemIdentifier"),!r))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:s,systemIdentifier:r,index:--e}}function I(t,e,n){let i="";const s=t[e];if('"'!==s&&"'"!==s)throw new Error(`Expected quoted string, found "${s}"`);for(e++;e<t.length&&t[e]!==s;)i+=t[e],e++;if(t[e]!==s)throw new Error(`Unterminated ${n} value`);return[++e,i]}function S(t,e){e=P(t,e);let n="";for(;e<t.length&&!/\s/.test(t[e]);)n+=t[e],e++;if(!$(n))throw new Error(`Invalid element name: "${n}"`);let i="";if("E"===t[e=P(t,e)]&&C(t,"MPTY",e))e+=4;else if("A"===t[e]&&C(t,"NY",e))e+=2;else{if("("!==t[e])throw new Error(`Invalid Element Expression, found "${t[e]}"`);for(e++;e<t.length&&")"!==t[e];)i+=t[e],e++;if(")"!==t[e])throw new Error("Unterminated content model")}return{elementName:n,contentModel:i.trim(),index:e}}function C(t,e,n){for(let i=0;i<e.length;i++)if(e[i]!==t[n+i+1])return!1;return!0}function $(t){if(r(t))return t;throw new Error(`Invalid entity name ${t}`)}const j=/^[-+]?0x[a-fA-F0-9]+$/,D=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,V={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};const M=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function _(t){return"function"==typeof t?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1}class k{constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,e)=>String.fromCodePoint(Number.parseInt(e,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,e)=>String.fromCodePoint(Number.parseInt(e,16))}},this.addExternalEntities=F,this.parseXml=X,this.parseTextData=L,this.resolveNameSpace=B,this.buildAttributesMap=G,this.isItStopNode=Z,this.replaceEntitiesValue=R,this.readStopNodeData=J,this.saveTextToParentTag=q,this.addChild=Y,this.ignoreAttributesFn=_(this.options.ignoreAttributes)}}function F(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const i=e[n];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:t[i]}}}function L(t,e,n,i,s,r,o){if(void 0!==t&&(this.options.trimValues&&!i&&(t=t.trim()),t.length>0)){o||(t=this.replaceEntitiesValue(t));const i=this.options.tagValueProcessor(e,t,n,s,r);return null==i?t:typeof i!=typeof t||i!==t?i:this.options.trimValues||t.trim()===t?H(t,this.options.parseTagValue,this.options.numberParseOptions):t}}function B(t){if(this.options.removeNSPrefix){const e=t.split(":"),n="/"===t.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(t=n+e[1])}return t}const U=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function G(t,e,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof t){const n=s(t,U),i=n.length,r={};for(let t=0;t<i;t++){const i=this.resolveNameSpace(n[t][1]);if(this.ignoreAttributesFn(i,e))continue;let s=n[t][4],o=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),"__proto__"===o&&(o="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);const t=this.options.attributeValueProcessor(i,s,e);r[o]=null==t?s:typeof t!=typeof s||t!==s?t:H(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(r[o]=!0)}if(!Object.keys(r).length)return;if(this.options.attributesGroupName){const t={};return t[this.options.attributesGroupName]=r,t}return r}}const X=function(t){t=t.replace(/\r\n?/g,"\n");const e=new T("!xml");let n=e,i="",s="";for(let r=0;r<t.length;r++)if("<"===t[r])if("/"===t[r+1]){const e=W(t,">",r,"Closing Tag is not closed.");let o=t.substring(r+2,e).trim();if(this.options.removeNSPrefix){const t=o.indexOf(":");-1!==t&&(o=o.substr(t+1))}this.options.transformTagName&&(o=this.options.transformTagName(o)),n&&(i=this.saveTextToParentTag(i,n,s));const a=s.substring(s.lastIndexOf(".")+1);if(o&&-1!==this.options.unpairedTags.indexOf(o))throw new Error(`Unpaired tag can not be used as closing tag: </${o}>`);let l=0;a&&-1!==this.options.unpairedTags.indexOf(a)?(l=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=s.lastIndexOf("."),s=s.substring(0,l),n=this.tagsNodeStack.pop(),i="",r=e}else if("?"===t[r+1]){let e=z(t,r,!1,"?>");if(!e)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,s),this.options.ignoreDeclaration&&"?xml"===e.tagName||this.options.ignorePiTags);else{const t=new T(e.tagName);t.add(this.options.textNodeName,""),e.tagName!==e.tagExp&&e.attrExpPresent&&(t[":@"]=this.buildAttributesMap(e.tagExp,s,e.tagName)),this.addChild(n,t,s,r)}r=e.closeIndex+1}else if("!--"===t.substr(r+1,3)){const e=W(t,"--\x3e",r+4,"Comment is not closed.");if(this.options.commentPropName){const o=t.substring(r+4,e-2);i=this.saveTextToParentTag(i,n,s),n.add(this.options.commentPropName,[{[this.options.textNodeName]:o}])}r=e}else if("!D"===t.substr(r+1,2)){const e=w(t,r);this.docTypeEntities=e.entities,r=e.i}else if("!["===t.substr(r+1,2)){const e=W(t,"]]>",r,"CDATA is not closed.")-2,o=t.substring(r+9,e);i=this.saveTextToParentTag(i,n,s);let a=this.parseTextData(o,n.tagname,s,!0,!1,!0,!0);null==a&&(a=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:o}]):n.add(this.options.textNodeName,a),r=e+2}else{let o=z(t,r,this.options.removeNSPrefix),a=o.tagName;const l=o.rawTagName;let u=o.tagExp,h=o.attrExpPresent,d=o.closeIndex;this.options.transformTagName&&(a=this.options.transformTagName(a)),n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,s,!1));const f=n;f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(n=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),a!==e.tagname&&(s+=s?"."+a:a);const c=r;if(this.isItStopNode(this.options.stopNodes,s,a)){let e="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)"/"===a[a.length-1]?(a=a.substr(0,a.length-1),s=s.substr(0,s.length-1),u=a):u=u.substr(0,u.length-1),r=o.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(a))r=o.closeIndex;else{const n=this.readStopNodeData(t,l,d+1);if(!n)throw new Error(`Unexpected end of ${l}`);r=n.i,e=n.tagContent}const i=new T(a);a!==u&&h&&(i[":@"]=this.buildAttributesMap(u,s,a)),e&&(e=this.parseTextData(e,a,s,!0,h,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),i.add(this.options.textNodeName,e),this.addChild(n,i,s,c)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){"/"===a[a.length-1]?(a=a.substr(0,a.length-1),s=s.substr(0,s.length-1),u=a):u=u.substr(0,u.length-1),this.options.transformTagName&&(a=this.options.transformTagName(a));const t=new T(a);a!==u&&h&&(t[":@"]=this.buildAttributesMap(u,s,a)),this.addChild(n,t,s,c),s=s.substr(0,s.lastIndexOf("."))}else{const t=new T(a);this.tagsNodeStack.push(n),a!==u&&h&&(t[":@"]=this.buildAttributesMap(u,s,a)),this.addChild(n,t,s,c),n=t}i="",r=d}}else i+=t[r];return e.child};function Y(t,e,n,i){this.options.captureMetaData||(i=void 0);const s=this.options.updateTag(e.tagname,n,e[":@"]);!1===s||("string"==typeof s?(e.tagname=s,t.addChild(e,i)):t.addChild(e,i))}const R=function(t){if(this.options.processEntities){for(let e in this.docTypeEntities){const n=this.docTypeEntities[e];t=t.replace(n.regx,n.val)}for(let e in this.lastEntities){const n=this.lastEntities[e];t=t.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){const n=this.htmlEntities[e];t=t.replace(n.regex,n.val)}t=t.replace(this.ampEntity.regex,this.ampEntity.val)}return t};function q(t,e,n,i){return t&&(void 0===i&&(i=0===e.child.length),void 0!==(t=this.parseTextData(t,e.tagname,n,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,i))&&""!==t&&e.add(this.options.textNodeName,t),t=""),t}function Z(t,e,n){const i="*."+n;for(const n in t){const s=t[n];if(i===s||e===s)return!0}return!1}function W(t,e,n,i){const s=t.indexOf(e,n);if(-1===s)throw new Error(i);return s+e.length-1}function z(t,e,n,i=">"){const s=function(t,e,n=">"){let i,s="";for(let r=e;r<t.length;r++){let e=t[r];if(i)e===i&&(i="");else if('"'===e||"'"===e)i=e;else if(e===n[0]){if(!n[1])return{data:s,index:r};if(t[r+1]===n[1])return{data:s,index:r}}else"\t"===e&&(e=" ");s+=e}}(t,e+1,i);if(!s)return;let r=s.data;const o=s.index,a=r.search(/\s/);let l=r,u=!0;-1!==a&&(l=r.substring(0,a),r=r.substring(a+1).trimStart());const h=l;if(n){const t=l.indexOf(":");-1!==t&&(l=l.substr(t+1),u=l!==s.data.substr(t+1))}return{tagName:l,tagExp:r,closeIndex:o,attrExpPresent:u,rawTagName:h}}function J(t,e,n){const i=n;let s=1;for(;n<t.length;n++)if("<"===t[n])if("/"===t[n+1]){const r=W(t,">",n,`${e} is not closed`);if(t.substring(n+2,r).trim()===e&&(s--,0===s))return{tagContent:t.substring(i,n),i:r};n=r}else if("?"===t[n+1])n=W(t,"?>",n+1,"StopNode is not closed.");else if("!--"===t.substr(n+1,3))n=W(t,"--\x3e",n+3,"StopNode is not closed.");else if("!["===t.substr(n+1,2))n=W(t,"]]>",n,"StopNode is not closed.")-2;else{const i=z(t,n,">");i&&((i&&i.tagName)===e&&"/"!==i.tagExp[i.tagExp.length-1]&&s++,n=i.closeIndex)}}function H(t,e,n){if(e&&"string"==typeof t){const e=t.trim();return"true"===e||"false"!==e&&function(t,e={}){if(e=Object.assign({},V,e),!t||"string"!=typeof t)return t;let n=t.trim();if(void 0!==e.skipLike&&e.skipLike.test(n))return t;if("0"===t)return 0;if(e.hex&&j.test(n))return function(t){if(parseInt)return parseInt(t,16);if(Number.parseInt)return Number.parseInt(t,16);if(window&&window.parseInt)return window.parseInt(t,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(-1!==n.search(/.+[eE].+/))return function(t,e,n){if(!n.eNotation)return t;const i=e.match(M);if(i){let s=i[1]||"";const r=-1===i[3].indexOf("e")?"E":"e",o=i[2],a=s?t[o.length+1]===r:t[o.length]===r;return o.length>1&&a?t:1!==o.length||!i[3].startsWith(`.${r}`)&&i[3][0]!==r?n.leadingZeros&&!a?(e=(i[1]||"")+i[3],Number(e)):t:Number(e)}return t}(t,n,e);{const s=D.exec(n);if(s){const r=s[1]||"",o=s[2];let a=(i=s[3])&&-1!==i.indexOf(".")?("."===(i=i.replace(/0+$/,""))?i="0":"."===i[0]?i="0"+i:"."===i[i.length-1]&&(i=i.substring(0,i.length-1)),i):i;const l=r?"."===t[o.length+1]:"."===t[o.length];if(!e.leadingZeros&&(o.length>1||1===o.length&&!l))return t;{const i=Number(n),s=String(i);if(0===i||-0===i)return i;if(-1!==s.search(/[eE]/))return e.eNotation?i:t;if(-1!==n.indexOf("."))return"0"===s||s===a||s===`${r}${a}`?i:t;let l=o?a:n;return o?l===s||r+l===s?i:t:l===s||l===r+s?i:t}}return t}var i}(t,n)}return void 0!==t?t:""}const K=T.getMetaDataSymbol();function Q(t,e){return tt(t,e)}function tt(t,e,n){let i;const s={};for(let r=0;r<t.length;r++){const o=t[r],a=et(o);let l="";if(l=void 0===n?a:n+"."+a,a===e.textNodeName)void 0===i?i=o[a]:i+=""+o[a];else{if(void 0===a)continue;if(o[a]){let t=tt(o[a],e,l);const n=it(t,e);void 0!==o[K]&&(t[K]=o[K]),o[":@"]?nt(t,o[":@"],l,e):1!==Object.keys(t).length||void 0===t[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(t).length&&(e.alwaysCreateTextNode?t[e.textNodeName]="":t=""):t=t[e.textNodeName],void 0!==s[a]&&s.hasOwnProperty(a)?(Array.isArray(s[a])||(s[a]=[s[a]]),s[a].push(t)):e.isArray(a,l,n)?s[a]=[t]:s[a]=t}}}return"string"==typeof i?i.length>0&&(s[e.textNodeName]=i):void 0!==i&&(s[e.textNodeName]=i),s}function et(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=e[t];if(":@"!==n)return n}}function nt(t,e,n,i){if(e){const s=Object.keys(e),r=s.length;for(let o=0;o<r;o++){const r=s[o];i.isArray(r,n+"."+r,!0,!0)?t[r]=[e[r]]:t[r]=e[r]}}}function it(t,e){const{textNodeName:n}=e,i=Object.keys(t).length;return 0===i||!(1!==i||!t[n]&&"boolean"!=typeof t[n]&&0!==t[n])}class st{constructor(t){this.externalEntities={},this.options=function(t){return Object.assign({},v,t)}(t)}parse(t,e){if("string"==typeof t);else{if(!t.toString)throw new Error("XML data is accepted in String or Bytes[] form.");t=t.toString()}if(e){!0===e&&(e={});const n=a(t,e);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new k(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(t);return this.options.preserveOrder||void 0===i?i:Q(i,this.options)}addEntity(t,e){if(-1!==e.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==t.indexOf("&")||-1!==t.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===e)throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=e}static getMetaDataSymbol(){return T.getMetaDataSymbol()}}function rt(t,e){let n="";return e.format&&e.indentBy.length>0&&(n="\n"),ot(t,e,"",n)}function ot(t,e,n,i){let s="",r=!1;for(let o=0;o<t.length;o++){const a=t[o],l=at(a);if(void 0===l)continue;let u="";if(u=0===n.length?l:`${n}.${l}`,l===e.textNodeName){let t=a[l];ut(u,e)||(t=e.tagValueProcessor(l,t),t=ht(t,e)),r&&(s+=i),s+=t,r=!1;continue}if(l===e.cdataPropName){r&&(s+=i),s+=`<![CDATA[${a[l][0][e.textNodeName]}]]>`,r=!1;continue}if(l===e.commentPropName){s+=i+`\x3c!--${a[l][0][e.textNodeName]}--\x3e`,r=!0;continue}if("?"===l[0]){const t=lt(a[":@"],e),n="?xml"===l?"":i;let o=a[l][0][e.textNodeName];o=0!==o.length?" "+o:"",s+=n+`<${l}${o}${t}?>`,r=!0;continue}let h=i;""!==h&&(h+=e.indentBy);const d=i+`<${l}${lt(a[":@"],e)}`,f=ot(a[l],e,u,h);-1!==e.unpairedTags.indexOf(l)?e.suppressUnpairedNode?s+=d+">":s+=d+"/>":f&&0!==f.length||!e.suppressEmptyNode?f&&f.endsWith(">")?s+=d+`>${f}${i}</${l}>`:(s+=d+">",f&&""!==i&&(f.includes("/>")||f.includes("</"))?s+=i+e.indentBy+f+i:s+=f,s+=`</${l}>`):s+=d+"/>",r=!0}return s}function at(t){const e=Object.keys(t);for(let n=0;n<e.length;n++){const i=e[n];if(t.hasOwnProperty(i)&&":@"!==i)return i}}function lt(t,e){let n="";if(t&&!e.ignoreAttributes)for(let i in t){if(!t.hasOwnProperty(i))continue;let s=e.attributeValueProcessor(i,t[i]);s=ht(s,e),!0===s&&e.suppressBooleanAttributes?n+=` ${i.substr(e.attributeNamePrefix.length)}`:n+=` ${i.substr(e.attributeNamePrefix.length)}="${s}"`}return n}function ut(t,e){let n=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let i in e.stopNodes)if(e.stopNodes[i]===t||e.stopNodes[i]==="*."+n)return!0;return!1}function ht(t,e){if(t&&t.length>0&&e.processEntities)for(let n=0;n<e.entities.length;n++){const i=e.entities[n];t=t.replace(i.regex,i.val)}return t}const dt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ft(t){this.options=Object.assign({},dt,t),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=_(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gt),this.processTextOrObjNode=ct,this.options.format?(this.indentate=pt,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ct(t,e,n,i){const s=this.j2x(t,n+1,i.concat(e));return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,s.attrStr,n):this.buildObjectNode(s.val,e,s.attrStr,n)}function pt(t){return this.options.indentBy.repeat(t)}function gt(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}ft.prototype.build=function(t){return this.options.preserveOrder?rt(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0,[]).val)},ft.prototype.j2x=function(t,e,n){let i="",s="";const r=n.join(".");for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if(void 0===t[o])this.isAttribute(o)&&(s+="");else if(null===t[o])this.isAttribute(o)||o===this.options.cdataPropName?s+="":"?"===o[0]?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(t[o]instanceof Date)s+=this.buildTextValNode(t[o],o,"",e);else if("object"!=typeof t[o]){const n=this.isAttribute(o);if(n&&!this.ignoreAttributesFn(n,r))i+=this.buildAttrPairStr(n,""+t[o]);else if(!n)if(o===this.options.textNodeName){let e=this.options.tagValueProcessor(o,""+t[o]);s+=this.replaceEntitiesValue(e)}else s+=this.buildTextValNode(t[o],o,"",e)}else if(Array.isArray(t[o])){const i=t[o].length;let r="",a="";for(let l=0;l<i;l++){const i=t[o][l];if(void 0===i);else if(null===i)"?"===o[0]?s+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if("object"==typeof i)if(this.options.oneListGroup){const t=this.j2x(i,e+1,n.concat(o));r+=t.val,this.options.attributesGroupName&&i.hasOwnProperty(this.options.attributesGroupName)&&(a+=t.attrStr)}else r+=this.processTextOrObjNode(i,o,e,n);else if(this.options.oneListGroup){let t=this.options.tagValueProcessor(o,i);t=this.replaceEntitiesValue(t),r+=t}else r+=this.buildTextValNode(i,o,"",e)}this.options.oneListGroup&&(r=this.buildObjectNode(r,o,a,e)),s+=r}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const e=Object.keys(t[o]),n=e.length;for(let s=0;s<n;s++)i+=this.buildAttrPairStr(e[s],""+t[o][e[s]])}else s+=this.processTextOrObjNode(t[o],o,e,n);return{attrStr:i,val:s}},ft.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},ft.prototype.buildObjectNode=function(t,e,n,i){if(""===t)return"?"===e[0]?this.indentate(i)+"<"+e+n+"?"+this.tagEndChar:this.indentate(i)+"<"+e+n+this.closeTag(e)+this.tagEndChar;{let s="</"+e+this.tagEndChar,r="";return"?"===e[0]&&(r="?",s=""),!n&&""!==n||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===r.length?this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(i)+"<"+e+n+r+this.tagEndChar+t+this.indentate(i)+s:this.indentate(i)+"<"+e+n+r+">"+t+s}},ft.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},ft.prototype.buildTextValNode=function(t,e,n,i){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(i)+"<"+e+n+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(e,t);return s=this.replaceEntitiesValue(s),""===s?this.indentate(i)+"<"+e+n+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+n+">"+s+"</"+e+this.tagEndChar}},ft.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const n=this.options.entities[e];t=t.replace(n.regex,n.val)}return t};const mt={validate:a};module.exports=e})();
|
|
195464
|
+
|
|
195341
195465
|
/***/ }),
|
|
195342
195466
|
|
|
195343
195467
|
/***/ 87269:
|
|
@@ -201007,21 +201131,21 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.
|
|
|
201007
201131
|
/***/ 27413:
|
|
201008
201132
|
/***/ ((module) => {
|
|
201009
201133
|
|
|
201010
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.
|
|
201134
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.844.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3","test":"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:integration":"yarn g:vitest run -c vitest.config.integ.ts","test:integration:watch":"yarn g:vitest watch -c vitest.config.integ.ts","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.844.0","@aws-sdk/credential-provider-node":"3.844.0","@aws-sdk/middleware-bucket-endpoint":"3.840.0","@aws-sdk/middleware-expect-continue":"3.840.0","@aws-sdk/middleware-flexible-checksums":"3.844.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-location-constraint":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-sdk-s3":"3.844.0","@aws-sdk/middleware-ssec":"3.840.0","@aws-sdk/middleware-user-agent":"3.844.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/signature-v4-multi-region":"3.844.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.844.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.844.0","@aws-sdk/xml-builder":"3.821.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.7.0","@smithy/eventstream-serde-browser":"^4.0.4","@smithy/eventstream-serde-config-resolver":"^4.1.2","@smithy/eventstream-serde-node":"^4.0.4","@smithy/fetch-http-handler":"^5.1.0","@smithy/hash-blob-browser":"^4.0.4","@smithy/hash-node":"^4.0.4","@smithy/hash-stream-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/md5-js":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.14","@smithy/middleware-retry":"^4.1.15","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.1.0","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.6","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.22","@smithy/util-defaults-mode-node":"^4.0.22","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-stream":"^4.2.3","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.6","@types/uuid":"^9.0.1","tslib":"^2.6.2","uuid":"^9.0.1"},"devDependencies":{"@aws-sdk/signature-v4-crt":"3.844.0","@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.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"}}');
|
|
201011
201135
|
|
|
201012
201136
|
/***/ }),
|
|
201013
201137
|
|
|
201014
201138
|
/***/ 45188:
|
|
201015
201139
|
/***/ ((module) => {
|
|
201016
201140
|
|
|
201017
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.
|
|
201141
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.844.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.844.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-user-agent":"3.844.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.844.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.844.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.7.0","@smithy/fetch-http-handler":"^5.1.0","@smithy/hash-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.14","@smithy/middleware-retry":"^4.1.15","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.1.0","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.6","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.22","@smithy/util-defaults-mode-node":"^4.0.22","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-utf8":"^4.0.0","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"engines":{"node":">=18.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"}}');
|
|
201018
201142
|
|
|
201019
201143
|
/***/ }),
|
|
201020
201144
|
|
|
201021
201145
|
/***/ 39955:
|
|
201022
201146
|
/***/ ((module) => {
|
|
201023
201147
|
|
|
201024
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.
|
|
201148
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@aws-sdk/nested-clients","version":"3.844.0","description":"Nested clients for AWS SDK packages.","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"yarn lint && concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"node ../../scripts/validation/submodules-linter.js --pkg nested-clients","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"engines":{"node":">=18.0.0"},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.844.0","@aws-sdk/middleware-host-header":"3.840.0","@aws-sdk/middleware-logger":"3.840.0","@aws-sdk/middleware-recursion-detection":"3.840.0","@aws-sdk/middleware-user-agent":"3.844.0","@aws-sdk/region-config-resolver":"3.840.0","@aws-sdk/types":"3.840.0","@aws-sdk/util-endpoints":"3.844.0","@aws-sdk/util-user-agent-browser":"3.840.0","@aws-sdk/util-user-agent-node":"3.844.0","@smithy/config-resolver":"^4.1.4","@smithy/core":"^3.7.0","@smithy/fetch-http-handler":"^5.1.0","@smithy/hash-node":"^4.0.4","@smithy/invalid-dependency":"^4.0.4","@smithy/middleware-content-length":"^4.0.4","@smithy/middleware-endpoint":"^4.1.14","@smithy/middleware-retry":"^4.1.15","@smithy/middleware-serde":"^4.0.8","@smithy/middleware-stack":"^4.0.4","@smithy/node-config-provider":"^4.1.3","@smithy/node-http-handler":"^4.1.0","@smithy/protocol-http":"^5.1.2","@smithy/smithy-client":"^4.4.6","@smithy/types":"^4.3.1","@smithy/url-parser":"^4.0.4","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.22","@smithy/util-defaults-mode-node":"^4.0.22","@smithy/util-endpoints":"^3.0.6","@smithy/util-middleware":"^4.0.4","@smithy/util-retry":"^4.0.6","@smithy/util-utf8":"^4.0.0","tslib":"^2.6.2"},"devDependencies":{"concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.8.3"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],"browser":{"./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/nested-clients"},"exports":{"./sso-oidc":{"types":"./dist-types/submodules/sso-oidc/index.d.ts","module":"./dist-es/submodules/sso-oidc/index.js","node":"./dist-cjs/submodules/sso-oidc/index.js","import":"./dist-es/submodules/sso-oidc/index.js","require":"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{"types":"./dist-types/submodules/sts/index.d.ts","module":"./dist-es/submodules/sts/index.js","node":"./dist-cjs/submodules/sts/index.js","import":"./dist-es/submodules/sts/index.js","require":"./dist-cjs/submodules/sts/index.js"}}}');
|
|
201025
201149
|
|
|
201026
201150
|
/***/ }),
|
|
201027
201151
|
|
|
@@ -201056,7 +201180,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"http://json-schema.org/dra
|
|
|
201056
201180
|
/***/ 80056:
|
|
201057
201181
|
/***/ ((module) => {
|
|
201058
201182
|
|
|
201059
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"dotenv","version":"17.
|
|
201183
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"dotenv","version":"17.2.0","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=text --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}');
|
|
201060
201184
|
|
|
201061
201185
|
/***/ }),
|
|
201062
201186
|
|
|
@@ -201788,6 +201912,10 @@ const getS3Provider = () => {
|
|
|
201788
201912
|
'AWS_SECRET_ACCESS_KEY',
|
|
201789
201913
|
'S3_SECRET_ACCESS_KEY'
|
|
201790
201914
|
]);
|
|
201915
|
+
const s3SessionToken = s3_getInput('s3-session-token', [
|
|
201916
|
+
'AWS_SESSION_TOKEN',
|
|
201917
|
+
'S3_SESSION_TOKEN'
|
|
201918
|
+
]);
|
|
201791
201919
|
const s3Bucket = s3_getInput('s3-bucket', ['S3_BUCKET']);
|
|
201792
201920
|
const s3Region = s3_getInput('s3-region', [
|
|
201793
201921
|
'AWS_REGION',
|
|
@@ -201808,7 +201936,8 @@ const getS3Provider = () => {
|
|
|
201808
201936
|
endpoint: s3Endpoint,
|
|
201809
201937
|
credentials: {
|
|
201810
201938
|
accessKeyId: s3AccessKeyId,
|
|
201811
|
-
secretAccessKey: s3SecretAccessKey
|
|
201939
|
+
secretAccessKey: s3SecretAccessKey,
|
|
201940
|
+
sessionToken: s3SessionToken
|
|
201812
201941
|
}
|
|
201813
201942
|
});
|
|
201814
201943
|
const getS3Key = (hash, tag) => {
|
|
@@ -202343,7 +202472,7 @@ const ping = async () => {
|
|
|
202343
202472
|
// EXTERNAL MODULE: external "fs/promises"
|
|
202344
202473
|
var promises_ = __nccwpck_require__(91943);
|
|
202345
202474
|
;// CONCATENATED MODULE: ./package.json
|
|
202346
|
-
const package_namespaceObject = {"rE":"2.
|
|
202475
|
+
const package_namespaceObject = {"rE":"2.2.0"};
|
|
202347
202476
|
;// CONCATENATED MODULE: ./src/cli.ts
|
|
202348
202477
|
|
|
202349
202478
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rharkor/caching-for-turbo",
|
|
3
3
|
"description": "Sets up Turborepo Remote Caching to work with GitHub Actions built-in cache",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/rharkor/caching-for-turbo",
|
|
7
7
|
"repository": {
|