@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/cjs/index.js
CHANGED
|
@@ -8430,7 +8430,7 @@ function makeOptionallyEnabledNodeTransport(shouldSendTelemetry) {
|
|
|
8430
8430
|
|
|
8431
8431
|
var SENTRY_SAAS_HOSTNAME = "sentry.io";
|
|
8432
8432
|
var stackParser = createStackParser(nodeStackLineParser());
|
|
8433
|
-
function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
8433
|
+
function createSentryInstance(options, shouldSendTelemetry, buildTool, buildToolMajorVersion) {
|
|
8434
8434
|
var clientOptions = {
|
|
8435
8435
|
platform: "node",
|
|
8436
8436
|
runtime: {
|
|
@@ -8440,7 +8440,7 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
|
8440
8440
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
8441
8441
|
tracesSampleRate: 1,
|
|
8442
8442
|
sampleRate: 1,
|
|
8443
|
-
release: "4.9.
|
|
8443
|
+
release: "4.9.1",
|
|
8444
8444
|
integrations: [],
|
|
8445
8445
|
tracePropagationTargets: ["sentry.io/api"],
|
|
8446
8446
|
stackParser: stackParser,
|
|
@@ -8464,13 +8464,13 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
|
8464
8464
|
var client = new ServerRuntimeClient(clientOptions);
|
|
8465
8465
|
var scope = new Scope();
|
|
8466
8466
|
scope.setClient(client);
|
|
8467
|
-
setTelemetryDataOnScope(options, scope, buildTool);
|
|
8467
|
+
setTelemetryDataOnScope(options, scope, buildTool, buildToolMajorVersion);
|
|
8468
8468
|
return {
|
|
8469
8469
|
sentryScope: scope,
|
|
8470
8470
|
sentryClient: client
|
|
8471
8471
|
};
|
|
8472
8472
|
}
|
|
8473
|
-
function setTelemetryDataOnScope(options, scope, buildTool) {
|
|
8473
|
+
function setTelemetryDataOnScope(options, scope, buildTool, buildToolMajorVersion) {
|
|
8474
8474
|
var _options$_metaOptions;
|
|
8475
8475
|
var org = options.org,
|
|
8476
8476
|
project = options.project,
|
|
@@ -8510,7 +8510,9 @@ function setTelemetryDataOnScope(options, scope, buildTool) {
|
|
|
8510
8510
|
project: Array.isArray(project) ? project.join(", ") : project !== null && project !== void 0 ? project : "undefined",
|
|
8511
8511
|
bundler: buildTool
|
|
8512
8512
|
});
|
|
8513
|
-
|
|
8513
|
+
if (buildToolMajorVersion) {
|
|
8514
|
+
scope.setTag("bundler-major-version", buildToolMajorVersion);
|
|
8515
|
+
}
|
|
8514
8516
|
scope.setUser({
|
|
8515
8517
|
id: org
|
|
8516
8518
|
});
|
|
@@ -9019,7 +9021,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
9019
9021
|
};
|
|
9020
9022
|
}
|
|
9021
9023
|
var shouldSendTelemetry = allowedToSendTelemetry(options);
|
|
9022
|
-
var _createSentryInstance = createSentryInstance(options, shouldSendTelemetry, bundlerPluginMetaContext.buildTool),
|
|
9024
|
+
var _createSentryInstance = createSentryInstance(options, shouldSendTelemetry, bundlerPluginMetaContext.buildTool, bundlerPluginMetaContext.buildToolMajorVersion),
|
|
9023
9025
|
sentryScope = _createSentryInstance.sentryScope,
|
|
9024
9026
|
sentryClient = _createSentryInstance.sentryClient;
|
|
9025
9027
|
var _sentryClient$getOpti = sentryClient.getOptions(),
|
|
@@ -9050,7 +9052,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
9050
9052
|
});
|
|
9051
9053
|
|
|
9052
9054
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
9053
|
-
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.9.
|
|
9055
|
+
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.9.1");
|
|
9054
9056
|
|
|
9055
9057
|
// Propagate debug flag to Sentry CLI via environment variable
|
|
9056
9058
|
// Only set if not already defined to respect user's explicit configuration
|
|
@@ -9902,14 +9904,16 @@ function sentryUnpluginFactory(_ref) {
|
|
|
9902
9904
|
var injectionPlugin = _ref.injectionPlugin,
|
|
9903
9905
|
componentNameAnnotatePlugin = _ref.componentNameAnnotatePlugin,
|
|
9904
9906
|
debugIdUploadPlugin = _ref.debugIdUploadPlugin,
|
|
9905
|
-
bundleSizeOptimizationsPlugin = _ref.bundleSizeOptimizationsPlugin
|
|
9907
|
+
bundleSizeOptimizationsPlugin = _ref.bundleSizeOptimizationsPlugin,
|
|
9908
|
+
getBundlerMajorVersion = _ref.getBundlerMajorVersion;
|
|
9906
9909
|
return unplugin.createUnplugin(function () {
|
|
9907
9910
|
var _userOptions$_metaOpt, _userOptions$_metaOpt2, _options$sourcemaps, _options$sourcemaps3;
|
|
9908
9911
|
var userOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
9909
9912
|
var unpluginMetaContext = arguments.length > 1 ? arguments[1] : undefined;
|
|
9910
9913
|
var sentryBuildPluginManager = createSentryBuildPluginManager(userOptions, {
|
|
9911
9914
|
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]"),
|
|
9912
|
-
buildTool: unpluginMetaContext.framework
|
|
9915
|
+
buildTool: unpluginMetaContext.framework,
|
|
9916
|
+
buildToolMajorVersion: getBundlerMajorVersion === null || getBundlerMajorVersion === void 0 ? void 0 : getBundlerMajorVersion()
|
|
9913
9917
|
});
|
|
9914
9918
|
var logger = sentryBuildPluginManager.logger,
|
|
9915
9919
|
options = sentryBuildPluginManager.normalizedOptions,
|