@sentry/bundler-plugin-core 2.22.5 → 2.22.7
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 +11 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +11 -11
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/sentry/logger.d.ts.map +1 -1
- package/dist/types/sentry/telemetry.d.ts.map +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +5 -5
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.7",
|
|
8114
8112
|
integrations: [],
|
|
8115
8113
|
tracePropagationTargets: ["sentry.io/api"],
|
|
8116
8114
|
stackParser: stackParser,
|
|
@@ -8174,6 +8172,7 @@ function setTelemetryDataOnScope(options, scope, bundler) {
|
|
|
8174
8172
|
scope.setTag("platform", process.platform);
|
|
8175
8173
|
scope.setTag("meta-framework", (_options$_metaOptions = options._metaOptions.telemetry.metaFramework) !== null && _options$_metaOptions !== void 0 ? _options$_metaOptions : "none");
|
|
8176
8174
|
scope.setTag("application-key-set", options.applicationKey !== undefined);
|
|
8175
|
+
scope.setTag("ci", !!process.env["CI"]);
|
|
8177
8176
|
scope.setTags({
|
|
8178
8177
|
organization: org,
|
|
8179
8178
|
project: project,
|
|
@@ -8935,6 +8934,7 @@ function telemetryPlugin(_ref) {
|
|
|
8935
8934
|
};
|
|
8936
8935
|
}
|
|
8937
8936
|
|
|
8937
|
+
// Logging everything to stderr not to interfere with stdout
|
|
8938
8938
|
function createLogger(options) {
|
|
8939
8939
|
return {
|
|
8940
8940
|
info: function info(message) {
|
|
@@ -8944,7 +8944,7 @@ function createLogger(options) {
|
|
|
8944
8944
|
params[_key - 1] = arguments[_key];
|
|
8945
8945
|
}
|
|
8946
8946
|
// eslint-disable-next-line no-console
|
|
8947
|
-
(_console = console).
|
|
8947
|
+
(_console = console).error.apply(_console, ["".concat(options.prefix, " Info: ").concat(message)].concat(params));
|
|
8948
8948
|
}
|
|
8949
8949
|
},
|
|
8950
8950
|
warn: function warn(message) {
|
|
@@ -8954,7 +8954,7 @@ function createLogger(options) {
|
|
|
8954
8954
|
params[_key2 - 1] = arguments[_key2];
|
|
8955
8955
|
}
|
|
8956
8956
|
// eslint-disable-next-line no-console
|
|
8957
|
-
(_console2 = console).
|
|
8957
|
+
(_console2 = console).error.apply(_console2, ["".concat(options.prefix, " Warning: ").concat(message)].concat(params));
|
|
8958
8958
|
}
|
|
8959
8959
|
},
|
|
8960
8960
|
error: function error(message) {
|
|
@@ -8964,7 +8964,7 @@ function createLogger(options) {
|
|
|
8964
8964
|
params[_key3 - 1] = arguments[_key3];
|
|
8965
8965
|
}
|
|
8966
8966
|
// eslint-disable-next-line no-console
|
|
8967
|
-
(_console3 = console).
|
|
8967
|
+
(_console3 = console).error.apply(_console3, ["".concat(options.prefix, " Error: ").concat(message)].concat(params));
|
|
8968
8968
|
}
|
|
8969
8969
|
},
|
|
8970
8970
|
debug: function debug(message) {
|
|
@@ -8974,7 +8974,7 @@ function createLogger(options) {
|
|
|
8974
8974
|
params[_key4 - 1] = arguments[_key4];
|
|
8975
8975
|
}
|
|
8976
8976
|
// eslint-disable-next-line no-console
|
|
8977
|
-
(_console4 = console).
|
|
8977
|
+
(_console4 = console).error.apply(_console4, ["".concat(options.prefix, " Debug: ").concat(message)].concat(params));
|
|
8978
8978
|
}
|
|
8979
8979
|
}
|
|
8980
8980
|
};
|
|
@@ -9144,7 +9144,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
9144
9144
|
});
|
|
9145
9145
|
|
|
9146
9146
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
9147
|
-
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.22.
|
|
9147
|
+
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.22.7");
|
|
9148
9148
|
function handleRecoverableError(unknownError) {
|
|
9149
9149
|
sentrySession.status = "abnormal";
|
|
9150
9150
|
try {
|