@sentry/bundler-plugin-core 4.8.0 → 4.9.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
@@ -8141,7 +8141,7 @@ var CodeInjection = /*#__PURE__*/function () {
8141
8141
 
8142
8142
  var SENTRY_SAAS_URL = "https://sentry.io";
8143
8143
  function normalizeUserOptions(userOptions) {
8144
- var _userOptions$org, _userOptions$project, _process$env$SENTRY_P, _userOptions$authToke, _ref, _userOptions$url, _userOptions$debug, _userOptions$silent, _userOptions$telemetr, _userOptions$disable, _ref2, _userOptions$release$, _userOptions$release, _userOptions$release$2, _userOptions$release2, _userOptions$release$3, _userOptions$release3, _userOptions$release$4, _userOptions$release4, _ref3, _userOptions$release$5, _userOptions$release5, _userOptions$release6, _userOptions$_metaOpt, _userOptions$_metaOpt2, _userOptions$_experim;
8144
+ var _userOptions$org, _userOptions$project, _process$env$SENTRY_P, _userOptions$authToke, _ref, _userOptions$url, _userOptions$debug, _userOptions$silent, _userOptions$telemetr, _userOptions$disable, _ref2, _userOptions$release$, _userOptions$release, _userOptions$release$2, _userOptions$release2, _userOptions$release$3, _userOptions$release3, _userOptions$release$4, _userOptions$release4, _ref3, _userOptions$release$5, _userOptions$release5, _userOptions$release6, _userOptions$_metaOpt, _userOptions$_metaOpt2, _userOptions$_metaOpt3, _userOptions$_metaOpt4, _userOptions$_experim;
8145
8145
  var options = {
8146
8146
  org: (_userOptions$org = userOptions.org) !== null && _userOptions$org !== void 0 ? _userOptions$org : process.env["SENTRY_ORG"],
8147
8147
  project: (_userOptions$project = userOptions.project) !== null && _userOptions$project !== void 0 ? _userOptions$project : (_process$env$SENTRY_P = process.env["SENTRY_PROJECT"]) !== null && _process$env$SENTRY_P !== void 0 && _process$env$SENTRY_P.includes(",") ? process.env["SENTRY_PROJECT"].split(",").map(function (p) {
@@ -8168,7 +8168,8 @@ function normalizeUserOptions(userOptions) {
8168
8168
  reactComponentAnnotation: userOptions.reactComponentAnnotation,
8169
8169
  _metaOptions: {
8170
8170
  telemetry: {
8171
- metaFramework: (_userOptions$_metaOpt = userOptions._metaOptions) === null || _userOptions$_metaOpt === void 0 ? void 0 : (_userOptions$_metaOpt2 = _userOptions$_metaOpt.telemetry) === null || _userOptions$_metaOpt2 === void 0 ? void 0 : _userOptions$_metaOpt2.metaFramework
8171
+ metaFramework: (_userOptions$_metaOpt = userOptions._metaOptions) === null || _userOptions$_metaOpt === void 0 ? void 0 : (_userOptions$_metaOpt2 = _userOptions$_metaOpt.telemetry) === null || _userOptions$_metaOpt2 === void 0 ? void 0 : _userOptions$_metaOpt2.metaFramework,
8172
+ bundlerMajorVersion: (_userOptions$_metaOpt3 = userOptions._metaOptions) === null || _userOptions$_metaOpt3 === void 0 ? void 0 : (_userOptions$_metaOpt4 = _userOptions$_metaOpt3.telemetry) === null || _userOptions$_metaOpt4 === void 0 ? void 0 : _userOptions$_metaOpt4.bundlerMajorVersion
8172
8173
  }
8173
8174
  },
8174
8175
  applicationKey: userOptions.applicationKey,
@@ -8439,7 +8440,7 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
8439
8440
  dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
8440
8441
  tracesSampleRate: 1,
8441
8442
  sampleRate: 1,
8442
- release: "4.8.0",
8443
+ release: "4.9.0",
8443
8444
  integrations: [],
8444
8445
  tracePropagationTargets: ["sentry.io/api"],
8445
8446
  stackParser: stackParser,
@@ -8509,6 +8510,7 @@ function setTelemetryDataOnScope(options, scope, buildTool) {
8509
8510
  project: Array.isArray(project) ? project.join(", ") : project !== null && project !== void 0 ? project : "undefined",
8510
8511
  bundler: buildTool
8511
8512
  });
8513
+ scope.setTag("bundler-major-version", options._metaOptions.telemetry.bundlerMajorVersion);
8512
8514
  scope.setUser({
8513
8515
  id: org
8514
8516
  });
@@ -9048,7 +9050,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
9048
9050
  });
9049
9051
 
9050
9052
  // Set the User-Agent that Sentry CLI will use when interacting with Sentry
9051
- process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.8.0");
9053
+ process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.9.0");
9052
9054
 
9053
9055
  // Propagate debug flag to Sentry CLI via environment variable
9054
9056
  // Only set if not already defined to respect user's explicit configuration