@sentry/bundler-plugin-core 2.5.0 → 2.6.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.
@@ -1266,7 +1266,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
1266
1266
  dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
1267
1267
  tracesSampleRate: 1,
1268
1268
  sampleRate: 1,
1269
- release: "2.5.0",
1269
+ release: "2.6.0",
1270
1270
  integrations: [],
1271
1271
  tracePropagationTargets: ["sentry.io/api"],
1272
1272
  stackParser: defaultStackParser,
@@ -1496,7 +1496,7 @@ function sentryUnpluginFactory(_ref) {
1496
1496
  });
1497
1497
 
1498
1498
  // Set the User-Agent that Sentry CLI will use when interacting with Sentry
1499
- process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.5.0");
1499
+ process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.6.0");
1500
1500
  function handleRecoverableError(unknownError) {
1501
1501
  sentrySession.status = "abnormal";
1502
1502
  try {
@@ -1566,7 +1566,7 @@ function sentryUnpluginFactory(_ref) {
1566
1566
  logger.warn("No release name provided. Will not create release. Please set the `release.name` option to identify your release.");
1567
1567
  } else if (!options.authToken) {
1568
1568
  logger.warn("No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/");
1569
- } else if (!options.org) {
1569
+ } else if (!options.org && !options.authToken.startsWith("sntrys_")) {
1570
1570
  logger.warn("No organization slug provided. Will not create release. Please set the `org` option to your Sentry organization slug.");
1571
1571
  } else if (!options.project) {
1572
1572
  logger.warn("No project provided. Will not create release. Please set the `project` option to your Sentry project slug.");
@@ -1598,7 +1598,7 @@ function sentryUnpluginFactory(_ref) {
1598
1598
  plugins.push(debugIdInjectionPlugin());
1599
1599
  if (!options.authToken) {
1600
1600
  logger.warn("No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/");
1601
- } else if (!options.org) {
1601
+ } else if (!options.org && !options.authToken.startsWith("sntrys_")) {
1602
1602
  logger.warn("No org provided. Will not upload source maps. Please set the `org` option to your Sentry organization slug.");
1603
1603
  } else if (!options.project) {
1604
1604
  logger.warn("No project provided. Will not upload source maps. Please set the `project` option to your Sentry project slug.");
@@ -1751,35 +1751,40 @@ function createRollupDebugIdUploadHooks(upload) {
1751
1751
  while (1) switch (_context.prev = _context.next) {
1752
1752
  case 0:
1753
1753
  if (!outputOptions.dir) {
1754
- _context.next = 7;
1754
+ _context.next = 9;
1755
1755
  break;
1756
1756
  }
1757
1757
  outputDir = outputOptions.dir;
1758
- _buildArtifacts = Object.keys(bundle).map(function (asset) {
1759
- return path.join(outputDir, asset);
1758
+ _context.next = 4;
1759
+ return glob(["/**/*.js", "/**/*.js.map"], {
1760
+ root: outputDir,
1761
+ absolute: true,
1762
+ nodir: true
1760
1763
  });
1761
- _context.next = 5;
1764
+ case 4:
1765
+ _buildArtifacts = _context.sent;
1766
+ _context.next = 7;
1762
1767
  return upload(_buildArtifacts);
1763
- case 5:
1764
- _context.next = 15;
1765
- break;
1766
1768
  case 7:
1769
+ _context.next = 17;
1770
+ break;
1771
+ case 9:
1767
1772
  if (!outputOptions.file) {
1768
- _context.next = 12;
1773
+ _context.next = 14;
1769
1774
  break;
1770
1775
  }
1771
- _context.next = 10;
1776
+ _context.next = 12;
1772
1777
  return upload([outputOptions.file]);
1773
- case 10:
1774
- _context.next = 15;
1775
- break;
1776
1778
  case 12:
1779
+ _context.next = 17;
1780
+ break;
1781
+ case 14:
1777
1782
  _buildArtifacts2 = Object.keys(bundle).map(function (asset) {
1778
1783
  return path.join(path.resolve(), asset);
1779
1784
  });
1780
- _context.next = 15;
1785
+ _context.next = 17;
1781
1786
  return upload(_buildArtifacts2);
1782
- case 15:
1787
+ case 17:
1783
1788
  case "end":
1784
1789
  return _context.stop();
1785
1790
  }