@rharkor/caching-for-turbo 2.1.4 → 2.2.1
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 +280 -59
- package/package.json +2 -2
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.
|
|
58
|
+
uses: rharkor/caching-for-turbo@v2.3.0
|
|
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.
|
|
204
|
+
uses: rharkor/caching-for-turbo@v2.3.0
|
|
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.
|
|
238
|
+
uses: rharkor/caching-for-turbo@v2.3.0
|
|
238
239
|
with:
|
|
239
240
|
provider: s3
|
|
240
241
|
s3-bucket: my-turbo-cache-bucket
|
package/dist/cli/index.js
CHANGED
|
@@ -14267,7 +14267,8 @@ var de_CreateBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
14267
14267
|
}
|
|
14268
14268
|
const contents = (0, import_smithy_client.map)({
|
|
14269
14269
|
$metadata: deserializeMetadata(output),
|
|
14270
|
-
[_L]: [, output.headers[_lo]]
|
|
14270
|
+
[_L]: [, output.headers[_lo]],
|
|
14271
|
+
[_BA]: [, output.headers[_xaba]]
|
|
14271
14272
|
});
|
|
14272
14273
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
14273
14274
|
return contents;
|
|
@@ -15008,6 +15009,7 @@ var de_HeadBucketCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
15008
15009
|
}
|
|
15009
15010
|
const contents = (0, import_smithy_client.map)({
|
|
15010
15011
|
$metadata: deserializeMetadata(output),
|
|
15012
|
+
[_BA]: [, output.headers[_xaba]],
|
|
15011
15013
|
[_BLT]: [, output.headers[_xablt]],
|
|
15012
15014
|
[_BLN]: [, output.headers[_xabln]],
|
|
15013
15015
|
[_BR]: [, output.headers[_xabr]],
|
|
@@ -16276,6 +16278,7 @@ var se_CreateBucketConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
16276
16278
|
if (input[_B] != null) {
|
|
16277
16279
|
bn.c(se_BucketInfo(input[_B], context).n(_B));
|
|
16278
16280
|
}
|
|
16281
|
+
bn.lc(input, "Tags", "Tags", () => se_TagSet(input[_Tag], context));
|
|
16279
16282
|
return bn;
|
|
16280
16283
|
}, "se_CreateBucketConfiguration");
|
|
16281
16284
|
var se_CSVInput = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -17485,6 +17488,9 @@ var de_Bucket = /* @__PURE__ */ __name((output, context) => {
|
|
|
17485
17488
|
if (output[_BR] != null) {
|
|
17486
17489
|
contents[_BR] = (0, import_smithy_client.expectString)(output[_BR]);
|
|
17487
17490
|
}
|
|
17491
|
+
if (output[_BA] != null) {
|
|
17492
|
+
contents[_BA] = (0, import_smithy_client.expectString)(output[_BA]);
|
|
17493
|
+
}
|
|
17488
17494
|
return contents;
|
|
17489
17495
|
}, "de_Bucket");
|
|
17490
17496
|
var de_Buckets = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -19005,6 +19011,7 @@ var _ASSEBD = "ApplyServerSideEncryptionByDefault";
|
|
|
19005
19011
|
var _AT = "AccessTier";
|
|
19006
19012
|
var _Ac = "Account";
|
|
19007
19013
|
var _B = "Bucket";
|
|
19014
|
+
var _BA = "BucketArn";
|
|
19008
19015
|
var _BAI = "BucketAccountId";
|
|
19009
19016
|
var _BAS = "BucketAccelerateStatus";
|
|
19010
19017
|
var _BGR = "BypassGovernanceRetention";
|
|
@@ -19547,6 +19554,7 @@ var _xaad = "x-amz-abort-date";
|
|
|
19547
19554
|
var _xaapa = "x-amz-access-point-alias";
|
|
19548
19555
|
var _xaari = "x-amz-abort-rule-id";
|
|
19549
19556
|
var _xaas = "x-amz-archive-status";
|
|
19557
|
+
var _xaba = "x-amz-bucket-arn";
|
|
19550
19558
|
var _xabgr = "x-amz-bypass-governance-retention";
|
|
19551
19559
|
var _xabln = "x-amz-bucket-location-name";
|
|
19552
19560
|
var _xablt = "x-amz-bucket-location-type";
|
|
@@ -25037,7 +25045,7 @@ var import_protocols3 = __nccwpck_require__(93422);
|
|
|
25037
25045
|
var import_schema5 = __nccwpck_require__(26890);
|
|
25038
25046
|
var import_smithy_client3 = __nccwpck_require__(61411);
|
|
25039
25047
|
var import_util_utf8 = __nccwpck_require__(71577);
|
|
25040
|
-
var import_fast_xml_parser = __nccwpck_require__(
|
|
25048
|
+
var import_fast_xml_parser = __nccwpck_require__(77597);
|
|
25041
25049
|
var XmlShapeDeserializer = class extends SerdeContextConfig {
|
|
25042
25050
|
constructor(settings) {
|
|
25043
25051
|
super();
|
|
@@ -25513,7 +25521,7 @@ var import_util_body_length_browser4 = __nccwpck_require__(12098);
|
|
|
25513
25521
|
|
|
25514
25522
|
// src/submodules/protocols/xml/parseXmlBody.ts
|
|
25515
25523
|
var import_smithy_client5 = __nccwpck_require__(61411);
|
|
25516
|
-
var import_fast_xml_parser2 = __nccwpck_require__(
|
|
25524
|
+
var import_fast_xml_parser2 = __nccwpck_require__(77597);
|
|
25517
25525
|
var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
25518
25526
|
if (encoded.length) {
|
|
25519
25527
|
const parser = new import_fast_xml_parser2.XMLParser({
|
|
@@ -33135,8 +33143,10 @@ __export(index_exports, {
|
|
|
33135
33143
|
getUserAgentPrefix: () => getUserAgentPrefix,
|
|
33136
33144
|
isIpAddress: () => import_util_endpoints.isIpAddress,
|
|
33137
33145
|
partition: () => partition,
|
|
33146
|
+
resolveDefaultAwsRegionalEndpointsConfig: () => resolveDefaultAwsRegionalEndpointsConfig,
|
|
33138
33147
|
resolveEndpoint: () => import_util_endpoints.resolveEndpoint,
|
|
33139
33148
|
setPartitionInfo: () => setPartitionInfo,
|
|
33149
|
+
toEndpointV1: () => toEndpointV1,
|
|
33140
33150
|
useDefaultPartitionInfo: () => useDefaultPartitionInfo
|
|
33141
33151
|
});
|
|
33142
33152
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -33507,6 +33517,32 @@ var awsEndpointFunctions = {
|
|
|
33507
33517
|
};
|
|
33508
33518
|
import_util_endpoints.customEndpointFunctions.aws = awsEndpointFunctions;
|
|
33509
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
|
+
|
|
33510
33546
|
// src/resolveEndpoint.ts
|
|
33511
33547
|
|
|
33512
33548
|
|
|
@@ -77104,7 +77140,10 @@ var HttpProtocol = class {
|
|
|
77104
77140
|
|
|
77105
77141
|
// src/submodules/protocols/HttpBindingProtocol.ts
|
|
77106
77142
|
var HttpBindingProtocol = class extends HttpProtocol {
|
|
77107
|
-
async serializeRequest(operationSchema,
|
|
77143
|
+
async serializeRequest(operationSchema, _input, context) {
|
|
77144
|
+
const input = {
|
|
77145
|
+
..._input ?? {}
|
|
77146
|
+
};
|
|
77108
77147
|
const serializer = this.serializer;
|
|
77109
77148
|
const query = {};
|
|
77110
77149
|
const headers = {};
|
|
@@ -77139,16 +77178,12 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
77139
77178
|
Object.assign(query, Object.fromEntries(traitSearchParams));
|
|
77140
77179
|
}
|
|
77141
77180
|
}
|
|
77142
|
-
const
|
|
77143
|
-
|
|
77144
|
-
|
|
77145
|
-
|
|
77146
|
-
const memberNs = ns.getMemberSchema(memberName);
|
|
77147
|
-
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) {
|
|
77148
77185
|
continue;
|
|
77149
77186
|
}
|
|
77150
|
-
const memberTraits = memberNs.getMergedTraits();
|
|
77151
|
-
const inputMember = _input[memberName];
|
|
77152
77187
|
if (memberTraits.httpPayload) {
|
|
77153
77188
|
const isStreaming = memberNs.isStreaming();
|
|
77154
77189
|
if (isStreaming) {
|
|
@@ -77156,14 +77191,15 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
77156
77191
|
if (isEventStream) {
|
|
77157
77192
|
throw new Error("serialization of event streams is not yet implemented");
|
|
77158
77193
|
} else {
|
|
77159
|
-
payload =
|
|
77194
|
+
payload = inputMemberValue;
|
|
77160
77195
|
}
|
|
77161
77196
|
} else {
|
|
77162
|
-
serializer.write(memberNs,
|
|
77197
|
+
serializer.write(memberNs, inputMemberValue);
|
|
77163
77198
|
payload = serializer.flush();
|
|
77164
77199
|
}
|
|
77200
|
+
delete input[memberName];
|
|
77165
77201
|
} else if (memberTraits.httpLabel) {
|
|
77166
|
-
serializer.write(memberNs,
|
|
77202
|
+
serializer.write(memberNs, inputMemberValue);
|
|
77167
77203
|
const replacement = serializer.flush();
|
|
77168
77204
|
if (request.path.includes(`{${memberName}+}`)) {
|
|
77169
77205
|
request.path = request.path.replace(
|
|
@@ -77173,27 +77209,27 @@ var HttpBindingProtocol = class extends HttpProtocol {
|
|
|
77173
77209
|
} else if (request.path.includes(`{${memberName}}`)) {
|
|
77174
77210
|
request.path = request.path.replace(`{${memberName}}`, extendedEncodeURIComponent(replacement));
|
|
77175
77211
|
}
|
|
77176
|
-
delete
|
|
77212
|
+
delete input[memberName];
|
|
77177
77213
|
} else if (memberTraits.httpHeader) {
|
|
77178
|
-
serializer.write(memberNs,
|
|
77214
|
+
serializer.write(memberNs, inputMemberValue);
|
|
77179
77215
|
headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
|
|
77180
|
-
delete
|
|
77216
|
+
delete input[memberName];
|
|
77181
77217
|
} else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
77182
|
-
for (const [key, val] of Object.entries(
|
|
77218
|
+
for (const [key, val] of Object.entries(inputMemberValue)) {
|
|
77183
77219
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
77184
77220
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
77185
77221
|
headers[amalgam.toLowerCase()] = serializer.flush();
|
|
77186
77222
|
}
|
|
77187
|
-
delete
|
|
77223
|
+
delete input[memberName];
|
|
77188
77224
|
} else if (memberTraits.httpQuery || memberTraits.httpQueryParams) {
|
|
77189
|
-
this.serializeQuery(memberNs,
|
|
77190
|
-
delete
|
|
77225
|
+
this.serializeQuery(memberNs, inputMemberValue, query);
|
|
77226
|
+
delete input[memberName];
|
|
77191
77227
|
} else {
|
|
77192
77228
|
hasNonHttpBindingMember = true;
|
|
77193
77229
|
}
|
|
77194
77230
|
}
|
|
77195
77231
|
if (hasNonHttpBindingMember && input) {
|
|
77196
|
-
serializer.write(schema,
|
|
77232
|
+
serializer.write(schema, input);
|
|
77197
77233
|
payload = serializer.flush();
|
|
77198
77234
|
}
|
|
77199
77235
|
request.headers = headers;
|
|
@@ -77950,12 +77986,24 @@ var Schema = class {
|
|
|
77950
77986
|
};
|
|
77951
77987
|
|
|
77952
77988
|
// src/submodules/schema/schemas/ListSchema.ts
|
|
77953
|
-
var ListSchema = class extends Schema {
|
|
77989
|
+
var ListSchema = class _ListSchema extends Schema {
|
|
77954
77990
|
constructor(name, traits, valueSchema) {
|
|
77955
77991
|
super(name, traits);
|
|
77956
77992
|
this.name = name;
|
|
77957
77993
|
this.traits = traits;
|
|
77958
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;
|
|
77959
78007
|
}
|
|
77960
78008
|
};
|
|
77961
78009
|
function list(namespace, name, traits = {}, valueSchema) {
|
|
@@ -77969,13 +78017,25 @@ function list(namespace, name, traits = {}, valueSchema) {
|
|
|
77969
78017
|
}
|
|
77970
78018
|
|
|
77971
78019
|
// src/submodules/schema/schemas/MapSchema.ts
|
|
77972
|
-
var MapSchema = class extends Schema {
|
|
78020
|
+
var MapSchema = class _MapSchema extends Schema {
|
|
77973
78021
|
constructor(name, traits, keySchema, valueSchema) {
|
|
77974
78022
|
super(name, traits);
|
|
77975
78023
|
this.name = name;
|
|
77976
78024
|
this.traits = traits;
|
|
77977
78025
|
this.keySchema = keySchema;
|
|
77978
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;
|
|
77979
78039
|
}
|
|
77980
78040
|
};
|
|
77981
78041
|
function map(namespace, name, traits = {}, keySchema, valueSchema) {
|
|
@@ -78006,18 +78066,30 @@ function op(namespace, name, traits = {}, input, output) {
|
|
|
78006
78066
|
}
|
|
78007
78067
|
|
|
78008
78068
|
// src/submodules/schema/schemas/StructureSchema.ts
|
|
78009
|
-
var StructureSchema = class extends Schema {
|
|
78069
|
+
var StructureSchema = class _StructureSchema extends Schema {
|
|
78010
78070
|
constructor(name, traits, memberNames, memberList) {
|
|
78011
78071
|
super(name, traits);
|
|
78012
78072
|
this.name = name;
|
|
78013
78073
|
this.traits = traits;
|
|
78014
78074
|
this.memberNames = memberNames;
|
|
78015
78075
|
this.memberList = memberList;
|
|
78076
|
+
this.symbol = _StructureSchema.symbol;
|
|
78016
78077
|
this.members = {};
|
|
78017
78078
|
for (let i = 0; i < memberNames.length; ++i) {
|
|
78018
78079
|
this.members[memberNames[i]] = Array.isArray(memberList[i]) ? memberList[i] : [memberList[i], 0];
|
|
78019
78080
|
}
|
|
78020
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
|
+
}
|
|
78021
78093
|
};
|
|
78022
78094
|
function struct(namespace, name, traits, memberNames, memberList) {
|
|
78023
78095
|
const schema = new StructureSchema(namespace + "#" + name, traits, memberNames, memberList);
|
|
@@ -78026,7 +78098,7 @@ function struct(namespace, name, traits, memberNames, memberList) {
|
|
|
78026
78098
|
}
|
|
78027
78099
|
|
|
78028
78100
|
// src/submodules/schema/schemas/ErrorSchema.ts
|
|
78029
|
-
var ErrorSchema = class extends StructureSchema {
|
|
78101
|
+
var ErrorSchema = class _ErrorSchema extends StructureSchema {
|
|
78030
78102
|
constructor(name, traits, memberNames, memberList, ctor) {
|
|
78031
78103
|
super(name, traits, memberNames, memberList);
|
|
78032
78104
|
this.name = name;
|
|
@@ -78034,6 +78106,18 @@ var ErrorSchema = class extends StructureSchema {
|
|
|
78034
78106
|
this.memberNames = memberNames;
|
|
78035
78107
|
this.memberList = memberList;
|
|
78036
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;
|
|
78037
78121
|
}
|
|
78038
78122
|
};
|
|
78039
78123
|
function error(namespace, name, traits = {}, memberNames, memberList, ctor) {
|
|
@@ -78075,12 +78159,24 @@ var SCHEMA = {
|
|
|
78075
78159
|
};
|
|
78076
78160
|
|
|
78077
78161
|
// src/submodules/schema/schemas/SimpleSchema.ts
|
|
78078
|
-
var SimpleSchema = class extends Schema {
|
|
78162
|
+
var SimpleSchema = class _SimpleSchema extends Schema {
|
|
78079
78163
|
constructor(name, schemaRef, traits) {
|
|
78080
78164
|
super(name, traits);
|
|
78081
78165
|
this.name = name;
|
|
78082
78166
|
this.schemaRef = schemaRef;
|
|
78083
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;
|
|
78084
78180
|
}
|
|
78085
78181
|
};
|
|
78086
78182
|
function sim(namespace, name, schemaRef, traits) {
|
|
@@ -78098,6 +78194,7 @@ var NormalizedSchema = class _NormalizedSchema {
|
|
|
78098
78194
|
constructor(ref, memberName) {
|
|
78099
78195
|
this.ref = ref;
|
|
78100
78196
|
this.memberName = memberName;
|
|
78197
|
+
this.symbol = _NormalizedSchema.symbol;
|
|
78101
78198
|
const traitStack = [];
|
|
78102
78199
|
let _ref = ref;
|
|
78103
78200
|
let schema = ref;
|
|
@@ -78137,10 +78234,23 @@ var NormalizedSchema = class _NormalizedSchema {
|
|
|
78137
78234
|
this.name = (typeof this.schema === "object" ? this.schema?.name : void 0) ?? this.memberName ?? this.getSchemaName();
|
|
78138
78235
|
if (this._isMemberSchema && !memberName) {
|
|
78139
78236
|
throw new Error(
|
|
78140
|
-
`@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.`
|
|
78141
78240
|
);
|
|
78142
78241
|
}
|
|
78143
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
|
+
}
|
|
78144
78254
|
/**
|
|
78145
78255
|
* Static constructor that attempts to avoid wrapping a NormalizedSchema within another.
|
|
78146
78256
|
*/
|
|
@@ -80500,11 +80610,11 @@ var FetchHttpHandler = class _FetchHttpHandler {
|
|
|
80500
80610
|
}
|
|
80501
80611
|
destroy() {
|
|
80502
80612
|
}
|
|
80503
|
-
async handle(request, { abortSignal } = {}) {
|
|
80613
|
+
async handle(request, { abortSignal, requestTimeout: requestTimeout2 } = {}) {
|
|
80504
80614
|
if (!this.config) {
|
|
80505
80615
|
this.config = await this.configProvider;
|
|
80506
80616
|
}
|
|
80507
|
-
const requestTimeoutInMs = this.config.requestTimeout;
|
|
80617
|
+
const requestTimeoutInMs = requestTimeout2 ?? this.config.requestTimeout;
|
|
80508
80618
|
const keepAlive = this.config.keepAlive === true;
|
|
80509
80619
|
const credentials = this.config.credentials;
|
|
80510
80620
|
if (abortSignal?.aborted) {
|
|
@@ -81117,6 +81227,9 @@ var createConfigValueProvider = /* @__PURE__ */ __name((configKey, canonicalEndp
|
|
|
81117
81227
|
}
|
|
81118
81228
|
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
|
|
81119
81229
|
return async () => {
|
|
81230
|
+
if (config.isCustomEndpoint === false) {
|
|
81231
|
+
return void 0;
|
|
81232
|
+
}
|
|
81120
81233
|
const endpoint = await configProvider();
|
|
81121
81234
|
if (endpoint && typeof endpoint === "object") {
|
|
81122
81235
|
if ("url" in endpoint) {
|
|
@@ -81150,7 +81263,7 @@ var toEndpointV1 = /* @__PURE__ */ __name((endpoint) => {
|
|
|
81150
81263
|
|
|
81151
81264
|
// src/adaptors/getEndpointFromInstructions.ts
|
|
81152
81265
|
var getEndpointFromInstructions = /* @__PURE__ */ __name(async (commandInput, instructionsSupplier, clientConfig, context) => {
|
|
81153
|
-
if (!clientConfig.
|
|
81266
|
+
if (!clientConfig.isCustomEndpoint) {
|
|
81154
81267
|
let endpointFromConfig;
|
|
81155
81268
|
if (clientConfig.serviceConfiguredEndpoint) {
|
|
81156
81269
|
endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
|
|
@@ -81207,7 +81320,7 @@ var endpointMiddleware = /* @__PURE__ */ __name(({
|
|
|
81207
81320
|
instructions
|
|
81208
81321
|
}) => {
|
|
81209
81322
|
return (next, context) => async (args) => {
|
|
81210
|
-
if (config.
|
|
81323
|
+
if (config.isCustomEndpoint) {
|
|
81211
81324
|
(0, import_core.setFeature)(context, "ENDPOINT_OVERRIDE", "N");
|
|
81212
81325
|
}
|
|
81213
81326
|
const endpoint = await getEndpointFromInstructions(
|
|
@@ -83267,7 +83380,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
83267
83380
|
this.config?.httpAgent?.destroy();
|
|
83268
83381
|
this.config?.httpsAgent?.destroy();
|
|
83269
83382
|
}
|
|
83270
|
-
async handle(request, { abortSignal } = {}) {
|
|
83383
|
+
async handle(request, { abortSignal, requestTimeout } = {}) {
|
|
83271
83384
|
if (!this.config) {
|
|
83272
83385
|
this.config = await this.configProvider;
|
|
83273
83386
|
}
|
|
@@ -83368,8 +83481,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
83368
83481
|
abortSignal.onabort = onAbort;
|
|
83369
83482
|
}
|
|
83370
83483
|
}
|
|
83484
|
+
const effectiveRequestTimeout = requestTimeout ?? this.config.requestTimeout;
|
|
83371
83485
|
timeouts.push(setConnectionTimeout(req, reject, this.config.connectionTimeout));
|
|
83372
|
-
timeouts.push(setSocketTimeout(req, reject,
|
|
83486
|
+
timeouts.push(setSocketTimeout(req, reject, effectiveRequestTimeout));
|
|
83373
83487
|
const httpAgent = nodeHttpsOptions.agent;
|
|
83374
83488
|
if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
|
|
83375
83489
|
timeouts.push(
|
|
@@ -83381,7 +83495,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
83381
83495
|
})
|
|
83382
83496
|
);
|
|
83383
83497
|
}
|
|
83384
|
-
writeRequestBodyPromise = writeRequestBody(req, request,
|
|
83498
|
+
writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout).catch((e) => {
|
|
83385
83499
|
timeouts.forEach(timing.clearTimeout);
|
|
83386
83500
|
return _reject(e);
|
|
83387
83501
|
});
|
|
@@ -83570,7 +83684,7 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
|
83570
83684
|
destroy() {
|
|
83571
83685
|
this.connectionManager.destroy();
|
|
83572
83686
|
}
|
|
83573
|
-
async handle(request, { abortSignal } = {}) {
|
|
83687
|
+
async handle(request, { abortSignal, requestTimeout } = {}) {
|
|
83574
83688
|
if (!this.config) {
|
|
83575
83689
|
this.config = await this.configProvider;
|
|
83576
83690
|
this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false);
|
|
@@ -83578,7 +83692,8 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
|
83578
83692
|
this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams);
|
|
83579
83693
|
}
|
|
83580
83694
|
}
|
|
83581
|
-
const { requestTimeout, disableConcurrentStreams } = this.config;
|
|
83695
|
+
const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config;
|
|
83696
|
+
const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout;
|
|
83582
83697
|
return new Promise((_resolve, _reject) => {
|
|
83583
83698
|
let fulfilled = false;
|
|
83584
83699
|
let writeRequestBodyPromise = void 0;
|
|
@@ -83644,10 +83759,10 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
|
83644
83759
|
this.connectionManager.deleteSession(authority, session);
|
|
83645
83760
|
}
|
|
83646
83761
|
});
|
|
83647
|
-
if (
|
|
83648
|
-
req.setTimeout(
|
|
83762
|
+
if (effectiveRequestTimeout) {
|
|
83763
|
+
req.setTimeout(effectiveRequestTimeout, () => {
|
|
83649
83764
|
req.close();
|
|
83650
|
-
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`);
|
|
83651
83766
|
timeoutError.name = "TimeoutError";
|
|
83652
83767
|
rejectWithDestroy(timeoutError);
|
|
83653
83768
|
});
|
|
@@ -83685,7 +83800,7 @@ var NodeHttp2Handler = class _NodeHttp2Handler {
|
|
|
83685
83800
|
rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
|
|
83686
83801
|
}
|
|
83687
83802
|
});
|
|
83688
|
-
writeRequestBodyPromise = writeRequestBody(req, request,
|
|
83803
|
+
writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout);
|
|
83689
83804
|
});
|
|
83690
83805
|
}
|
|
83691
83806
|
updateHttpClientConfig(key, value) {
|
|
@@ -97423,6 +97538,40 @@ const packageJson = __nccwpck_require__(80056)
|
|
|
97423
97538
|
|
|
97424
97539
|
const version = packageJson.version
|
|
97425
97540
|
|
|
97541
|
+
// Array of tips to display randomly
|
|
97542
|
+
const TIPS = [
|
|
97543
|
+
'🔐 encrypt with dotenvx: https://dotenvx.com',
|
|
97544
|
+
'🔐 prevent committing .env to code: https://dotenvx.com/precommit',
|
|
97545
|
+
'🔐 prevent building .env in docker: https://dotenvx.com/prebuild',
|
|
97546
|
+
'🛠️ run anywhere with `dotenvx run -- yourcommand`',
|
|
97547
|
+
'⚙️ specify custom .env file path with { path: \'/custom/path/.env\' }',
|
|
97548
|
+
'⚙️ enable debug logging with { debug: true }',
|
|
97549
|
+
'⚙️ override existing env vars with { override: true }',
|
|
97550
|
+
'⚙️ suppress all logs with { quiet: true }',
|
|
97551
|
+
'⚙️ write to custom object with { processEnv: myObject }',
|
|
97552
|
+
'⚙️ load multiple .env files with { path: [\'.env.local\', \'.env\'] }'
|
|
97553
|
+
]
|
|
97554
|
+
|
|
97555
|
+
// Get a random tip from the tips array
|
|
97556
|
+
function _getRandomTip () {
|
|
97557
|
+
return TIPS[Math.floor(Math.random() * TIPS.length)]
|
|
97558
|
+
}
|
|
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
|
+
|
|
97567
|
+
function supportsAnsi () {
|
|
97568
|
+
return process.stdout.isTTY // && process.env.TERM !== 'dumb'
|
|
97569
|
+
}
|
|
97570
|
+
|
|
97571
|
+
function dim (text) {
|
|
97572
|
+
return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text
|
|
97573
|
+
}
|
|
97574
|
+
|
|
97426
97575
|
const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg
|
|
97427
97576
|
|
|
97428
97577
|
// Parse src into an Object
|
|
@@ -97606,8 +97755,8 @@ function _resolveHome (envPath) {
|
|
|
97606
97755
|
}
|
|
97607
97756
|
|
|
97608
97757
|
function _configVault (options) {
|
|
97609
|
-
const debug =
|
|
97610
|
-
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))
|
|
97611
97760
|
|
|
97612
97761
|
if (debug || !quiet) {
|
|
97613
97762
|
_log('Loading env from encrypted .env.vault')
|
|
@@ -97628,8 +97777,12 @@ function _configVault (options) {
|
|
|
97628
97777
|
function configDotenv (options) {
|
|
97629
97778
|
const dotenvPath = path.resolve(process.cwd(), '.env')
|
|
97630
97779
|
let encoding = 'utf8'
|
|
97631
|
-
|
|
97632
|
-
|
|
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))
|
|
97633
97786
|
|
|
97634
97787
|
if (options && options.encoding) {
|
|
97635
97788
|
encoding = options.encoding
|
|
@@ -97669,15 +97822,14 @@ function configDotenv (options) {
|
|
|
97669
97822
|
}
|
|
97670
97823
|
}
|
|
97671
97824
|
|
|
97672
|
-
|
|
97673
|
-
if (options && options.processEnv != null) {
|
|
97674
|
-
processEnv = options.processEnv
|
|
97675
|
-
}
|
|
97825
|
+
const populated = DotenvModule.populate(processEnv, parsedAll, options)
|
|
97676
97826
|
|
|
97677
|
-
|
|
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)
|
|
97678
97830
|
|
|
97679
97831
|
if (debug || !quiet) {
|
|
97680
|
-
const keysCount = Object.keys(
|
|
97832
|
+
const keysCount = Object.keys(populated).length
|
|
97681
97833
|
const shortPaths = []
|
|
97682
97834
|
for (const filePath of optionPaths) {
|
|
97683
97835
|
try {
|
|
@@ -97691,7 +97843,7 @@ function configDotenv (options) {
|
|
|
97691
97843
|
}
|
|
97692
97844
|
}
|
|
97693
97845
|
|
|
97694
|
-
_log(`injecting env (${keysCount}) from ${shortPaths.join(',')}
|
|
97846
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(',')} ${dim(`(tip: ${_getRandomTip()})`)}`)
|
|
97695
97847
|
}
|
|
97696
97848
|
|
|
97697
97849
|
if (lastError) {
|
|
@@ -97755,6 +97907,7 @@ function decrypt (encrypted, keyStr) {
|
|
|
97755
97907
|
function populate (processEnv, parsed, options = {}) {
|
|
97756
97908
|
const debug = Boolean(options && options.debug)
|
|
97757
97909
|
const override = Boolean(options && options.override)
|
|
97910
|
+
const populated = {}
|
|
97758
97911
|
|
|
97759
97912
|
if (typeof parsed !== 'object') {
|
|
97760
97913
|
const err = new Error('OBJECT_REQUIRED: Please check the processEnv argument being passed to populate')
|
|
@@ -97767,6 +97920,7 @@ function populate (processEnv, parsed, options = {}) {
|
|
|
97767
97920
|
if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
97768
97921
|
if (override === true) {
|
|
97769
97922
|
processEnv[key] = parsed[key]
|
|
97923
|
+
populated[key] = parsed[key]
|
|
97770
97924
|
}
|
|
97771
97925
|
|
|
97772
97926
|
if (debug) {
|
|
@@ -97778,8 +97932,11 @@ function populate (processEnv, parsed, options = {}) {
|
|
|
97778
97932
|
}
|
|
97779
97933
|
} else {
|
|
97780
97934
|
processEnv[key] = parsed[key]
|
|
97935
|
+
populated[key] = parsed[key]
|
|
97781
97936
|
}
|
|
97782
97937
|
}
|
|
97938
|
+
|
|
97939
|
+
return populated
|
|
97783
97940
|
}
|
|
97784
97941
|
|
|
97785
97942
|
const DotenvModule = {
|
|
@@ -195298,6 +195455,13 @@ function negateAsync(asyncFn) {
|
|
|
195298
195455
|
module.exports = waitOn;
|
|
195299
195456
|
|
|
195300
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
|
+
|
|
195301
195465
|
/***/ }),
|
|
195302
195466
|
|
|
195303
195467
|
/***/ 87269:
|
|
@@ -200967,21 +201131,21 @@ module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.
|
|
|
200967
201131
|
/***/ 27413:
|
|
200968
201132
|
/***/ ((module) => {
|
|
200969
201133
|
|
|
200970
|
-
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"}}');
|
|
200971
201135
|
|
|
200972
201136
|
/***/ }),
|
|
200973
201137
|
|
|
200974
201138
|
/***/ 45188:
|
|
200975
201139
|
/***/ ((module) => {
|
|
200976
201140
|
|
|
200977
|
-
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"}}');
|
|
200978
201142
|
|
|
200979
201143
|
/***/ }),
|
|
200980
201144
|
|
|
200981
201145
|
/***/ 39955:
|
|
200982
201146
|
/***/ ((module) => {
|
|
200983
201147
|
|
|
200984
|
-
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"}}}');
|
|
200985
201149
|
|
|
200986
201150
|
/***/ }),
|
|
200987
201151
|
|
|
@@ -201016,7 +201180,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"http://json-schema.org/dra
|
|
|
201016
201180
|
/***/ 80056:
|
|
201017
201181
|
/***/ ((module) => {
|
|
201018
201182
|
|
|
201019
|
-
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}}');
|
|
201020
201184
|
|
|
201021
201185
|
/***/ }),
|
|
201022
201186
|
|
|
@@ -201748,6 +201912,10 @@ const getS3Provider = () => {
|
|
|
201748
201912
|
'AWS_SECRET_ACCESS_KEY',
|
|
201749
201913
|
'S3_SECRET_ACCESS_KEY'
|
|
201750
201914
|
]);
|
|
201915
|
+
const s3SessionToken = s3_getInput('s3-session-token', [
|
|
201916
|
+
'AWS_SESSION_TOKEN',
|
|
201917
|
+
'S3_SESSION_TOKEN'
|
|
201918
|
+
]);
|
|
201751
201919
|
const s3Bucket = s3_getInput('s3-bucket', ['S3_BUCKET']);
|
|
201752
201920
|
const s3Region = s3_getInput('s3-region', [
|
|
201753
201921
|
'AWS_REGION',
|
|
@@ -201768,7 +201936,8 @@ const getS3Provider = () => {
|
|
|
201768
201936
|
endpoint: s3Endpoint,
|
|
201769
201937
|
credentials: {
|
|
201770
201938
|
accessKeyId: s3AccessKeyId,
|
|
201771
|
-
secretAccessKey: s3SecretAccessKey
|
|
201939
|
+
secretAccessKey: s3SecretAccessKey,
|
|
201940
|
+
sessionToken: s3SessionToken
|
|
201772
201941
|
}
|
|
201773
201942
|
});
|
|
201774
201943
|
const getS3Key = (hash, tag) => {
|
|
@@ -202214,6 +202383,58 @@ async function server() {
|
|
|
202214
202383
|
request.log.info(`Sending artifact for ${hash}`);
|
|
202215
202384
|
return reply.send(stream);
|
|
202216
202385
|
});
|
|
202386
|
+
/**
|
|
202387
|
+
* Login and link commands
|
|
202388
|
+
*/
|
|
202389
|
+
fastify.get('/v5/user/tokens/current', async () => {
|
|
202390
|
+
return {
|
|
202391
|
+
ok: true,
|
|
202392
|
+
token: {
|
|
202393
|
+
id: 'turbogha',
|
|
202394
|
+
name: 'turbogha',
|
|
202395
|
+
type: 'turbogha',
|
|
202396
|
+
origin: 'turbogha',
|
|
202397
|
+
scopes: [],
|
|
202398
|
+
activeAt: Date.now(),
|
|
202399
|
+
createdAt: Date.now()
|
|
202400
|
+
}
|
|
202401
|
+
};
|
|
202402
|
+
});
|
|
202403
|
+
fastify.get('/v8/artifacts/status', async () => {
|
|
202404
|
+
return {
|
|
202405
|
+
ok: true,
|
|
202406
|
+
status: 'enabled'
|
|
202407
|
+
};
|
|
202408
|
+
});
|
|
202409
|
+
fastify.get('/v2/user', async () => {
|
|
202410
|
+
return {
|
|
202411
|
+
ok: true,
|
|
202412
|
+
user: {
|
|
202413
|
+
id: 'turbogha',
|
|
202414
|
+
username: 'turbogha',
|
|
202415
|
+
email: 'turbogha@turbogha.com',
|
|
202416
|
+
name: 'turbogha',
|
|
202417
|
+
createdAt: Date.now()
|
|
202418
|
+
}
|
|
202419
|
+
};
|
|
202420
|
+
});
|
|
202421
|
+
fastify.get('/v2/teams', async () => {
|
|
202422
|
+
return {
|
|
202423
|
+
ok: true,
|
|
202424
|
+
teams: [
|
|
202425
|
+
{
|
|
202426
|
+
id: 'turbogha',
|
|
202427
|
+
slug: 'turbogha',
|
|
202428
|
+
name: 'turbogha',
|
|
202429
|
+
createdAt: Date.now(),
|
|
202430
|
+
created: new Date(),
|
|
202431
|
+
membership: {
|
|
202432
|
+
role: 'OWNER'
|
|
202433
|
+
}
|
|
202434
|
+
}
|
|
202435
|
+
]
|
|
202436
|
+
};
|
|
202437
|
+
});
|
|
202217
202438
|
//* Start the server
|
|
202218
202439
|
await fastify.listen({ port: serverPort });
|
|
202219
202440
|
}
|
|
@@ -202251,7 +202472,7 @@ const ping = async () => {
|
|
|
202251
202472
|
// EXTERNAL MODULE: external "fs/promises"
|
|
202252
202473
|
var promises_ = __nccwpck_require__(91943);
|
|
202253
202474
|
;// CONCATENATED MODULE: ./package.json
|
|
202254
|
-
const package_namespaceObject = {"rE":"2.
|
|
202475
|
+
const package_namespaceObject = {"rE":"2.2.0"};
|
|
202255
202476
|
;// CONCATENATED MODULE: ./src/cli.ts
|
|
202256
202477
|
|
|
202257
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.1
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/rharkor/caching-for-turbo",
|
|
7
7
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
".": "./dist/cli/index.js"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
|
-
"turbogha": "
|
|
24
|
+
"turbogha": "dist/cli/index.js"
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
27
27
|
"engines": {
|