@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.
package/dist/cjs/index.js CHANGED
@@ -814,6 +814,7 @@ function normalizeUserOptions(userOptions) {
814
814
  // but CLI v2 uses `SENTRY_HEADER` (which is also better aligned with other naming)
815
815
  // In the spirit of maximum compatibility, we allow both here.
816
816
  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"],
817
+ headers: userOptions.headers,
817
818
  vcsRemote: userOptions.vcsRemote,
818
819
  // env var: `SENTRY_VSC_REMOTE`
819
820
  // Optional options
@@ -946,7 +947,7 @@ function makeSentryClient(dsn, allowedToSendTelemetryPromise, userProject) {
946
947
  // a dashboard.
947
948
  // Yes, this is slightly abusing the purpose of this field.
948
949
  dist: userProject,
949
- release: "0.2.4",
950
+ release: "0.3.0",
950
951
  integrations: [],
951
952
  tracePropagationTargets: ["sentry.io/api"],
952
953
  stackParser: node.defaultStackParser,
@@ -1098,12 +1099,12 @@ function _shouldSendTelemetry() {
1098
1099
  _shouldSendTelemetry = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(options) {
1099
1100
  var _cliInfo$split$, _cliInfo$split$$repla;
1100
1101
 
1101
- var silent, org, project, authToken, url, vcsRemote, customHeader, dist, telemetry, dryRun, cli, cliInfo, cliInfoUrl;
1102
+ var silent, org, project, authToken, url, vcsRemote, customHeader, headers, telemetry, dryRun, cli, cliInfo, cliInfoUrl;
1102
1103
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1103
1104
  while (1) {
1104
1105
  switch (_context2.prev = _context2.next) {
1105
1106
  case 0:
1106
- 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
1107
+ 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
1107
1108
 
1108
1109
  if (!(telemetry === false)) {
1109
1110
  _context2.next = 3;
@@ -1135,9 +1136,9 @@ function _shouldSendTelemetry() {
1135
1136
  org: org,
1136
1137
  project: project,
1137
1138
  vcsRemote: vcsRemote,
1138
- dist: dist,
1139
1139
  silent: silent,
1140
- customHeader: customHeader
1140
+ customHeader: customHeader,
1141
+ headers: headers
1141
1142
  });
1142
1143
  _context2.prev = 8;
1143
1144
  _context2.next = 11;
@@ -1299,7 +1300,8 @@ function _uploadSourceMaps() {
1299
1300
  _context3.prev = 2;
1300
1301
  _context3.next = 5;
1301
1302
  return ctx.cli.releases.uploadSourceMaps(releaseName, {
1302
- include: options.include
1303
+ include: options.include,
1304
+ dist: options.dist
1303
1305
  });
1304
1306
 
1305
1307
  case 5:
@@ -1594,16 +1596,16 @@ function getSentryCli(internalOptions, logger) {
1594
1596
  url = internalOptions.url,
1595
1597
  vcsRemote = internalOptions.vcsRemote,
1596
1598
  customHeader = internalOptions.customHeader,
1597
- dist = internalOptions.dist;
1599
+ headers = internalOptions.headers;
1598
1600
  var cli = new SentryCli__default["default"](internalOptions.configFile, {
1599
1601
  url: url,
1600
1602
  authToken: authToken,
1601
1603
  org: org,
1602
1604
  project: project,
1603
1605
  vcsRemote: vcsRemote,
1604
- dist: dist,
1605
1606
  silent: silent,
1606
- customHeader: customHeader
1607
+ customHeader: customHeader,
1608
+ headers: headers
1607
1609
  });
1608
1610
 
1609
1611
  if (internalOptions.dryRun) {