@sentry/bundler-plugin-core 4.3.0 → 4.4.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
|
@@ -8307,7 +8307,7 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
|
8307
8307
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
8308
8308
|
tracesSampleRate: 1,
|
|
8309
8309
|
sampleRate: 1,
|
|
8310
|
-
release: "4.
|
|
8310
|
+
release: "4.4.0",
|
|
8311
8311
|
integrations: [],
|
|
8312
8312
|
tracePropagationTargets: ["sentry.io/api"],
|
|
8313
8313
|
stackParser: stackParser,
|
|
@@ -8475,12 +8475,16 @@ function createDebugIdUploadFunction(_ref) {
|
|
|
8475
8475
|
var sentryBuildPluginManager = _ref.sentryBuildPluginManager;
|
|
8476
8476
|
return /*#__PURE__*/function () {
|
|
8477
8477
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(buildArtifactPaths) {
|
|
8478
|
+
var cleanedPaths;
|
|
8478
8479
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8479
8480
|
while (1) switch (_context.prev = _context.next) {
|
|
8480
8481
|
case 0:
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8482
|
+
// Webpack and perhaps other bundlers allow you to append query strings to
|
|
8483
|
+
// filenames for cache busting purposes. We should strip these before upload.
|
|
8484
|
+
cleanedPaths = buildArtifactPaths.map(stripQueryAndHashFromPath);
|
|
8485
|
+
_context.next = 3;
|
|
8486
|
+
return sentryBuildPluginManager.uploadSourcemaps(cleanedPaths);
|
|
8487
|
+
case 3:
|
|
8484
8488
|
case "end":
|
|
8485
8489
|
return _context.stop();
|
|
8486
8490
|
}
|
|
@@ -8910,7 +8914,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
8910
8914
|
});
|
|
8911
8915
|
|
|
8912
8916
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
8913
|
-
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.
|
|
8917
|
+
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.4.0");
|
|
8914
8918
|
|
|
8915
8919
|
// Not a bulletproof check but should be good enough to at least sometimes determine
|
|
8916
8920
|
// if the plugin is called in dev/watch mode or for a prod build. The important part
|