@sentry/bundler-plugin-core 4.6.0 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -8336,7 +8336,7 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
8336
8336
  dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
8337
8337
  tracesSampleRate: 1,
8338
8338
  sampleRate: 1,
8339
- release: "4.6.0",
8339
+ release: "4.6.1",
8340
8340
  integrations: [],
8341
8341
  tracePropagationTargets: ["sentry.io/api"],
8342
8342
  stackParser: stackParser,
@@ -8945,7 +8945,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
8945
8945
  });
8946
8946
 
8947
8947
  // Set the User-Agent that Sentry CLI will use when interacting with Sentry
8948
- process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.6.0");
8948
+ process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.6.1");
8949
8949
 
8950
8950
  // Propagate debug flag to Sentry CLI via environment variable
8951
8951
  // Only set if not already defined to respect user's explicit configuration
@@ -9153,7 +9153,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
9153
9153
  */
9154
9154
  createRelease: function createRelease() {
9155
9155
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
9156
- var freeWriteBundleInvocationDependencyOnSourcemapFiles, cliInstance, normalizedInclude;
9156
+ var freeWriteBundleInvocationDependencyOnSourcemapFiles, cliInstance, releaseOutput, normalizedInclude;
9157
9157
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
9158
9158
  while (1) switch (_context7.prev = _context7.next) {
9159
9159
  case 0:
@@ -9198,14 +9198,17 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
9198
9198
  _context7.prev = 24;
9199
9199
  cliInstance = createCliInstance(options);
9200
9200
  if (!options.release.create) {
9201
- _context7.next = 29;
9201
+ _context7.next = 31;
9202
9202
  break;
9203
9203
  }
9204
9204
  _context7.next = 29;
9205
9205
  return cliInstance.releases["new"](options.release.name);
9206
9206
  case 29:
9207
+ releaseOutput = _context7.sent;
9208
+ logger.debug("Release created:", releaseOutput);
9209
+ case 31:
9207
9210
  if (!options.release.uploadLegacySourcemaps) {
9208
- _context7.next = 33;
9211
+ _context7.next = 35;
9209
9212
  break;
9210
9213
  }
9211
9214
  normalizedInclude = arrayify(options.release.uploadLegacySourcemaps).map(function (includeItem) {
@@ -9222,7 +9225,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
9222
9225
  ignore: includeEntry.ignore ? arrayify(includeEntry.ignore) : undefined
9223
9226
  });
9224
9227
  });
9225
- _context7.next = 33;
9228
+ _context7.next = 35;
9226
9229
  return cliInstance.releases.uploadSourceMaps(options.release.name, {
9227
9230
  include: normalizedInclude,
9228
9231
  dist: options.release.dist,
@@ -9231,66 +9234,66 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
9231
9234
  // see: https://github.com/getsentry/sentry-cli/pull/2605
9232
9235
  live: "rejectOnError"
9233
9236
  });
9234
- case 33:
9237
+ case 35:
9235
9238
  if (!(options.release.setCommits !== false)) {
9236
- _context7.next = 46;
9239
+ _context7.next = 48;
9237
9240
  break;
9238
9241
  }
9239
- _context7.prev = 34;
9240
- _context7.next = 37;
9242
+ _context7.prev = 36;
9243
+ _context7.next = 39;
9241
9244
  return cliInstance.releases.setCommits(options.release.name,
9242
9245
  // set commits always exists due to the normalize function
9243
9246
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
9244
9247
  options.release.setCommits);
9245
- case 37:
9246
- _context7.next = 46;
9247
- break;
9248
9248
  case 39:
9249
- _context7.prev = 39;
9250
- _context7.t0 = _context7["catch"](34);
9249
+ _context7.next = 48;
9250
+ break;
9251
+ case 41:
9252
+ _context7.prev = 41;
9253
+ _context7.t0 = _context7["catch"](36);
9251
9254
  if (!(options.release.setCommits && "shouldNotThrowOnFailure" in options.release.setCommits && options.release.setCommits.shouldNotThrowOnFailure)) {
9252
- _context7.next = 45;
9255
+ _context7.next = 47;
9253
9256
  break;
9254
9257
  }
9255
9258
  logger.debug("An error occurred setting commits on release (this message can be ignored unless you commits on release are desired):", _context7.t0);
9256
- _context7.next = 46;
9259
+ _context7.next = 48;
9257
9260
  break;
9258
- case 45:
9261
+ case 47:
9259
9262
  throw _context7.t0;
9260
- case 46:
9263
+ case 48:
9261
9264
  if (!options.release.finalize) {
9262
- _context7.next = 49;
9265
+ _context7.next = 51;
9263
9266
  break;
9264
9267
  }
9265
- _context7.next = 49;
9268
+ _context7.next = 51;
9266
9269
  return cliInstance.releases.finalize(options.release.name);
9267
- case 49:
9270
+ case 51:
9268
9271
  if (!options.release.deploy) {
9269
- _context7.next = 52;
9272
+ _context7.next = 54;
9270
9273
  break;
9271
9274
  }
9272
- _context7.next = 52;
9275
+ _context7.next = 54;
9273
9276
  return cliInstance.releases.newDeploy(options.release.name, options.release.deploy);
9274
- case 52:
9275
- _context7.next = 60;
9276
- break;
9277
9277
  case 54:
9278
- _context7.prev = 54;
9278
+ _context7.next = 62;
9279
+ break;
9280
+ case 56:
9281
+ _context7.prev = 56;
9279
9282
  _context7.t1 = _context7["catch"](24);
9280
9283
  sentryScope.captureException('Error in "releaseManagementPlugin" writeBundle hook');
9281
- _context7.next = 59;
9284
+ _context7.next = 61;
9282
9285
  return safeFlushTelemetry(sentryClient);
9283
- case 59:
9286
+ case 61:
9284
9287
  handleRecoverableError(_context7.t1, false);
9285
- case 60:
9286
- _context7.prev = 60;
9288
+ case 62:
9289
+ _context7.prev = 62;
9287
9290
  freeWriteBundleInvocationDependencyOnSourcemapFiles();
9288
- return _context7.finish(60);
9289
- case 63:
9291
+ return _context7.finish(62);
9292
+ case 65:
9290
9293
  case "end":
9291
9294
  return _context7.stop();
9292
9295
  }
9293
- }, _callee7, null, [[24, 54, 60, 63], [34, 39]]);
9296
+ }, _callee7, null, [[24, 56, 62, 65], [36, 41]]);
9294
9297
  }))();
9295
9298
  },
9296
9299
  /*