@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/cjs/index.js
CHANGED
|
@@ -694,7 +694,7 @@ function generateGlobalInjectorCode(_ref2) {
|
|
|
694
694
|
injectBuildInformation = _ref2.injectBuildInformation;
|
|
695
695
|
// The code below is mostly ternary operators because it saves bundle size.
|
|
696
696
|
// The checks are to support as many environments as possible. (Node.js, Browser, webworkers, etc.)
|
|
697
|
-
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
|
|
697
|
+
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), "};");
|
|
698
698
|
if (injectBuildInformation) {
|
|
699
699
|
var buildInfo = getBuildInformation$1();
|
|
700
700
|
code += "\n _global.SENTRY_BUILD_INFO=".concat(JSON.stringify(buildInfo), ";");
|
|
@@ -13659,7 +13659,7 @@ function createSentryInstance(options, shouldSendTelemetry, bundler) {
|
|
|
13659
13659
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
13660
13660
|
tracesSampleRate: 1,
|
|
13661
13661
|
sampleRate: 1,
|
|
13662
|
-
release: "2.22.
|
|
13662
|
+
release: "2.22.1",
|
|
13663
13663
|
integrations: [],
|
|
13664
13664
|
tracePropagationTargets: ["sentry.io/api"],
|
|
13665
13665
|
stackParser: defaultStackParser,
|
|
@@ -14623,7 +14623,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
14623
14623
|
});
|
|
14624
14624
|
|
|
14625
14625
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
14626
|
-
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.22.
|
|
14626
|
+
process.env["SENTRY_PIPELINE"] = "".concat(unpluginMetaContext.framework, "-plugin/", "2.22.1");
|
|
14627
14627
|
function handleRecoverableError(unknownError) {
|
|
14628
14628
|
sentrySession.status = "abnormal";
|
|
14629
14629
|
try {
|
|
@@ -14762,9 +14762,7 @@ function sentryUnpluginFactory(_ref) {
|
|
|
14762
14762
|
var _injectionCode2 = generateModuleMetadataInjectorCode(metadata);
|
|
14763
14763
|
plugins.push(moduleMetadataInjectionPlugin(_injectionCode2));
|
|
14764
14764
|
}
|
|
14765
|
-
if (
|
|
14766
|
-
logger.debug("Source map upload was disabled. Will not upload sourcemaps.");
|
|
14767
|
-
} else if (!options.release.name) {
|
|
14765
|
+
if (!options.release.name) {
|
|
14768
14766
|
logger.warn("No release name provided. Will not create release. Please set the `release.name` option to identify your release.");
|
|
14769
14767
|
} else if (!options.authToken) {
|
|
14770
14768
|
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/");
|
|
@@ -14798,7 +14796,9 @@ function sentryUnpluginFactory(_ref) {
|
|
|
14798
14796
|
}));
|
|
14799
14797
|
}
|
|
14800
14798
|
plugins.push(debugIdInjectionPlugin(logger));
|
|
14801
|
-
if (
|
|
14799
|
+
if ((_options$sourcemaps = options.sourcemaps) !== null && _options$sourcemaps !== void 0 && _options$sourcemaps.disable) {
|
|
14800
|
+
logger.debug("Source map upload was disabled. Will not upload sourcemaps using debug ID process.");
|
|
14801
|
+
} else if (!options.authToken) {
|
|
14802
14802
|
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/");
|
|
14803
14803
|
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
|
|
14804
14804
|
logger.warn("No org provided. Will not upload source maps. Please set the `org` option to your Sentry organization slug.");
|