@sentry/craft 2.26.5 → 2.26.7

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.
Files changed (2) hide show
  1. package/dist/craft +304 -45
  2. package/package.json +5 -4
package/dist/craft CHANGED
@@ -75155,9 +75155,9 @@ var require_ignore = __commonJS({
75155
75155
  }
75156
75156
  });
75157
75157
 
75158
- // node_modules/.pnpm/tmp@0.2.4/node_modules/tmp/lib/tmp.js
75158
+ // node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js
75159
75159
  var require_tmp = __commonJS({
75160
- "node_modules/.pnpm/tmp@0.2.4/node_modules/tmp/lib/tmp.js"(exports2, module2) {
75160
+ "node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js"(exports2, module2) {
75161
75161
  init_import_meta_url();
75162
75162
  var fs15 = require("fs");
75163
75163
  var os6 = require("os");
@@ -75376,7 +75376,7 @@ var require_tmp = __commonJS({
75376
75376
  cb(null, path18.join(parentDir, path18.basename(pathToResolve)));
75377
75377
  });
75378
75378
  } else {
75379
- fs15.realpath(path18, cb);
75379
+ fs15.realpath(pathToResolve, cb);
75380
75380
  }
75381
75381
  });
75382
75382
  }
@@ -75408,16 +75408,31 @@ var require_tmp = __commonJS({
75408
75408
  ].join("");
75409
75409
  return path18.join(tmpDir, opts.dir, name);
75410
75410
  }
