@sentry/craft 2.22.0 → 2.23.0

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 +151 -64
  2. package/package.json +1 -1
package/dist/craft CHANGED
@@ -125785,24 +125785,37 @@ var init_workspaces = __esm({
125785
125785
  });
125786
125786
 
125787
125787
  // src/targets/npm.ts
125788
+ function isOidcEnvironment() {
125789
+ return !!(process.env.ACTIONS_ID_TOKEN_REQUEST_URL && process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN || process.env.NPM_ID_TOKEN);
125790
+ }
125788
125791
  async function getLatestVersion(packageName, npmConfig, otp) {
125789
125792
  const args = ["info", packageName, "version"];
125790
125793
  const bin = NPM_BIN;
125791
125794
  try {
125792
- const response = await withTempFile((filePath) => {
125795
+ let response;
125796
+ if (npmConfig.token) {
125797
+ response = await withTempFile((filePath) => {
125798
+ const spawnOptions = {};
125799
+ spawnOptions.env = { ...process.env };
125800
+ if (otp) {
125801
+ spawnOptions.env.NPM_CONFIG_OTP = otp;
125802
+ }
125803
+ spawnOptions.env[NPM_TOKEN_ENV_VAR] = npmConfig.token;
125804
+ spawnOptions.env.npm_config_userconfig = filePath;
125805
+ (0, import_fs14.writeFileSync)(
125806
+ filePath,
125807
+ `//registry.npmjs.org/:_authToken=\${${NPM_TOKEN_ENV_VAR}}`
125808
+ );
125809
+ return spawnProcess(bin, args, spawnOptions);
125810
+ });
125811
+ } else {
125793
125812
  const spawnOptions = {};
125794
125813
  spawnOptions.env = { ...process.env };
125795
125814
  if (otp) {
125796
125815
  spawnOptions.env.NPM_CONFIG_OTP = otp;
125797
125816
  }
125798
- spawnOptions.env[NPM_TOKEN_ENV_VAR] = npmConfig.token;
125799
- spawnOptions.env.npm_config_userconfig = filePath;
125800
- (0, import_fs14.writeFileSync)(
125801
- filePath,
125802
- `//registry.npmjs.org/:_authToken=\${${NPM_TOKEN_ENV_VAR}}`
125803
- );
125804
- return spawnProcess(bin, args, spawnOptions);
125805
- });
125817
+ response = await spawnProcess(bin, args, spawnOptions);
125818
+ }
125806
125819
  if (!response) {
125807
125820
  return void 0;
125808
125821
  }
@@ -125842,7 +125855,7 @@ async function getPublishTag(version2, checkPackageName, npmConfig, logger3, otp
125842
125855
  }
125843
125856
  return void 0;
125844
125857
  }
125845
- var import_child_process3, import_fs13, import_path12, import_prompts2, import_fs14, NPM_CONFIG, YARN_CONFIG, NPM_BIN, YARN_BIN, NPM_MIN_MAJOR, NPM_MIN_MINOR, NPM_TOKEN_ENV_VAR, DEFAULT_PACKAGE_REGEX, NpmPackageAccess, NpmTarget;
125858
+ var import_child_process3, import_fs13, import_path12, import_prompts2, import_fs14, NPM_CONFIG, YARN_CONFIG, NPM_BIN, YARN_BIN, NPM_MIN_MAJOR, NPM_MIN_MINOR, NPM_OIDC_MIN_VERSION, NPM_TOKEN_ENV_VAR, DEFAULT_PACKAGE_REGEX, NpmPackageAccess, NpmTarget;
125846
125859
  var init_npm = __esm({
125847
125860
  "src/targets/npm.ts"() {
125848
125861
  "use strict";
@@ -125867,6 +125880,7 @@ var init_npm = __esm({
125867
125880
  YARN_BIN = process.env.YARN_BIN || "yarn";
125868
125881
  NPM_MIN_MAJOR = 5;
125869
125882
  NPM_MIN_MINOR = 6;
125883
+ NPM_OIDC_MIN_VERSION = { major: 11, minor: 5, patch: 1 };
125870
125884
  NPM_TOKEN_ENV_VAR = "NPM_TOKEN";
125871
125885
  DEFAULT_PACKAGE_REGEX = /^.*\d\.\d.*\.tgz$/;
125872
125886
  NpmPackageAccess = /* @__PURE__ */ ((NpmPackageAccess2) => {
@@ -125879,6 +125893,8 @@ var init_npm = __esm({
125879
125893
  name = "npm";
125880
125894
  /** Target options */
125881
125895
  npmConfig;
125896
+ /** Parsed npm version, set during checkRequirements() */
125897
+ npmVersion = null;
125882
125898
  /**
125883
125899
  * Expand an npm target config into multiple targets if workspaces is enabled.
125884
125900
  * This static method is called during config loading to expand workspace targets.
@@ -125968,6 +125984,9 @@ var init_npm = __esm({
125968
125984
  if (config3.checkPackageName) {
125969
125985
  expandedTarget.checkPackageName = config3.checkPackageName;
125970
125986
  }
125987
+ if (config3.oidc) {
125988
+ expandedTarget.oidc = config3.oidc;
125989
+ }
125971
125990
  return expandedTarget;
125972
125991
  });
125973
125992
  }
@@ -126061,26 +126080,34 @@ var init_npm = __esm({
126061
126080
  this.npmConfig = this.getNpmConfig();
126062
126081
  }
126063
126082
  /**
126064
- * Check that NPM executable exists and is not too old
126083
+ * Check that NPM executable exists and is not too old.
126084
+ * Stores the parsed npm version for later OIDC version validation in getNpmConfig().
126065
126085
  */
126066
126086
  checkRequirements() {
126087
+ const config3 = this.config;
126067
126088
  if (hasExecutable(NPM_BIN)) {
126068
126089
  this.logger.debug("Checking that NPM has recent version...");
126069
- const npmVersion = (0, import_child_process3.spawnSync)(NPM_BIN, ["--version"]).stdout.toString().trim();
126070
- const parsedVersion = parseVersion(npmVersion);
126090
+ const npmVersionStr = (0, import_child_process3.spawnSync)(NPM_BIN, ["--version"]).stdout.toString().trim();
126091
+ const parsedVersion = parseVersion(npmVersionStr);
126071
126092
  if (!parsedVersion) {
126072
- reportError(`Cannot parse NPM version: "${npmVersion}"`);
126093
+ reportError(`Cannot parse NPM version: "${npmVersionStr}"`);
126073
126094
  }
126074
- const { major: major2, minor } = parsedVersion || { major: 0, minor: 0 };
126095
+ const { major: major2 = 0, minor = 0 } = parsedVersion ?? {};
126075
126096
  if (major2 < NPM_MIN_MAJOR || major2 === NPM_MIN_MAJOR && minor < NPM_MIN_MINOR) {
126076
126097
  reportError(
126077
- `NPM version is too old: ${npmVersion}. Please update your NodeJS`
126098
+ `NPM version is too old: ${npmVersionStr}. Please update your NodeJS`
126078
126099
  );
126079
126100
  }
126080
- this.logger.debug(`Found NPM version ${npmVersion}`);
126101
+ this.npmVersion = parsedVersion;
126102
+ this.logger.debug(`Found NPM version ${npmVersionStr}`);
126081
126103
  } else if (hasExecutable(YARN_BIN)) {
126082
126104
  const yarnVersion = (0, import_child_process3.spawnSync)(YARN_BIN, ["--version"]).stdout.toString().trim();
126083
126105
  this.logger.debug(`Found Yarn version ${yarnVersion}`);
126106
+ if (config3.oidc) {
126107
+ throw new ConfigurationError(
126108
+ "npm target: OIDC trusted publishing requires npm, but only yarn was found. Install npm >= 11.5.1 to use OIDC."
126109
+ );
126110
+ }
126084
126111
  } else {
126085
126112
  reportError('No "npm" or "yarn" found!');
126086
126113
  }
@@ -126098,17 +126125,69 @@ var init_npm = __esm({
126098
126125
  return otp;
126099
126126
  }
126100
126127
  /**
126101
- * Extracts NPM target options from the raw configuration
126128
+ * Extracts NPM target options from the raw configuration.
126129
+ *
126130
+ * Auth strategy decision table:
126131
+ *
126132
+ * | oidc config | NPM_TOKEN set | OIDC env detected | Result |
126133
+ * |-------------|---------------|-------------------|---------------------|
126134
+ * | true | any | any | Force OIDC |
126135
+ * | unset/false | yes | any | Token auth |
126136
+ * | unset/false | no | yes | Auto-detect OIDC |
126137
+ * | unset/false | no | no | Error (no auth) |
126102
126138
  */
126103
126139
  getNpmConfig() {
126140
+ const config3 = this.config;
126104
126141
  const token = process.env.NPM_TOKEN;
126105
- if (!token) {
126106
- throw new Error("NPM target: NPM_TOKEN not found in the environment");
126142
+ const oidcEnv = isOidcEnvironment();
126143
+ let useOidc = false;
126144
+ if (config3.oidc) {
126145
+ if (!this.npmVersion) {
126146
+ throw new ConfigurationError(
126147
+ "npm target: OIDC trusted publishing requires npm, but only yarn was found. Install npm >= 11.5.1 to use OIDC."
126148
+ );
126149
+ }
126150
+ const { major: major2, minor, patch } = this.npmVersion;
126151
+ if (!versionGreaterOrEqualThan(this.npmVersion, NPM_OIDC_MIN_VERSION)) {
126152
+ const {
126153
+ major: minMaj,
126154
+ minor: minMin,
126155
+ patch: minPat
126156
+ } = NPM_OIDC_MIN_VERSION;
126157
+ throw new ConfigurationError(
126158
+ `npm target: OIDC trusted publishing requires npm >= ${minMaj}.${minMin}.${minPat}, but found ${major2}.${minor}.${patch}. Update npm (or Node.js) to use OIDC.`
126159
+ );
126160
+ }
126161
+ useOidc = true;
126162
+ } else if (!token) {
126163
+ if (oidcEnv) {
126164
+ if (this.npmVersion) {
126165
+ if (versionGreaterOrEqualThan(this.npmVersion, NPM_OIDC_MIN_VERSION)) {
126166
+ this.logger.info(
126167
+ "NPM_TOKEN not set but OIDC environment detected \u2014 using trusted publishing."
126168
+ );
126169
+ useOidc = true;
126170
+ } else {
126171
+ const { major: major2, minor, patch } = this.npmVersion;
126172
+ const {
126173
+ major: minMaj,
126174
+ minor: minMin,
126175
+ patch: minPat
126176
+ } = NPM_OIDC_MIN_VERSION;
126177
+ this.logger.warn(
126178
+ `OIDC environment detected but npm ${major2}.${minor}.${patch} is too old for trusted publishing (requires >= ${minMaj}.${minMin}.${minPat}). Falling through to token-based auth.`
126179
+ );
126180
+ }
126181
+ }
126182
+ }
126183
+ if (!useOidc) {
126184
+ throw new Error("NPM target: NPM_TOKEN not found in the environment");
126185
+ }
126107
126186
  }
126108
- const config3 = this.config;
126109
126187
  const npmConfig = {
126110
- useYarn: !!process.env.USE_YARN || !hasExecutable(NPM_BIN),
126111
- token
126188
+ useYarn: !useOidc && (!!process.env.USE_YARN || !hasExecutable(NPM_BIN)),
126189
+ token: token || void 0,
126190
+ useOidc
126112
126191
  };
126113
126192
  if (config3.access) {
126114
126193
  if (Object.values(NpmPackageAccess).includes(config3.access)) {
@@ -126147,6 +126226,15 @@ var init_npm = __esm({
126147
126226
  if (options.tag) {
126148
126227
  args.push(`--tag=${options.tag}`);
126149
126228
  }
126229
+ args.push(path26);
126230
+ if (this.npmConfig.useOidc) {
126231
+ const spawnOptions = {};
126232
+ spawnOptions.env = { ...process.env };
126233
+ if (options.otp) {
126234
+ spawnOptions.env.NPM_CONFIG_OTP = options.otp;
126235
+ }
126236
+ return spawnProcess(bin, args, spawnOptions, { showStdout: true });
126237
+ }
126150
126238
  return withTempFile((filePath) => {
126151
126239
  const spawnOptions = {};
126152
126240
  spawnOptions.env = { ...process.env };
@@ -126159,7 +126247,6 @@ var init_npm = __esm({
126159
126247
  filePath,
126160
126248
  `//registry.npmjs.org/:_authToken=\${${NPM_TOKEN_ENV_VAR}}`
126161
126249
  );
126162
- args.push(path26);
126163
126250
  return spawnProcess(bin, args, spawnOptions, {
126164
126251
  showStdout: true
126165
126252
  });
@@ -160085,7 +160172,7 @@ var require_package6 = __commonJS({
160085
160172
  "package.json"(exports2, module2) {
160086
160173
  module2.exports = {
160087
160174
  name: "@sentry/craft",
160088
- version: "2.22.0",
160175
+ version: "2.23.0",
160089
160176
  description: "The universal sentry workflow CLI",
160090
160177
  main: "dist/craft",
160091
160178
  repository: "https://github.com/getsentry/craft",
@@ -160252,7 +160339,7 @@ function getPackage() {
160252
160339
  }
160253
160340
  function getPackageVersion() {
160254
160341
  const { version: version2 } = getPackage();
160255
- const buildInfo = "1db39410d293a253e6affbe98c8c6f29db6e218d";
160342
+ const buildInfo = "ce288193e2ac7976b0ffd1d5733527605e6fd63b";
160256
160343
  return buildInfo ? `${version2} (${buildInfo})` : version2;
160257
160344
  }
160258
160345
  function semVerToString(s4) {
@@ -160662,7 +160749,7 @@ var require_semver2 = __commonJS({
160662
160749
  var { safeRe: re3, t: t4 } = require_re();
160663
160750
  var parseOptions = require_parse_options();
160664
160751
  var { compareIdentifiers } = require_identifiers();
160665
- var SemVer3 = class _SemVer {
160752
+ var SemVer4 = class _SemVer {
160666
160753
  constructor(version2, options) {
160667
160754
  options = parseOptions(options);
160668
160755
  if (version2 instanceof _SemVer) {
@@ -160928,7 +161015,7 @@ var require_semver2 = __commonJS({
160928
161015
  return this;
160929
161016
  }
160930
161017
  };
160931
- module2.exports = SemVer3;
161018
+ module2.exports = SemVer4;
160932
161019
  }
160933
161020
  });
160934
161021
 
@@ -160937,13 +161024,13 @@ var require_parse2 = __commonJS({
160937
161024
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js"(exports2, module2) {
160938
161025
  "use strict";
160939
161026
  init_import_meta_url();
160940
- var SemVer3 = require_semver2();
161027
+ var SemVer4 = require_semver2();
160941
161028
  var parse8 = (version2, options, throwErrors = false) => {
160942
- if (version2 instanceof SemVer3) {
161029
+ if (version2 instanceof SemVer4) {
160943
161030
  return version2;
160944
161031
  }
160945
161032
  try {
160946
- return new SemVer3(version2, options);
161033
+ return new SemVer4(version2, options);
160947
161034
  } catch (er) {
160948
161035
  if (!throwErrors) {
160949
161036
  return null;
@@ -160988,7 +161075,7 @@ var require_inc = __commonJS({
160988
161075
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/inc.js"(exports2, module2) {
160989
161076
  "use strict";
160990
161077
  init_import_meta_url();
160991
- var SemVer3 = require_semver2();
161078
+ var SemVer4 = require_semver2();
160992
161079
  var inc2 = (version2, release3, options, identifier, identifierBase) => {
160993
161080
  if (typeof options === "string") {
160994
161081
  identifierBase = identifier;
@@ -160996,8 +161083,8 @@ var require_inc = __commonJS({
160996
161083
  options = void 0;
160997
161084
  }
160998
161085
  try {
160999
- return new SemVer3(
161000
- version2 instanceof SemVer3 ? version2.version : version2,
161086
+ return new SemVer4(
161087
+ version2 instanceof SemVer4 ? version2.version : version2,
161001
161088
  options
161002
161089
  ).inc(release3, identifier, identifierBase).version;
161003
161090
  } catch (er) {
@@ -161058,8 +161145,8 @@ var require_major = __commonJS({
161058
161145
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/major.js"(exports2, module2) {
161059
161146
  "use strict";
161060
161147
  init_import_meta_url();
161061
- var SemVer3 = require_semver2();
161062
- var major2 = (a4, loose) => new SemVer3(a4, loose).major;
161148
+ var SemVer4 = require_semver2();
161149
+ var major2 = (a4, loose) => new SemVer4(a4, loose).major;
161063
161150
  module2.exports = major2;
161064
161151
  }
161065
161152
  });
@@ -161069,8 +161156,8 @@ var require_minor = __commonJS({
161069
161156
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/minor.js"(exports2, module2) {
161070
161157
  "use strict";
161071
161158
  init_import_meta_url();
161072
- var SemVer3 = require_semver2();
161073
- var minor = (a4, loose) => new SemVer3(a4, loose).minor;
161159
+ var SemVer4 = require_semver2();
161160
+ var minor = (a4, loose) => new SemVer4(a4, loose).minor;
161074
161161
  module2.exports = minor;
161075
161162
  }
161076
161163
  });
@@ -161080,8 +161167,8 @@ var require_patch = __commonJS({
161080
161167
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/patch.js"(exports2, module2) {
161081
161168
  "use strict";
161082
161169
  init_import_meta_url();
161083
- var SemVer3 = require_semver2();
161084
- var patch = (a4, loose) => new SemVer3(a4, loose).patch;
161170
+ var SemVer4 = require_semver2();
161171
+ var patch = (a4, loose) => new SemVer4(a4, loose).patch;
161085
161172
  module2.exports = patch;
161086
161173
  }
161087
161174
  });
@@ -161105,8 +161192,8 @@ var require_compare = __commonJS({
161105
161192
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js"(exports2, module2) {
161106
161193
  "use strict";
161107
161194
  init_import_meta_url();
161108
- var SemVer3 = require_semver2();
161109
- var compare = (a4, b5, loose) => new SemVer3(a4, loose).compare(new SemVer3(b5, loose));
161195
+ var SemVer4 = require_semver2();
161196
+ var compare = (a4, b5, loose) => new SemVer4(a4, loose).compare(new SemVer4(b5, loose));
161110
161197
  module2.exports = compare;
161111
161198
  }
161112
161199
  });
@@ -161138,10 +161225,10 @@ var require_compare_build = __commonJS({
161138
161225
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare-build.js"(exports2, module2) {
161139
161226
  "use strict";
161140
161227
  init_import_meta_url();
161141
- var SemVer3 = require_semver2();
161228
+ var SemVer4 = require_semver2();
161142
161229
  var compareBuild = (a4, b5, loose) => {
161143
- const versionA = new SemVer3(a4, loose);
161144
- const versionB = new SemVer3(b5, loose);
161230
+ const versionA = new SemVer4(a4, loose);
161231
+ const versionB = new SemVer4(b5, loose);
161145
161232
  return versionA.compare(versionB) || versionA.compareBuild(versionB);
161146
161233
  };
161147
161234
  module2.exports = compareBuild;
@@ -161292,11 +161379,11 @@ var require_coerce = __commonJS({
161292
161379
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/coerce.js"(exports2, module2) {
161293
161380
  "use strict";
161294
161381
  init_import_meta_url();
161295
- var SemVer3 = require_semver2();
161382
+ var SemVer4 = require_semver2();
161296
161383
  var parse8 = require_parse2();
161297
161384
  var { safeRe: re3, t: t4 } = require_re();
161298
161385
  var coerce2 = (version2, options) => {
161299
- if (version2 instanceof SemVer3) {
161386
+ if (version2 instanceof SemVer4) {
161300
161387
  return version2;
161301
161388
  }
161302
161389
  if (typeof version2 === "number") {
@@ -161504,7 +161591,7 @@ var require_range = __commonJS({
161504
161591
  }
161505
161592
  if (typeof version2 === "string") {
161506
161593
  try {
161507
- version2 = new SemVer3(version2, this.options);
161594
+ version2 = new SemVer4(version2, this.options);
161508
161595
  } catch (er) {
161509
161596
  return false;
161510
161597
  }
@@ -161523,7 +161610,7 @@ var require_range = __commonJS({
161523
161610
  var parseOptions = require_parse_options();
161524
161611
  var Comparator = require_comparator();
161525
161612
  var debug3 = require_debug();
161526
- var SemVer3 = require_semver2();
161613
+ var SemVer4 = require_semver2();
161527
161614
  var {
161528
161615
  safeRe: re3,
161529
161616
  t: t4,
@@ -161795,7 +161882,7 @@ var require_comparator = __commonJS({
161795
161882
  if (!m5[2]) {
161796
161883
  this.semver = ANY;
161797
161884
  } else {
161798
- this.semver = new SemVer3(m5[2], this.options.loose);
161885
+ this.semver = new SemVer4(m5[2], this.options.loose);
161799
161886
  }
161800
161887
  }
161801
161888
  toString() {
@@ -161808,7 +161895,7 @@ var require_comparator = __commonJS({
161808
161895
  }
161809
161896
  if (typeof version2 === "string") {
161810
161897
  try {
161811
- version2 = new SemVer3(version2, this.options);
161898
+ version2 = new SemVer4(version2, this.options);
161812
161899
  } catch (er) {
161813
161900
  return false;
161814
161901
  }
@@ -161860,7 +161947,7 @@ var require_comparator = __commonJS({
161860
161947
  var { safeRe: re3, t: t4 } = require_re();
161861
161948
  var cmp = require_cmp();
161862
161949
  var debug3 = require_debug();
161863
- var SemVer3 = require_semver2();
161950
+ var SemVer4 = require_semver2();
161864
161951
  var Range = require_range();
161865
161952
  }
161866
161953
  });
@@ -161899,7 +161986,7 @@ var require_max_satisfying = __commonJS({
161899
161986
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
161900
161987
  "use strict";
161901
161988
  init_import_meta_url();
161902
- var SemVer3 = require_semver2();
161989
+ var SemVer4 = require_semver2();
161903
161990
  var Range = require_range();
161904
161991
  var maxSatisfying = (versions, range3, options) => {
161905
161992
  let max = null;
@@ -161914,7 +162001,7 @@ var require_max_satisfying = __commonJS({
161914
162001
  if (rangeObj.test(v8)) {
161915
162002
  if (!max || maxSV.compare(v8) === -1) {
161916
162003
  max = v8;
161917
- maxSV = new SemVer3(max, options);
162004
+ maxSV = new SemVer4(max, options);
161918
162005
  }
161919
162006
  }
161920
162007
  });
@@ -161929,7 +162016,7 @@ var require_min_satisfying = __commonJS({
161929
162016
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
161930
162017
  "use strict";
161931
162018
  init_import_meta_url();
161932
- var SemVer3 = require_semver2();
162019
+ var SemVer4 = require_semver2();
161933
162020
  var Range = require_range();
161934
162021
  var minSatisfying = (versions, range3, options) => {
161935
162022
  let min = null;
@@ -161944,7 +162031,7 @@ var require_min_satisfying = __commonJS({
161944
162031
  if (rangeObj.test(v8)) {
161945
162032
  if (!min || minSV.compare(v8) === 1) {
161946
162033
  min = v8;
161947
- minSV = new SemVer3(min, options);
162034
+ minSV = new SemVer4(min, options);
161948
162035
  }
161949
162036
  }
161950
162037
  });
@@ -161959,16 +162046,16 @@ var require_min_version = __commonJS({
161959
162046
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/min-version.js"(exports2, module2) {
161960
162047
  "use strict";
161961
162048
  init_import_meta_url();
161962
- var SemVer3 = require_semver2();
162049
+ var SemVer4 = require_semver2();
161963
162050
  var Range = require_range();
161964
162051
  var gt = require_gt();
161965
162052
  var minVersion = (range3, loose) => {
161966
162053
  range3 = new Range(range3, loose);
161967
- let minver = new SemVer3("0.0.0");
162054
+ let minver = new SemVer4("0.0.0");
161968
162055
  if (range3.test(minver)) {
161969
162056
  return minver;
161970
162057
  }
161971
- minver = new SemVer3("0.0.0-0");
162058
+ minver = new SemVer4("0.0.0-0");
161972
162059
  if (range3.test(minver)) {
161973
162060
  return minver;
161974
162061
  }
@@ -161977,7 +162064,7 @@ var require_min_version = __commonJS({
161977
162064
  const comparators = range3.set[i4];
161978
162065
  let setMin = null;
161979
162066
  comparators.forEach((comparator) => {
161980
- const compver = new SemVer3(comparator.semver.version);
162067
+ const compver = new SemVer4(comparator.semver.version);
161981
162068
  switch (comparator.operator) {
161982
162069
  case ">":
161983
162070
  if (compver.prerelease.length === 0) {
@@ -162036,7 +162123,7 @@ var require_outside = __commonJS({
162036
162123
  "node_modules/.pnpm/semver@7.7.3/node_modules/semver/ranges/outside.js"(exports2, module2) {
162037
162124
  "use strict";
162038
162125
  init_import_meta_url();
162039
- var SemVer3 = require_semver2();
162126
+ var SemVer4 = require_semver2();
162040
162127
  var Comparator = require_comparator();
162041
162128
  var { ANY } = Comparator;
162042
162129
  var Range = require_range();
@@ -162046,7 +162133,7 @@ var require_outside = __commonJS({
162046
162133
  var lte2 = require_lte();
162047
162134
  var gte2 = require_gte();
162048
162135
  var outside = (version2, range3, hilo, options) => {
162049
- version2 = new SemVer3(version2, options);
162136
+ version2 = new SemVer4(version2, options);
162050
162137
  range3 = new Range(range3, options);
162051
162138
  let gtfn, ltefn, ltfn, comp, ecomp;
162052
162139
  switch (hilo) {
@@ -162359,7 +162446,7 @@ var require_semver3 = __commonJS({
162359
162446
  init_import_meta_url();
162360
162447
  var internalRe = require_re();
162361
162448
  var constants4 = require_constants2();
162362
- var SemVer3 = require_semver2();
162449
+ var SemVer4 = require_semver2();
162363
162450
  var identifiers = require_identifiers();
162364
162451
  var parse8 = require_parse2();
162365
162452
  var valid = require_valid();
@@ -162436,7 +162523,7 @@ var require_semver3 = __commonJS({
162436
162523
  intersects,
162437
162524
  simplifyRange,
162438
162525
  subset,
162439
- SemVer: SemVer3,
162526
+ SemVer: SemVer4,
162440
162527
  re: internalRe.re,
162441
162528
  src: internalRe.src,
162442
162529
  tokens: internalRe.t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/craft",
3
- "version": "2.22.0",
3
+ "version": "2.23.0",
4
4
  "description": "The universal sentry workflow CLI",
5
5
  "main": "dist/craft",
6
6
  "repository": "https://github.com/getsentry/craft",