@sentry/bundler-plugin-core 3.6.1 → 4.0.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 CHANGED
@@ -7855,7 +7855,7 @@ function generateGlobalInjectorCode(_ref2) {
7855
7855
  // The checks are to support as many environments as possible. (Node.js, Browser, webworkers, etc.)
7856
7856
  var code = "{\n let _global =\n typeof window !== 'undefined' ?\n window :\n typeof global !== 'undefined' ?\n global :\n typeof globalThis !== 'undefined' ?\n globalThis :\n typeof self !== 'undefined' ?\n self :\n {};\n\n _global.SENTRY_RELEASE={id:".concat(JSON.stringify(release), "};");
7857
7857
  if (injectBuildInformation) {
7858
- var buildInfo = getBuildInformation$1();
7858
+ var buildInfo = getBuildInformation();
7859
7859
  code += "\n _global.SENTRY_BUILD_INFO=".concat(JSON.stringify(buildInfo), ";");
7860
7860
  }
7861
7861
  code += "}";
@@ -7869,7 +7869,7 @@ function generateModuleMetadataInjectorCode(metadata) {
7869
7869
  // We are merging the metadata objects in case modules are bundled twice with the plugin
7870
7870
  return "{\n let _sentryModuleMetadataGlobal =\n typeof window !== \"undefined\"\n ? window\n : typeof global !== \"undefined\"\n ? global\n : typeof globalThis !== \"undefined\"\n ? globalThis\n : typeof self !== \"undefined\"\n ? self\n : {};\n\n _sentryModuleMetadataGlobal._sentryModuleMetadata =\n _sentryModuleMetadataGlobal._sentryModuleMetadata || {};\n\n _sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack] =\n Object.assign(\n {},\n _sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack],\n ".concat(JSON.stringify(metadata), "\n );\n}");
7871
7871
  }
7872
- function getBuildInformation$1() {
7872
+ function getBuildInformation() {
7873
7873
  var packageJson = getPackageJson();
7874
7874
  var _ref3 = packageJson ? getDependencies(packageJson) : {
7875
7875
  deps: [],
@@ -8195,7 +8195,7 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
8195
8195
  dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
8196
8196
  tracesSampleRate: 1,
8197
8197
  sampleRate: 1,
8198
- release: "3.6.1",
8198
+ release: "4.0.0",
8199
8199
  integrations: [],
8200
8200
  tracePropagationTargets: ["sentry.io/api"],
8201
8201
  stackParser: stackParser,
@@ -8771,7 +8771,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
8771
8771
  });
8772
8772
 
8773
8773
  // Set the User-Agent that Sentry CLI will use when interacting with Sentry
8774
- process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "3.6.1");
8774
+ process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.0.0");
8775
8775
 
8776
8776
  // Not a bulletproof check but should be good enough to at least sometimes determine
8777
8777
  // if the plugin is called in dev/watch mode or for a prod build. The important part
@@ -9648,13 +9648,6 @@ function sentryUnpluginFactory(_ref) {
9648
9648
  });
9649
9649
  }
9650
9650
 
9651
- /**
9652
- * @deprecated This will be removed in v4
9653
- */
9654
- // TODO(v4): Don't export this from the package but keep the utils version
9655
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
9656
- var getBuildInformation = getBuildInformation$1;
9657
-
9658
9651
  /**
9659
9652
  * Determines whether the Sentry CLI binary is in its expected location.
9660
9653
  * This function is useful since `@sentry/cli` installs the binary via a post-install
@@ -9949,7 +9942,6 @@ exports.createRollupDebugIdUploadHooks = createRollupDebugIdUploadHooks;
9949
9942
  exports.createRollupModuleMetadataInjectionHooks = createRollupModuleMetadataInjectionHooks;
9950
9943
  exports.createRollupReleaseInjectionHooks = createRollupReleaseInjectionHooks;
9951
9944
  exports.createSentryBuildPluginManager = createSentryBuildPluginManager;
9952
- exports.getBuildInformation = getBuildInformation;
9953
9945
  exports.getDebugIdSnippet = getDebugIdSnippet;
9954
9946
  exports.replaceBooleanFlagsInCode = replaceBooleanFlagsInCode;
9955
9947
  exports.sentryCliBinaryExists = sentryCliBinaryExists;