Skip to content

Commit fa8a726

Browse files
committed
fixes
1 parent 1d1c21f commit fa8a726

File tree

9 files changed

+10
-9
lines changed

9 files changed

+10
-9
lines changed

dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@total-typescript/ts-reset": "^0.4.2",
4242
"@types/eslint": "^8.4.10",
4343
"@types/react": "^18.2.22",
44+
"@types/node": "^18.19.1",
4445
"@types/react-dom": "^18.2.7",
4546
"esbuild": "0.25.0",
4647
"eslint": "^9.18.0",

dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"forceConsistentCasingInFileNames": true,
1515
"skipLibCheck": true,
1616
"baseUrl": ".",
17-
"types": ["@shopify/oxygen-workers-types"],
17+
"types": ["@shopify/oxygen-workers-types", "node"],
1818
"paths": {
1919
"~/*": ["app/*"]
2020
},

packages/browser-utils/src/metrics/instrument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function instrumentPerformanceObserver(type: InstrumentHandlerTypePerformanceObs
301301

302302
function addHandler(type: InstrumentHandlerType, handler: InstrumentHandlerCallback): void {
303303
handlers[type] = handlers[type] || [];
304-
(handlers[type] as InstrumentHandlerCallback[]).push(handler);
304+
handlers[type].push(handler);
305305
}
306306

307307
// Get a callback which can be called to remove the instrumentation handler

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export function constructWebpackConfigFunction({
331331
.map(extension => `global-error.${extension}`)
332332
.some(
333333
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
334-
globalErrorFile => fs.existsSync(path.join(appDirPath!, globalErrorFile)),
334+
globalErrorFile => fs.existsSync(path.join(appDirPath, globalErrorFile)),
335335
);
336336

337337
if (

packages/node-core/src/integrations/anr/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function applyDebugMeta(event: Event): void {
110110
for (const frame of exception.stacktrace?.frames || []) {
111111
const filename = frame.abs_path || frame.filename;
112112
if (filename && normalisedDebugImages[filename]) {
113-
filenameToDebugId.set(filename, normalisedDebugImages[filename] as string);
113+
filenameToDebugId.set(filename, normalisedDebugImages[filename]);
114114
}
115115
}
116116
}

packages/node-core/test/helpers/mockSdkInit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export function getSpanProcessor(): SentrySpanProcessor | undefined {
149149

150150
const spanProcessor = multiSpanProcessor?.['_spanProcessors']?.find(
151151
(spanProcessor: SpanProcessor) => spanProcessor instanceof SentrySpanProcessor,
152-
) as SentrySpanProcessor | undefined;
152+
);
153153

154154
return spanProcessor;
155155
}

packages/node-native/src/event-loop-block-watchdog.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function applyDebugMeta(event: Event, debugImages: Record<string, string>): void
149149
for (const frame of exception.stacktrace?.frames || []) {
150150
const filename = stripFileProtocol(frame.abs_path || frame.filename);
151151
if (filename && normalisedDebugImages[filename]) {
152-
filenameToDebugId.set(filename, normalisedDebugImages[filename] as string);
152+
filenameToDebugId.set(filename, normalisedDebugImages[filename]);
153153
}
154154
}
155155
}
@@ -158,7 +158,7 @@ function applyDebugMeta(event: Event, debugImages: Record<string, string>): void
158158
for (const frame of thread.stacktrace?.frames || []) {
159159
const filename = stripFileProtocol(frame.abs_path || frame.filename);
160160
if (filename && normalisedDebugImages[filename]) {
161-
filenameToDebugId.set(filename, normalisedDebugImages[filename] as string);
161+
filenameToDebugId.set(filename, normalisedDebugImages[filename]);
162162
}
163163
}
164164
}

packages/node/test/helpers/mockSdkInit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function getSpanProcessor(): SentrySpanProcessor | undefined {
6161

6262
const spanProcessor = multiSpanProcessor?.['_spanProcessors']?.find(
6363
(spanProcessor: SpanProcessor) => spanProcessor instanceof SentrySpanProcessor,
64-
) as SentrySpanProcessor | undefined;
64+
);
6565

6666
return spanProcessor;
6767
}

packages/remix/src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function storeFormDataKeys(
2929

3030
if (formDataKeys?.[key]) {
3131
if (typeof formDataKeys[key] === 'string') {
32-
attrKey = formDataKeys[key] as string;
32+
attrKey = formDataKeys[key];
3333
}
3434

3535
span.setAttribute(

0 commit comments

Comments
 (0)