@sentry/bundler-plugin-core 4.6.0 → 4.6.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 +38 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +38 -35
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/build-plugin-manager.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/esm/index.mjs
CHANGED
|
@@ -8299,7 +8299,7 @@ function createSentryInstance(options, shouldSendTelemetry, buildTool) {
|
|
|
8299
8299
|
dsn: "https://4c2bae7d9fbc413e8f7385f55c515d51@o1.ingest.sentry.io/6690737",
|
|
8300
8300
|
tracesSampleRate: 1,
|
|
8301
8301
|
sampleRate: 1,
|
|
8302
|
-
release: "4.6.
|
|
8302
|
+
release: "4.6.1",
|
|
8303
8303
|
integrations: [],
|
|
8304
8304
|
tracePropagationTargets: ["sentry.io/api"],
|
|
8305
8305
|
stackParser: stackParser,
|
|
@@ -8908,7 +8908,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
8908
8908
|
});
|
|
8909
8909
|
|
|
8910
8910
|
// Set the User-Agent that Sentry CLI will use when interacting with Sentry
|
|
8911
|
-
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.6.
|
|
8911
|
+
process.env["SENTRY_PIPELINE"] = "".concat(bundlerPluginMetaContext.buildTool, "-plugin/", "4.6.1");
|
|
8912
8912
|
|
|
8913
8913
|
// Propagate debug flag to Sentry CLI via environment variable
|
|
8914
8914
|
// Only set if not already defined to respect user's explicit configuration
|
|
@@ -9116,7 +9116,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
9116
9116
|
*/
|
|
9117
9117
|
createRelease: function createRelease() {
|
|
9118
9118
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
9119
|
-
var freeWriteBundleInvocationDependencyOnSourcemapFiles, cliInstance, normalizedInclude;
|
|
9119
|
+
var freeWriteBundleInvocationDependencyOnSourcemapFiles, cliInstance, releaseOutput, normalizedInclude;
|
|
9120
9120
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
9121
9121
|
while (1) switch (_context7.prev = _context7.next) {
|
|
9122
9122
|
case 0:
|
|
@@ -9161,14 +9161,17 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
9161
9161
|
_context7.prev = 24;
|
|
9162
9162
|
cliInstance = createCliInstance(options);
|
|
9163
9163
|
if (!options.release.create) {
|
|
9164
|
-
_context7.next =
|
|
9164
|
+
_context7.next = 31;
|
|
9165
9165
|
break;
|
|
9166
9166
|
}
|
|
9167
9167
|
_context7.next = 29;
|
|
9168
9168
|
return cliInstance.releases["new"](options.release.name);
|
|
9169
9169
|
case 29:
|
|
9170
|
+
releaseOutput = _context7.sent;
|
|
9171
|
+
logger.debug("Release created:", releaseOutput);
|
|
9172
|
+
case 31:
|
|
9170
9173
|
if (!options.release.uploadLegacySourcemaps) {
|
|
9171
|
-
_context7.next =
|
|
9174
|
+
_context7.next = 35;
|
|
9172
9175
|
break;
|
|
9173
9176
|
}
|
|
9174
9177
|
normalizedInclude = arrayify(options.release.uploadLegacySourcemaps).map(function (includeItem) {
|
|
@@ -9185,7 +9188,7 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
9185
9188
|
ignore: includeEntry.ignore ? arrayify(includeEntry.ignore) : undefined
|
|
9186
9189
|
});
|
|
9187
9190
|
});
|
|
9188
|
-
_context7.next =
|
|
9191
|
+
_context7.next = 35;
|
|
9189
9192
|
return cliInstance.releases.uploadSourceMaps(options.release.name, {
|
|
9190
9193
|
include: normalizedInclude,
|
|
9191
9194
|
dist: options.release.dist,
|
|
@@ -9194,66 +9197,66 @@ function createSentryBuildPluginManager(userOptions, bundlerPluginMetaContext) {
|
|
|
9194
9197
|
// see: https://github.com/getsentry/sentry-cli/pull/2605
|
|
9195
9198
|
live: "rejectOnError"
|
|
9196
9199
|
});
|
|
9197
|
-
case
|
|
9200
|
+
case 35:
|
|
9198
9201
|
if (!(options.release.setCommits !== false)) {
|
|
9199
|
-
_context7.next =
|
|
9202
|
+
_context7.next = 48;
|
|
9200
9203
|
break;
|
|
9201
9204
|
}
|
|
9202
|
-
_context7.prev =
|
|
9203
|
-
_context7.next =
|
|
9205
|
+
_context7.prev = 36;
|
|
9206
|
+
_context7.next = 39;
|
|
9204
9207
|
return cliInstance.releases.setCommits(options.release.name,
|
|
9205
9208
|
// set commits always exists due to the normalize function
|
|
9206
9209
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
9207
9210
|
options.release.setCommits);
|
|
9208
|
-
case 37:
|
|
9209
|
-
_context7.next = 46;
|
|
9210
|
-
break;
|
|
9211
9211
|
case 39:
|
|
9212
|
-
_context7.
|
|
9213
|
-
|
|
9212
|
+
_context7.next = 48;
|
|
9213
|
+
break;
|
|
9214
|
+
case 41:
|
|
9215
|
+
_context7.prev = 41;
|
|
9216
|
+
_context7.t0 = _context7["catch"](36);
|
|
9214
9217
|
if (!(options.release.setCommits && "shouldNotThrowOnFailure" in options.release.setCommits && options.release.setCommits.shouldNotThrowOnFailure)) {
|
|
9215
|
-
_context7.next =
|
|
9218
|
+
_context7.next = 47;
|
|
9216
9219
|
break;
|
|
9217
9220
|
}
|
|
9218
9221
|
logger.debug("An error occurred setting commits on release (this message can be ignored unless you commits on release are desired):", _context7.t0);
|
|
9219
|
-
_context7.next =
|
|
9222
|
+
_context7.next = 48;
|
|
9220
9223
|
break;
|
|
9221
|
-
case
|
|
9224
|
+
case 47:
|
|
9222
9225
|
throw _context7.t0;
|
|
9223
|
-
case
|
|
9226
|
+
case 48:
|
|
9224
9227
|
if (!options.release.finalize) {
|
|
9225
|
-
_context7.next =
|
|
9228
|
+
_context7.next = 51;
|
|
9226
9229
|
break;
|
|
9227
9230
|
}
|
|
9228
|
-
_context7.next =
|
|
9231
|
+
_context7.next = 51;
|
|
9229
9232
|
return cliInstance.releases.finalize(options.release.name);
|
|
9230
|
-
case
|
|
9233
|
+
case 51:
|
|
9231
9234
|
if (!options.release.deploy) {
|
|
9232
|
-
_context7.next =
|
|
9235
|
+
_context7.next = 54;
|
|
9233
9236
|
break;
|
|
9234
9237
|
}
|
|
9235
|
-
_context7.next =
|
|
9238
|
+
_context7.next = 54;
|
|
9236
9239
|
return cliInstance.releases.newDeploy(options.release.name, options.release.deploy);
|
|
9237
|
-
case 52:
|
|
9238
|
-
_context7.next = 60;
|
|
9239
|
-
break;
|
|
9240
9240
|
case 54:
|
|
9241
|
-
_context7.
|
|
9241
|
+
_context7.next = 62;
|
|
9242
|
+
break;
|
|
9243
|
+
case 56:
|
|
9244
|
+
_context7.prev = 56;
|
|
9242
9245
|
_context7.t1 = _context7["catch"](24);
|
|
9243
9246
|
sentryScope.captureException('Error in "releaseManagementPlugin" writeBundle hook');
|
|
9244
|
-
_context7.next =
|
|
9247
|
+
_context7.next = 61;
|
|
9245
9248
|
return safeFlushTelemetry(sentryClient);
|
|
9246
|
-
case
|
|
9249
|
+
case 61:
|
|
9247
9250
|
handleRecoverableError(_context7.t1, false);
|
|
9248
|
-
case
|
|
9249
|
-
_context7.prev =
|
|
9251
|
+
case 62:
|
|
9252
|
+
_context7.prev = 62;
|
|
9250
9253
|
freeWriteBundleInvocationDependencyOnSourcemapFiles();
|
|
9251
|
-
return _context7.finish(
|
|
9252
|
-
case
|
|
9254
|
+
return _context7.finish(62);
|
|
9255
|
+
case 65:
|
|
9253
9256
|
case "end":
|
|
9254
9257
|
return _context7.stop();
|
|
9255
9258
|
}
|
|
9256
|
-
}, _callee7, null, [[24,
|
|
9259
|
+
}, _callee7, null, [[24, 56, 62, 65], [36, 41]]);
|
|
9257
9260
|
}))();
|
|
9258
9261
|
},
|
|
9259
9262
|
/*
|