75411
+ function _assertPath(option, value) {
75412
+ if (typeof value !== "string") {
75413
+ throw new Error(`${option} option must be a string, got "${typeof value}".`);
75414
+ }
75415
+ if (value.includes("..")) {
75416
+ throw new Error("Relative value not allowed");
75417
+ }
75418
+ return value;
75419
+ }
75411
75420
  function _assertOptionsBase(options) {
75412
75421
  if (!_isUndefined(options.name)) {
75413
75422
  const name = options.name;
75414
75423
  if (path18.isAbsolute(name)) throw new Error(`name option must not contain an absolute path, found "${name}".`);
75415
75424
  const basename10 = path18.basename(name);
75416
- if (basename10 === ".." || basename10 === "." || basename10 !== name)
75425
+ if (basename10 === ".." || basename10 === "." || basename10 !== name) {
75417
75426
  throw new Error(`name option must not contain a path, found "${name}".`);
75427
+ }
75418
75428
  }
75419
- if (!_isUndefined(options.template) && !options.template.match(TEMPLATE_PATTERN)) {
75420
- throw new Error(`Invalid template, found "${options.template}".`);
75429
+ if (!_isUndefined(options.template)) {
75430
+ if (typeof options.template !== "string") {
75431
+ throw new Error(`template option must be a string, got "${typeof options.template}".`);
75432
+ }
75433
+ if (!options.template.match(TEMPLATE_PATTERN)) {
75434
+ throw new Error(`Invalid template, found "${options.template}".`);
75435
+ }
75421
75436
  }
75422
75437
  if (!_isUndefined(options.tries) && isNaN(options.tries) || options.tries < 0) {
75423
75438
  throw new Error(`Invalid tries, found "${options.tries}".`);
@@ -75427,15 +75442,16 @@ var require_tmp = __commonJS({
75427
75442
  options.detachDescriptor = !!options.detachDescriptor;
75428
75443
  options.discardDescriptor = !!options.discardDescriptor;
75429
75444
  options.unsafeCleanup = !!options.unsafeCleanup;
75430
- options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
75431
- options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
75445
+ options.prefix = _isUndefined(options.prefix) ? "" : _assertPath("prefix", options.prefix);
75446
+ options.postfix = _isUndefined(options.postfix) ? "" : _assertPath("postfix", options.postfix);
75447
+ options.template = _isUndefined(options.template) ? void 0 : _assertPath("template", options.template);
75432
75448
  }
75433
75449
  function _getRelativePath(option, name, tmpDir, cb) {
75434
75450
  if (_isUndefined(name)) return cb(null);
75435
75451
  _resolvePath(name, tmpDir, function(err, resolvedPath2) {
75436
75452
  if (err) return cb(err);
75437
75453
  const relativePath = path18.relative(tmpDir, resolvedPath2);
75438
- if (!resolvedPath2.startsWith(tmpDir)) {
75454
+ if (relativePath.startsWith("..") || path18.isAbsolute(relativePath)) {
75439
75455
  return cb(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`));
75440
75456
  }
75441
75457
  cb(null, relativePath);
@@ -75445,7 +75461,7 @@ var require_tmp = __commonJS({
75445
75461
  if (_isUndefined(name)) return;
75446
75462
  const resolvedPath2 = _resolvePathSync(name, tmpDir);
75447
75463
  const relativePath = path18.relative(tmpDir, resolvedPath2);
75448
- if (!resolvedPath2.startsWith(tmpDir)) {
75464
+ if (relativePath.startsWith("..") || path18.isAbsolute(relativePath)) {
75449
75465
  throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`);
75450
75466
  }
75451
75467
  return relativePath;
@@ -87886,16 +87902,16 @@ var require_retry_request = __commonJS({
87886
87902
  }
87887
87903
  });
87888
87904
 
87889
- // node_modules/.pnpm/@tootallnate+once@2.0.0/node_modules/@tootallnate/once/dist/index.js
87905
+ // node_modules/.pnpm/@tootallnate+once@2.0.1/node_modules/@tootallnate/once/dist/index.js
87890
87906
  var require_dist7 = __commonJS({
87891
- "node_modules/.pnpm/@tootallnate+once@2.0.0/node_modules/@tootallnate/once/dist/index.js"(exports2) {
87907
+ "node_modules/.pnpm/@tootallnate+once@2.0.1/node_modules/@tootallnate/once/dist/index.js"(exports2) {
87892
87908
  "use strict";
87893
87909
  init_import_meta_url();
87894
87910
  Object.defineProperty(exports2, "__esModule", { value: true });
87895
87911
  function once(emitter, name, { signal } = {}) {
87896
87912
  return new Promise((resolve7, reject) => {
87897
87913
  function cleanup() {
87898
- signal === null || signal === void 0 ? void 0 : signal.removeEventListener("abort", cleanup);
87914
+ signal === null || signal === void 0 ? void 0 : signal.removeEventListener("abort", onAbort);
87899
87915
  emitter.removeListener(name, onEvent);
87900
87916
  emitter.removeListener("error", onError2);
87901
87917
  }
@@ -87907,7 +87923,17 @@ var require_dist7 = __commonJS({
87907
87923
  cleanup();
87908
87924
  reject(err);
87909
87925
  }
87910
- signal === null || signal === void 0 ? void 0 : signal.addEventListener("abort", cleanup);
87926
+ function onAbort() {
87927
+ cleanup();
87928
+ const err = new Error("The operation was aborted");
87929
+ err.name = "AbortError";
87930
+ reject(err);
87931
+ }
87932
+ if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
87933
+ onAbort();
87934
+ return;
87935
+ }
87936
+ signal === null || signal === void 0 ? void 0 : signal.addEventListener("abort", onAbort);
87911
87937
  emitter.on(name, onEvent);
87912
87938
  emitter.on("error", onError2);
87913
87939
  });
@@ -116277,7 +116303,7 @@ ${data2}`);
116277
116303
  });
116278
116304
 
116279
116305
  // src/targets/cocoapods.ts
116280
- var fs9, import_path8, import_util23, writeFile2, DEFAULT_COCOAPODS_BIN, COCOAPODS_BIN, CocoapodsTarget;
116306
+ var fs9, import_path8, import_util23, writeFile2, DEFAULT_COCOAPODS_BIN, COCOAPODS_BIN, COCOAPODS_TRANSIENT_ERROR_PATTERNS, COCOAPODS_MAX_ATTEMPTS, COCOAPODS_INITIAL_DELAY_SECS, COCOAPODS_RETRY_EXP_FACTOR, COCOAPODS_ALREADY_PUBLISHED, CocoapodsTarget;
116281
116307
  var init_cocoapods = __esm({
116282
116308
  "src/targets/cocoapods.ts"() {
116283
116309
  "use strict";
@@ -116288,11 +116314,36 @@ var init_cocoapods = __esm({
116288
116314
  init_errors2();
116289
116315
  init_files();
116290
116316
  init_githubApi();
116317
+ init_async();
116291
116318
  init_system();
116292
116319
  init_base5();
116293
116320
  writeFile2 = (0, import_util23.promisify)(fs9.writeFile);
116294
116321
  DEFAULT_COCOAPODS_BIN = "pod";
116295
116322
  COCOAPODS_BIN = process.env.COCOAPODS_BIN || DEFAULT_COCOAPODS_BIN;
116323
+ COCOAPODS_TRANSIENT_ERROR_PATTERNS = [
116324
+ "timed out",
116325
+ "cdn.cocoapods.org",
116326
+ "trunk.cocoapods.org",
116327
+ "etimedout",
116328
+ "econnreset",
116329
+ "econnrefused",
116330
+ "econnaborted",
116331
+ "socketerror",
116332
+ "socket hang up",
116333
+ "network error",
116334
+ "connection reset",
116335
+ "connection refused",
116336
+ // CocoaPods trunk server errors include the HTTP status in the message
116337
+ "server error (5",
116338
+ "500 internal server error",
116339
+ "502 bad gateway",
116340
+ "503 service unavailable",
116341
+ "504 gateway timeout"
116342
+ ];
116343
+ COCOAPODS_MAX_ATTEMPTS = 5;
116344
+ COCOAPODS_INITIAL_DELAY_SECS = 5;
116345
+ COCOAPODS_RETRY_EXP_FACTOR = 2;
116346
+ COCOAPODS_ALREADY_PUBLISHED = "has already been pushed";
116296
116347
  CocoapodsTarget = class extends BaseTarget {
116297
116348
  /** Target name */
116298
116349
  name = "cocoapods";
@@ -116350,14 +116401,55 @@ var init_cocoapods = __esm({
116350
116401
  await writeFile2(filePath, specContents, "utf8");
116351
116402
  this.logger.info(`Pushing podspec "${fileName}" to cocoapods...`);
116352
116403
  await spawnProcess(COCOAPODS_BIN, ["setup"]);
116353
- await spawnProcess(
116354
- COCOAPODS_BIN,
116355
- ["trunk", "push", fileName, "--allow-warnings", "--synchronous"],
116356
- {
116357
- cwd: directory,
116358
- env: {
116359
- ...process.env
116404
+ let delay2 = COCOAPODS_INITIAL_DELAY_SECS;
116405
+ await withRetry(
116406
+ async () => {
116407
+ try {
116408
+ await spawnProcess(
116409
+ COCOAPODS_BIN,
116410
+ [
116411
+ "trunk",
116412
+ "push",
116413
+ fileName,
116414
+ "--allow-warnings",
116415
+ "--synchronous"
116416
+ ],
116417
+ {
116418
+ cwd: directory,
116419
+ env: {
116420
+ ...process.env
116421
+ }
116422
+ }
116423
+ );
116424
+ } catch (err) {
116425
+ if (err instanceof Error && err.message.toLowerCase().includes(COCOAPODS_ALREADY_PUBLISHED)) {
116426
+ this.logger.info(
116427
+ `Podspec "${fileName}" was already published, skipping`
116428
+ );
116429
+ } else {
116430
+ throw err;
116431
+ }
116360
116432
  }
116433
+ },
116434
+ COCOAPODS_MAX_ATTEMPTS,
116435
+ async (err) => {
116436
+ const message = (err.message || "").toLowerCase();
116437
+ const isTransient = COCOAPODS_TRANSIENT_ERROR_PATTERNS.some(
116438
+ (pattern) => message.includes(pattern)
116439
+ );
116440
+ if (!isTransient) {
116441
+ this.logger.warn(
116442
+ "pod trunk push failed with a non-transient error, not retrying"
116443
+ );
116444
+ return false;
116445
+ }
116446
+ this.logger.warn(
116447
+ `pod trunk push failed with a transient error, retrying in ${delay2}s...`
116448
+ );
116449
+ this.logger.debug("Error details:", err.message);
116450
+ await sleep(delay2 * 1e3);
116451
+ delay2 *= COCOAPODS_RETRY_EXP_FACTOR;
116452
+ return true;
116361
116453
  }
116362
116454
  );
116363
116455
  },
@@ -119949,6 +120041,82 @@ _This changelog has been truncated. See the [full changelog](${permalink}) for a
119949
120041
  });
119950
120042
  return data2;
119951
120043
  }
120044
+ /**
120045
+ * Attempts to create a draft release, recovering from 422 errors caused by
120046
+ * leftover draft releases from a previous failed run.
120047
+ *
120048
+ * GitHub's getReleaseByTag API only returns published releases, so leftover
120049
+ * drafts cannot be detected upfront. Instead, we catch the 422 from
120050
+ * createRelease, find the conflicting draft via listReleases, delete it,
120051
+ * and retry the creation.
120052
+ *
120053
+ * @param version The version to release
120054
+ * @param revision Git commit SHA
120055
+ * @param changes Changeset information
120056
+ * @returns The newly created draft release
120057
+ */
120058
+ async createOrRecoverDraftRelease(version2, revision, changes) {
120059
+ try {
120060
+ return await this.createDraftRelease(version2, revision, changes);
120061
+ } catch (error3) {
120062
+ if (error3.status !== 422) {
120063
+ throw error3;
120064
+ }
120065
+ const tag2 = versionToTag(version2, this.githubConfig.tagPrefix);
120066
+ this.logger.info(
120067
+ `createRelease returned 422 for tag "${tag2}". Looking for a leftover draft release to clean up...`
120068
+ );
120069
+ const drafts = await this.findDraftReleasesByTag(tag2);
120070
+ if (drafts.length === 0) {
120071
+ this.logger.warn(
120072
+ `No leftover draft releases found for tag "${tag2}". The 422 error may be for a different reason.`
120073
+ );
120074
+ throw error3;
120075
+ }
120076
+ let deletedAny = false;
120077
+ for (const draft of drafts) {
120078
+ this.logger.info(
120079
+ `Deleting leftover draft release (id=${draft.id}) for tag "${tag2}"...`
120080
+ );
120081
+ try {
120082
+ await this.deleteRelease(draft);
120083
+ deletedAny = true;
120084
+ } catch (deleteError) {
120085
+ this.logger.warn(
120086
+ `Failed to delete leftover draft release: ${deleteError}`
120087
+ );
120088
+ }
120089
+ }
120090
+ if (!deletedAny) {
120091
+ this.logger.warn(
120092
+ "Could not delete any leftover draft releases. Cannot recover from 422."
120093
+ );
120094
+ throw error3;
120095
+ }
120096
+ return this.createDraftRelease(version2, revision, changes);
120097
+ }
120098
+ }
120099
+ /**
120100
+ * Finds draft releases matching a specific tag name.
120101
+ *
120102
+ * The listReleases API includes draft releases (for users with push access),
120103
+ * unlike getReleaseByTag which only returns published releases.
120104
+ *
120105
+ * Only the first page (100 releases) is checked. A leftover draft from a
120106
+ * crashed run will be among the most recent releases, so pagination is
120107
+ * unnecessary in practice.
120108
+ *
120109
+ * @param tag The tag name to search for
120110
+ * @returns Array of draft releases matching the tag
120111
+ */
120112
+ async findDraftReleasesByTag(tag2) {
120113
+ const { data: releases } = await this.github.repos.listReleases({
120114
+ owner: this.githubConfig.owner,
120115
+ repo: this.githubConfig.repo,
120116
+ per_page: 100
120117
+ });
120118
+ return releases.filter((r5) => r5.tag_name === tag2 && r5.draft === true);
120119
+ }
119952
120120
  async getChangelog(version2) {
119953
120121
  let changelog;
119954
120122
  try {
@@ -120000,6 +120168,54 @@ _This changelog has been truncated. See the [full changelog](${permalink}) for a
120000
120168
  ...this.githubConfig
120001
120169
  })).status === 204;
120002
120170
  }
120171
+ /**
120172
+ * Fetches the current state of a release from GitHub by its ID.
120173
+ *
120174
+ * Used to verify a release's draft status before attempting cleanup,
120175
+ * since the local object may be stale after a failed publishRelease() call.
120176
+ *
120177
+ * @param releaseId The release ID to fetch
120178
+ * @returns The release data, or undefined if the release no longer exists
120179
+ */
120180
+ async getRelease(releaseId) {
120181
+ try {
120182
+ const { data: data2 } = await this.github.repos.getRelease({
120183
+ owner: this.githubConfig.owner,
120184
+ repo: this.githubConfig.repo,
120185
+ release_id: releaseId
120186
+ });
120187
+ return data2;
120188
+ } catch (error3) {
120189
+ if (error3.status === 404) {
120190
+ return void 0;
120191
+ }
120192
+ throw error3;
120193
+ }
120194
+ }
120195
+ /**
120196
+ * Fetches a release by its tag name.
120197
+ *
120198
+ * Used to detect existing releases on re-run, so Craft can skip creation
120199
+ * if a release was already published in a previous (crashed) run.
120200
+ *
120201
+ * @param tag The tag name to look up
120202
+ * @returns The release data, or undefined if no release exists for this tag
120203
+ */
120204
+ async getReleaseByTag(tag2) {
120205
+ try {
120206
+ const { data: data2 } = await this.github.repos.getReleaseByTag({
120207
+ owner: this.githubConfig.owner,
120208
+ repo: this.githubConfig.repo,
120209
+ tag: tag2
120210
+ });
120211
+ return data2;
120212
+ } catch (error3) {
120213
+ if (error3.status === 404) {
120214
+ return void 0;
120215
+ }
120216
+ throw error3;
120217
+ }
120218
+ }
120003
120219
  /**
120004
120220
  * Fetches a list of all assets for the given release
120005
120221
  *
@@ -120254,7 +120470,20 @@ _This changelog has been truncated. See the [full changelog](${permalink}) for a
120254
120470
  );
120255
120471
  const isPreview = this.githubConfig.previewReleases && isPreviewRelease(version2);
120256
120472
  const makeLatest = isPreview ? false : isLatestRelease(latestRelease, version2);
120257
- const draftRelease = await this.createDraftRelease(
120473
+ const tag2 = versionToTag(version2, this.githubConfig.tagPrefix);
120474
+ const existingRelease = await this.getReleaseByTag(tag2);
120475
+ if (existingRelease) {
120476
+ this.logger.info(
120477
+ `Release for tag "${tag2}" already exists and is published. Skipping GitHub release creation (likely from a previous run).`
120478
+ );
120479
+ try {
120480
+ await this.updateFloatingTags(version2, revision);
120481
+ } catch (floatingTagError) {
120482
+ this.logger.warn(`Failed to update floating tags: ${floatingTagError}`);
120483
+ }
120484
+ return;
120485
+ }
120486
+ const draftRelease = await this.createOrRecoverDraftRelease(
120258
120487
  version2,
120259
120488
  revision,
120260
120489
  changelog
@@ -120268,18 +120497,36 @@ _This changelog has been truncated. See the [full changelog](${permalink}) for a
120268
120497
  await this.publishRelease(draftRelease, { makeLatest });
120269
120498
  } catch (error3) {
120270
120499
  try {
120271
- await this.deleteRelease(draftRelease);
120272
- this.logger.info(
120273
- `Deleted orphaned draft release: ${draftRelease.tag_name}`
120274
- );
120275
- } catch (deleteError) {
120500
+ const currentRelease = await this.getRelease(draftRelease.id);
120501
+ if (currentRelease && currentRelease.draft === false) {
120502
+ this.logger.warn(
120503
+ `Release "${draftRelease.tag_name}" was already published on GitHub despite the error. Skipping cleanup to avoid deleting a live release.`
120504
+ );
120505
+ } else if (currentRelease) {
120506
+ await this.deleteRelease(currentRelease);
120507
+ this.logger.info(
120508
+ `Deleted orphaned draft release: ${draftRelease.tag_name}`
120509
+ );
120510
+ } else {
120511
+ this.logger.debug(
120512
+ `Release ${draftRelease.id} no longer exists, nothing to clean up`
120513
+ );
120514
+ }
120515
+ } catch (cleanupError) {
120276
120516
  this.logger.warn(
120277
- `Failed to delete orphaned draft release: ${deleteError}`
120517
+ `Failed to clean up release "${draftRelease.tag_name}": ${cleanupError}`
120278
120518
  );
120279
120519
  }
120280
120520
  throw error3;
120281
120521
  }
120282
- await this.updateFloatingTags(version2, revision);
120522
+ try {
120523
+ await this.updateFloatingTags(version2, revision);
120524
+ } catch (floatingTagError) {
120525
+ this.logger.warn(
120526
+ `Failed to update floating tags (release is already published): ${floatingTagError}`
120527
+ );
120528
+ this.logger.warn("You may need to update floating tags manually.");
120529
+ }
120283
120530
  }
120284
120531
  };
120285
120532
  }
@@ -127193,13 +127440,14 @@ var init_npm = __esm({
127193
127440
  });
127194
127441
 
127195
127442
  // src/targets/nuget.ts
127196
- var import_fs15, import_path13, NUGET_DOTNET_BIN, DEFAULT_NUGET_SERVER_URL, DEFAULT_NUGET_REGEX, SYMBOLS_NUGET_REGEX, DOTNET_SPAWN_OPTIONS, NugetTarget;
127443
+ var import_fs15, import_path13, import_crypto5, NUGET_DOTNET_BIN, DEFAULT_NUGET_SERVER_URL, DEFAULT_NUGET_REGEX, SYMBOLS_NUGET_REGEX, DOTNET_SPAWN_OPTIONS, NugetTarget;
127197
127444
  var init_nuget = __esm({
127198
127445
  "src/targets/nuget.ts"() {
127199
127446
  "use strict";
127200
127447
  init_import_meta_url();
127201
127448
  import_fs15 = require("fs");
127202
127449
  import_path13 = require("path");
127450
+ import_crypto5 = require("crypto");
127203
127451
  init_errors2();
127204
127452
  init_system();
127205
127453
  init_base5();
@@ -127231,6 +127479,12 @@ var init_nuget = __esm({
127231
127479
  return false;
127232
127480
  }
127233
127481
  if (hasExecutable(NUGET_DOTNET_BIN)) {
127482
+ const globalJsonPath = (0, import_path13.join)(rootDir, "global.json");
127483
+ const globalJsonBackup = `${globalJsonPath}.craft-bak-${(0, import_crypto5.randomUUID)()}`;
127484
+ const globalJsonMoved = (0, import_fs15.existsSync)(globalJsonPath);
127485
+ if (globalJsonMoved) {
127486
+ (0, import_fs15.renameSync)(globalJsonPath, globalJsonBackup);
127487
+ }
127234
127488
  try {
127235
127489
  const result = await spawnProcess(
127236
127490
  NUGET_DOTNET_BIN,
@@ -127249,6 +127503,10 @@ var init_nuget = __esm({
127249
127503
  logger.debug(
127250
127504
  "dotnet-setversion not available, falling back to manual edit"
127251
127505
  );
127506
+ } finally {
127507
+ if (globalJsonMoved) {
127508
+ (0, import_fs15.renameSync)(globalJsonBackup, globalJsonPath);
127509
+ }
127252
127510
  }
127253
127511
  }
127254
127512
  let bumped = false;
@@ -127979,12 +128237,12 @@ var init_registry = __esm({
127979
128237
  });
127980
128238
 
127981
128239
  // src/targets/registry.ts
127982
- var import_async7, BATCH_KEYS, RegistryTarget;
128240
+ var import_async8, BATCH_KEYS, RegistryTarget;
127983
128241
  var init_registry2 = __esm({
127984
128242
  "src/targets/registry.ts"() {
127985
128243
  "use strict";
127986
128244
  init_import_meta_url();
127987
- import_async7 = __toESM(require_async());
128245
+ import_async8 = __toESM(require_async());
127988
128246
  init_errors2();
127989
128247
  init_files();
127990
128248
  init_githubApi();
@@ -128210,7 +128468,7 @@ var init_registry2 = __esm({
128210
128468
  "Adding extra data (checksums, download links) for available artifacts..."
128211
128469
  );
128212
128470
  const files = {};
128213
- await (0, import_async7.mapLimit)(
128471
+ await (0, import_async8.mapLimit)(
128214
128472
  artifacts,
128215
128473
  MAX_DOWNLOAD_CONCURRENCY,
128216
128474
  async (artifact) => {
@@ -133428,11 +133686,11 @@ var require_dist_cjs18 = __commonJS({
133428
133686
  "node_modules/.pnpm/@smithy+uuid@1.1.0/node_modules/@smithy/uuid/dist-cjs/index.js"(exports2) {
133429
133687
  "use strict";
133430
133688
  init_import_meta_url();
133431
- var randomUUID = require_randomUUID();
133689
+ var randomUUID2 = require_randomUUID();
133432
133690
  var decimalToHex = Array.from({ length: 256 }, (_4, i5) => i5.toString(16).padStart(2, "0"));
133433
133691
  var v42 = () => {
133434
- if (randomUUID.randomUUID) {
133435
- return randomUUID.randomUUID();
133692
+ if (randomUUID2.randomUUID) {
133693
+ return randomUUID2.randomUUID();
133436
133694
  }
133437
133695
  const rnds = new Uint8Array(16);
133438
133696
  crypto.getRandomValues(rnds);
@@ -161413,7 +161671,7 @@ var require_package6 = __commonJS({
161413
161671
  "package.json"(exports2, module2) {
161414
161672
  module2.exports = {
161415
161673
  name: "@sentry/craft",
161416
- version: "2.26.5",
161674
+ version: "2.26.7",
161417
161675
  description: "The universal sentry workflow CLI",
161418
161676
  main: "dist/craft",
161419
161677
  repository: "https://github.com/getsentry/craft",
@@ -161477,11 +161735,11 @@ var require_package6 = __commonJS({
161477
161735
  split: "1.0.1",
161478
161736
  "string-length": "3.1.0",
161479
161737
  tar: "7.5.11",
161480
- tmp: "0.2.4",
161738
+ tmp: "^0.2.6",
161481
161739
  tslib: "^2.8.1",
161482
161740
  typescript: "^5.7.2",
161483
161741
  "typescript-eslint": "^8.18.2",
161484
- vitest: "^3.0.2",
161742
+ vitest: "^4.1.0",
161485
161743
  yargs: "^18",
161486
161744
  zod: "^3.24.1"
161487
161745
  },
@@ -161522,7 +161780,8 @@ var require_package6 = __commonJS({
161522
161780
  rollup: "^4.59.0",
161523
161781
  flatted: "^3.4.2",
161524
161782
  "picomatch@<3": "^2.3.2",
161525
- uuid: "^14.0.0"
161783
+ uuid: "^14.0.0",
161784
+ "@tootallnate/once": "^2.0.1"
161526
161785
  }
161527
161786
  }
161528
161787
  };
@@ -161586,7 +161845,7 @@ function getPackage() {
161586
161845
  }
161587
161846
  function getPackageVersion() {
161588
161847
  const { version: version2 } = getPackage();
161589
- const buildInfo = "bc2e6a9952e62250e5469d5a853a7a438692ccc1";
161848
+ const buildInfo = "2d91188a567c27575be26f7f06a4701ecd4d94ce";
161590
161849
  return buildInfo ? `${version2} (${buildInfo})` : version2;
161591
161850
  }
161592
161851
  function semVerToString(s6) {
@@ -169711,7 +169970,7 @@ init_tracing3();
169711
169970
 
169712
169971
  // src/utils/publishState.ts
169713
169972
  init_import_meta_url();
169714
- var import_crypto5 = require("crypto");
169973
+ var import_crypto6 = require("crypto");
169715
169974
  var import_os4 = require("os");
169716
169975
  var import_path27 = require("path");
169717
169976
  var STATE_DIR_NAME = "craft";
@@ -169726,7 +169985,7 @@ function sanitiseForFilename(raw) {
169726
169985
  return raw.toLowerCase().replace(/[^a-z0-9._-]+/g, "_").replace(/^_+|_+$/g, "");
169727
169986
  }
169728
169987
  function shortCwdHash(cwd) {
169729
- return (0, import_crypto5.createHash)("sha1").update(cwd).digest("hex").slice(0, 12);
169988
+ return (0, import_crypto6.createHash)("sha1").update(cwd).digest("hex").slice(0, 12);
169730
169989
  }
169731
169990
  function getPublishStateFilename(version2, githubConfig, cwd = process.cwd()) {
169732
169991
  const safeVersion = sanitiseForFilename(version2);
@@ -169735,7 +169994,7 @@ function getPublishStateFilename(version2, githubConfig, cwd = process.cwd()) {
169735
169994
  const repo = sanitiseForFilename(githubConfig.repo);
169736
169995
  return `publish-state-${owner}-${repo}-${shortCwdHash(cwd)}-${safeVersion}.json`;
169737
169996
  }
169738
- const cwdDigest = (0, import_crypto5.createHash)("sha256").update(cwd).digest("hex").slice(0, 16);
169997
+ const cwdDigest = (0, import_crypto6.createHash)("sha256").update(cwd).digest("hex").slice(0, 16);
169739
169998
  return `publish-state-${cwdDigest}-${safeVersion}.json`;
169740
169999
  }
169741
170000
  function getPublishStatePath(version2, githubConfig, cwd = process.cwd()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/craft",
3
- "version": "2.26.5",
3
+ "version": "2.26.7",
4
4
  "description": "The universal sentry workflow CLI",
5
5
  "main": "dist/craft",
6
6
  "repository": "https://github.com/getsentry/craft",
@@ -64,11 +64,11 @@
64
64
  "split": "1.0.1",
65
65
  "string-length": "3.1.0",
66
66
  "tar": "7.5.11",
67
- "tmp": "0.2.4",
67
+ "tmp": "^0.2.6",
68
68
  "tslib": "^2.8.1",
69
69
  "typescript": "^5.7.2",
70
70
  "typescript-eslint": "^8.18.2",
71
- "vitest": "^3.0.2",
71
+ "vitest": "^4.1.0",
72
72
  "yargs": "^18",
73
73
  "zod": "^3.24.1"
74
74
  },
@@ -109,7 +109,8 @@
109
109
  "rollup": "^4.59.0",
110
110
  "flatted": "^3.4.2",
111
111
  "picomatch@<3": "^2.3.2",
112
- "uuid": "^14.0.0"
112
+ "uuid": "^14.0.0",
113
+ "@tootallnate/once": "^2.0.1"
113
114
  }
114
115
  }
115
116
  }