@sentry/bundler-plugin-core 2.7.0 → 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 +16 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +16 -9
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/types.d.ts +3 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -540,17 +540,20 @@ function stringToUUID(str) {
|
|
|
540
540
|
var v4variant = ["8", "9", "a", "b"][md5Hash.substring(16, 17).charCodeAt(0) % 4];
|
|
541
541
|
return (md5Hash.substring(0, 8) + "-" + md5Hash.substring(8, 12) + "-4" + md5Hash.substring(13, 16) + "-" + v4variant + md5Hash.substring(17, 20) + "-" + md5Hash.substring(20)).toLowerCase();
|
|
542
542
|
}
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* Tries to guess a release name based on environmental data.
|
|
546
|
-
*/
|
|
547
|
-
function determineReleaseName() {
|
|
543
|
+
function gitRevision() {
|
|
548
544
|
var gitRevision;
|
|
549
545
|
try {
|
|
550
546
|
gitRevision = childProcess.execSync("git rev-parse HEAD").toString().trim();
|
|
551
547
|
} catch (e) {
|
|
552
548
|
// noop
|
|
553
549
|
}
|
|
550
|
+
return gitRevision;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Tries to guess a release name based on environmental data.
|
|
555
|
+
*/
|
|
556
|
+
function determineReleaseName() {
|
|
554
557
|
return (
|
|
555
558
|
// GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
|
|
556
559
|
process.env["GITHUB_SHA"] ||
|
|
@@ -560,12 +563,16 @@ function determineReleaseName() {
|
|
|
560
563
|
process.env["CF_PAGES_COMMIT_SHA"] ||
|
|
561
564
|
// AWS CodeBuild - https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
|
|
562
565
|
process.env["CODEBUILD_RESOLVED_SOURCE_VERSION"] ||
|
|
566
|
+
// Bitbucket - https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/
|
|
567
|
+
process.env["BITBUCKET_COMMIT"] ||
|
|
563
568
|
// CircleCI - https://circleci.com/docs/2.0/env-vars/
|
|
564
569
|
process.env["CIRCLE_SHA1"] ||
|
|
565
570
|
// Vercel - https://vercel.com/docs/v2/build-step#system-environment-variables
|
|
566
571
|
process.env["VERCEL_GIT_COMMIT_SHA"] || process.env["VERCEL_GITHUB_COMMIT_SHA"] || process.env["VERCEL_GITLAB_COMMIT_SHA"] || process.env["VERCEL_BITBUCKET_COMMIT_SHA"] ||
|
|
567
572
|
// Zeit (now known as Vercel)
|
|
568
|
-
process.env["ZEIT_GITHUB_COMMIT_SHA"] || process.env["ZEIT_GITLAB_COMMIT_SHA"] || process.env["ZEIT_BITBUCKET_COMMIT_SHA"] ||
|
|
573
|
+
process.env["ZEIT_GITHUB_COMMIT_SHA"] || process.env["ZEIT_GITLAB_COMMIT_SHA"] || process.env["ZEIT_BITBUCKET_COMMIT_SHA"] ||
|
|
574
|
+
// Flightcontrol - https://www.flightcontrol.dev/docs/guides/flightcontrol/environment-variables#built-in-environment-variables
|
|
575
|
+
process.env["FC_GIT_COMMIT_SHA"] || gitRevision()
|
|
569
576
|
);
|
|
570
577
|
}
|
|
571
578
|
|
|
@@ -1111,7 +1118,7 @@ function _prepareSourceMapForDebugIdUpload() {
|
|
|
1111
1118
|
return _context7.abrupt("return");
|
|
1112
1119
|
case 20:
|
|
1113
1120
|
if (map["sources"] && Array.isArray(map["sources"])) {
|
|
1114
|
-
map["sources"].map(function (source) {
|
|
1121
|
+
map["sources"] = map["sources"].map(function (source) {
|
|
1115
1122
|
return rewriteSourcesHook(source, map);
|
|
1116
1123
|
});
|
|
1117
1124
|
}
|
|
@@ -1333,7 +1340,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
|
|
|
1333
1340
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
1334
1341
|
tracesSampleRate: 1,
|
|
1335
1342
|
sampleRate: 1,
|
|
1336
|
-
release: "2.
|
|
1343
|
+
release: "2.8.0",
|
|
1337
1344
|
integrations: [],
|
|
1338
1345
|
tracePropagationTargets: ["sentry.io/api"],
|
|
1339
1346
|
stackParser: defaultStackParser,
|
|
@@ -1565,7 +1572,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
1565
1572
|
});
|
|
1566
1573
|
|
|
1567
1574
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
1568
|
-
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.
|
|
1575
|
+
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.8.0");
|
|
1569
1576
|
function handleRecoverableError(unknownError) {
|
|
1570
1577
|
sentrySession.status = "abnormal";
|
|
1571
1578
|
try {
|