Skip to content

Commit 04a26a4

Browse files
authored
feat(node): Extend ESM hooks options for iitm v1.10.0 (#13016)
`[email protected]` supports regular expressions for `include` and `exclude`. Is there a risk here that users might not have the latest version of `import-in-the-middle` in their dependencies?
1 parent 65042b5 commit 04a26a4

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

packages/node/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
"@sentry/core": "8.19.0",
9292
"@sentry/opentelemetry": "8.19.0",
9393
"@sentry/types": "8.19.0",
94-
"@sentry/utils": "8.19.0"
94+
"@sentry/utils": "8.19.0",
95+
"import-in-the-middle": "^1.10.0"
9596
},
9697
"devDependencies": {
9798
"@types/node": "^14.18.0"

packages/node/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type { ClientOptions, Options, SamplingContext, Scope, Span, TracePropaga
55
import type { NodeTransportOptions } from './transports';
66

77
export interface EsmLoaderHookOptions {
8-
include?: string[];
9-
exclude?: string[];
8+
include?: Array<string | RegExp>;
9+
exclude?: Array<string | RegExp>;
1010
}
1111

1212
export interface BaseNodeOptions {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20493,10 +20493,10 @@ [email protected]:
2049320493
cjs-module-lexer "^1.2.2"
2049420494
module-details-from-path "^1.0.3"
2049520495

20496-
import-in-the-middle@^1.8.1:
20497-
version "1.8.1"
20498-
resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.8.1.tgz#8b51c2cc631b64e53e958d7048d2d9463ce628f8"
20499-
integrity sha512-yhRwoHtiLGvmSozNOALgjRPFI6uYsds60EoMqqnXyyv+JOIW/BrrLejuTGBt+bq0T5tLzOHrN0T7xYTm4Qt/ng==
20496+
import-in-the-middle@^1.10.0, import-in-the-middle@^1.8.1:
20497+
version "1.10.0"
20498+
resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.10.0.tgz#f15b0841950ded8d899b635058da5646256949b1"
20499+
integrity sha512-Z1jumVdF2GwnnYfM0a/y2ts7mZbwFMgt5rRuVmLgobgahC6iKgN5MBuXjzfTIOUpq5LSU10vJIPpVKe0X89fIw==
2050020500
dependencies:
2050120501
acorn "^8.8.2"
2050220502
acorn-import-attributes "^1.9.5"

0 commit comments

Comments
 (0)