@sentry/craft 2.33.0 → 2.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/craft +86 -56
- package/package.json +2 -2
package/dist/craft
CHANGED
|
@@ -28243,7 +28243,7 @@ var init_esm6 = __esm({
|
|
|
28243
28243
|
}
|
|
28244
28244
|
});
|
|
28245
28245
|
|
|
28246
|
-
// node_modules/.pnpm/brace-expansion@5.0.
|
|
28246
|
+
// node_modules/.pnpm/brace-expansion@5.0.12/node_modules/brace-expansion/dist/esm/index.js
|
|
28247
28247
|
function numeric(str2) {
|
|
28248
28248
|
return !isNaN(str2) ? parseInt(str2, 10) : str2.charCodeAt(0);
|
|
28249
28249
|
}
|
|
@@ -28253,36 +28253,44 @@ function escapeBraces(str2) {
|
|
|
28253
28253
|
function unescapeBraces(str2) {
|
|
28254
28254
|
return str2.replace(escSlashPattern, "\\").replace(escOpenPattern, "{").replace(escClosePattern, "}").replace(escCommaPattern, ",").replace(escPeriodPattern, ".");
|
|
28255
28255
|
}
|
|
28256
|
-
function
|
|
28257
|
-
|
|
28258
|
-
|
|
28256
|
+
function pushAll(target, items) {
|
|
28257
|
+
for (let i5 = 0; i5 < items.length; i5++) {
|
|
28258
|
+
target.push(items[i5]);
|
|
28259
28259
|
}
|
|
28260
|
+
}
|
|
28261
|
+
function parseCommaParts(str2) {
|
|
28260
28262
|
const parts = [];
|
|
28261
|
-
|
|
28262
|
-
|
|
28263
|
-
|
|
28264
|
-
|
|
28265
|
-
|
|
28266
|
-
|
|
28267
|
-
|
|
28268
|
-
|
|
28269
|
-
|
|
28270
|
-
;
|
|
28271
|
-
p6
|
|
28272
|
-
p6
|
|
28273
|
-
|
|
28274
|
-
|
|
28275
|
-
|
|
28263
|
+
let carry = "";
|
|
28264
|
+
for (; ; ) {
|
|
28265
|
+
const m6 = balanced("{", "}", str2);
|
|
28266
|
+
if (!m6) {
|
|
28267
|
+
const tail = str2.split(",");
|
|
28268
|
+
tail[0] = carry + tail[0];
|
|
28269
|
+
pushAll(parts, tail);
|
|
28270
|
+
return parts;
|
|
28271
|
+
}
|
|
28272
|
+
const { pre, body, post } = m6;
|
|
28273
|
+
const p6 = pre.split(",");
|
|
28274
|
+
p6[0] = carry + p6[0];
|
|
28275
|
+
p6[p6.length - 1] += "{" + body + "}";
|
|
28276
|
+
if (!post.length) {
|
|
28277
|
+
pushAll(parts, p6);
|
|
28278
|
+
return parts;
|
|
28279
|
+
}
|
|
28280
|
+
carry = p6.pop();
|
|
28281
|
+
pushAll(parts, p6);
|
|
28282
|
+
str2 = post;
|
|
28283
|
+
}
|
|
28276
28284
|
}
|
|
28277
28285
|
function expand(str2, options = {}) {
|
|
28278
28286
|
if (!str2) {
|
|
28279
28287
|
return [];
|
|
28280
28288
|
}
|
|
28281
|
-
const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
|
|
28289
|
+
const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH, maxDepth = EXPANSION_MAX_DEPTH, maxRewrites = EXPANSION_MAX_REWRITES } = options;
|
|
28282
28290
|
if (str2.slice(0, 2) === "{}") {
|
|
28283
28291
|
str2 = "\\{\\}" + str2.slice(2);
|
|
28284
28292
|
}
|
|
28285
|
-
return expand_(escapeBraces(str2), max, maxLength, true).map(unescapeBraces);
|
|
28293
|
+
return expand_(escapeBraces(str2), max, maxLength, maxDepth, 0, maxRewrites, true).map(unescapeBraces);
|
|
28286
28294
|
}
|
|
28287
28295
|
function embrace(str2) {
|
|
28288
28296
|
return "{" + str2 + "}";
|
|
@@ -28360,8 +28368,12 @@ function expandSequence(body, isAlphaSequence, max, maxLength) {
|
|
|
28360
28368
|
}
|
|
28361
28369
|
return N4;
|
|
28362
28370
|
}
|
|
28363
|
-
function expand_(str2, max, maxLength, isTop) {
|
|
28371
|
+
function expand_(str2, max, maxLength, maxDepth, depth, maxRewrites, isTop) {
|
|
28372
|
+
if (depth > maxDepth) {
|
|
28373
|
+
return [str2];
|
|
28374
|
+
}
|
|
28364
28375
|
let acc = [""];
|
|
28376
|
+
let rewrites = 0;
|
|
28365
28377
|
let dropEmpties = false;
|
|
28366
28378
|
let firstGroup = true;
|
|
28367
28379
|
for (; ; ) {
|
|
@@ -28383,7 +28395,8 @@ function expand_(str2, max, maxLength, isTop) {
|
|
|
28383
28395
|
const isSequence = isNumericSequence || isAlphaSequence;
|
|
28384
28396
|
const isOptions = m6.body.indexOf(",") >= 0;
|
|
28385
28397
|
if (!isSequence && !isOptions) {
|
|
28386
|
-
if (m6.post.match(/,(?!,).*\}/)) {
|
|
28398
|
+
if (rewrites < maxRewrites && m6.post.match(/,(?!,).*\}/)) {
|
|
28399
|
+
rewrites++;
|
|
28387
28400
|
str2 = m6.pre + "{" + m6.body + escClose + m6.post;
|
|
28388
28401
|
isTop = true;
|
|
28389
28402
|
continue;
|
|
@@ -28400,7 +28413,7 @@ function expand_(str2, max, maxLength, isTop) {
|
|
|
28400
28413
|
} else {
|
|
28401
28414
|
let n4 = parseCommaParts(m6.body);
|
|
28402
28415
|
if (n4.length === 1 && n4[0] !== void 0) {
|
|
28403
|
-
n4 = expand_(n4[0], max, maxLength, false).map(embrace);
|
|
28416
|
+
n4 = expand_(n4[0], max, maxLength, maxDepth, depth + 1, maxRewrites, false).map(embrace);
|
|
28404
28417
|
if (n4.length === 1) {
|
|
28405
28418
|
acc = combine(acc, pre + n4[0], [""], max, maxLength, dropEmpties && !m6.post.length);
|
|
28406
28419
|
if (!m6.post.length)
|
|
@@ -28418,7 +28431,7 @@ function expand_(str2, max, maxLength, isTop) {
|
|
|
28418
28431
|
values = [];
|
|
28419
28432
|
let valuesLength = 0;
|
|
28420
28433
|
outer: for (let j7 = 0; j7 < n4.length; j7++) {
|
|
28421
|
-
const expanded = expand_(n4[j7], max, maxLength, false);
|
|
28434
|
+
const expanded = expand_(n4[j7], max, maxLength, maxDepth, depth + 1, maxRewrites, false);
|
|
28422
28435
|
for (let k7 = 0; k7 < expanded.length; k7++) {
|
|
28423
28436
|
const v11 = expanded[k7];
|
|
28424
28437
|
if (dropsEmpties && !v11)
|
|
@@ -28438,9 +28451,9 @@ function expand_(str2, max, maxLength, isTop) {
|
|
|
28438
28451
|
}
|
|
28439
28452
|
return acc;
|
|
28440
28453
|
}
|
|
28441
|
-
var escSlash, escOpen, escClose, escComma, escPeriod, escSlashPattern, escOpenPattern, escClosePattern, escCommaPattern, escPeriodPattern, slashPattern, openPattern, closePattern, commaPattern, periodPattern, EXPANSION_MAX, EXPANSION_MAX_LENGTH;
|
|
28454
|
+
var escSlash, escOpen, escClose, escComma, escPeriod, escSlashPattern, escOpenPattern, escClosePattern, escCommaPattern, escPeriodPattern, slashPattern, openPattern, closePattern, commaPattern, periodPattern, EXPANSION_MAX, EXPANSION_MAX_LENGTH, EXPANSION_MAX_DEPTH, EXPANSION_MAX_REWRITES;
|
|
28442
28455
|
var init_esm7 = __esm({
|
|
28443
|
-
"node_modules/.pnpm/brace-expansion@5.0.
|
|
28456
|
+
"node_modules/.pnpm/brace-expansion@5.0.12/node_modules/brace-expansion/dist/esm/index.js"() {
|
|
28444
28457
|
init_import_meta_url();
|
|
28445
28458
|
init_esm6();
|
|
28446
28459
|
escSlash = "\0SLASH" + Math.random() + "\0";
|
|
@@ -28460,6 +28473,8 @@ var init_esm7 = __esm({
|
|
|
28460
28473
|
periodPattern = /\\\./g;
|
|
28461
28474
|
EXPANSION_MAX = 1e5;
|
|
28462
28475
|
EXPANSION_MAX_LENGTH = 4e6;
|
|
28476
|
+
EXPANSION_MAX_DEPTH = 1e3;
|
|
28477
|
+
EXPANSION_MAX_REWRITES = 1e3;
|
|
28463
28478
|
}
|
|
28464
28479
|
});
|
|
28465
28480
|
|
|
@@ -165587,13 +165602,13 @@ var require_commonjs = __commonJS({
|
|
|
165587
165602
|
}
|
|
165588
165603
|
});
|
|
165589
165604
|
|
|
165590
|
-
// node_modules/.pnpm/brace-expansion@5.0.
|
|
165605
|
+
// node_modules/.pnpm/brace-expansion@5.0.12/node_modules/brace-expansion/dist/commonjs/index.js
|
|
165591
165606
|
var require_commonjs2 = __commonJS({
|
|
165592
|
-
"node_modules/.pnpm/brace-expansion@5.0.
|
|
165607
|
+
"node_modules/.pnpm/brace-expansion@5.0.12/node_modules/brace-expansion/dist/commonjs/index.js"(exports2) {
|
|
165593
165608
|
"use strict";
|
|
165594
165609
|
init_import_meta_url();
|
|
165595
165610
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
165596
|
-
exports2.EXPANSION_MAX_LENGTH = exports2.EXPANSION_MAX = void 0;
|
|
165611
|
+
exports2.EXPANSION_MAX_REWRITES = exports2.EXPANSION_MAX_DEPTH = exports2.EXPANSION_MAX_LENGTH = exports2.EXPANSION_MAX = void 0;
|
|
165597
165612
|
exports2.expand = expand3;
|
|
165598
165613
|
var balanced_match_1 = require_commonjs();
|
|
165599
165614
|
var escSlash2 = "\0SLASH" + Math.random() + "\0";
|
|
@@ -165613,6 +165628,8 @@ var require_commonjs2 = __commonJS({
|
|
|
165613
165628
|
var periodPattern2 = /\\\./g;
|
|
165614
165629
|
exports2.EXPANSION_MAX = 1e5;
|
|
165615
165630
|
exports2.EXPANSION_MAX_LENGTH = 4e6;
|
|
165631
|
+
exports2.EXPANSION_MAX_DEPTH = 1e3;
|
|
165632
|
+
exports2.EXPANSION_MAX_REWRITES = 1e3;
|
|
165616
165633
|
function numeric2(str2) {
|
|
165617
165634
|
return !isNaN(str2) ? parseInt(str2, 10) : str2.charCodeAt(0);
|
|
165618
165635
|
}
|
|
@@ -165622,36 +165639,44 @@ var require_commonjs2 = __commonJS({
|
|
|
165622
165639
|
function unescapeBraces2(str2) {
|
|
165623
165640
|
return str2.replace(escSlashPattern2, "\\").replace(escOpenPattern2, "{").replace(escClosePattern2, "}").replace(escCommaPattern2, ",").replace(escPeriodPattern2, ".");
|
|
165624
165641
|
}
|
|
165625
|
-
function
|
|
165626
|
-
|
|
165627
|
-
|
|
165642
|
+
function pushAll2(target, items) {
|
|
165643
|
+
for (let i5 = 0; i5 < items.length; i5++) {
|
|
165644
|
+
target.push(items[i5]);
|
|
165628
165645
|
}
|
|
165646
|
+
}
|
|
165647
|
+
function parseCommaParts2(str2) {
|
|
165629
165648
|
const parts = [];
|
|
165630
|
-
|
|
165631
|
-
|
|
165632
|
-
|
|
165633
|
-
|
|
165634
|
-
|
|
165635
|
-
|
|
165636
|
-
|
|
165637
|
-
|
|
165638
|
-
|
|
165639
|
-
;
|
|
165640
|
-
p6
|
|
165641
|
-
p6
|
|
165649
|
+
let carry = "";
|
|
165650
|
+
for (; ; ) {
|
|
165651
|
+
const m6 = (0, balanced_match_1.balanced)("{", "}", str2);
|
|
165652
|
+
if (!m6) {
|
|
165653
|
+
const tail = str2.split(",");
|
|
165654
|
+
tail[0] = carry + tail[0];
|
|
165655
|
+
pushAll2(parts, tail);
|
|
165656
|
+
return parts;
|
|
165657
|
+
}
|
|
165658
|
+
const { pre, body, post } = m6;
|
|
165659
|
+
const p6 = pre.split(",");
|
|
165660
|
+
p6[0] = carry + p6[0];
|
|
165661
|
+
p6[p6.length - 1] += "{" + body + "}";
|
|
165662
|
+
if (!post.length) {
|
|
165663
|
+
pushAll2(parts, p6);
|
|
165664
|
+
return parts;
|
|
165665
|
+
}
|
|
165666
|
+
carry = p6.pop();
|
|
165667
|
+
pushAll2(parts, p6);
|
|
165668
|
+
str2 = post;
|
|
165642
165669
|
}
|
|
165643
|
-
parts.push.apply(parts, p6);
|
|
165644
|
-
return parts;
|
|
165645
165670
|
}
|
|
165646
165671
|
function expand3(str2, options = {}) {
|
|
165647
165672
|
if (!str2) {
|
|
165648
165673
|
return [];
|
|
165649
165674
|
}
|
|
165650
|
-
const { max = exports2.EXPANSION_MAX, maxLength = exports2.EXPANSION_MAX_LENGTH } = options;
|
|
165675
|
+
const { max = exports2.EXPANSION_MAX, maxLength = exports2.EXPANSION_MAX_LENGTH, maxDepth = exports2.EXPANSION_MAX_DEPTH, maxRewrites = exports2.EXPANSION_MAX_REWRITES } = options;
|
|
165651
165676
|
if (str2.slice(0, 2) === "{}") {
|
|
165652
165677
|
str2 = "\\{\\}" + str2.slice(2);
|
|
165653
165678
|
}
|
|
165654
|
-
return expand_2(escapeBraces2(str2), max, maxLength, true).map(unescapeBraces2);
|
|
165679
|
+
return expand_2(escapeBraces2(str2), max, maxLength, maxDepth, 0, maxRewrites, true).map(unescapeBraces2);
|
|
165655
165680
|
}
|
|
165656
165681
|
function embrace2(str2) {
|
|
165657
165682
|
return "{" + str2 + "}";
|
|
@@ -165729,8 +165754,12 @@ var require_commonjs2 = __commonJS({
|
|
|
165729
165754
|
}
|
|
165730
165755
|
return N4;
|
|
165731
165756
|
}
|
|
165732
|
-
function expand_2(str2, max, maxLength, isTop) {
|
|
165757
|
+
function expand_2(str2, max, maxLength, maxDepth, depth, maxRewrites, isTop) {
|
|
165758
|
+
if (depth > maxDepth) {
|
|
165759
|
+
return [str2];
|
|
165760
|
+
}
|
|
165733
165761
|
let acc = [""];
|
|
165762
|
+
let rewrites = 0;
|
|
165734
165763
|
let dropEmpties = false;
|
|
165735
165764
|
let firstGroup = true;
|
|
165736
165765
|
for (; ; ) {
|
|
@@ -165752,7 +165781,8 @@ var require_commonjs2 = __commonJS({
|
|
|
165752
165781
|
const isSequence = isNumericSequence || isAlphaSequence;
|
|
165753
165782
|
const isOptions = m6.body.indexOf(",") >= 0;
|
|
165754
165783
|
if (!isSequence && !isOptions) {
|
|
165755
|
-
if (m6.post.match(/,(?!,).*\}/)) {
|
|
165784
|
+
if (rewrites < maxRewrites && m6.post.match(/,(?!,).*\}/)) {
|
|
165785
|
+
rewrites++;
|
|
165756
165786
|
str2 = m6.pre + "{" + m6.body + escClose2 + m6.post;
|
|
165757
165787
|
isTop = true;
|
|
165758
165788
|
continue;
|
|
@@ -165769,7 +165799,7 @@ var require_commonjs2 = __commonJS({
|
|
|
165769
165799
|
} else {
|
|
165770
165800
|
let n4 = parseCommaParts2(m6.body);
|
|
165771
165801
|
if (n4.length === 1 && n4[0] !== void 0) {
|
|
165772
|
-
n4 = expand_2(n4[0], max, maxLength, false).map(embrace2);
|
|
165802
|
+
n4 = expand_2(n4[0], max, maxLength, maxDepth, depth + 1, maxRewrites, false).map(embrace2);
|
|
165773
165803
|
if (n4.length === 1) {
|
|
165774
165804
|
acc = combine2(acc, pre + n4[0], [""], max, maxLength, dropEmpties && !m6.post.length);
|
|
165775
165805
|
if (!m6.post.length)
|
|
@@ -165787,7 +165817,7 @@ var require_commonjs2 = __commonJS({
|
|
|
165787
165817
|
values = [];
|
|
165788
165818
|
let valuesLength = 0;
|
|
165789
165819
|
outer: for (let j7 = 0; j7 < n4.length; j7++) {
|
|
165790
|
-
const expanded = expand_2(n4[j7], max, maxLength, false);
|
|
165820
|
+
const expanded = expand_2(n4[j7], max, maxLength, maxDepth, depth + 1, maxRewrites, false);
|
|
165791
165821
|
for (let k7 = 0; k7 < expanded.length; k7++) {
|
|
165792
165822
|
const v11 = expanded[k7];
|
|
165793
165823
|
if (dropsEmpties && !v11)
|
|
@@ -233325,7 +233355,7 @@ var require_package7 = __commonJS({
|
|
|
233325
233355
|
"package.json"(exports2, module2) {
|
|
233326
233356
|
module2.exports = {
|
|
233327
233357
|
name: "@sentry/craft",
|
|
233328
|
-
version: "2.33.
|
|
233358
|
+
version: "2.33.2",
|
|
233329
233359
|
description: "The universal sentry workflow CLI",
|
|
233330
233360
|
main: "dist/craft",
|
|
233331
233361
|
repository: "https://github.com/getsentry/craft",
|
|
@@ -233430,7 +233460,7 @@ var require_package7 = __commonJS({
|
|
|
233430
233460
|
overrides: {
|
|
233431
233461
|
"fast-xml-parser": "^5.8.0",
|
|
233432
233462
|
minimatch: "^10.2.6",
|
|
233433
|
-
"brace-expansion": "^5.0.
|
|
233463
|
+
"brace-expansion": "^5.0.12",
|
|
233434
233464
|
"ajv@<6.14.0": "^6.14.0",
|
|
233435
233465
|
postcss: "^8.5.18",
|
|
233436
233466
|
rollup: "^4.59.0",
|
|
@@ -233517,7 +233547,7 @@ function getPackage() {
|
|
|
233517
233547
|
}
|
|
233518
233548
|
function getPackageVersion() {
|
|
233519
233549
|
const { version: version2 } = getPackage();
|
|
233520
|
-
const buildInfo = "
|
|
233550
|
+
const buildInfo = "d5039704fa236d5e7c7a3ff12862238b65d18385";
|
|
233521
233551
|
return buildInfo ? `${version2} (${buildInfo})` : version2;
|
|
233522
233552
|
}
|
|
233523
233553
|
function semVerToString(s6) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/craft",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.2",
|
|
4
4
|
"description": "The universal sentry workflow CLI",
|
|
5
5
|
"main": "dist/craft",
|
|
6
6
|
"repository": "https://github.com/getsentry/craft",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"overrides": {
|
|
106
106
|
"fast-xml-parser": "^5.8.0",
|
|
107
107
|
"minimatch": "^10.2.6",
|
|
108
|
-
"brace-expansion": "^5.0.
|
|
108
|
+
"brace-expansion": "^5.0.12",
|
|
109
109
|
"ajv@<6.14.0": "^6.14.0",
|
|
110
110
|
"postcss": "^8.5.18",
|
|
111
111
|
"rollup": "^4.59.0",
|