From 6771950873a562321c3a0b0b343f191de6d97da0 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Tue, 23 Jul 2024 11:29:56 +0200 Subject: [PATCH 1/3] feat: Extend ESM hooks options for iitm v1.10.0 --- packages/node/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node/src/types.ts b/packages/node/src/types.ts index dbdbdd1b1178..9604b31ddb22 100644 --- a/packages/node/src/types.ts +++ b/packages/node/src/types.ts @@ -5,8 +5,8 @@ import type { ClientOptions, Options, SamplingContext, Scope, Span, TracePropaga import type { NodeTransportOptions } from './transports'; export interface EsmLoaderHookOptions { - include?: string[]; - exclude?: string[]; + include?: Array; + exclude?: Array; } export interface BaseNodeOptions { From 8f18e7d3c2438ba7f5976fac3d5bd768eff5fc89 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Tue, 23 Jul 2024 11:46:27 +0200 Subject: [PATCH 2/3] Add `import-in-the-middle` as a direct dependency --- packages/node/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/node/package.json b/packages/node/package.json index 2ef2e1499b9c..71f8c6bae267 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -91,7 +91,8 @@ "@sentry/core": "8.19.0", "@sentry/opentelemetry": "8.19.0", "@sentry/types": "8.19.0", - "@sentry/utils": "8.19.0" + "@sentry/utils": "8.19.0", + "import-in-the-middle": "^1.10.0" }, "devDependencies": { "@types/node": "^14.18.0" From cdd84ca5d0ecc1473a64a1785c81af76493505a2 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Tue, 23 Jul 2024 13:55:00 +0200 Subject: [PATCH 3/3] Update yarn.lock --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index ebb196a902b2..0a1f6d225449 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20472,10 +20472,10 @@ import-in-the-middle@1.7.1: cjs-module-lexer "^1.2.2" module-details-from-path "^1.0.3" -import-in-the-middle@^1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.8.1.tgz#8b51c2cc631b64e53e958d7048d2d9463ce628f8" - integrity sha512-yhRwoHtiLGvmSozNOALgjRPFI6uYsds60EoMqqnXyyv+JOIW/BrrLejuTGBt+bq0T5tLzOHrN0T7xYTm4Qt/ng== +import-in-the-middle@^1.10.0, import-in-the-middle@^1.8.1: + version "1.10.0" + resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.10.0.tgz#f15b0841950ded8d899b635058da5646256949b1" + integrity sha512-Z1jumVdF2GwnnYfM0a/y2ts7mZbwFMgt5rRuVmLgobgahC6iKgN5MBuXjzfTIOUpq5LSU10vJIPpVKe0X89fIw== dependencies: acorn "^8.8.2" acorn-import-attributes "^1.9.5"