Skip to content

Commit 9a6f98e

Browse files
authored
fix(node): Remove trailing slash in @sentry/utils import (#5776)
This removes a trailing slash which somehow crept into an `@sentry/utils` import when the request-data-adding functions were moved back to node. As a result of the trailing slash, Rollup doesn't recognize the import as external, which leads to the inclusion of files from the utils package in the node build, as well as an incorrect file structure (the root which is used for `build/cjs` and `build/esm` becomes `packages` rather than `packages/node/src`).
1 parent 1adb424 commit 9a6f98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/requestdata.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Event, ExtractedNodeRequestData, PolymorphicRequest, Transaction, TransactionSource } from '@sentry/types';
2-
import { isPlainObject, isString, normalize, stripUrlQueryAndFragment } from '@sentry/utils/';
2+
import { isPlainObject, isString, normalize, stripUrlQueryAndFragment } from '@sentry/utils';
33
import * as cookie from 'cookie';
44
import * as url from 'url';
55

0 commit comments

Comments
 (0)