@sentry/bundler-plugin-core 4.9.0 → 4.9.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 +13 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +13 -9
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/build-plugin-manager.d.ts +4 -0
- package/dist/types/build-plugin-manager.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/options-mapping.d.ts +0 -1
- package/dist/types/options-mapping.d.ts.map +1 -1
- package/dist/types/sentry/telemetry.d.ts +2 -2
- package/dist/types/sentry/telemetry.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -8393,7 +8393,7 @@ function makeOptionallyEnabledNodeTransport(shouldSendTelemetry) {
|
|
|
8393
8393
|
|
|
8394
8394
|
var SENTRY_SAAS_HOSTNAME = "sentry.io";
|
|
8395
8395
|
var stackParser = createStackParser(nodeStackLineParser());
|
|
8396
|
-
function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
8396
|
+
function createSentryInstance(options, shouldSendTelemetry, buildTool, buildToolMajorVersion) {
|
|
8397
8397
|
var clientOptions = {
|
|
8398
8398
|
platform: "node",
|
|
8399
8399
|
runtime: {
|
|
@@ -8403,7 +8403,7 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
|
8403
8403
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
8404
8404
|
tracesSampleRate: 1,
|
|
8405
8405
|
sampleRate: 1,
|
|
8406
|
-
release: "4.9.
|
|
8406
|
+
release: "4.9.1",
|
|
8407
8407
|
integrations: [],
|
|
8408
8408
|
tracePropagationTargets: ["sentry.io/api"],
|
|
8409
8409
|
stackParser: stackParser,
|
|
@@ -8427,13 +8427,13 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
|
8427
8427
|
var client = new ServerRuntimeClient(clientOptions);
|
|
8428
8428
|
var scope = new Scope();
|
|
8429
8429
|
scope.setClient(client);
|
|
8430
|
-
setTelemetryDataOnScope(options, scope, buildTool);
|
|
8430
|
+
setTelemetryDataOnScope(options, scope, buildTool, buildToolMajorVersion);
|
|
8431
8431
|
return {
|
|
8432
8432
|
sentryScope: scope,
|
|
8433
8433
|
sentryClient: client
|
|
8434
8434
|
};
|
|
8435
8435
|
}
|
|
8436
|
-
function setTelemetryDataOnScope(options, scope, buildTool) {
|
|
8436
|
+
function setTelemetryDataOnScope(options, scope, buildTool, buildToolMajorVersion) {
|
|
8437
8437
|
var _options$_metaOptions;
|
|
8438
8438
|
var org = options.org,
|
|
8439
8439
|
project = options.project,
|
|
@@ -8473,7 +8473,9 @@ function setTelemetryDataOnScope(options, scope, buildTool) {
|
|
|
8473
8473
|
project: Array.isArray(project) ? project.join(", ") : project !== null && project !== void 0 ? project : "undefined",
|
|
8474
8474
|
bundler: buildTool
|
|
8475
8475
|
});
|
|
8476
|
-
|
|
8476
|
+
if (buildToolMajorVersion) {
|
|
8477
|
+
scope.setTag("bundler-major-version", buildToolMajorVersion);
|
|
8478
|
+
}
|
|
8477
8479
|
scope.setUser({
|
|
8478
8480
|
id: org
|
|
8479
8481
|
});
|
|
@@ -8982,7 +8984,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
8982
8984
|
};
|
|
8983
8985
|
}
|
|
8984
8986
|
var shouldSendTelemetry = allowedToSendTelemetry(options);
|
|
8985
|
-
var _createSentryInstance = createSentryInstance(options, shouldSendTelemetry, bundlerPluginMetaContext.buildTool),
|
|
8987
|
+
var _createSentryInstance = createSentryInstance(options, shouldSendTelemetry, bundlerPluginMetaContext.buildTool, bundlerPluginMetaContext.buildToolMajorVersion),
|
|
8986
8988
|
sentryScope = _createSentryInstance.sentryScope,
|
|
8987
8989
|
sentryClient = _createSentryInstance.sentryClient;
|
|
8988
8990
|
var _sentryClient$getOpti = sentryClient.getOptions(),
|
|
@@ -9013,7 +9015,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
9013
9015
|
});
|
|
9014
9016
|
|
|
9015
9017
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
9016
|
-
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.9.
|
|
9018
|
+
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.9.1");
|
|
9017
9019
|
|
|
9018
9020
|
// Propagate debug flag to Sentry CLI via environment variable
|
|
9019
9021
|
// Only set if not already defined to respect user's explicit configuration
|
|
@@ -9865,14 +9867,16 @@ function sentryUnpluginFactory(_ref) {
|
|
|
9865
9867
|
var injectionPlugin = _ref.injectionPlugin,
|
|
9866
9868
|
componentNameAnnotatePlugin = _ref.componentNameAnnotatePlugin,
|
|
9867
9869
|
debugIdUploadPlugin = _ref.debugIdUploadPlugin,
|
|
9868
|
-
bundleSizeOptimizationsPlugin = _ref.bundleSizeOptimizationsPlugin
|
|
9870
|
+
bundleSizeOptimizationsPlugin = _ref.bundleSizeOptimizationsPlugin,
|
|
9871
|
+
getBundlerMajorVersion = _ref.getBundlerMajorVersion;
|
|
9869
9872
|
return createUnplugin(function () {
|
|
9870
9873
|
var _userOptions$_metaOpt, _userOptions$_metaOpt2, _options$sourcemaps, _options$sourcemaps3;
|
|
9871
9874
|
var userOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
9872
9875
|
var unpluginMetaContext = arguments.length > 1 ? arguments[1] : undefined;
|
|
9873
9876
|
var sentryBuildPluginManager = createSentryBuildPluginManager(userOptions, {
|
|
9874
9877
|
loggerPrefix: (_userOptions$_metaOpt = (_userOptions$_metaOpt2 = userOptions._metaOptions) === null || _userOptions$_metaOpt2 === void 0 ? void 0 : _userOptions$_metaOpt2.loggerPrefixOverride) !== null && _userOptions$_metaOpt !== void 0 ? _userOptions$_metaOpt : "[sentry-".concat(unpluginMetaContext.framework, "-plugin]"),
|
|
9875
|
-
buildTool: unpluginMetaContext.framework
|
|
9878
|
+
buildTool: unpluginMetaContext.framework,
|
|
9879
|
+
buildToolMajorVersion: getBundlerMajorVersion === null || getBundlerMajorVersion === void 0 ? void 0 : getBundlerMajorVersion()
|
|
9876
9880
|
});
|
|
9877
9881
|
var logger = sentryBuildPluginManager.logger,
|
|
9878
9882
|
options = sentryBuildPluginManager.normalizedOptions,
|