@sentry/bundler-plugin-core 2.22.5 → 2.22.6
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 +5 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +5 -7
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.js
CHANGED
|
@@ -579,14 +579,12 @@ function lookupPackageJson(cwd, stopAt) {
|
|
|
579
579
|
* Deterministically hashes a string and turns the hash into a uuid.
|
|
580
580
|
*/
|
|
581
581
|
function stringToUUID(str) {
|
|
582
|
-
var
|
|
583
|
-
md5sum.update(str);
|
|
584
|
-
var md5Hash = md5sum.digest("hex");
|
|
582
|
+
var sha256Hash = crypto__default["default"].createHash("sha256").update(str).digest("hex");
|
|
585
583
|
|
|
586
584
|
// Position 16 is fixed to either 8, 9, a, or b in the uuid v4 spec (10xx in binary)
|
|
587
585
|
// RFC 4122 section 4.4
|
|
588
|
-
var v4variant = ["8", "9", "a", "b"][
|
|
589
|
-
return (
|
|
586
|
+
var v4variant = ["8", "9", "a", "b"][sha256Hash.substring(16, 17).charCodeAt(0) % 4];
|
|
587
|
+
return (sha256Hash.substring(0, 8) + "-" + sha256Hash.substring(8, 12) + "-4" + sha256Hash.substring(13, 16) + "-" + v4variant + sha256Hash.substring(17, 20) + "-" + sha256Hash.substring(20, 32)).toLowerCase();
|
|
590
588
|
}
|
|
591
589
|
function gitRevision() {
|
|
592
590
|
var gitRevision;
|
|
@@ -8110,7 +8108,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
|
|
|
8110
8108
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
8111
8109
|
tracesSampleRate: 1,
|
|
8112
8110
|
sampleRate: 1,
|
|
8113
|
-
release: "2.22.
|
|
8111
|
+
release: "2.22.6",
|
|
8114
8112
|
integrations: [],
|
|
8115
8113
|
tracePropagationTargets: ["sentry.io/api"],
|
|
8116
8114
|
stackParser: stackParser,
|
|
@@ -9144,7 +9142,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
9144
9142
|
});
|
|
9145
9143
|
|
|
9146
9144
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
9147
|
-
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.22.
|
|
9145
|
+
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.22.6");
|
|
9148
9146
|
function handleRecoverableError(unknownError) {
|
|
9149
9147
|
sentrySession.status = "abnormal";
|
|
9150
9148
|
try {
|