Skip to content

Commit 457e22a

Browse files
committed
Fixes from cursor PR review
1 parent 22d4fe6 commit 457e22a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

packages/bundler-plugin-core/src/sentry/transports.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import type {
1212
TransportRequest,
1313
TransportRequestExecutor,
1414
} from "@sentry/types";
15-
import { join } from "node:path";
16-
import { appendFileSync } from "node:fs";
1715

1816
// Estimated maximum size for reasonable standalone event
1917
const GZIP_THRESHOLD = 1024 * 32;
@@ -122,6 +120,9 @@ export function makeOptionallyEnabledNodeTransport(
122120

123121
if (await shouldSendTelemetry) {
124122
if (process.env["SENTRY_TEST_OUT_DIR"]) {
123+
// eslint-disable-next-line @typescript-eslint/unbound-method
124+
const { join } = await import("node:path");
125+
const { appendFileSync } = await import("node:fs");
125126
const path = join(process.env["SENTRY_TEST_OUT_DIR"], "sentry-telemetry.json");
126127
appendFileSync(path, JSON.stringify(request) + ",\n");
127128
return { statusCode: 200 };

patches/@sentry+cli+2.58.5.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
diff --git a/node_modules/@sentry/cli/js/helper.js b/node_modules/@sentry/cli/js/helper.js
2-
index 56f95c9..b397122 100644
2+
index 56f95c9..b97e41b 100644
33
--- a/node_modules/@sentry/cli/js/helper.js
44
+++ b/node_modules/@sentry/cli/js/helper.js
5-
@@ -298,6 +298,13 @@ function execute(args_1, live_1, silent_1, configFile_1) {
6-
if (config.customHeader) {
7-
env.CUSTOM_HEADER = config.customHeader;
5+
@@ -295,6 +295,13 @@ function execute(args_1, live_1, silent_1, configFile_1) {
6+
if (config.vcsRemote) {
7+
env.SENTRY_VCS_REMOTE = config.vcsRemote;
88
}
99
+
1010
+ if (process.env['SENTRY_TEST_OUT_DIR']) {
@@ -13,6 +13,6 @@ index 56f95c9..b397122 100644
1313
+ return Promise.resolve();
1414
+ }
1515
+
16-
else if (config.headers) {
17-
const headers = Object.entries(config.headers).flatMap(([key, value]) => [
18-
'--header',
16+
if (config.customHeader) {
17+
env.CUSTOM_HEADER = config.customHeader;
18+
}

0 commit comments

Comments
 (0)