@sentry/bundler-plugin-core 2.7.1 → 2.8.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
@@ -574,17 +574,20 @@ function stringToUUID(str) {
574
574
  var v4variant = ["8", "9", "a", "b"][md5Hash.substring(16, 17).charCodeAt(0) % 4];
575
575
  return (md5Hash.substring(0, 8) + "-" + md5Hash.substring(8, 12) + "-4" + md5Hash.substring(13, 16) + "-" + v4variant + md5Hash.substring(17, 20) + "-" + md5Hash.substring(20)).toLowerCase();
576
576
  }
577
-
578
- /**
579
- * Tries to guess a release name based on environmental data.
580
- */
581
- function determineReleaseName() {
577
+ function gitRevision() {
582
578
  var gitRevision;
583
579
  try {
584
580
  gitRevision = childProcess__default["default"].execSync("git rev-parse HEAD").toString().trim();
585
581
  } catch (e) {
586
582
  // noop
587
583
  }
584
+ return gitRevision;
585
+ }
586
+
587
+ /**
588
+ * Tries to guess a release name based on environmental data.
589
+ */
590
+ function determineReleaseName() {
588
591
  return (
589
592
  // GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
590
593
  process.env["GITHUB_SHA"] ||
@@ -594,12 +597,16 @@ function determineReleaseName() {
594
597
  process.env["CF_PAGES_COMMIT_SHA"] ||
595
598
  // AWS CodeBuild - https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
596
599
  process.env["CODEBUILD_RESOLVED_SOURCE_VERSION"] ||
600
+ // Bitbucket - https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/
601
+ process.env["BITBUCKET_COMMIT"] ||
597
602
  // CircleCI - https://circleci.com/docs/2.0/env-vars/
598
603
  process.env["CIRCLE_SHA1"] ||
599
604
  // Vercel - https://vercel.com/docs/v2/build-step#system-environment-variables
600
605
  process.env["VERCEL_GIT_COMMIT_SHA"] || process.env["VERCEL_GITHUB_COMMIT_SHA"] || process.env["VERCEL_GITLAB_COMMIT_SHA"] || process.env["VERCEL_BITBUCKET_COMMIT_SHA"] ||
601
606
  // Zeit (now known as Vercel)
602
- process.env["ZEIT_GITHUB_COMMIT_SHA"] || process.env["ZEIT_GITLAB_COMMIT_SHA"] || process.env["ZEIT_BITBUCKET_COMMIT_SHA"] || gitRevision
607
+ process.env["ZEIT_GITHUB_COMMIT_SHA"] || process.env["ZEIT_GITLAB_COMMIT_SHA"] || process.env["ZEIT_BITBUCKET_COMMIT_SHA"] ||
608
+ // Flightcontrol - https://www.flightcontrol.dev/docs/guides/flightcontrol/environment-variables#built-in-environment-variables
609
+ process.env["FC_GIT_COMMIT_SHA"] || gitRevision()
603
610
  );
604
611
  }
605
612
 
@@ -1367,7 +1374,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
1367
1374
  dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
1368
1375
  tracesSampleRate: 1,
1369
1376
  sampleRate: 1,
1370
- release: "2.7.1",
1377
+ release: "2.8.0",
1371
1378
  integrations: [],
1372
1379
  tracePropagationTargets: ["sentry.io/api"],
1373
1380
  stackParser: node.defaultStackParser,
@@ -1599,7 +1606,7 @@ function sentryUnpluginFactory(_ref) {
1599
1606
  });
1600
1607
 
1601
1608
  // Set the User-Agent that Sentry CLI will use when interacting with Sentry
1602
- process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.7.1");
1609
+ process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.8.0");
1603
1610
  function handleRecoverableError(unknownError) {
1604
1611
  sentrySession.status = "abnormal";
1605
1612
  try {