@sentry/bundler-plugin-core 0.2.4 → 0.3.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.
@@ -804,6 +804,7 @@ function normalizeUserOptions(userOptions) {
804
804
  // but CLI v2 uses `SENTRY_HEADER` (which is also better aligned with other naming)
805
805
  // In the spirit of maximum compatibility, we allow both here.
806
806
  customHeader: (_ref3 = (_userOptions$customHe = userOptions.customHeader) !== null && _userOptions$customHe !== void 0 ? _userOptions$customHe : process.env["SENTRY_HEADER"]) !== null && _ref3 !== void 0 ? _ref3 : process.env["CUSTOM_HEADER"],
807
+ headers: userOptions.headers,
807
808
  vcsRemote: userOptions.vcsRemote,
808
809
  // env var: `SENTRY_VSC_REMOTE`
809
810
  // Optional options
@@ -936,7 +937,7 @@ function makeSentryClient(dsn, allowedToSendTelemetryPromise, userProject) {
936
937
  // a dashboard.
937
938
  // Yes, this is slightly abusing the purpose of this field.
938
939
  dist: userProject,
939
- release: "0.2.4",
940
+ release: "0.3.0",
940
941
  integrations: [],
941
942
  tracePropagationTargets: ["sentry.io/api"],
942
943
  stackParser: defaultStackParser,
@@ -1088,12 +1089,12 @@ function _shouldSendTelemetry() {
1088
1089
  _shouldSendTelemetry = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(options) {
1089
1090
  var _cliInfo$split$, _cliInfo$split$$repla;
1090
1091
 
1091
- var silent, org, project, authToken, url, vcsRemote, customHeader, dist, telemetry, dryRun, cli, cliInfo, cliInfoUrl;
1092
+ var silent, org, project, authToken, url, vcsRemote, customHeader, headers, telemetry, dryRun, cli, cliInfo, cliInfoUrl;
1092
1093
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1093
1094
  while (1) {
1094
1095
  switch (_context2.prev = _context2.next) {
1095
1096
  case 0:
1096
- silent = options.silent, org = options.org, project = options.project, authToken = options.authToken, url = options.url, vcsRemote = options.vcsRemote, customHeader = options.customHeader, dist = options.dist, telemetry = options.telemetry, dryRun = options.dryRun; // `options.telemetry` defaults to true
1097
+ silent = options.silent, org = options.org, project = options.project, authToken = options.authToken, url = options.url, vcsRemote = options.vcsRemote, customHeader = options.customHeader, headers = options.headers, telemetry = options.telemetry, dryRun = options.dryRun; // `options.telemetry` defaults to true
1097
1098
 
1098
1099
  if (!(telemetry === false)) {
1099
1100
  _context2.next = 3;
@@ -1125,9 +1126,9 @@ function _shouldSendTelemetry() {
1125
1126
  org: org,
1126
1127
  project: project,
1127
1128
  vcsRemote: vcsRemote,
1128
- dist: dist,
1129
1129
  silent: silent,
1130
- customHeader: customHeader
1130
+ customHeader: customHeader,
1131
+ headers: headers
1131
1132
  });
1132
1133
  _context2.prev = 8;
1133
1134
  _context2.next = 11;
@@ -1289,7 +1290,8 @@ function _uploadSourceMaps() {
1289
1290
  _context3.prev = 2;
1290
1291
  _context3.next = 5;
1291
1292
  return ctx.cli.releases.uploadSourceMaps(releaseName, {
1292
- include: options.include
1293
+ include: options.include,
1294
+ dist: options.dist
1293
1295
  });
1294
1296
 
1295
1297
  case 5:
@@ -1584,16 +1586,16 @@ function getSentryCli(internalOptions, logger) {
1584
1586
  url = internalOptions.url,
1585
1587
  vcsRemote = internalOptions.vcsRemote,
1586
1588
  customHeader = internalOptions.customHeader,
1587
- dist = internalOptions.dist;
1589
+ headers = internalOptions.headers;
1588
1590
  var cli = new SentryCli(internalOptions.configFile, {
1589
1591
  url: url,
1590
1592
  authToken: authToken,
1591
1593
  org: org,
1592
1594
  project: project,
1593
1595
  vcsRemote: vcsRemote,
1594
- dist: dist,
1595
1596
  silent: silent,
1596
- customHeader: customHeader
1597
+ customHeader: customHeader,
1598
+ headers: headers
1597
1599
  });
1598
1600
 
1599
1601
  if (internalOptions.dryRun) {