@clef-sh/agent 0.1.20 → 0.1.21
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/dist/agent.cjs +399 -396
- package/dist/agent.cjs.map +4 -4
- package/package.json +2 -2
package/dist/agent.cjs
CHANGED
|
@@ -3969,7 +3969,7 @@ var require_age_encryption = __commonJS({
|
|
|
3969
3969
|
}
|
|
3970
3970
|
return { seed, k2sig };
|
|
3971
3971
|
}
|
|
3972
|
-
function
|
|
3972
|
+
function sign3(message, secretKey, opts2 = {}) {
|
|
3973
3973
|
const { seed, k2sig } = prepSig(message, secretKey, opts2);
|
|
3974
3974
|
const drbg = createHmacDrbg(hash.outputLen, Fn2.BYTES, hmac3);
|
|
3975
3975
|
const sig = drbg(seed, k2sig);
|
|
@@ -4015,7 +4015,7 @@ var require_age_encryption = __commonJS({
|
|
|
4015
4015
|
utils,
|
|
4016
4016
|
lengths,
|
|
4017
4017
|
Point,
|
|
4018
|
-
sign:
|
|
4018
|
+
sign: sign3,
|
|
4019
4019
|
verify: verify3,
|
|
4020
4020
|
recoverPublicKey,
|
|
4021
4021
|
Signature,
|
|
@@ -7310,7 +7310,7 @@ var require_age_encryption = __commonJS({
|
|
|
7310
7310
|
}
|
|
7311
7311
|
return { seed, k2sig };
|
|
7312
7312
|
}
|
|
7313
|
-
function
|
|
7313
|
+
function sign3(message, secretKey, opts2 = {}) {
|
|
7314
7314
|
const { seed, k2sig } = prepSig(message, secretKey, opts2);
|
|
7315
7315
|
const drbg = createHmacDrbg2(hash_.outputLen, Fn2.BYTES, hmac3);
|
|
7316
7316
|
const sig = drbg(seed, k2sig);
|
|
@@ -7356,7 +7356,7 @@ var require_age_encryption = __commonJS({
|
|
|
7356
7356
|
utils,
|
|
7357
7357
|
lengths,
|
|
7358
7358
|
Point,
|
|
7359
|
-
sign:
|
|
7359
|
+
sign: sign3,
|
|
7360
7360
|
verify: verify3,
|
|
7361
7361
|
recoverPublicKey,
|
|
7362
7362
|
Signature,
|
|
@@ -14244,8 +14244,8 @@ var init_schema_date_utils = __esm({
|
|
|
14244
14244
|
const date2 = new Date(Date.UTC(Number(yearStr), Number(monthStr) - 1, Number(dayStr), Number(hours), Number(minutes), Number(seconds), Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1e3) : 0));
|
|
14245
14245
|
date2.setUTCFullYear(Number(yearStr));
|
|
14246
14246
|
if (offsetStr.toUpperCase() != "Z") {
|
|
14247
|
-
const [,
|
|
14248
|
-
const scalar =
|
|
14247
|
+
const [, sign3, offsetH, offsetM] = /([+-])(\d\d):(\d\d)/.exec(offsetStr) || [void 0, "+", 0, 0];
|
|
14248
|
+
const scalar = sign3 === "-" ? 1 : -1;
|
|
14249
14249
|
date2.setTime(date2.getTime() + scalar * (Number(offsetH) * 60 * 60 * 1e3 + Number(offsetM) * 60 * 1e3));
|
|
14250
14250
|
}
|
|
14251
14251
|
return date2;
|
|
@@ -21950,7 +21950,7 @@ var require_dist_cjs41 = __commonJS({
|
|
|
21950
21950
|
var utilBufferFrom = require_dist_cjs8();
|
|
21951
21951
|
var utilUtf8 = require_dist_cjs9();
|
|
21952
21952
|
var buffer = require("buffer");
|
|
21953
|
-
var
|
|
21953
|
+
var crypto16 = require("crypto");
|
|
21954
21954
|
var Hash6 = class {
|
|
21955
21955
|
algorithmIdentifier;
|
|
21956
21956
|
secret;
|
|
@@ -21967,7 +21967,7 @@ var require_dist_cjs41 = __commonJS({
|
|
|
21967
21967
|
return Promise.resolve(this.hash.digest());
|
|
21968
21968
|
}
|
|
21969
21969
|
reset() {
|
|
21970
|
-
this.hash = this.secret ?
|
|
21970
|
+
this.hash = this.secret ? crypto16.createHmac(this.algorithmIdentifier, castSourceData(this.secret)) : crypto16.createHash(this.algorithmIdentifier);
|
|
21971
21971
|
}
|
|
21972
21972
|
};
|
|
21973
21973
|
function castSourceData(toCast, encoding) {
|
|
@@ -22196,7 +22196,7 @@ function decode(at, to) {
|
|
|
22196
22196
|
const normalizer = mantissa < 0 ? -1 : 1;
|
|
22197
22197
|
const mantissaStr = "0".repeat(Math.abs(exponent) + 1) + String(BigInt(normalizer) * BigInt(mantissa));
|
|
22198
22198
|
let numericString;
|
|
22199
|
-
const
|
|
22199
|
+
const sign3 = mantissa < 0 ? "-" : "";
|
|
22200
22200
|
numericString = exponent === 0 ? mantissaStr : mantissaStr.slice(0, mantissaStr.length + exponent) + "." + mantissaStr.slice(exponent);
|
|
22201
22201
|
numericString = numericString.replace(/^0+/g, "");
|
|
22202
22202
|
if (numericString === "") {
|
|
@@ -22205,7 +22205,7 @@ function decode(at, to) {
|
|
|
22205
22205
|
if (numericString[0] === ".") {
|
|
22206
22206
|
numericString = "0" + numericString;
|
|
22207
22207
|
}
|
|
22208
|
-
numericString =
|
|
22208
|
+
numericString = sign3 + numericString;
|
|
22209
22209
|
_offset = offset + _offset;
|
|
22210
22210
|
return nv(numericString);
|
|
22211
22211
|
} else {
|
|
@@ -22263,10 +22263,10 @@ function demote(bigInteger) {
|
|
|
22263
22263
|
return num;
|
|
22264
22264
|
}
|
|
22265
22265
|
function bytesToFloat16(a5, b5) {
|
|
22266
|
-
const
|
|
22266
|
+
const sign3 = a5 >> 7;
|
|
22267
22267
|
const exponent = (a5 & 124) >> 2;
|
|
22268
22268
|
const fraction = (a5 & 3) << 8 | b5;
|
|
22269
|
-
const scalar =
|
|
22269
|
+
const scalar = sign3 === 0 ? 1 : -1;
|
|
22270
22270
|
let exponentComponent;
|
|
22271
22271
|
let summation;
|
|
22272
22272
|
if (exponent === 0) {
|
|
@@ -45995,8 +45995,8 @@ var require_float = __commonJS({
|
|
|
45995
45995
|
})();
|
|
45996
45996
|
else (function() {
|
|
45997
45997
|
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
45998
|
-
var
|
|
45999
|
-
if (
|
|
45998
|
+
var sign3 = val < 0 ? 1 : 0;
|
|
45999
|
+
if (sign3)
|
|
46000
46000
|
val = -val;
|
|
46001
46001
|
if (val === 0)
|
|
46002
46002
|
writeUint(1 / val > 0 ? (
|
|
@@ -46009,19 +46009,19 @@ var require_float = __commonJS({
|
|
|
46009
46009
|
else if (isNaN(val))
|
|
46010
46010
|
writeUint(2143289344, buf, pos);
|
|
46011
46011
|
else if (val > 34028234663852886e22)
|
|
46012
|
-
writeUint((
|
|
46012
|
+
writeUint((sign3 << 31 | 2139095040) >>> 0, buf, pos);
|
|
46013
46013
|
else if (val < 11754943508222875e-54)
|
|
46014
|
-
writeUint((
|
|
46014
|
+
writeUint((sign3 << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
|
|
46015
46015
|
else {
|
|
46016
46016
|
var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
46017
|
-
writeUint((
|
|
46017
|
+
writeUint((sign3 << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
46018
46018
|
}
|
|
46019
46019
|
}
|
|
46020
46020
|
exports3.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
46021
46021
|
exports3.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
46022
46022
|
function readFloat_ieee754(readUint, buf, pos) {
|
|
46023
|
-
var uint = readUint(buf, pos),
|
|
46024
|
-
return exponent === 255 ? mantissa ? NaN :
|
|
46023
|
+
var uint = readUint(buf, pos), sign3 = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
46024
|
+
return exponent === 255 ? mantissa ? NaN : sign3 * Infinity : exponent === 0 ? sign3 * 1401298464324817e-60 * mantissa : sign3 * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
46025
46025
|
}
|
|
46026
46026
|
exports3.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
46027
46027
|
exports3.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
@@ -46079,8 +46079,8 @@ var require_float = __commonJS({
|
|
|
46079
46079
|
})();
|
|
46080
46080
|
else (function() {
|
|
46081
46081
|
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
46082
|
-
var
|
|
46083
|
-
if (
|
|
46082
|
+
var sign3 = val < 0 ? 1 : 0;
|
|
46083
|
+
if (sign3)
|
|
46084
46084
|
val = -val;
|
|
46085
46085
|
if (val === 0) {
|
|
46086
46086
|
writeUint(0, buf, pos + off0);
|
|
@@ -46096,20 +46096,20 @@ var require_float = __commonJS({
|
|
|
46096
46096
|
writeUint(2146959360, buf, pos + off1);
|
|
46097
46097
|
} else if (val > 17976931348623157e292) {
|
|
46098
46098
|
writeUint(0, buf, pos + off0);
|
|
46099
|
-
writeUint((
|
|
46099
|
+
writeUint((sign3 << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
46100
46100
|
} else {
|
|
46101
46101
|
var mantissa;
|
|
46102
46102
|
if (val < 22250738585072014e-324) {
|
|
46103
46103
|
mantissa = val / 5e-324;
|
|
46104
46104
|
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
46105
|
-
writeUint((
|
|
46105
|
+
writeUint((sign3 << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
46106
46106
|
} else {
|
|
46107
46107
|
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
46108
46108
|
if (exponent === 1024)
|
|
46109
46109
|
exponent = 1023;
|
|
46110
46110
|
mantissa = val * Math.pow(2, -exponent);
|
|
46111
46111
|
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
46112
|
-
writeUint((
|
|
46112
|
+
writeUint((sign3 << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
46113
46113
|
}
|
|
46114
46114
|
}
|
|
46115
46115
|
}
|
|
@@ -46117,8 +46117,8 @@ var require_float = __commonJS({
|
|
|
46117
46117
|
exports3.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
46118
46118
|
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
46119
46119
|
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
46120
|
-
var
|
|
46121
|
-
return exponent === 2047 ? mantissa ? NaN :
|
|
46120
|
+
var sign3 = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
46121
|
+
return exponent === 2047 ? mantissa ? NaN : sign3 * Infinity : exponent === 0 ? sign3 * 5e-324 * mantissa : sign3 * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
46122
46122
|
}
|
|
46123
46123
|
exports3.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
46124
46124
|
exports3.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
@@ -46290,11 +46290,11 @@ var require_longbits = __commonJS({
|
|
|
46290
46290
|
LongBits.fromNumber = function fromNumber(value) {
|
|
46291
46291
|
if (value === 0)
|
|
46292
46292
|
return zero;
|
|
46293
|
-
var
|
|
46294
|
-
if (
|
|
46293
|
+
var sign3 = value < 0;
|
|
46294
|
+
if (sign3)
|
|
46295
46295
|
value = -value;
|
|
46296
46296
|
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
46297
|
-
if (
|
|
46297
|
+
if (sign3) {
|
|
46298
46298
|
hi = ~hi >>> 0;
|
|
46299
46299
|
lo = ~lo >>> 0;
|
|
46300
46300
|
if (++lo > 4294967295) {
|
|
@@ -50245,16 +50245,16 @@ var require_parse = __commonJS({
|
|
|
50245
50245
|
);
|
|
50246
50246
|
}
|
|
50247
50247
|
function parseNumber2(token2, insideTryCatch) {
|
|
50248
|
-
var
|
|
50248
|
+
var sign3 = 1;
|
|
50249
50249
|
if (token2.charAt(0) === "-") {
|
|
50250
|
-
|
|
50250
|
+
sign3 = -1;
|
|
50251
50251
|
token2 = token2.substring(1);
|
|
50252
50252
|
}
|
|
50253
50253
|
switch (token2) {
|
|
50254
50254
|
case "inf":
|
|
50255
50255
|
case "INF":
|
|
50256
50256
|
case "Inf":
|
|
50257
|
-
return
|
|
50257
|
+
return sign3 * Infinity;
|
|
50258
50258
|
case "nan":
|
|
50259
50259
|
case "NAN":
|
|
50260
50260
|
case "Nan":
|
|
@@ -50264,13 +50264,13 @@ var require_parse = __commonJS({
|
|
|
50264
50264
|
return 0;
|
|
50265
50265
|
}
|
|
50266
50266
|
if (base10Re.test(token2))
|
|
50267
|
-
return
|
|
50267
|
+
return sign3 * parseInt(token2, 10);
|
|
50268
50268
|
if (base16Re.test(token2))
|
|
50269
|
-
return
|
|
50269
|
+
return sign3 * parseInt(token2, 16);
|
|
50270
50270
|
if (base8Re.test(token2))
|
|
50271
|
-
return
|
|
50271
|
+
return sign3 * parseInt(token2, 8);
|
|
50272
50272
|
if (numberRe.test(token2))
|
|
50273
|
-
return
|
|
50273
|
+
return sign3 * parseFloat(token2);
|
|
50274
50274
|
throw illegal(token2, "number", insideTryCatch);
|
|
50275
50275
|
}
|
|
50276
50276
|
function parseId(token2, acceptNegative) {
|
|
@@ -65384,7 +65384,7 @@ var require_lib = __commonJS({
|
|
|
65384
65384
|
"use strict";
|
|
65385
65385
|
var conversions = {};
|
|
65386
65386
|
module2.exports = conversions;
|
|
65387
|
-
function
|
|
65387
|
+
function sign3(x) {
|
|
65388
65388
|
return x < 0 ? -1 : 1;
|
|
65389
65389
|
}
|
|
65390
65390
|
function evenRound(x) {
|
|
@@ -65409,7 +65409,7 @@ var require_lib = __commonJS({
|
|
|
65409
65409
|
if (!Number.isFinite(x)) {
|
|
65410
65410
|
throw new TypeError("Argument is not a finite number");
|
|
65411
65411
|
}
|
|
65412
|
-
x =
|
|
65412
|
+
x = sign3(x) * Math.floor(Math.abs(x));
|
|
65413
65413
|
if (x < lowerBound || x > upperBound) {
|
|
65414
65414
|
throw new TypeError("Argument is not in byte range");
|
|
65415
65415
|
}
|
|
@@ -65424,7 +65424,7 @@ var require_lib = __commonJS({
|
|
|
65424
65424
|
if (!Number.isFinite(x) || x === 0) {
|
|
65425
65425
|
return 0;
|
|
65426
65426
|
}
|
|
65427
|
-
x =
|
|
65427
|
+
x = sign3(x) * Math.floor(Math.abs(x));
|
|
65428
65428
|
x = x % moduloVal;
|
|
65429
65429
|
if (!typeOpts.unsigned && x >= moduloBound) {
|
|
65430
65430
|
return x - moduloVal;
|
|
@@ -69656,7 +69656,7 @@ var require_supports_color = __commonJS({
|
|
|
69656
69656
|
return 1;
|
|
69657
69657
|
}
|
|
69658
69658
|
if ("CI" in env) {
|
|
69659
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((
|
|
69659
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign3) => sign3 in env) || env.CI_NAME === "codeship") {
|
|
69660
69660
|
return 1;
|
|
69661
69661
|
}
|
|
69662
69662
|
return min;
|
|
@@ -71184,7 +71184,7 @@ var require_bignumber = __commonJS({
|
|
|
71184
71184
|
}
|
|
71185
71185
|
return arr.reverse();
|
|
71186
71186
|
}
|
|
71187
|
-
return function(str, baseIn, baseOut,
|
|
71187
|
+
return function(str, baseIn, baseOut, sign3, callerIsToString) {
|
|
71188
71188
|
var alphabet, d5, e5, k5, r5, x, xc, y, i5 = str.indexOf("."), dp = DECIMAL_PLACES, rm = ROUNDING_MODE;
|
|
71189
71189
|
if (i5 >= 0) {
|
|
71190
71190
|
k5 = POW_PRECISION;
|
|
@@ -71210,7 +71210,7 @@ var require_bignumber = __commonJS({
|
|
|
71210
71210
|
} else {
|
|
71211
71211
|
x.c = xc;
|
|
71212
71212
|
x.e = e5;
|
|
71213
|
-
x.s =
|
|
71213
|
+
x.s = sign3;
|
|
71214
71214
|
x = div(x, y, dp, rm, baseOut);
|
|
71215
71215
|
xc = x.c;
|
|
71216
71216
|
r5 = x.r;
|
|
@@ -73441,22 +73441,22 @@ var require_crypto2 = __commonJS({
|
|
|
73441
73441
|
"use strict";
|
|
73442
73442
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
73443
73443
|
exports2.NodeCrypto = void 0;
|
|
73444
|
-
var
|
|
73444
|
+
var crypto16 = require("crypto");
|
|
73445
73445
|
var NodeCrypto = class {
|
|
73446
73446
|
async sha256DigestBase64(str) {
|
|
73447
|
-
return
|
|
73447
|
+
return crypto16.createHash("sha256").update(str).digest("base64");
|
|
73448
73448
|
}
|
|
73449
73449
|
randomBytesBase64(count) {
|
|
73450
|
-
return
|
|
73450
|
+
return crypto16.randomBytes(count).toString("base64");
|
|
73451
73451
|
}
|
|
73452
73452
|
async verify(pubkey, data2, signature) {
|
|
73453
|
-
const verifier =
|
|
73453
|
+
const verifier = crypto16.createVerify("RSA-SHA256");
|
|
73454
73454
|
verifier.update(data2);
|
|
73455
73455
|
verifier.end();
|
|
73456
73456
|
return verifier.verify(pubkey, signature, "base64");
|
|
73457
73457
|
}
|
|
73458
73458
|
async sign(privateKey, data2) {
|
|
73459
|
-
const signer =
|
|
73459
|
+
const signer = crypto16.createSign("RSA-SHA256");
|
|
73460
73460
|
signer.update(data2);
|
|
73461
73461
|
signer.end();
|
|
73462
73462
|
return signer.sign(privateKey, "base64");
|
|
@@ -73474,7 +73474,7 @@ var require_crypto2 = __commonJS({
|
|
|
73474
73474
|
* string in hexadecimal encoding.
|
|
73475
73475
|
*/
|
|
73476
73476
|
async sha256DigestHex(str) {
|
|
73477
|
-
return
|
|
73477
|
+
return crypto16.createHash("sha256").update(str).digest("hex");
|
|
73478
73478
|
}
|
|
73479
73479
|
/**
|
|
73480
73480
|
* Computes the HMAC hash of a message using the provided crypto key and the
|
|
@@ -73486,7 +73486,7 @@ var require_crypto2 = __commonJS({
|
|
|
73486
73486
|
*/
|
|
73487
73487
|
async signWithHmacSha256(key, msg) {
|
|
73488
73488
|
const cryptoKey = typeof key === "string" ? key : toBuffer(key);
|
|
73489
|
-
return toArrayBuffer(
|
|
73489
|
+
return toArrayBuffer(crypto16.createHmac("sha256", cryptoKey).update(msg).digest());
|
|
73490
73490
|
}
|
|
73491
73491
|
};
|
|
73492
73492
|
exports2.NodeCrypto = NodeCrypto;
|
|
@@ -74264,10 +74264,10 @@ var require_oauth2client = __commonJS({
|
|
|
74264
74264
|
* https://github.com/googleapis/google-auth-library-nodejs/blob/main/samples/oauth2-codeVerifier.js
|
|
74265
74265
|
*/
|
|
74266
74266
|
async generateCodeVerifierAsync() {
|
|
74267
|
-
const
|
|
74268
|
-
const randomString =
|
|
74267
|
+
const crypto16 = (0, crypto_1.createCrypto)();
|
|
74268
|
+
const randomString = crypto16.randomBytesBase64(96);
|
|
74269
74269
|
const codeVerifier = randomString.replace(/\+/g, "~").replace(/=/g, "_").replace(/\//g, "-");
|
|
74270
|
-
const unencodedCodeChallenge = await
|
|
74270
|
+
const unencodedCodeChallenge = await crypto16.sha256DigestBase64(codeVerifier);
|
|
74271
74271
|
const codeChallenge = unencodedCodeChallenge.split("=")[0].replace(/\+/g, "-").replace(/\//g, "_");
|
|
74272
74272
|
return { codeVerifier, codeChallenge };
|
|
74273
74273
|
}
|
|
@@ -74711,7 +74711,7 @@ var require_oauth2client = __commonJS({
|
|
|
74711
74711
|
* @return Returns a promise resolving to LoginTicket on verification.
|
|
74712
74712
|
*/
|
|
74713
74713
|
async verifySignedJwtWithCertsAsync(jwt2, certs, requiredAudience, issuers, maxExpiry) {
|
|
74714
|
-
const
|
|
74714
|
+
const crypto16 = (0, crypto_1.createCrypto)();
|
|
74715
74715
|
if (!maxExpiry) {
|
|
74716
74716
|
maxExpiry = _OAuth2Client.DEFAULT_MAX_TOKEN_LIFETIME_SECS_;
|
|
74717
74717
|
}
|
|
@@ -74724,7 +74724,7 @@ var require_oauth2client = __commonJS({
|
|
|
74724
74724
|
let envelope;
|
|
74725
74725
|
let payload2;
|
|
74726
74726
|
try {
|
|
74727
|
-
envelope = JSON.parse(
|
|
74727
|
+
envelope = JSON.parse(crypto16.decodeBase64StringUtf8(segments[0]));
|
|
74728
74728
|
} catch (err) {
|
|
74729
74729
|
if (err instanceof Error) {
|
|
74730
74730
|
err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`;
|
|
@@ -74735,7 +74735,7 @@ var require_oauth2client = __commonJS({
|
|
|
74735
74735
|
throw new Error("Can't parse token envelope: " + segments[0]);
|
|
74736
74736
|
}
|
|
74737
74737
|
try {
|
|
74738
|
-
payload2 = JSON.parse(
|
|
74738
|
+
payload2 = JSON.parse(crypto16.decodeBase64StringUtf8(segments[1]));
|
|
74739
74739
|
} catch (err) {
|
|
74740
74740
|
if (err instanceof Error) {
|
|
74741
74741
|
err.message = `Can't parse token payload '${segments[0]}`;
|
|
@@ -74752,7 +74752,7 @@ var require_oauth2client = __commonJS({
|
|
|
74752
74752
|
if (envelope.alg === "ES256") {
|
|
74753
74753
|
signature = formatEcdsa.joseToDer(signature, "ES256").toString("base64");
|
|
74754
74754
|
}
|
|
74755
|
-
const verified = await
|
|
74755
|
+
const verified = await crypto16.verify(cert, signed, signature);
|
|
74756
74756
|
if (!verified) {
|
|
74757
74757
|
throw new Error("Invalid token signature: " + jwt2);
|
|
74758
74758
|
}
|
|
@@ -75120,14 +75120,14 @@ var require_buffer_equal_constant_time = __commonJS({
|
|
|
75120
75120
|
var require_jwa = __commonJS({
|
|
75121
75121
|
"../../node_modules/jwa/index.js"(exports2, module2) {
|
|
75122
75122
|
var Buffer3 = require_safe_buffer().Buffer;
|
|
75123
|
-
var
|
|
75123
|
+
var crypto16 = require("crypto");
|
|
75124
75124
|
var formatEcdsa = require_ecdsa_sig_formatter();
|
|
75125
75125
|
var util2 = require("util");
|
|
75126
75126
|
var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".';
|
|
75127
75127
|
var MSG_INVALID_SECRET = "secret must be a string or buffer";
|
|
75128
75128
|
var MSG_INVALID_VERIFIER_KEY = "key must be a string or a buffer";
|
|
75129
75129
|
var MSG_INVALID_SIGNER_KEY = "key must be a string, a buffer or an object";
|
|
75130
|
-
var supportsKeyObjects = typeof
|
|
75130
|
+
var supportsKeyObjects = typeof crypto16.createPublicKey === "function";
|
|
75131
75131
|
if (supportsKeyObjects) {
|
|
75132
75132
|
MSG_INVALID_VERIFIER_KEY += " or a KeyObject";
|
|
75133
75133
|
MSG_INVALID_SECRET += "or a KeyObject";
|
|
@@ -75214,20 +75214,20 @@ var require_jwa = __commonJS({
|
|
|
75214
75214
|
return thing;
|
|
75215
75215
|
}
|
|
75216
75216
|
function createHmacSigner(bits) {
|
|
75217
|
-
return function
|
|
75217
|
+
return function sign3(thing, secret) {
|
|
75218
75218
|
checkIsSecretKey(secret);
|
|
75219
75219
|
thing = normalizeInput(thing);
|
|
75220
|
-
var hmac =
|
|
75220
|
+
var hmac = crypto16.createHmac("sha" + bits, secret);
|
|
75221
75221
|
var sig = (hmac.update(thing), hmac.digest("base64"));
|
|
75222
75222
|
return fromBase649(sig);
|
|
75223
75223
|
};
|
|
75224
75224
|
}
|
|
75225
75225
|
var bufferEqual;
|
|
75226
|
-
var timingSafeEqual2 = "timingSafeEqual" in
|
|
75226
|
+
var timingSafeEqual2 = "timingSafeEqual" in crypto16 ? function timingSafeEqual3(a5, b5) {
|
|
75227
75227
|
if (a5.byteLength !== b5.byteLength) {
|
|
75228
75228
|
return false;
|
|
75229
75229
|
}
|
|
75230
|
-
return
|
|
75230
|
+
return crypto16.timingSafeEqual(a5, b5);
|
|
75231
75231
|
} : function timingSafeEqual3(a5, b5) {
|
|
75232
75232
|
if (!bufferEqual) {
|
|
75233
75233
|
bufferEqual = require_buffer_equal_constant_time();
|
|
@@ -75241,10 +75241,10 @@ var require_jwa = __commonJS({
|
|
|
75241
75241
|
};
|
|
75242
75242
|
}
|
|
75243
75243
|
function createKeySigner(bits) {
|
|
75244
|
-
return function
|
|
75244
|
+
return function sign3(thing, privateKey) {
|
|
75245
75245
|
checkIsPrivateKey(privateKey);
|
|
75246
75246
|
thing = normalizeInput(thing);
|
|
75247
|
-
var signer =
|
|
75247
|
+
var signer = crypto16.createSign("RSA-SHA" + bits);
|
|
75248
75248
|
var sig = (signer.update(thing), signer.sign(privateKey, "base64"));
|
|
75249
75249
|
return fromBase649(sig);
|
|
75250
75250
|
};
|
|
@@ -75254,20 +75254,20 @@ var require_jwa = __commonJS({
|
|
|
75254
75254
|
checkIsPublicKey(publicKey);
|
|
75255
75255
|
thing = normalizeInput(thing);
|
|
75256
75256
|
signature = toBase649(signature);
|
|
75257
|
-
var verifier =
|
|
75257
|
+
var verifier = crypto16.createVerify("RSA-SHA" + bits);
|
|
75258
75258
|
verifier.update(thing);
|
|
75259
75259
|
return verifier.verify(publicKey, signature, "base64");
|
|
75260
75260
|
};
|
|
75261
75261
|
}
|
|
75262
75262
|
function createPSSKeySigner(bits) {
|
|
75263
|
-
return function
|
|
75263
|
+
return function sign3(thing, privateKey) {
|
|
75264
75264
|
checkIsPrivateKey(privateKey);
|
|
75265
75265
|
thing = normalizeInput(thing);
|
|
75266
|
-
var signer =
|
|
75266
|
+
var signer = crypto16.createSign("RSA-SHA" + bits);
|
|
75267
75267
|
var sig = (signer.update(thing), signer.sign({
|
|
75268
75268
|
key: privateKey,
|
|
75269
|
-
padding:
|
|
75270
|
-
saltLength:
|
|
75269
|
+
padding: crypto16.constants.RSA_PKCS1_PSS_PADDING,
|
|
75270
|
+
saltLength: crypto16.constants.RSA_PSS_SALTLEN_DIGEST
|
|
75271
75271
|
}, "base64"));
|
|
75272
75272
|
return fromBase649(sig);
|
|
75273
75273
|
};
|
|
@@ -75277,18 +75277,18 @@ var require_jwa = __commonJS({
|
|
|
75277
75277
|
checkIsPublicKey(publicKey);
|
|
75278
75278
|
thing = normalizeInput(thing);
|
|
75279
75279
|
signature = toBase649(signature);
|
|
75280
|
-
var verifier =
|
|
75280
|
+
var verifier = crypto16.createVerify("RSA-SHA" + bits);
|
|
75281
75281
|
verifier.update(thing);
|
|
75282
75282
|
return verifier.verify({
|
|
75283
75283
|
key: publicKey,
|
|
75284
|
-
padding:
|
|
75285
|
-
saltLength:
|
|
75284
|
+
padding: crypto16.constants.RSA_PKCS1_PSS_PADDING,
|
|
75285
|
+
saltLength: crypto16.constants.RSA_PSS_SALTLEN_DIGEST
|
|
75286
75286
|
}, signature, "base64");
|
|
75287
75287
|
};
|
|
75288
75288
|
}
|
|
75289
75289
|
function createECDSASigner(bits) {
|
|
75290
75290
|
var inner = createKeySigner(bits);
|
|
75291
|
-
return function
|
|
75291
|
+
return function sign3() {
|
|
75292
75292
|
var signature = inner.apply(null, arguments);
|
|
75293
75293
|
signature = formatEcdsa.derToJose(signature, "ES" + bits);
|
|
75294
75294
|
return signature;
|
|
@@ -75303,7 +75303,7 @@ var require_jwa = __commonJS({
|
|
|
75303
75303
|
};
|
|
75304
75304
|
}
|
|
75305
75305
|
function createNoneSigner() {
|
|
75306
|
-
return function
|
|
75306
|
+
return function sign3() {
|
|
75307
75307
|
return "";
|
|
75308
75308
|
};
|
|
75309
75309
|
}
|
|
@@ -75405,7 +75405,7 @@ var require_sign_stream = __commonJS({
|
|
|
75405
75405
|
}.bind(this));
|
|
75406
75406
|
}
|
|
75407
75407
|
util2.inherits(SignStream, Stream);
|
|
75408
|
-
SignStream.prototype.sign = function
|
|
75408
|
+
SignStream.prototype.sign = function sign3() {
|
|
75409
75409
|
try {
|
|
75410
75410
|
var signature = jwsSign({
|
|
75411
75411
|
header: this.header,
|
|
@@ -77440,14 +77440,14 @@ var require_awsrequestsigner = __commonJS({
|
|
|
77440
77440
|
}
|
|
77441
77441
|
};
|
|
77442
77442
|
exports2.AwsRequestSigner = AwsRequestSigner;
|
|
77443
|
-
async function
|
|
77444
|
-
return await
|
|
77445
|
-
}
|
|
77446
|
-
async function getSigningKey(
|
|
77447
|
-
const kDate = await
|
|
77448
|
-
const kRegion = await
|
|
77449
|
-
const kService = await
|
|
77450
|
-
const kSigning = await
|
|
77443
|
+
async function sign3(crypto16, key, msg) {
|
|
77444
|
+
return await crypto16.signWithHmacSha256(key, msg);
|
|
77445
|
+
}
|
|
77446
|
+
async function getSigningKey(crypto16, key, dateStamp, region, serviceName) {
|
|
77447
|
+
const kDate = await sign3(crypto16, `AWS4${key}`, dateStamp);
|
|
77448
|
+
const kRegion = await sign3(crypto16, kDate, region);
|
|
77449
|
+
const kService = await sign3(crypto16, kRegion, serviceName);
|
|
77450
|
+
const kSigning = await sign3(crypto16, kService, "aws4_request");
|
|
77451
77451
|
return kSigning;
|
|
77452
77452
|
}
|
|
77453
77453
|
async function generateAuthenticationHeaderMap(options) {
|
|
@@ -77493,7 +77493,7 @@ ${amzDate}
|
|
|
77493
77493
|
${credentialScope}
|
|
77494
77494
|
` + await options.crypto.sha256DigestHex(canonicalRequest);
|
|
77495
77495
|
const signingKey = await getSigningKey(options.crypto, options.securityCredentials.secretAccessKey, dateStamp, options.region, serviceName);
|
|
77496
|
-
const signature = await
|
|
77496
|
+
const signature = await sign3(options.crypto, signingKey, stringToSign);
|
|
77497
77497
|
const authorizationHeader = `${AWS_ALGORITHM} Credential=${options.securityCredentials.accessKeyId}/${credentialScope}, SignedHeaders=${signedHeaders}, Signature=${(0, crypto_1.fromArrayBufferToHex)(signature)}`;
|
|
77498
77498
|
return {
|
|
77499
77499
|
// Do not return x-amz-date if date is available.
|
|
@@ -79032,24 +79032,24 @@ var require_googleauth = __commonJS({
|
|
|
79032
79032
|
const signed = await client.sign(data2);
|
|
79033
79033
|
return signed.signedBlob;
|
|
79034
79034
|
}
|
|
79035
|
-
const
|
|
79035
|
+
const crypto16 = (0, crypto_1.createCrypto)();
|
|
79036
79036
|
if (client instanceof jwtclient_1.JWT && client.key) {
|
|
79037
|
-
const
|
|
79038
|
-
return
|
|
79037
|
+
const sign3 = await crypto16.sign(client.key, data2);
|
|
79038
|
+
return sign3;
|
|
79039
79039
|
}
|
|
79040
79040
|
const creds = await this.getCredentials();
|
|
79041
79041
|
if (!creds.client_email) {
|
|
79042
79042
|
throw new Error("Cannot sign data without `client_email`.");
|
|
79043
79043
|
}
|
|
79044
|
-
return this.signBlob(
|
|
79044
|
+
return this.signBlob(crypto16, creds.client_email, data2, endpoint);
|
|
79045
79045
|
}
|
|
79046
|
-
async signBlob(
|
|
79046
|
+
async signBlob(crypto16, emailOrUniqueId, data2, endpoint) {
|
|
79047
79047
|
const url = new URL(endpoint + `${emailOrUniqueId}:signBlob`);
|
|
79048
79048
|
const res = await this.request({
|
|
79049
79049
|
method: "POST",
|
|
79050
79050
|
url: url.href,
|
|
79051
79051
|
data: {
|
|
79052
|
-
payload:
|
|
79052
|
+
payload: crypto16.encodeBase64StringUtf8(data2)
|
|
79053
79053
|
},
|
|
79054
79054
|
retry: true,
|
|
79055
79055
|
retryConfig: {
|
|
@@ -79466,7 +79466,7 @@ var require_src10 = __commonJS({
|
|
|
79466
79466
|
var require_object_hash = __commonJS({
|
|
79467
79467
|
"../../node_modules/object-hash/index.js"(exports2, module2) {
|
|
79468
79468
|
"use strict";
|
|
79469
|
-
var
|
|
79469
|
+
var crypto16 = require("crypto");
|
|
79470
79470
|
exports2 = module2.exports = objectHash;
|
|
79471
79471
|
function objectHash(object, options) {
|
|
79472
79472
|
options = applyDefaults(object, options);
|
|
@@ -79484,7 +79484,7 @@ var require_object_hash = __commonJS({
|
|
|
79484
79484
|
exports2.keysMD5 = function(object) {
|
|
79485
79485
|
return objectHash(object, { algorithm: "md5", encoding: "hex", excludeValues: true });
|
|
79486
79486
|
};
|
|
79487
|
-
var hashes =
|
|
79487
|
+
var hashes = crypto16.getHashes ? crypto16.getHashes().slice() : ["sha1", "md5"];
|
|
79488
79488
|
hashes.push("passthrough");
|
|
79489
79489
|
var encodings = ["buffer", "hex", "binary", "base64"];
|
|
79490
79490
|
function applyDefaults(object, sourceOptions) {
|
|
@@ -79530,7 +79530,7 @@ var require_object_hash = __commonJS({
|
|
|
79530
79530
|
function hash(object, options) {
|
|
79531
79531
|
var hashingStream;
|
|
79532
79532
|
if (options.algorithm !== "passthrough") {
|
|
79533
|
-
hashingStream =
|
|
79533
|
+
hashingStream = crypto16.createHash(options.algorithm);
|
|
79534
79534
|
} else {
|
|
79535
79535
|
hashingStream = new PassThrough();
|
|
79536
79536
|
}
|
|
@@ -142766,8 +142766,8 @@ var require_lodash2 = __commonJS({
|
|
|
142766
142766
|
}
|
|
142767
142767
|
value = toNumber(value);
|
|
142768
142768
|
if (value === INFINITY || value === -INFINITY) {
|
|
142769
|
-
var
|
|
142770
|
-
return
|
|
142769
|
+
var sign3 = value < 0 ? -1 : 1;
|
|
142770
|
+
return sign3 * MAX_INTEGER;
|
|
142771
142771
|
}
|
|
142772
142772
|
return value === value ? value : 0;
|
|
142773
142773
|
}
|
|
@@ -142852,8 +142852,8 @@ var require_lodash4 = __commonJS({
|
|
|
142852
142852
|
}
|
|
142853
142853
|
value = toNumber(value);
|
|
142854
142854
|
if (value === INFINITY || value === -INFINITY) {
|
|
142855
|
-
var
|
|
142856
|
-
return
|
|
142855
|
+
var sign3 = value < 0 ? -1 : 1;
|
|
142856
|
+
return sign3 * MAX_INTEGER;
|
|
142857
142857
|
}
|
|
142858
142858
|
return value === value ? value : 0;
|
|
142859
142859
|
}
|
|
@@ -143010,8 +143010,8 @@ var require_lodash8 = __commonJS({
|
|
|
143010
143010
|
}
|
|
143011
143011
|
value = toNumber(value);
|
|
143012
143012
|
if (value === INFINITY || value === -INFINITY) {
|
|
143013
|
-
var
|
|
143014
|
-
return
|
|
143013
|
+
var sign3 = value < 0 ? -1 : 1;
|
|
143014
|
+
return sign3 * MAX_INTEGER;
|
|
143015
143015
|
}
|
|
143016
143016
|
return value === value ? value : 0;
|
|
143017
143017
|
}
|
|
@@ -143055,7 +143055,7 @@ var require_sign = __commonJS({
|
|
|
143055
143055
|
var isPlainObject = require_lodash6();
|
|
143056
143056
|
var isString = require_lodash7();
|
|
143057
143057
|
var once = require_lodash8();
|
|
143058
|
-
var { KeyObject, createSecretKey, createPrivateKey:
|
|
143058
|
+
var { KeyObject, createSecretKey, createPrivateKey: createPrivateKey3 } = require("crypto");
|
|
143059
143059
|
var SUPPORTED_ALGS = ["RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "HS256", "HS384", "HS512", "none"];
|
|
143060
143060
|
if (PS_SUPPORTED) {
|
|
143061
143061
|
SUPPORTED_ALGS.splice(3, 0, "PS256", "PS384", "PS512");
|
|
@@ -143149,7 +143149,7 @@ var require_sign = __commonJS({
|
|
|
143149
143149
|
}
|
|
143150
143150
|
if (secretOrPrivateKey != null && !(secretOrPrivateKey instanceof KeyObject)) {
|
|
143151
143151
|
try {
|
|
143152
|
-
secretOrPrivateKey =
|
|
143152
|
+
secretOrPrivateKey = createPrivateKey3(secretOrPrivateKey);
|
|
143153
143153
|
} catch (_) {
|
|
143154
143154
|
try {
|
|
143155
143155
|
secretOrPrivateKey = createSecretKey(typeof secretOrPrivateKey === "string" ? Buffer.from(secretOrPrivateKey) : secretOrPrivateKey);
|
|
@@ -163257,8 +163257,8 @@ var require_int2 = __commonJS({
|
|
|
163257
163257
|
var stringifyNumber = require_stringifyNumber();
|
|
163258
163258
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
163259
163259
|
function intResolve(str, offset, radix, { intAsBigInt }) {
|
|
163260
|
-
const
|
|
163261
|
-
if (
|
|
163260
|
+
const sign3 = str[0];
|
|
163261
|
+
if (sign3 === "-" || sign3 === "+")
|
|
163262
163262
|
offset += 1;
|
|
163263
163263
|
str = str.substring(offset).replace(/_/g, "");
|
|
163264
163264
|
if (intAsBigInt) {
|
|
@@ -163274,10 +163274,10 @@ var require_int2 = __commonJS({
|
|
|
163274
163274
|
break;
|
|
163275
163275
|
}
|
|
163276
163276
|
const n3 = BigInt(str);
|
|
163277
|
-
return
|
|
163277
|
+
return sign3 === "-" ? BigInt(-1) * n3 : n3;
|
|
163278
163278
|
}
|
|
163279
163279
|
const n2 = parseInt(str, radix);
|
|
163280
|
-
return
|
|
163280
|
+
return sign3 === "-" ? -1 * n2 : n2;
|
|
163281
163281
|
}
|
|
163282
163282
|
function intStringify(node, radix, prefix) {
|
|
163283
163283
|
const { value } = node;
|
|
@@ -163424,11 +163424,11 @@ var require_timestamp2 = __commonJS({
|
|
|
163424
163424
|
"use strict";
|
|
163425
163425
|
var stringifyNumber = require_stringifyNumber();
|
|
163426
163426
|
function parseSexagesimal(str, asBigInt) {
|
|
163427
|
-
const
|
|
163428
|
-
const parts =
|
|
163427
|
+
const sign3 = str[0];
|
|
163428
|
+
const parts = sign3 === "-" || sign3 === "+" ? str.substring(1) : str;
|
|
163429
163429
|
const num = (n2) => asBigInt ? BigInt(n2) : Number(n2);
|
|
163430
163430
|
const res = parts.replace(/_/g, "").split(":").reduce((res2, p2) => res2 * num(60) + num(p2), num(0));
|
|
163431
|
-
return
|
|
163431
|
+
return sign3 === "-" ? num(-1) * res : res;
|
|
163432
163432
|
}
|
|
163433
163433
|
function stringifySexagesimal(node) {
|
|
163434
163434
|
let { value } = node;
|
|
@@ -163437,9 +163437,9 @@ var require_timestamp2 = __commonJS({
|
|
|
163437
163437
|
num = (n2) => BigInt(n2);
|
|
163438
163438
|
else if (isNaN(value) || !isFinite(value))
|
|
163439
163439
|
return stringifyNumber.stringifyNumber(node);
|
|
163440
|
-
let
|
|
163440
|
+
let sign3 = "";
|
|
163441
163441
|
if (value < 0) {
|
|
163442
|
-
|
|
163442
|
+
sign3 = "-";
|
|
163443
163443
|
value *= num(-1);
|
|
163444
163444
|
}
|
|
163445
163445
|
const _60 = num(60);
|
|
@@ -163454,7 +163454,7 @@ var require_timestamp2 = __commonJS({
|
|
|
163454
163454
|
parts.unshift(value);
|
|
163455
163455
|
}
|
|
163456
163456
|
}
|
|
163457
|
-
return
|
|
163457
|
+
return sign3 + parts.map((n2) => String(n2).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
|
|
163458
163458
|
}
|
|
163459
163459
|
var intTime = {
|
|
163460
163460
|
identify: (value) => typeof value === "bigint" || Number.isInteger(value),
|
|
@@ -163771,7 +163771,7 @@ var require_Document = __commonJS({
|
|
|
163771
163771
|
var applyReviver = require_applyReviver();
|
|
163772
163772
|
var createNode = require_createNode();
|
|
163773
163773
|
var directives = require_directives();
|
|
163774
|
-
var
|
|
163774
|
+
var Document2 = class _Document {
|
|
163775
163775
|
constructor(value, replacer, options) {
|
|
163776
163776
|
this.commentBefore = null;
|
|
163777
163777
|
this.comment = null;
|
|
@@ -164061,7 +164061,7 @@ var require_Document = __commonJS({
|
|
|
164061
164061
|
return true;
|
|
164062
164062
|
throw new Error("Expected a YAML collection as document contents");
|
|
164063
164063
|
}
|
|
164064
|
-
exports2.Document =
|
|
164064
|
+
exports2.Document = Document2;
|
|
164065
164065
|
}
|
|
164066
164066
|
});
|
|
164067
164067
|
|
|
@@ -165424,13 +165424,13 @@ var require_compose_node = __commonJS({
|
|
|
165424
165424
|
var require_compose_doc = __commonJS({
|
|
165425
165425
|
"../../node_modules/yaml/dist/compose/compose-doc.js"(exports2) {
|
|
165426
165426
|
"use strict";
|
|
165427
|
-
var
|
|
165427
|
+
var Document2 = require_Document();
|
|
165428
165428
|
var composeNode = require_compose_node();
|
|
165429
165429
|
var resolveEnd = require_resolve_end();
|
|
165430
165430
|
var resolveProps = require_resolve_props();
|
|
165431
165431
|
function composeDoc(options, directives, { offset, start, value, end }, onError) {
|
|
165432
165432
|
const opts = Object.assign({ _directives: directives }, options);
|
|
165433
|
-
const doc = new
|
|
165433
|
+
const doc = new Document2.Document(void 0, opts);
|
|
165434
165434
|
const ctx = {
|
|
165435
165435
|
atKey: false,
|
|
165436
165436
|
atRoot: true,
|
|
@@ -165469,7 +165469,7 @@ var require_composer = __commonJS({
|
|
|
165469
165469
|
"use strict";
|
|
165470
165470
|
var node_process = require("process");
|
|
165471
165471
|
var directives = require_directives();
|
|
165472
|
-
var
|
|
165472
|
+
var Document2 = require_Document();
|
|
165473
165473
|
var errors = require_errors3();
|
|
165474
165474
|
var identity = require_identity();
|
|
165475
165475
|
var composeDoc = require_compose_doc();
|
|
@@ -165656,7 +165656,7 @@ ${end.comment}` : end.comment;
|
|
|
165656
165656
|
this.doc = null;
|
|
165657
165657
|
} else if (forceDoc) {
|
|
165658
165658
|
const opts = Object.assign({ _directives: this.directives }, this.options);
|
|
165659
|
-
const doc = new
|
|
165659
|
+
const doc = new Document2.Document(void 0, opts);
|
|
165660
165660
|
if (this.atDirectives)
|
|
165661
165661
|
this.onError(endOffset, "MISSING_CHAR", "Missing directives-end indicator line");
|
|
165662
165662
|
doc.range = [0, endOffset, endOffset];
|
|
@@ -167561,7 +167561,7 @@ var require_public_api2 = __commonJS({
|
|
|
167561
167561
|
"../../node_modules/yaml/dist/public-api.js"(exports2) {
|
|
167562
167562
|
"use strict";
|
|
167563
167563
|
var composer = require_composer();
|
|
167564
|
-
var
|
|
167564
|
+
var Document2 = require_Document();
|
|
167565
167565
|
var errors = require_errors3();
|
|
167566
167566
|
var log2 = require_log();
|
|
167567
167567
|
var identity = require_identity();
|
|
@@ -167644,7 +167644,7 @@ var require_public_api2 = __commonJS({
|
|
|
167644
167644
|
}
|
|
167645
167645
|
if (identity.isDocument(value) && !_replacer)
|
|
167646
167646
|
return value.toString(options);
|
|
167647
|
-
return new
|
|
167647
|
+
return new Document2.Document(value, _replacer, options).toString(options);
|
|
167648
167648
|
}
|
|
167649
167649
|
exports2.parse = parse16;
|
|
167650
167650
|
exports2.parseAllDocuments = parseAllDocuments;
|
|
@@ -167658,7 +167658,7 @@ var require_dist4 = __commonJS({
|
|
|
167658
167658
|
"../../node_modules/yaml/dist/index.js"(exports2) {
|
|
167659
167659
|
"use strict";
|
|
167660
167660
|
var composer = require_composer();
|
|
167661
|
-
var
|
|
167661
|
+
var Document2 = require_Document();
|
|
167662
167662
|
var Schema2 = require_Schema();
|
|
167663
167663
|
var errors = require_errors3();
|
|
167664
167664
|
var Alias = require_Alias();
|
|
@@ -167674,7 +167674,7 @@ var require_dist4 = __commonJS({
|
|
|
167674
167674
|
var publicApi = require_public_api2();
|
|
167675
167675
|
var visit = require_visit();
|
|
167676
167676
|
exports2.Composer = composer.Composer;
|
|
167677
|
-
exports2.Document =
|
|
167677
|
+
exports2.Document = Document2.Document;
|
|
167678
167678
|
exports2.Schema = Schema2.Schema;
|
|
167679
167679
|
exports2.YAMLError = errors.YAMLError;
|
|
167680
167680
|
exports2.YAMLParseError = errors.YAMLParseError;
|
|
@@ -183469,7 +183469,7 @@ var require_sign2 = __commonJS({
|
|
|
183469
183469
|
"../../node_modules/math-intrinsics/sign.js"(exports2, module2) {
|
|
183470
183470
|
"use strict";
|
|
183471
183471
|
var $isNaN = require_isNaN();
|
|
183472
|
-
module2.exports = function
|
|
183472
|
+
module2.exports = function sign3(number) {
|
|
183473
183473
|
if ($isNaN(number) || number === 0) {
|
|
183474
183474
|
return number;
|
|
183475
183475
|
}
|
|
@@ -183833,7 +183833,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
183833
183833
|
var min = require_min();
|
|
183834
183834
|
var pow = require_pow();
|
|
183835
183835
|
var round = require_round();
|
|
183836
|
-
var
|
|
183836
|
+
var sign3 = require_sign2();
|
|
183837
183837
|
var $Function = Function;
|
|
183838
183838
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
183839
183839
|
try {
|
|
@@ -183947,7 +183947,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
183947
183947
|
"%Math.min%": min,
|
|
183948
183948
|
"%Math.pow%": pow,
|
|
183949
183949
|
"%Math.round%": round,
|
|
183950
|
-
"%Math.sign%":
|
|
183950
|
+
"%Math.sign%": sign3,
|
|
183951
183951
|
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
183952
183952
|
};
|
|
183953
183953
|
if (getProto) {
|
|
@@ -185737,14 +185737,14 @@ var require_etag = __commonJS({
|
|
|
185737
185737
|
"../../node_modules/etag/index.js"(exports2, module2) {
|
|
185738
185738
|
"use strict";
|
|
185739
185739
|
module2.exports = etag;
|
|
185740
|
-
var
|
|
185740
|
+
var crypto16 = require("crypto");
|
|
185741
185741
|
var Stats = require("fs").Stats;
|
|
185742
185742
|
var toString = Object.prototype.toString;
|
|
185743
185743
|
function entitytag(entity) {
|
|
185744
185744
|
if (entity.length === 0) {
|
|
185745
185745
|
return '"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';
|
|
185746
185746
|
}
|
|
185747
|
-
var hash =
|
|
185747
|
+
var hash = crypto16.createHash("sha1").update(entity, "utf8").digest("base64").substring(0, 27);
|
|
185748
185748
|
var len = typeof entity === "string" ? Buffer.byteLength(entity, "utf8") : entity.length;
|
|
185749
185749
|
return '"' + len.toString(16) + "-" + hash + '"';
|
|
185750
185750
|
}
|
|
@@ -189145,17 +189145,17 @@ var require_content_disposition = __commonJS({
|
|
|
189145
189145
|
// ../../node_modules/cookie-signature/index.js
|
|
189146
189146
|
var require_cookie_signature = __commonJS({
|
|
189147
189147
|
"../../node_modules/cookie-signature/index.js"(exports2) {
|
|
189148
|
-
var
|
|
189148
|
+
var crypto16 = require("crypto");
|
|
189149
189149
|
exports2.sign = function(val, secret) {
|
|
189150
189150
|
if ("string" != typeof val) throw new TypeError("Cookie value must be provided as a string.");
|
|
189151
189151
|
if (null == secret) throw new TypeError("Secret key must be provided.");
|
|
189152
|
-
return val + "." +
|
|
189152
|
+
return val + "." + crypto16.createHmac("sha256", secret).update(val).digest("base64").replace(/\=+$/, "");
|
|
189153
189153
|
};
|
|
189154
189154
|
exports2.unsign = function(input, secret) {
|
|
189155
189155
|
if ("string" != typeof input) throw new TypeError("Signed cookie string must be provided.");
|
|
189156
189156
|
if (null == secret) throw new TypeError("Secret key must be provided.");
|
|
189157
189157
|
var tentativeValue = input.slice(0, input.lastIndexOf(".")), expectedInput = exports2.sign(tentativeValue, secret), expectedBuffer = Buffer.from(expectedInput), inputBuffer = Buffer.from(input);
|
|
189158
|
-
return expectedBuffer.length === inputBuffer.length &&
|
|
189158
|
+
return expectedBuffer.length === inputBuffer.length && crypto16.timingSafeEqual(expectedBuffer, inputBuffer) ? tentativeValue : false;
|
|
189159
189159
|
};
|
|
189160
189160
|
}
|
|
189161
189161
|
});
|
|
@@ -189897,7 +189897,7 @@ var require_response = __commonJS({
|
|
|
189897
189897
|
var path4 = require("node:path");
|
|
189898
189898
|
var pathIsAbsolute = require("node:path").isAbsolute;
|
|
189899
189899
|
var statuses = require_statuses();
|
|
189900
|
-
var
|
|
189900
|
+
var sign3 = require_cookie_signature().sign;
|
|
189901
189901
|
var normalizeType = require_utils4().normalizeType;
|
|
189902
189902
|
var normalizeTypes = require_utils4().normalizeTypes;
|
|
189903
189903
|
var setCharset = require_utils4().setCharset;
|
|
@@ -190188,7 +190188,7 @@ var require_response = __commonJS({
|
|
|
190188
190188
|
}
|
|
190189
190189
|
var val = typeof value === "object" ? "j:" + JSON.stringify(value) : String(value);
|
|
190190
190190
|
if (signed) {
|
|
190191
|
-
val = "s:" +
|
|
190191
|
+
val = "s:" + sign3(val, secret);
|
|
190192
190192
|
}
|
|
190193
190193
|
if (opts.maxAge != null) {
|
|
190194
190194
|
var maxAge = opts.maxAge - 0;
|
|
@@ -190739,9 +190739,6 @@ var AgeDecryptor = class {
|
|
|
190739
190739
|
}
|
|
190740
190740
|
};
|
|
190741
190741
|
|
|
190742
|
-
// ../runtime/src/poller.ts
|
|
190743
|
-
var crypto16 = __toESM(require("crypto"));
|
|
190744
|
-
|
|
190745
190742
|
// ../runtime/src/artifact-decryptor.ts
|
|
190746
190743
|
var crypto14 = __toESM(require("crypto"));
|
|
190747
190744
|
|
|
@@ -191003,44 +191000,6 @@ var ArtifactDecryptor = class {
|
|
|
191003
191000
|
}
|
|
191004
191001
|
};
|
|
191005
191002
|
|
|
191006
|
-
// ../runtime/src/signature.ts
|
|
191007
|
-
var crypto15 = __toESM(require("crypto"));
|
|
191008
|
-
function buildSigningPayload(artifact) {
|
|
191009
|
-
const fields = [
|
|
191010
|
-
"clef-sig-v3",
|
|
191011
|
-
String(artifact.version),
|
|
191012
|
-
artifact.identity,
|
|
191013
|
-
artifact.environment,
|
|
191014
|
-
artifact.revision,
|
|
191015
|
-
artifact.packedAt,
|
|
191016
|
-
artifact.ciphertextHash,
|
|
191017
|
-
artifact.expiresAt ?? "",
|
|
191018
|
-
artifact.envelope?.provider ?? "",
|
|
191019
|
-
artifact.envelope?.keyId ?? "",
|
|
191020
|
-
artifact.envelope?.wrappedKey ?? "",
|
|
191021
|
-
artifact.envelope?.algorithm ?? "",
|
|
191022
|
-
artifact.envelope?.iv ?? "",
|
|
191023
|
-
artifact.envelope?.authTag ?? ""
|
|
191024
|
-
];
|
|
191025
|
-
return Buffer.from(fields.join("\n"), "utf-8");
|
|
191026
|
-
}
|
|
191027
|
-
function verifySignature(payload2, signatureBase64, publicKeyBase64) {
|
|
191028
|
-
const keyObj = crypto15.createPublicKey({
|
|
191029
|
-
key: Buffer.from(publicKeyBase64, "base64"),
|
|
191030
|
-
format: "der",
|
|
191031
|
-
type: "spki"
|
|
191032
|
-
});
|
|
191033
|
-
const signature = Buffer.from(signatureBase64, "base64");
|
|
191034
|
-
const keyType = keyObj.asymmetricKeyType;
|
|
191035
|
-
if (keyType === "ed25519") {
|
|
191036
|
-
return crypto15.verify(null, payload2, keyObj, signature);
|
|
191037
|
-
}
|
|
191038
|
-
if (keyType === "ec") {
|
|
191039
|
-
return crypto15.verify("sha256", payload2, keyObj, signature);
|
|
191040
|
-
}
|
|
191041
|
-
throw new Error(`Unsupported key type for signature verification: ${keyType}`);
|
|
191042
|
-
}
|
|
191043
|
-
|
|
191044
191003
|
// ../core/dist/index.mjs
|
|
191045
191004
|
var YAML = __toESM(require_dist4(), 1);
|
|
191046
191005
|
var YAML2 = __toESM(require_dist4(), 1);
|
|
@@ -191053,7 +191012,10 @@ var YAML8 = __toESM(require_dist4(), 1);
|
|
|
191053
191012
|
var YAML9 = __toESM(require_dist4(), 1);
|
|
191054
191013
|
var YAML10 = __toESM(require_dist4(), 1);
|
|
191055
191014
|
var YAML11 = __toESM(require_dist4(), 1);
|
|
191015
|
+
var crypto22 = __toESM(require("crypto"), 1);
|
|
191016
|
+
var crypto32 = __toESM(require("crypto"), 1);
|
|
191056
191017
|
var YAML12 = __toESM(require_dist4(), 1);
|
|
191018
|
+
var YAML13 = __toESM(require_dist4(), 1);
|
|
191057
191019
|
var __create2 = Object.create;
|
|
191058
191020
|
var __defProp2 = Object.defineProperty;
|
|
191059
191021
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -191354,10 +191316,10 @@ var require_lib3 = __commonJS2({
|
|
|
191354
191316
|
module2.exports.sync = writeFileSync7;
|
|
191355
191317
|
module2.exports._getTmpname = getTmpname;
|
|
191356
191318
|
module2.exports._cleanupOnExit = cleanupOnExit;
|
|
191357
|
-
var
|
|
191358
|
-
var
|
|
191319
|
+
var fs22 = __require("fs");
|
|
191320
|
+
var crypto62 = __require("node:crypto");
|
|
191359
191321
|
var { onExit } = require_cjs2();
|
|
191360
|
-
var
|
|
191322
|
+
var path29 = __require("path");
|
|
191361
191323
|
var { promisify: promisify6 } = __require("util");
|
|
191362
191324
|
var activeFiles = {};
|
|
191363
191325
|
var threadId = (function getId() {
|
|
@@ -191370,24 +191332,24 @@ var require_lib3 = __commonJS2({
|
|
|
191370
191332
|
})();
|
|
191371
191333
|
var invocations = 0;
|
|
191372
191334
|
function getTmpname(filename) {
|
|
191373
|
-
return filename + "." +
|
|
191335
|
+
return filename + "." + crypto62.createHash("sha1").update(__filename).update(String(process.pid)).update(String(threadId)).update(String(++invocations)).digest().readUInt32BE(0);
|
|
191374
191336
|
}
|
|
191375
191337
|
function cleanupOnExit(tmpfile) {
|
|
191376
191338
|
return () => {
|
|
191377
191339
|
try {
|
|
191378
|
-
|
|
191340
|
+
fs22.unlinkSync(typeof tmpfile === "function" ? tmpfile() : tmpfile);
|
|
191379
191341
|
} catch {
|
|
191380
191342
|
}
|
|
191381
191343
|
};
|
|
191382
191344
|
}
|
|
191383
191345
|
function serializeActiveFile(absoluteName) {
|
|
191384
|
-
return new Promise((
|
|
191346
|
+
return new Promise((resolve2) => {
|
|
191385
191347
|
if (!activeFiles[absoluteName]) {
|
|
191386
191348
|
activeFiles[absoluteName] = [];
|
|
191387
191349
|
}
|
|
191388
|
-
activeFiles[absoluteName].push(
|
|
191350
|
+
activeFiles[absoluteName].push(resolve2);
|
|
191389
191351
|
if (activeFiles[absoluteName].length === 1) {
|
|
191390
|
-
|
|
191352
|
+
resolve2();
|
|
191391
191353
|
}
|
|
191392
191354
|
});
|
|
191393
191355
|
}
|
|
@@ -191410,13 +191372,13 @@ var require_lib3 = __commonJS2({
|
|
|
191410
191372
|
let fd;
|
|
191411
191373
|
let tmpfile;
|
|
191412
191374
|
const removeOnExitHandler = onExit(cleanupOnExit(() => tmpfile));
|
|
191413
|
-
const absoluteName =
|
|
191375
|
+
const absoluteName = path29.resolve(filename);
|
|
191414
191376
|
try {
|
|
191415
191377
|
await serializeActiveFile(absoluteName);
|
|
191416
|
-
const truename = await promisify6(
|
|
191378
|
+
const truename = await promisify6(fs22.realpath)(filename).catch(() => filename);
|
|
191417
191379
|
tmpfile = getTmpname(truename);
|
|
191418
191380
|
if (!options.mode || !options.chown) {
|
|
191419
|
-
const stats = await promisify6(
|
|
191381
|
+
const stats = await promisify6(fs22.stat)(truename).catch(() => {
|
|
191420
191382
|
});
|
|
191421
191383
|
if (stats) {
|
|
191422
191384
|
if (options.mode == null) {
|
|
@@ -191427,45 +191389,45 @@ var require_lib3 = __commonJS2({
|
|
|
191427
191389
|
}
|
|
191428
191390
|
}
|
|
191429
191391
|
}
|
|
191430
|
-
fd = await promisify6(
|
|
191392
|
+
fd = await promisify6(fs22.open)(tmpfile, "w", options.mode);
|
|
191431
191393
|
if (options.tmpfileCreated) {
|
|
191432
191394
|
await options.tmpfileCreated(tmpfile);
|
|
191433
191395
|
}
|
|
191434
191396
|
if (ArrayBuffer.isView(data2)) {
|
|
191435
|
-
await promisify6(
|
|
191397
|
+
await promisify6(fs22.write)(fd, data2, 0, data2.length, 0);
|
|
191436
191398
|
} else if (data2 != null) {
|
|
191437
|
-
await promisify6(
|
|
191399
|
+
await promisify6(fs22.write)(fd, String(data2), 0, String(options.encoding || "utf8"));
|
|
191438
191400
|
}
|
|
191439
191401
|
if (options.fsync !== false) {
|
|
191440
|
-
await promisify6(
|
|
191402
|
+
await promisify6(fs22.fsync)(fd);
|
|
191441
191403
|
}
|
|
191442
|
-
await promisify6(
|
|
191404
|
+
await promisify6(fs22.close)(fd);
|
|
191443
191405
|
fd = null;
|
|
191444
191406
|
if (options.chown) {
|
|
191445
|
-
await promisify6(
|
|
191407
|
+
await promisify6(fs22.chown)(tmpfile, options.chown.uid, options.chown.gid).catch((err) => {
|
|
191446
191408
|
if (!isChownErrOk(err)) {
|
|
191447
191409
|
throw err;
|
|
191448
191410
|
}
|
|
191449
191411
|
});
|
|
191450
191412
|
}
|
|
191451
191413
|
if (options.mode) {
|
|
191452
|
-
await promisify6(
|
|
191414
|
+
await promisify6(fs22.chmod)(tmpfile, options.mode).catch((err) => {
|
|
191453
191415
|
if (!isChownErrOk(err)) {
|
|
191454
191416
|
throw err;
|
|
191455
191417
|
}
|
|
191456
191418
|
});
|
|
191457
191419
|
}
|
|
191458
|
-
await promisify6(
|
|
191420
|
+
await promisify6(fs22.rename)(tmpfile, truename);
|
|
191459
191421
|
} finally {
|
|
191460
191422
|
if (fd) {
|
|
191461
|
-
await promisify6(
|
|
191423
|
+
await promisify6(fs22.close)(fd).catch(
|
|
191462
191424
|
/* istanbul ignore next */
|
|
191463
191425
|
() => {
|
|
191464
191426
|
}
|
|
191465
191427
|
);
|
|
191466
191428
|
}
|
|
191467
191429
|
removeOnExitHandler();
|
|
191468
|
-
await promisify6(
|
|
191430
|
+
await promisify6(fs22.unlink)(tmpfile).catch(() => {
|
|
191469
191431
|
});
|
|
191470
191432
|
activeFiles[absoluteName].shift();
|
|
191471
191433
|
if (activeFiles[absoluteName].length > 0) {
|
|
@@ -191498,13 +191460,13 @@ var require_lib3 = __commonJS2({
|
|
|
191498
191460
|
options = {};
|
|
191499
191461
|
}
|
|
191500
191462
|
try {
|
|
191501
|
-
filename =
|
|
191463
|
+
filename = fs22.realpathSync(filename);
|
|
191502
191464
|
} catch (ex) {
|
|
191503
191465
|
}
|
|
191504
191466
|
const tmpfile = getTmpname(filename);
|
|
191505
191467
|
if (!options.mode || !options.chown) {
|
|
191506
191468
|
try {
|
|
191507
|
-
const stats =
|
|
191469
|
+
const stats = fs22.statSync(filename);
|
|
191508
191470
|
options = Object.assign({}, options);
|
|
191509
191471
|
if (!options.mode) {
|
|
191510
191472
|
options.mode = stats.mode;
|
|
@@ -191520,23 +191482,23 @@ var require_lib3 = __commonJS2({
|
|
|
191520
191482
|
const removeOnExitHandler = onExit(cleanup);
|
|
191521
191483
|
let threw = true;
|
|
191522
191484
|
try {
|
|
191523
|
-
fd =
|
|
191485
|
+
fd = fs22.openSync(tmpfile, "w", options.mode || 438);
|
|
191524
191486
|
if (options.tmpfileCreated) {
|
|
191525
191487
|
options.tmpfileCreated(tmpfile);
|
|
191526
191488
|
}
|
|
191527
191489
|
if (ArrayBuffer.isView(data2)) {
|
|
191528
|
-
|
|
191490
|
+
fs22.writeSync(fd, data2, 0, data2.length, 0);
|
|
191529
191491
|
} else if (data2 != null) {
|
|
191530
|
-
|
|
191492
|
+
fs22.writeSync(fd, String(data2), 0, String(options.encoding || "utf8"));
|
|
191531
191493
|
}
|
|
191532
191494
|
if (options.fsync !== false) {
|
|
191533
|
-
|
|
191495
|
+
fs22.fsyncSync(fd);
|
|
191534
191496
|
}
|
|
191535
|
-
|
|
191497
|
+
fs22.closeSync(fd);
|
|
191536
191498
|
fd = null;
|
|
191537
191499
|
if (options.chown) {
|
|
191538
191500
|
try {
|
|
191539
|
-
|
|
191501
|
+
fs22.chownSync(tmpfile, options.chown.uid, options.chown.gid);
|
|
191540
191502
|
} catch (err) {
|
|
191541
191503
|
if (!isChownErrOk(err)) {
|
|
191542
191504
|
throw err;
|
|
@@ -191545,19 +191507,19 @@ var require_lib3 = __commonJS2({
|
|
|
191545
191507
|
}
|
|
191546
191508
|
if (options.mode) {
|
|
191547
191509
|
try {
|
|
191548
|
-
|
|
191510
|
+
fs22.chmodSync(tmpfile, options.mode);
|
|
191549
191511
|
} catch (err) {
|
|
191550
191512
|
if (!isChownErrOk(err)) {
|
|
191551
191513
|
throw err;
|
|
191552
191514
|
}
|
|
191553
191515
|
}
|
|
191554
191516
|
}
|
|
191555
|
-
|
|
191517
|
+
fs22.renameSync(tmpfile, filename);
|
|
191556
191518
|
threw = false;
|
|
191557
191519
|
} finally {
|
|
191558
191520
|
if (fd) {
|
|
191559
191521
|
try {
|
|
191560
|
-
|
|
191522
|
+
fs22.closeSync(fd);
|
|
191561
191523
|
} catch (ex) {
|
|
191562
191524
|
}
|
|
191563
191525
|
}
|
|
@@ -191594,54 +191556,54 @@ var require_polyfills = __commonJS2({
|
|
|
191594
191556
|
}
|
|
191595
191557
|
var chdir;
|
|
191596
191558
|
module2.exports = patch;
|
|
191597
|
-
function patch(
|
|
191559
|
+
function patch(fs22) {
|
|
191598
191560
|
if (constants2.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
191599
|
-
patchLchmod(
|
|
191600
|
-
}
|
|
191601
|
-
if (!
|
|
191602
|
-
patchLutimes(
|
|
191603
|
-
}
|
|
191604
|
-
|
|
191605
|
-
|
|
191606
|
-
|
|
191607
|
-
|
|
191608
|
-
|
|
191609
|
-
|
|
191610
|
-
|
|
191611
|
-
|
|
191612
|
-
|
|
191613
|
-
|
|
191614
|
-
|
|
191615
|
-
|
|
191616
|
-
|
|
191617
|
-
|
|
191618
|
-
|
|
191619
|
-
|
|
191620
|
-
|
|
191621
|
-
|
|
191622
|
-
if (
|
|
191623
|
-
|
|
191561
|
+
patchLchmod(fs22);
|
|
191562
|
+
}
|
|
191563
|
+
if (!fs22.lutimes) {
|
|
191564
|
+
patchLutimes(fs22);
|
|
191565
|
+
}
|
|
191566
|
+
fs22.chown = chownFix(fs22.chown);
|
|
191567
|
+
fs22.fchown = chownFix(fs22.fchown);
|
|
191568
|
+
fs22.lchown = chownFix(fs22.lchown);
|
|
191569
|
+
fs22.chmod = chmodFix(fs22.chmod);
|
|
191570
|
+
fs22.fchmod = chmodFix(fs22.fchmod);
|
|
191571
|
+
fs22.lchmod = chmodFix(fs22.lchmod);
|
|
191572
|
+
fs22.chownSync = chownFixSync(fs22.chownSync);
|
|
191573
|
+
fs22.fchownSync = chownFixSync(fs22.fchownSync);
|
|
191574
|
+
fs22.lchownSync = chownFixSync(fs22.lchownSync);
|
|
191575
|
+
fs22.chmodSync = chmodFixSync(fs22.chmodSync);
|
|
191576
|
+
fs22.fchmodSync = chmodFixSync(fs22.fchmodSync);
|
|
191577
|
+
fs22.lchmodSync = chmodFixSync(fs22.lchmodSync);
|
|
191578
|
+
fs22.stat = statFix(fs22.stat);
|
|
191579
|
+
fs22.fstat = statFix(fs22.fstat);
|
|
191580
|
+
fs22.lstat = statFix(fs22.lstat);
|
|
191581
|
+
fs22.statSync = statFixSync(fs22.statSync);
|
|
191582
|
+
fs22.fstatSync = statFixSync(fs22.fstatSync);
|
|
191583
|
+
fs22.lstatSync = statFixSync(fs22.lstatSync);
|
|
191584
|
+
if (fs22.chmod && !fs22.lchmod) {
|
|
191585
|
+
fs22.lchmod = function(path29, mode, cb) {
|
|
191624
191586
|
if (cb) process.nextTick(cb);
|
|
191625
191587
|
};
|
|
191626
|
-
|
|
191588
|
+
fs22.lchmodSync = function() {
|
|
191627
191589
|
};
|
|
191628
191590
|
}
|
|
191629
|
-
if (
|
|
191630
|
-
|
|
191591
|
+
if (fs22.chown && !fs22.lchown) {
|
|
191592
|
+
fs22.lchown = function(path29, uid, gid, cb) {
|
|
191631
191593
|
if (cb) process.nextTick(cb);
|
|
191632
191594
|
};
|
|
191633
|
-
|
|
191595
|
+
fs22.lchownSync = function() {
|
|
191634
191596
|
};
|
|
191635
191597
|
}
|
|
191636
191598
|
if (platform2 === "win32") {
|
|
191637
|
-
|
|
191599
|
+
fs22.rename = typeof fs22.rename !== "function" ? fs22.rename : (function(fs$rename) {
|
|
191638
191600
|
function rename(from, to, cb) {
|
|
191639
191601
|
var start = Date.now();
|
|
191640
191602
|
var backoff = 0;
|
|
191641
191603
|
fs$rename(from, to, function CB(er) {
|
|
191642
191604
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
191643
191605
|
setTimeout(function() {
|
|
191644
|
-
|
|
191606
|
+
fs22.stat(to, function(stater, st) {
|
|
191645
191607
|
if (stater && stater.code === "ENOENT")
|
|
191646
191608
|
fs$rename(from, to, CB);
|
|
191647
191609
|
else
|
|
@@ -191657,9 +191619,9 @@ var require_polyfills = __commonJS2({
|
|
|
191657
191619
|
}
|
|
191658
191620
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
191659
191621
|
return rename;
|
|
191660
|
-
})(
|
|
191622
|
+
})(fs22.rename);
|
|
191661
191623
|
}
|
|
191662
|
-
|
|
191624
|
+
fs22.read = typeof fs22.read !== "function" ? fs22.read : (function(fs$read) {
|
|
191663
191625
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
191664
191626
|
var callback;
|
|
191665
191627
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -191667,22 +191629,22 @@ var require_polyfills = __commonJS2({
|
|
|
191667
191629
|
callback = function(er, _, __) {
|
|
191668
191630
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
191669
191631
|
eagCounter++;
|
|
191670
|
-
return fs$read.call(
|
|
191632
|
+
return fs$read.call(fs22, fd, buffer, offset, length, position, callback);
|
|
191671
191633
|
}
|
|
191672
191634
|
callback_.apply(this, arguments);
|
|
191673
191635
|
};
|
|
191674
191636
|
}
|
|
191675
|
-
return fs$read.call(
|
|
191637
|
+
return fs$read.call(fs22, fd, buffer, offset, length, position, callback);
|
|
191676
191638
|
}
|
|
191677
191639
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
191678
191640
|
return read;
|
|
191679
|
-
})(
|
|
191680
|
-
|
|
191641
|
+
})(fs22.read);
|
|
191642
|
+
fs22.readSync = typeof fs22.readSync !== "function" ? fs22.readSync : /* @__PURE__ */ (function(fs$readSync) {
|
|
191681
191643
|
return function(fd, buffer, offset, length, position) {
|
|
191682
191644
|
var eagCounter = 0;
|
|
191683
191645
|
while (true) {
|
|
191684
191646
|
try {
|
|
191685
|
-
return fs$readSync.call(
|
|
191647
|
+
return fs$readSync.call(fs22, fd, buffer, offset, length, position);
|
|
191686
191648
|
} catch (er) {
|
|
191687
191649
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
191688
191650
|
eagCounter++;
|
|
@@ -191692,11 +191654,11 @@ var require_polyfills = __commonJS2({
|
|
|
191692
191654
|
}
|
|
191693
191655
|
}
|
|
191694
191656
|
};
|
|
191695
|
-
})(
|
|
191696
|
-
function patchLchmod(
|
|
191697
|
-
|
|
191698
|
-
|
|
191699
|
-
|
|
191657
|
+
})(fs22.readSync);
|
|
191658
|
+
function patchLchmod(fs23) {
|
|
191659
|
+
fs23.lchmod = function(path29, mode, callback) {
|
|
191660
|
+
fs23.open(
|
|
191661
|
+
path29,
|
|
191700
191662
|
constants2.O_WRONLY | constants2.O_SYMLINK,
|
|
191701
191663
|
mode,
|
|
191702
191664
|
function(err, fd) {
|
|
@@ -191704,80 +191666,80 @@ var require_polyfills = __commonJS2({
|
|
|
191704
191666
|
if (callback) callback(err);
|
|
191705
191667
|
return;
|
|
191706
191668
|
}
|
|
191707
|
-
|
|
191708
|
-
|
|
191669
|
+
fs23.fchmod(fd, mode, function(err2) {
|
|
191670
|
+
fs23.close(fd, function(err22) {
|
|
191709
191671
|
if (callback) callback(err2 || err22);
|
|
191710
191672
|
});
|
|
191711
191673
|
});
|
|
191712
191674
|
}
|
|
191713
191675
|
);
|
|
191714
191676
|
};
|
|
191715
|
-
|
|
191716
|
-
var fd =
|
|
191677
|
+
fs23.lchmodSync = function(path29, mode) {
|
|
191678
|
+
var fd = fs23.openSync(path29, constants2.O_WRONLY | constants2.O_SYMLINK, mode);
|
|
191717
191679
|
var threw = true;
|
|
191718
191680
|
var ret;
|
|
191719
191681
|
try {
|
|
191720
|
-
ret =
|
|
191682
|
+
ret = fs23.fchmodSync(fd, mode);
|
|
191721
191683
|
threw = false;
|
|
191722
191684
|
} finally {
|
|
191723
191685
|
if (threw) {
|
|
191724
191686
|
try {
|
|
191725
|
-
|
|
191687
|
+
fs23.closeSync(fd);
|
|
191726
191688
|
} catch (er) {
|
|
191727
191689
|
}
|
|
191728
191690
|
} else {
|
|
191729
|
-
|
|
191691
|
+
fs23.closeSync(fd);
|
|
191730
191692
|
}
|
|
191731
191693
|
}
|
|
191732
191694
|
return ret;
|
|
191733
191695
|
};
|
|
191734
191696
|
}
|
|
191735
|
-
function patchLutimes(
|
|
191736
|
-
if (constants2.hasOwnProperty("O_SYMLINK") &&
|
|
191737
|
-
|
|
191738
|
-
|
|
191697
|
+
function patchLutimes(fs23) {
|
|
191698
|
+
if (constants2.hasOwnProperty("O_SYMLINK") && fs23.futimes) {
|
|
191699
|
+
fs23.lutimes = function(path29, at, mt, cb) {
|
|
191700
|
+
fs23.open(path29, constants2.O_SYMLINK, function(er, fd) {
|
|
191739
191701
|
if (er) {
|
|
191740
191702
|
if (cb) cb(er);
|
|
191741
191703
|
return;
|
|
191742
191704
|
}
|
|
191743
|
-
|
|
191744
|
-
|
|
191705
|
+
fs23.futimes(fd, at, mt, function(er2) {
|
|
191706
|
+
fs23.close(fd, function(er22) {
|
|
191745
191707
|
if (cb) cb(er2 || er22);
|
|
191746
191708
|
});
|
|
191747
191709
|
});
|
|
191748
191710
|
});
|
|
191749
191711
|
};
|
|
191750
|
-
|
|
191751
|
-
var fd =
|
|
191712
|
+
fs23.lutimesSync = function(path29, at, mt) {
|
|
191713
|
+
var fd = fs23.openSync(path29, constants2.O_SYMLINK);
|
|
191752
191714
|
var ret;
|
|
191753
191715
|
var threw = true;
|
|
191754
191716
|
try {
|
|
191755
|
-
ret =
|
|
191717
|
+
ret = fs23.futimesSync(fd, at, mt);
|
|
191756
191718
|
threw = false;
|
|
191757
191719
|
} finally {
|
|
191758
191720
|
if (threw) {
|
|
191759
191721
|
try {
|
|
191760
|
-
|
|
191722
|
+
fs23.closeSync(fd);
|
|
191761
191723
|
} catch (er) {
|
|
191762
191724
|
}
|
|
191763
191725
|
} else {
|
|
191764
|
-
|
|
191726
|
+
fs23.closeSync(fd);
|
|
191765
191727
|
}
|
|
191766
191728
|
}
|
|
191767
191729
|
return ret;
|
|
191768
191730
|
};
|
|
191769
|
-
} else if (
|
|
191770
|
-
|
|
191731
|
+
} else if (fs23.futimes) {
|
|
191732
|
+
fs23.lutimes = function(_a2, _b, _c5, cb) {
|
|
191771
191733
|
if (cb) process.nextTick(cb);
|
|
191772
191734
|
};
|
|
191773
|
-
|
|
191735
|
+
fs23.lutimesSync = function() {
|
|
191774
191736
|
};
|
|
191775
191737
|
}
|
|
191776
191738
|
}
|
|
191777
191739
|
function chmodFix(orig) {
|
|
191778
191740
|
if (!orig) return orig;
|
|
191779
191741
|
return function(target, mode, cb) {
|
|
191780
|
-
return orig.call(
|
|
191742
|
+
return orig.call(fs22, target, mode, function(er) {
|
|
191781
191743
|
if (chownErOk(er)) er = null;
|
|
191782
191744
|
if (cb) cb.apply(this, arguments);
|
|
191783
191745
|
});
|
|
@@ -191787,7 +191749,7 @@ var require_polyfills = __commonJS2({
|
|
|
191787
191749
|
if (!orig) return orig;
|
|
191788
191750
|
return function(target, mode) {
|
|
191789
191751
|
try {
|
|
191790
|
-
return orig.call(
|
|
191752
|
+
return orig.call(fs22, target, mode);
|
|
191791
191753
|
} catch (er) {
|
|
191792
191754
|
if (!chownErOk(er)) throw er;
|
|
191793
191755
|
}
|
|
@@ -191796,7 +191758,7 @@ var require_polyfills = __commonJS2({
|
|
|
191796
191758
|
function chownFix(orig) {
|
|
191797
191759
|
if (!orig) return orig;
|
|
191798
191760
|
return function(target, uid, gid, cb) {
|
|
191799
|
-
return orig.call(
|
|
191761
|
+
return orig.call(fs22, target, uid, gid, function(er) {
|
|
191800
191762
|
if (chownErOk(er)) er = null;
|
|
191801
191763
|
if (cb) cb.apply(this, arguments);
|
|
191802
191764
|
});
|
|
@@ -191806,7 +191768,7 @@ var require_polyfills = __commonJS2({
|
|
|
191806
191768
|
if (!orig) return orig;
|
|
191807
191769
|
return function(target, uid, gid) {
|
|
191808
191770
|
try {
|
|
191809
|
-
return orig.call(
|
|
191771
|
+
return orig.call(fs22, target, uid, gid);
|
|
191810
191772
|
} catch (er) {
|
|
191811
191773
|
if (!chownErOk(er)) throw er;
|
|
191812
191774
|
}
|
|
@@ -191826,13 +191788,13 @@ var require_polyfills = __commonJS2({
|
|
|
191826
191788
|
}
|
|
191827
191789
|
if (cb) cb.apply(this, arguments);
|
|
191828
191790
|
}
|
|
191829
|
-
return options ? orig.call(
|
|
191791
|
+
return options ? orig.call(fs22, target, options, callback) : orig.call(fs22, target, callback);
|
|
191830
191792
|
};
|
|
191831
191793
|
}
|
|
191832
191794
|
function statFixSync(orig) {
|
|
191833
191795
|
if (!orig) return orig;
|
|
191834
191796
|
return function(target, options) {
|
|
191835
|
-
var stats = options ? orig.call(
|
|
191797
|
+
var stats = options ? orig.call(fs22, target, options) : orig.call(fs22, target);
|
|
191836
191798
|
if (stats) {
|
|
191837
191799
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
191838
191800
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -191859,16 +191821,16 @@ var require_legacy_streams = __commonJS2({
|
|
|
191859
191821
|
"../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
191860
191822
|
var Stream = __require("stream").Stream;
|
|
191861
191823
|
module2.exports = legacy;
|
|
191862
|
-
function legacy(
|
|
191824
|
+
function legacy(fs22) {
|
|
191863
191825
|
return {
|
|
191864
191826
|
ReadStream,
|
|
191865
191827
|
WriteStream
|
|
191866
191828
|
};
|
|
191867
|
-
function ReadStream(
|
|
191868
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
191829
|
+
function ReadStream(path29, options) {
|
|
191830
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path29, options);
|
|
191869
191831
|
Stream.call(this);
|
|
191870
191832
|
var self2 = this;
|
|
191871
|
-
this.path =
|
|
191833
|
+
this.path = path29;
|
|
191872
191834
|
this.fd = null;
|
|
191873
191835
|
this.readable = true;
|
|
191874
191836
|
this.paused = false;
|
|
@@ -191902,7 +191864,7 @@ var require_legacy_streams = __commonJS2({
|
|
|
191902
191864
|
});
|
|
191903
191865
|
return;
|
|
191904
191866
|
}
|
|
191905
|
-
|
|
191867
|
+
fs22.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
191906
191868
|
if (err) {
|
|
191907
191869
|
self2.emit("error", err);
|
|
191908
191870
|
self2.readable = false;
|
|
@@ -191913,10 +191875,10 @@ var require_legacy_streams = __commonJS2({
|
|
|
191913
191875
|
self2._read();
|
|
191914
191876
|
});
|
|
191915
191877
|
}
|
|
191916
|
-
function WriteStream(
|
|
191917
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
191878
|
+
function WriteStream(path29, options) {
|
|
191879
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path29, options);
|
|
191918
191880
|
Stream.call(this);
|
|
191919
|
-
this.path =
|
|
191881
|
+
this.path = path29;
|
|
191920
191882
|
this.fd = null;
|
|
191921
191883
|
this.writable = true;
|
|
191922
191884
|
this.flags = "w";
|
|
@@ -191941,7 +191903,7 @@ var require_legacy_streams = __commonJS2({
|
|
|
191941
191903
|
this.busy = false;
|
|
191942
191904
|
this._queue = [];
|
|
191943
191905
|
if (this.fd === null) {
|
|
191944
|
-
this._open =
|
|
191906
|
+
this._open = fs22.open;
|
|
191945
191907
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
191946
191908
|
this.flush();
|
|
191947
191909
|
}
|
|
@@ -191972,7 +191934,7 @@ var require_clone = __commonJS2({
|
|
|
191972
191934
|
});
|
|
191973
191935
|
var require_graceful_fs = __commonJS2({
|
|
191974
191936
|
"../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
191975
|
-
var
|
|
191937
|
+
var fs22 = __require("fs");
|
|
191976
191938
|
var polyfills = require_polyfills();
|
|
191977
191939
|
var legacy = require_legacy_streams();
|
|
191978
191940
|
var clone = require_clone();
|
|
@@ -192004,12 +191966,12 @@ var require_graceful_fs = __commonJS2({
|
|
|
192004
191966
|
m3 = "GFS4: " + m3.split(/\n/).join("\nGFS4: ");
|
|
192005
191967
|
console.error(m3);
|
|
192006
191968
|
};
|
|
192007
|
-
if (!
|
|
191969
|
+
if (!fs22[gracefulQueue]) {
|
|
192008
191970
|
queue = global[gracefulQueue] || [];
|
|
192009
|
-
publishQueue(
|
|
192010
|
-
|
|
191971
|
+
publishQueue(fs22, queue);
|
|
191972
|
+
fs22.close = (function(fs$close) {
|
|
192011
191973
|
function close(fd, cb) {
|
|
192012
|
-
return fs$close.call(
|
|
191974
|
+
return fs$close.call(fs22, fd, function(err) {
|
|
192013
191975
|
if (!err) {
|
|
192014
191976
|
resetQueue();
|
|
192015
191977
|
}
|
|
@@ -192021,48 +191983,48 @@ var require_graceful_fs = __commonJS2({
|
|
|
192021
191983
|
value: fs$close
|
|
192022
191984
|
});
|
|
192023
191985
|
return close;
|
|
192024
|
-
})(
|
|
192025
|
-
|
|
191986
|
+
})(fs22.close);
|
|
191987
|
+
fs22.closeSync = (function(fs$closeSync) {
|
|
192026
191988
|
function closeSync2(fd) {
|
|
192027
|
-
fs$closeSync.apply(
|
|
191989
|
+
fs$closeSync.apply(fs22, arguments);
|
|
192028
191990
|
resetQueue();
|
|
192029
191991
|
}
|
|
192030
191992
|
Object.defineProperty(closeSync2, previousSymbol, {
|
|
192031
191993
|
value: fs$closeSync
|
|
192032
191994
|
});
|
|
192033
191995
|
return closeSync2;
|
|
192034
|
-
})(
|
|
191996
|
+
})(fs22.closeSync);
|
|
192035
191997
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
192036
191998
|
process.on("exit", function() {
|
|
192037
|
-
debug(
|
|
192038
|
-
__require("assert").equal(
|
|
191999
|
+
debug(fs22[gracefulQueue]);
|
|
192000
|
+
__require("assert").equal(fs22[gracefulQueue].length, 0);
|
|
192039
192001
|
});
|
|
192040
192002
|
}
|
|
192041
192003
|
}
|
|
192042
192004
|
var queue;
|
|
192043
192005
|
if (!global[gracefulQueue]) {
|
|
192044
|
-
publishQueue(global,
|
|
192045
|
-
}
|
|
192046
|
-
module2.exports = patch(clone(
|
|
192047
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
192048
|
-
module2.exports = patch(
|
|
192049
|
-
|
|
192050
|
-
}
|
|
192051
|
-
function patch(
|
|
192052
|
-
polyfills(
|
|
192053
|
-
|
|
192054
|
-
|
|
192055
|
-
|
|
192056
|
-
var fs$readFile =
|
|
192057
|
-
|
|
192058
|
-
function readFile5(
|
|
192006
|
+
publishQueue(global, fs22[gracefulQueue]);
|
|
192007
|
+
}
|
|
192008
|
+
module2.exports = patch(clone(fs22));
|
|
192009
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs22.__patched) {
|
|
192010
|
+
module2.exports = patch(fs22);
|
|
192011
|
+
fs22.__patched = true;
|
|
192012
|
+
}
|
|
192013
|
+
function patch(fs23) {
|
|
192014
|
+
polyfills(fs23);
|
|
192015
|
+
fs23.gracefulify = patch;
|
|
192016
|
+
fs23.createReadStream = createReadStream;
|
|
192017
|
+
fs23.createWriteStream = createWriteStream;
|
|
192018
|
+
var fs$readFile = fs23.readFile;
|
|
192019
|
+
fs23.readFile = readFile5;
|
|
192020
|
+
function readFile5(path29, options, cb) {
|
|
192059
192021
|
if (typeof options === "function")
|
|
192060
192022
|
cb = options, options = null;
|
|
192061
|
-
return go$readFile(
|
|
192062
|
-
function go$readFile(
|
|
192063
|
-
return fs$readFile(
|
|
192023
|
+
return go$readFile(path29, options, cb);
|
|
192024
|
+
function go$readFile(path30, options2, cb2, startTime) {
|
|
192025
|
+
return fs$readFile(path30, options2, function(err) {
|
|
192064
192026
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
192065
|
-
enqueue([go$readFile, [
|
|
192027
|
+
enqueue([go$readFile, [path30, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
192066
192028
|
else {
|
|
192067
192029
|
if (typeof cb2 === "function")
|
|
192068
192030
|
cb2.apply(this, arguments);
|
|
@@ -192070,16 +192032,16 @@ var require_graceful_fs = __commonJS2({
|
|
|
192070
192032
|
});
|
|
192071
192033
|
}
|
|
192072
192034
|
}
|
|
192073
|
-
var fs$writeFile =
|
|
192074
|
-
|
|
192075
|
-
function writeFile(
|
|
192035
|
+
var fs$writeFile = fs23.writeFile;
|
|
192036
|
+
fs23.writeFile = writeFile;
|
|
192037
|
+
function writeFile(path29, data2, options, cb) {
|
|
192076
192038
|
if (typeof options === "function")
|
|
192077
192039
|
cb = options, options = null;
|
|
192078
|
-
return go$writeFile(
|
|
192079
|
-
function go$writeFile(
|
|
192080
|
-
return fs$writeFile(
|
|
192040
|
+
return go$writeFile(path29, data2, options, cb);
|
|
192041
|
+
function go$writeFile(path30, data22, options2, cb2, startTime) {
|
|
192042
|
+
return fs$writeFile(path30, data22, options2, function(err) {
|
|
192081
192043
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
192082
|
-
enqueue([go$writeFile, [
|
|
192044
|
+
enqueue([go$writeFile, [path30, data22, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
192083
192045
|
else {
|
|
192084
192046
|
if (typeof cb2 === "function")
|
|
192085
192047
|
cb2.apply(this, arguments);
|
|
@@ -192087,17 +192049,17 @@ var require_graceful_fs = __commonJS2({
|
|
|
192087
192049
|
});
|
|
192088
192050
|
}
|
|
192089
192051
|
}
|
|
192090
|
-
var fs$appendFile =
|
|
192052
|
+
var fs$appendFile = fs23.appendFile;
|
|
192091
192053
|
if (fs$appendFile)
|
|
192092
|
-
|
|
192093
|
-
function appendFile(
|
|
192054
|
+
fs23.appendFile = appendFile;
|
|
192055
|
+
function appendFile(path29, data2, options, cb) {
|
|
192094
192056
|
if (typeof options === "function")
|
|
192095
192057
|
cb = options, options = null;
|
|
192096
|
-
return go$appendFile(
|
|
192097
|
-
function go$appendFile(
|
|
192098
|
-
return fs$appendFile(
|
|
192058
|
+
return go$appendFile(path29, data2, options, cb);
|
|
192059
|
+
function go$appendFile(path30, data22, options2, cb2, startTime) {
|
|
192060
|
+
return fs$appendFile(path30, data22, options2, function(err) {
|
|
192099
192061
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
192100
|
-
enqueue([go$appendFile, [
|
|
192062
|
+
enqueue([go$appendFile, [path30, data22, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
192101
192063
|
else {
|
|
192102
192064
|
if (typeof cb2 === "function")
|
|
192103
192065
|
cb2.apply(this, arguments);
|
|
@@ -192105,9 +192067,9 @@ var require_graceful_fs = __commonJS2({
|
|
|
192105
192067
|
});
|
|
192106
192068
|
}
|
|
192107
192069
|
}
|
|
192108
|
-
var fs$copyFile =
|
|
192070
|
+
var fs$copyFile = fs23.copyFile;
|
|
192109
192071
|
if (fs$copyFile)
|
|
192110
|
-
|
|
192072
|
+
fs23.copyFile = copyFile;
|
|
192111
192073
|
function copyFile(src, dest, flags, cb) {
|
|
192112
192074
|
if (typeof flags === "function") {
|
|
192113
192075
|
cb = flags;
|
|
@@ -192125,34 +192087,34 @@ var require_graceful_fs = __commonJS2({
|
|
|
192125
192087
|
});
|
|
192126
192088
|
}
|
|
192127
192089
|
}
|
|
192128
|
-
var fs$readdir =
|
|
192129
|
-
|
|
192090
|
+
var fs$readdir = fs23.readdir;
|
|
192091
|
+
fs23.readdir = readdir;
|
|
192130
192092
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
192131
|
-
function readdir(
|
|
192093
|
+
function readdir(path29, options, cb) {
|
|
192132
192094
|
if (typeof options === "function")
|
|
192133
192095
|
cb = options, options = null;
|
|
192134
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
192135
|
-
return fs$readdir(
|
|
192136
|
-
|
|
192096
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path30, options2, cb2, startTime) {
|
|
192097
|
+
return fs$readdir(path30, fs$readdirCallback(
|
|
192098
|
+
path30,
|
|
192137
192099
|
options2,
|
|
192138
192100
|
cb2,
|
|
192139
192101
|
startTime
|
|
192140
192102
|
));
|
|
192141
|
-
} : function go$readdir2(
|
|
192142
|
-
return fs$readdir(
|
|
192143
|
-
|
|
192103
|
+
} : function go$readdir2(path30, options2, cb2, startTime) {
|
|
192104
|
+
return fs$readdir(path30, options2, fs$readdirCallback(
|
|
192105
|
+
path30,
|
|
192144
192106
|
options2,
|
|
192145
192107
|
cb2,
|
|
192146
192108
|
startTime
|
|
192147
192109
|
));
|
|
192148
192110
|
};
|
|
192149
|
-
return go$readdir(
|
|
192150
|
-
function fs$readdirCallback(
|
|
192111
|
+
return go$readdir(path29, options, cb);
|
|
192112
|
+
function fs$readdirCallback(path30, options2, cb2, startTime) {
|
|
192151
192113
|
return function(err, files) {
|
|
192152
192114
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
192153
192115
|
enqueue([
|
|
192154
192116
|
go$readdir,
|
|
192155
|
-
[
|
|
192117
|
+
[path30, options2, cb2],
|
|
192156
192118
|
err,
|
|
192157
192119
|
startTime || Date.now(),
|
|
192158
192120
|
Date.now()
|
|
@@ -192167,21 +192129,21 @@ var require_graceful_fs = __commonJS2({
|
|
|
192167
192129
|
}
|
|
192168
192130
|
}
|
|
192169
192131
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
192170
|
-
var legStreams = legacy(
|
|
192132
|
+
var legStreams = legacy(fs23);
|
|
192171
192133
|
ReadStream = legStreams.ReadStream;
|
|
192172
192134
|
WriteStream = legStreams.WriteStream;
|
|
192173
192135
|
}
|
|
192174
|
-
var fs$ReadStream =
|
|
192136
|
+
var fs$ReadStream = fs23.ReadStream;
|
|
192175
192137
|
if (fs$ReadStream) {
|
|
192176
192138
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
192177
192139
|
ReadStream.prototype.open = ReadStream$open;
|
|
192178
192140
|
}
|
|
192179
|
-
var fs$WriteStream =
|
|
192141
|
+
var fs$WriteStream = fs23.WriteStream;
|
|
192180
192142
|
if (fs$WriteStream) {
|
|
192181
192143
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
192182
192144
|
WriteStream.prototype.open = WriteStream$open;
|
|
192183
192145
|
}
|
|
192184
|
-
Object.defineProperty(
|
|
192146
|
+
Object.defineProperty(fs23, "ReadStream", {
|
|
192185
192147
|
get: function() {
|
|
192186
192148
|
return ReadStream;
|
|
192187
192149
|
},
|
|
@@ -192191,7 +192153,7 @@ var require_graceful_fs = __commonJS2({
|
|
|
192191
192153
|
enumerable: true,
|
|
192192
192154
|
configurable: true
|
|
192193
192155
|
});
|
|
192194
|
-
Object.defineProperty(
|
|
192156
|
+
Object.defineProperty(fs23, "WriteStream", {
|
|
192195
192157
|
get: function() {
|
|
192196
192158
|
return WriteStream;
|
|
192197
192159
|
},
|
|
@@ -192202,7 +192164,7 @@ var require_graceful_fs = __commonJS2({
|
|
|
192202
192164
|
configurable: true
|
|
192203
192165
|
});
|
|
192204
192166
|
var FileReadStream = ReadStream;
|
|
192205
|
-
Object.defineProperty(
|
|
192167
|
+
Object.defineProperty(fs23, "FileReadStream", {
|
|
192206
192168
|
get: function() {
|
|
192207
192169
|
return FileReadStream;
|
|
192208
192170
|
},
|
|
@@ -192213,7 +192175,7 @@ var require_graceful_fs = __commonJS2({
|
|
|
192213
192175
|
configurable: true
|
|
192214
192176
|
});
|
|
192215
192177
|
var FileWriteStream = WriteStream;
|
|
192216
|
-
Object.defineProperty(
|
|
192178
|
+
Object.defineProperty(fs23, "FileWriteStream", {
|
|
192217
192179
|
get: function() {
|
|
192218
192180
|
return FileWriteStream;
|
|
192219
192181
|
},
|
|
@@ -192223,7 +192185,7 @@ var require_graceful_fs = __commonJS2({
|
|
|
192223
192185
|
enumerable: true,
|
|
192224
192186
|
configurable: true
|
|
192225
192187
|
});
|
|
192226
|
-
function ReadStream(
|
|
192188
|
+
function ReadStream(path29, options) {
|
|
192227
192189
|
if (this instanceof ReadStream)
|
|
192228
192190
|
return fs$ReadStream.apply(this, arguments), this;
|
|
192229
192191
|
else
|
|
@@ -192243,7 +192205,7 @@ var require_graceful_fs = __commonJS2({
|
|
|
192243
192205
|
}
|
|
192244
192206
|
});
|
|
192245
192207
|
}
|
|
192246
|
-
function WriteStream(
|
|
192208
|
+
function WriteStream(path29, options) {
|
|
192247
192209
|
if (this instanceof WriteStream)
|
|
192248
192210
|
return fs$WriteStream.apply(this, arguments), this;
|
|
192249
192211
|
else
|
|
@@ -192261,22 +192223,22 @@ var require_graceful_fs = __commonJS2({
|
|
|
192261
192223
|
}
|
|
192262
192224
|
});
|
|
192263
192225
|
}
|
|
192264
|
-
function createReadStream(
|
|
192265
|
-
return new
|
|
192226
|
+
function createReadStream(path29, options) {
|
|
192227
|
+
return new fs23.ReadStream(path29, options);
|
|
192266
192228
|
}
|
|
192267
|
-
function createWriteStream(
|
|
192268
|
-
return new
|
|
192229
|
+
function createWriteStream(path29, options) {
|
|
192230
|
+
return new fs23.WriteStream(path29, options);
|
|
192269
192231
|
}
|
|
192270
|
-
var fs$open =
|
|
192271
|
-
|
|
192272
|
-
function open2(
|
|
192232
|
+
var fs$open = fs23.open;
|
|
192233
|
+
fs23.open = open2;
|
|
192234
|
+
function open2(path29, flags, mode, cb) {
|
|
192273
192235
|
if (typeof mode === "function")
|
|
192274
192236
|
cb = mode, mode = null;
|
|
192275
|
-
return go$open(
|
|
192276
|
-
function go$open(
|
|
192277
|
-
return fs$open(
|
|
192237
|
+
return go$open(path29, flags, mode, cb);
|
|
192238
|
+
function go$open(path30, flags2, mode2, cb2, startTime) {
|
|
192239
|
+
return fs$open(path30, flags2, mode2, function(err, fd) {
|
|
192278
192240
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
192279
|
-
enqueue([go$open, [
|
|
192241
|
+
enqueue([go$open, [path30, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
192280
192242
|
else {
|
|
192281
192243
|
if (typeof cb2 === "function")
|
|
192282
192244
|
cb2.apply(this, arguments);
|
|
@@ -192284,20 +192246,20 @@ var require_graceful_fs = __commonJS2({
|
|
|
192284
192246
|
});
|
|
192285
192247
|
}
|
|
192286
192248
|
}
|
|
192287
|
-
return
|
|
192249
|
+
return fs23;
|
|
192288
192250
|
}
|
|
192289
192251
|
function enqueue(elem) {
|
|
192290
192252
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
192291
|
-
|
|
192253
|
+
fs22[gracefulQueue].push(elem);
|
|
192292
192254
|
retry();
|
|
192293
192255
|
}
|
|
192294
192256
|
var retryTimer;
|
|
192295
192257
|
function resetQueue() {
|
|
192296
192258
|
var now = Date.now();
|
|
192297
|
-
for (var i5 = 0; i5 <
|
|
192298
|
-
if (
|
|
192299
|
-
|
|
192300
|
-
|
|
192259
|
+
for (var i5 = 0; i5 < fs22[gracefulQueue].length; ++i5) {
|
|
192260
|
+
if (fs22[gracefulQueue][i5].length > 2) {
|
|
192261
|
+
fs22[gracefulQueue][i5][3] = now;
|
|
192262
|
+
fs22[gracefulQueue][i5][4] = now;
|
|
192301
192263
|
}
|
|
192302
192264
|
}
|
|
192303
192265
|
retry();
|
|
@@ -192305,9 +192267,9 @@ var require_graceful_fs = __commonJS2({
|
|
|
192305
192267
|
function retry() {
|
|
192306
192268
|
clearTimeout(retryTimer);
|
|
192307
192269
|
retryTimer = void 0;
|
|
192308
|
-
if (
|
|
192270
|
+
if (fs22[gracefulQueue].length === 0)
|
|
192309
192271
|
return;
|
|
192310
|
-
var elem =
|
|
192272
|
+
var elem = fs22[gracefulQueue].shift();
|
|
192311
192273
|
var fn = elem[0];
|
|
192312
192274
|
var args = elem[1];
|
|
192313
192275
|
var err = elem[2];
|
|
@@ -192329,7 +192291,7 @@ var require_graceful_fs = __commonJS2({
|
|
|
192329
192291
|
debug("RETRY", fn.name, args);
|
|
192330
192292
|
fn.apply(null, args.concat([startTime]));
|
|
192331
192293
|
} else {
|
|
192332
|
-
|
|
192294
|
+
fs22[gracefulQueue].push(elem);
|
|
192333
192295
|
}
|
|
192334
192296
|
}
|
|
192335
192297
|
if (retryTimer === void 0) {
|
|
@@ -192752,10 +192714,10 @@ var require_mtime_precision = __commonJS2({
|
|
|
192752
192714
|
"../../node_modules/proper-lockfile/lib/mtime-precision.js"(exports2, module2) {
|
|
192753
192715
|
"use strict";
|
|
192754
192716
|
var cacheSymbol = /* @__PURE__ */ Symbol();
|
|
192755
|
-
function probe(file,
|
|
192756
|
-
const cachedPrecision =
|
|
192717
|
+
function probe(file, fs22, callback) {
|
|
192718
|
+
const cachedPrecision = fs22[cacheSymbol];
|
|
192757
192719
|
if (cachedPrecision) {
|
|
192758
|
-
return
|
|
192720
|
+
return fs22.stat(file, (err, stat) => {
|
|
192759
192721
|
if (err) {
|
|
192760
192722
|
return callback(err);
|
|
192761
192723
|
}
|
|
@@ -192763,16 +192725,16 @@ var require_mtime_precision = __commonJS2({
|
|
|
192763
192725
|
});
|
|
192764
192726
|
}
|
|
192765
192727
|
const mtime = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5);
|
|
192766
|
-
|
|
192728
|
+
fs22.utimes(file, mtime, mtime, (err) => {
|
|
192767
192729
|
if (err) {
|
|
192768
192730
|
return callback(err);
|
|
192769
192731
|
}
|
|
192770
|
-
|
|
192732
|
+
fs22.stat(file, (err2, stat) => {
|
|
192771
192733
|
if (err2) {
|
|
192772
192734
|
return callback(err2);
|
|
192773
192735
|
}
|
|
192774
192736
|
const precision = stat.mtime.getTime() % 1e3 === 0 ? "s" : "ms";
|
|
192775
|
-
Object.defineProperty(
|
|
192737
|
+
Object.defineProperty(fs22, cacheSymbol, { value: precision });
|
|
192776
192738
|
callback(null, stat.mtime, precision);
|
|
192777
192739
|
});
|
|
192778
192740
|
});
|
|
@@ -192791,8 +192753,8 @@ var require_mtime_precision = __commonJS2({
|
|
|
192791
192753
|
var require_lockfile = __commonJS2({
|
|
192792
192754
|
"../../node_modules/proper-lockfile/lib/lockfile.js"(exports2, module2) {
|
|
192793
192755
|
"use strict";
|
|
192794
|
-
var
|
|
192795
|
-
var
|
|
192756
|
+
var path29 = __require("path");
|
|
192757
|
+
var fs22 = require_graceful_fs();
|
|
192796
192758
|
var retry = require_retry22();
|
|
192797
192759
|
var onExit = require_signal_exit();
|
|
192798
192760
|
var mtimePrecision = require_mtime_precision();
|
|
@@ -192802,7 +192764,7 @@ var require_lockfile = __commonJS2({
|
|
|
192802
192764
|
}
|
|
192803
192765
|
function resolveCanonicalPath(file, options, callback) {
|
|
192804
192766
|
if (!options.realpath) {
|
|
192805
|
-
return callback(null,
|
|
192767
|
+
return callback(null, path29.resolve(file));
|
|
192806
192768
|
}
|
|
192807
192769
|
options.fs.realpath(file, callback);
|
|
192808
192770
|
}
|
|
@@ -192923,7 +192885,7 @@ var require_lockfile = __commonJS2({
|
|
|
192923
192885
|
update: null,
|
|
192924
192886
|
realpath: true,
|
|
192925
192887
|
retries: 0,
|
|
192926
|
-
fs:
|
|
192888
|
+
fs: fs22,
|
|
192927
192889
|
onCompromised: (err) => {
|
|
192928
192890
|
throw err;
|
|
192929
192891
|
},
|
|
@@ -192967,7 +192929,7 @@ var require_lockfile = __commonJS2({
|
|
|
192967
192929
|
}
|
|
192968
192930
|
function unlock(file, options, callback) {
|
|
192969
192931
|
options = {
|
|
192970
|
-
fs:
|
|
192932
|
+
fs: fs22,
|
|
192971
192933
|
realpath: true,
|
|
192972
192934
|
...options
|
|
192973
192935
|
};
|
|
@@ -192989,7 +192951,7 @@ var require_lockfile = __commonJS2({
|
|
|
192989
192951
|
options = {
|
|
192990
192952
|
stale: 1e4,
|
|
192991
192953
|
realpath: true,
|
|
192992
|
-
fs:
|
|
192954
|
+
fs: fs22,
|
|
192993
192955
|
...options
|
|
192994
192956
|
};
|
|
192995
192957
|
options.stale = Math.max(options.stale || 0, 2e3);
|
|
@@ -193026,16 +192988,16 @@ var require_lockfile = __commonJS2({
|
|
|
193026
192988
|
var require_adapter = __commonJS2({
|
|
193027
192989
|
"../../node_modules/proper-lockfile/lib/adapter.js"(exports2, module2) {
|
|
193028
192990
|
"use strict";
|
|
193029
|
-
var
|
|
193030
|
-
function createSyncFs(
|
|
192991
|
+
var fs22 = require_graceful_fs();
|
|
192992
|
+
function createSyncFs(fs23) {
|
|
193031
192993
|
const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
|
|
193032
|
-
const newFs = { ...
|
|
192994
|
+
const newFs = { ...fs23 };
|
|
193033
192995
|
methods.forEach((method) => {
|
|
193034
192996
|
newFs[method] = (...args) => {
|
|
193035
192997
|
const callback = args.pop();
|
|
193036
192998
|
let ret;
|
|
193037
192999
|
try {
|
|
193038
|
-
ret =
|
|
193000
|
+
ret = fs23[`${method}Sync`](...args);
|
|
193039
193001
|
} catch (err) {
|
|
193040
193002
|
return callback(err);
|
|
193041
193003
|
}
|
|
@@ -193045,12 +193007,12 @@ var require_adapter = __commonJS2({
|
|
|
193045
193007
|
return newFs;
|
|
193046
193008
|
}
|
|
193047
193009
|
function toPromise(method) {
|
|
193048
|
-
return (...args) => new Promise((
|
|
193010
|
+
return (...args) => new Promise((resolve2, reject) => {
|
|
193049
193011
|
args.push((err, result) => {
|
|
193050
193012
|
if (err) {
|
|
193051
193013
|
reject(err);
|
|
193052
193014
|
} else {
|
|
193053
|
-
|
|
193015
|
+
resolve2(result);
|
|
193054
193016
|
}
|
|
193055
193017
|
});
|
|
193056
193018
|
method(...args);
|
|
@@ -193073,7 +193035,7 @@ var require_adapter = __commonJS2({
|
|
|
193073
193035
|
}
|
|
193074
193036
|
function toSyncOptions(options) {
|
|
193075
193037
|
options = { ...options };
|
|
193076
|
-
options.fs = createSyncFs(options.fs ||
|
|
193038
|
+
options.fs = createSyncFs(options.fs || fs22);
|
|
193077
193039
|
if (typeof options.retries === "number" && options.retries > 0 || options.retries && typeof options.retries.retries === "number" && options.retries.retries > 0) {
|
|
193078
193040
|
throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
|
|
193079
193041
|
}
|
|
@@ -193130,8 +193092,47 @@ var ClefError = class extends Error {
|
|
|
193130
193092
|
};
|
|
193131
193093
|
var import_write_file_atomic = __toESM2(require_lib3());
|
|
193132
193094
|
var MAX_FILE_SIZE = 1024 * 1024;
|
|
193133
|
-
var lockfile = __toESM2(require_proper_lockfile());
|
|
193134
193095
|
var import_write_file_atomic2 = __toESM2(require_lib3());
|
|
193096
|
+
var lockfile = __toESM2(require_proper_lockfile());
|
|
193097
|
+
var import_write_file_atomic3 = __toESM2(require_lib3());
|
|
193098
|
+
function buildSigningPayload(artifact) {
|
|
193099
|
+
const fields = [
|
|
193100
|
+
"clef-sig-v3",
|
|
193101
|
+
String(artifact.version),
|
|
193102
|
+
artifact.identity,
|
|
193103
|
+
artifact.environment,
|
|
193104
|
+
artifact.revision,
|
|
193105
|
+
artifact.packedAt,
|
|
193106
|
+
artifact.ciphertextHash,
|
|
193107
|
+
artifact.expiresAt ?? "",
|
|
193108
|
+
artifact.envelope?.provider ?? "",
|
|
193109
|
+
artifact.envelope?.keyId ?? "",
|
|
193110
|
+
artifact.envelope?.wrappedKey ?? "",
|
|
193111
|
+
artifact.envelope?.algorithm ?? "",
|
|
193112
|
+
artifact.envelope?.iv ?? "",
|
|
193113
|
+
artifact.envelope?.authTag ?? ""
|
|
193114
|
+
];
|
|
193115
|
+
return Buffer.from(fields.join("\n"), "utf-8");
|
|
193116
|
+
}
|
|
193117
|
+
function verifySignature(payload2, signatureBase64, publicKeyBase64) {
|
|
193118
|
+
const keyObj = crypto22.createPublicKey({
|
|
193119
|
+
key: Buffer.from(publicKeyBase64, "base64"),
|
|
193120
|
+
format: "der",
|
|
193121
|
+
type: "spki"
|
|
193122
|
+
});
|
|
193123
|
+
const signature = Buffer.from(signatureBase64, "base64");
|
|
193124
|
+
const keyType = keyObj.asymmetricKeyType;
|
|
193125
|
+
if (keyType === "ed25519") {
|
|
193126
|
+
return crypto22.verify(null, payload2, keyObj, signature);
|
|
193127
|
+
}
|
|
193128
|
+
if (keyType === "ec") {
|
|
193129
|
+
return crypto22.verify("sha256", payload2, keyObj, signature);
|
|
193130
|
+
}
|
|
193131
|
+
throw new Error(`Unsupported key type for signature verification: ${keyType}`);
|
|
193132
|
+
}
|
|
193133
|
+
function computeCiphertextHash(ciphertext) {
|
|
193134
|
+
return crypto32.createHash("sha256").update(ciphertext).digest("hex");
|
|
193135
|
+
}
|
|
193135
193136
|
var InvalidArtifactError = class extends ClefError {
|
|
193136
193137
|
constructor(message) {
|
|
193137
193138
|
super(
|
|
@@ -193200,6 +193201,8 @@ function assertPackedArtifact(x, context3) {
|
|
|
193200
193201
|
throw new InvalidArtifactError(`${prefix}${result.reason}`);
|
|
193201
193202
|
}
|
|
193202
193203
|
}
|
|
193204
|
+
var WARNING_TAIL = "Shell history, terminal scrollback, and any attached logging (tmux capture-pane, CI log collectors, screen-recording) may retain it. Proceed only if this terminal and its upstream captures are trusted.";
|
|
193205
|
+
var REVEAL_WARNING = `WARNING: plaintext will be printed to stdout. ${WARNING_TAIL}`;
|
|
193203
193206
|
var BACKEND_KEY_FIELDS = {
|
|
193204
193207
|
age: void 0,
|
|
193205
193208
|
awskms: "aws_kms_arn",
|
|
@@ -193388,7 +193391,7 @@ var ArtifactPoller = class {
|
|
|
193388
193391
|
throw new Error(`Artifact expired at ${artifact.expiresAt}`);
|
|
193389
193392
|
}
|
|
193390
193393
|
if (artifact.revision === this.lastRevision) return artifact;
|
|
193391
|
-
const hash =
|
|
193394
|
+
const hash = computeCiphertextHash(artifact.ciphertext);
|
|
193392
193395
|
if (hash !== artifact.ciphertextHash) {
|
|
193393
193396
|
const err = new Error(
|
|
193394
193397
|
`Artifact integrity check failed: expected hash ${artifact.ciphertextHash}, got ${hash}`
|
|
@@ -193921,7 +193924,7 @@ var VcsArtifactSource = class {
|
|
|
193921
193924
|
};
|
|
193922
193925
|
|
|
193923
193926
|
// ../runtime/src/sources/s3.ts
|
|
193924
|
-
var
|
|
193927
|
+
var crypto15 = __toESM(require("crypto"));
|
|
193925
193928
|
function isS3Url(url) {
|
|
193926
193929
|
let u;
|
|
193927
193930
|
try {
|
|
@@ -194064,10 +194067,10 @@ var S3ArtifactSource = class {
|
|
|
194064
194067
|
}
|
|
194065
194068
|
};
|
|
194066
194069
|
function hmacSha256(key, data2) {
|
|
194067
|
-
return
|
|
194070
|
+
return crypto15.createHmac("sha256", key).update(data2, "utf-8").digest();
|
|
194068
194071
|
}
|
|
194069
194072
|
function sha256Hex(data2) {
|
|
194070
|
-
return
|
|
194073
|
+
return crypto15.createHash("sha256").update(data2, "utf-8").digest("hex");
|
|
194071
194074
|
}
|
|
194072
194075
|
function toAmzDate(date2) {
|
|
194073
194076
|
return date2.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, "");
|
|
@@ -194501,7 +194504,7 @@ async function initialFetch(poller, jitMode, encryptedStore, cache5, sourceDesc)
|
|
|
194501
194504
|
}
|
|
194502
194505
|
|
|
194503
194506
|
// package.json
|
|
194504
|
-
var version5 = "0.1.
|
|
194507
|
+
var version5 = "0.1.21";
|
|
194505
194508
|
|
|
194506
194509
|
// src/main.ts
|
|
194507
194510
|
var isLambda = !!process.env.AWS_LAMBDA_RUNTIME_API;
|