@sentry/bundler-plugin-core 3.1.2 → 3.2.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.
@@ -8075,7 +8075,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
8075
8075
  dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
8076
8076
  tracesSampleRate: 1,
8077
8077
  sampleRate: 1,
8078
- release: "3.1.2",
8078
+ release: "3.2.0",
8079
8079
  integrations: [],
8080
8080
  tracePropagationTargets: ["sentry.io/api"],
8081
8081
  stackParser: stackParser,
@@ -8963,30 +8963,34 @@ function fileDeletionPlugin(_ref) {
8963
8963
  name: "sentry-file-deletion-plugin",
8964
8964
  writeBundle: function writeBundle() {
8965
8965
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8966
- var filePathsToDelete;
8966
+ var filesToDelete, filePathsToDelete;
8967
8967
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8968
8968
  while (1) switch (_context.prev = _context.next) {
8969
8969
  case 0:
8970
8970
  _context.prev = 0;
8971
- if (!(filesToDeleteAfterUpload !== undefined)) {
8972
- _context.next = 11;
8971
+ _context.next = 3;
8972
+ return filesToDeleteAfterUpload;
8973
+ case 3:
8974
+ filesToDelete = _context.sent;
8975
+ if (!(filesToDelete !== undefined)) {
8976
+ _context.next = 14;
8973
8977
  break;
8974
8978
  }
8975
- _context.next = 4;
8976
- return glob(filesToDeleteAfterUpload, {
8979
+ _context.next = 7;
8980
+ return glob(filesToDelete, {
8977
8981
  absolute: true,
8978
8982
  nodir: true
8979
8983
  });
8980
- case 4:
8984
+ case 7:
8981
8985
  filePathsToDelete = _context.sent;
8982
8986
  logger.debug("Waiting for dependencies on generated files to be freed before deleting...");
8983
- _context.next = 8;
8987
+ _context.next = 11;
8984
8988
  return waitUntilSourcemapFileDependenciesAreFreed();
8985
- case 8:
8989
+ case 11:
8986
8990
  filePathsToDelete.forEach(function (filePathToDelete) {
8987
8991
  logger.debug("Deleting asset after upload: ".concat(filePathToDelete));
8988
8992
  });
8989
- _context.next = 11;
8993
+ _context.next = 14;
8990
8994
  return Promise.all(filePathsToDelete.map(function (filePathToDelete) {
8991
8995
  return fs__default.promises.rm(filePathToDelete, {
8992
8996
  force: true
@@ -8995,22 +8999,22 @@ function fileDeletionPlugin(_ref) {
8995
8999
  logger.debug("An error occurred while attempting to delete asset: ".concat(filePathToDelete), e);
8996
9000
  });
8997
9001
  }));
8998
- case 11:
8999
- _context.next = 19;
9002
+ case 14:
9003
+ _context.next = 22;
9000
9004
  break;
9001
- case 13:
9002
- _context.prev = 13;
9005
+ case 16:
9006
+ _context.prev = 16;
9003
9007
  _context.t0 = _context["catch"](0);
9004
9008
  sentryScope.captureException('Error in "sentry-file-deletion-plugin" buildEnd hook');
9005
- _context.next = 18;
9009
+ _context.next = 21;
9006
9010
  return safeFlushTelemetry(sentryClient);
9007
- case 18:
9011
+ case 21:
9008
9012
  handleRecoverableError(_context.t0);
9009
- case 19:
9013
+ case 22:
9010
9014
  case "end":
9011
9015
  return _context.stop();
9012
9016
  }
9013
- }, _callee, null, [[0, 13]]);
9017
+ }, _callee, null, [[0, 16]]);
9014
9018
  }))();
9015
9019
  }
9016
9020
  };
@@ -9116,7 +9120,7 @@ function sentryUnpluginFactory(_ref) {
9116
9120
  });
9117
9121
 
9118
9122
  // Set the User-Agent that Sentry CLI will use when interacting with Sentry
9119
- process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "3.1.2");
9123
+ process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "3.2.0");
9120
9124
  function handleRecoverableError(unknownError) {
9121
9125
  sentrySession.status = "abnormal";
9122
9126
  try {