@sentry/bundler-plugin-core 2.22.0 → 2.22.1
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 +7 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -654,7 +654,7 @@ function generateGlobalInjectorCode(_ref2) {
|
|
|
654
654
|
injectBuildInformation = _ref2.injectBuildInformation;
|
|
655
655
|
// The code below is mostly ternary operators because it saves bundle size.
|
|
656
656
|
// The checks are to support as many environments as possible. (Node.js, Browser, webworkers, etc.)
|
|
657
|
-
var code = "\n var _global =\n typeof window !== 'undefined' ?\n window :\n typeof global !== 'undefined' ?\n global :\n typeof self !== 'undefined' ?\n self :\n {};\n\n _global.SENTRY_RELEASE={id
|
|
657
|
+
var code = "\n var _global =\n typeof window !== 'undefined' ?\n window :\n typeof global !== 'undefined' ?\n global :\n typeof self !== 'undefined' ?\n self :\n {};\n\n _global.SENTRY_RELEASE={id:".concat(JSON.stringify(release), "};");
|
|
658
658
|
if (injectBuildInformation) {
|
|
659
659
|
var buildInfo = getBuildInformation$1();
|
|
660
660
|
code += "\n _global.SENTRY_BUILD_INFO=".concat(JSON.stringify(buildInfo), ";");
|
|
@@ -13619,7 +13619,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
|
|
|
13619
13619
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
13620
13620
|
tracesSampleRate: 1,
|
|
13621
13621
|
sampleRate: 1,
|
|
13622
|
-
release: "2.22.
|
|
13622
|
+
release: "2.22.1",
|
|
13623
13623
|
integrations: [],
|
|
13624
13624
|
tracePropagationTargets: ["sentry.io/api"],
|
|
13625
13625
|
stackParser: defaultStackParser,
|
|
@@ -14583,7 +14583,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
14583
14583
|
});
|
|
14584
14584
|
|
|
14585
14585
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
14586
|
-
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.22.
|
|
14586
|
+
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.22.1");
|
|
14587
14587
|
function handleRecoverableError(unknownError) {
|
|
14588
14588
|
sentrySession.status = "abnormal";
|
|
14589
14589
|
try {
|
|
@@ -14722,9 +14722,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
14722
14722
|
var _injectionCode2 = generateModuleMetadataInjectorCode(metadata);
|
|
14723
14723
|
plugins.push(moduleMetadataInjectionPlugin(_injectionCode2));
|
|
14724
14724
|
}
|
|
14725
|
-
if (
|
|
14726
|
-
logger.debug("Source map upload was disabled. Will not upload sourcemaps.");
|
|
14727
|
-
} else if (!options.release.name) {
|
|
14725
|
+
if (!options.release.name) {
|
|
14728
14726
|
logger.warn("No release name provided. Will not create release. Please set the `release.name` option to identify your release.");
|
|
14729
14727
|
} else if (!options.authToken) {
|
|
14730
14728
|
logger.warn("No auth token provided. Will not create release. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/");
|
|
@@ -14758,7 +14756,9 @@ function sentryUnpluginFactory(_ref) {
|
|
|
14758
14756
|
}));
|
|
14759
14757
|
}
|
|
14760
14758
|
plugins.push(debugIdInjectionPlugin(logger));
|
|
14761
|
-
if (
|
|
14759
|
+
if ((_options$sourcemaps = options.sourcemaps) !== null && _options$sourcemaps !== void 0 && _options$sourcemaps.disable) {
|
|
14760
|
+
logger.debug("Source map upload was disabled. Will not upload sourcemaps using debug ID process.");
|
|
14761
|
+
} else if (!options.authToken) {
|
|
14762
14762
|
logger.warn("No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/");
|
|
14763
14763
|
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
|
|
14764
14764
|
logger.warn("No org provided. Will not upload source maps. Please set the `org` option to your Sentry organization slug.");
|