Skip to content

Commit b92b8ef

Browse files
committed
fix tests
1 parent 524a42a commit b92b8ef

File tree

5 files changed

+10
-86
lines changed

5 files changed

+10
-86
lines changed

packages/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@sentry/types": "8.10.0",
3838
"@sentry/utils": "8.10.0",
3939
"@sentry/vite-plugin": "2.18.0",
40-
"@sentry/vue": "8.9.2",
40+
"@sentry/vue": "8.10.0",
4141
"@nuxt/kit": "^3.12.2"
4242
},
4343
"devDependencies": {

packages/nuxt/src/client/sdk.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { applySdkMetadata } from '@sentry/core';
2-
import type { Options } from '@sentry/types';
32
import { init as initVue } from '@sentry/vue';
43
import type { SentryVueOptions } from '../common/types';
54

@@ -13,8 +12,7 @@ export function init(options: SentryVueOptions): void {
1312
...options,
1413
};
1514

16-
// Type cast to `Options` because Vue has slightly different options, but type is not highly relevant here
17-
applySdkMetadata(sentryOptions as Options, 'nuxt', ['nuxt', 'vue']);
15+
applySdkMetadata(sentryOptions, 'nuxt', ['nuxt', 'vue']);
1816

1917
initVue(sentryOptions);
2018
}

packages/nuxt/test/client/sdk.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { SDK_VERSION } from '@sentry/vue';
22
import * as SentryVue from '@sentry/vue';
3-
import { beforeEach, describe, vi } from 'vitest';
3+
import { beforeEach, describe, expect, it, vi } from 'vitest';
44
import { init } from '../../src/client';
55

66
const vueInit = vi.spyOn(SentryVue, 'init');

packages/vue/src/sdk.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { SDK_VERSION, getDefaultIntegrations, init as browserInit } from '@sentry/browser';
22

3+
import { applySdkMetadata } from '@sentry/core';
34
import { vueIntegration } from './integration';
45
import type { Options, TracingOptions } from './types';
56

@@ -26,5 +27,7 @@ export function init(
2627
...config,
2728
};
2829

30+
applySdkMetadata(config, 'nuxt', ['nuxt', 'vue']);
31+
2932
browserInit(options);
3033
}

yarn.lock

Lines changed: 4 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -7959,44 +7959,6 @@
79597959
"@angular-devkit/schematics" "14.2.13"
79607960
jsonc-parser "3.1.0"
79617961

7962-
"@sentry-internal/[email protected]":
7963-
version "8.9.2"
7964-
resolved "https://registry.yarnpkg.com/@sentry-internal/browser-utils/-/browser-utils-8.9.2.tgz#36b077fcb1a4ee8f2ed67437b2d9030c4e9e7586"
7965-
integrity sha512-2A0A6TnfzFDvYCRWS9My3t+JKG6KlslhyaN35BTiOTlYDauEekyJP7BFFyeTJXCHm2BQgI8aRZhBKm+oR9QuYw==
7966-
dependencies:
7967-
"@sentry/core" "8.9.2"
7968-
"@sentry/types" "8.9.2"
7969-
"@sentry/utils" "8.9.2"
7970-
7971-
"@sentry-internal/[email protected]":
7972-
version "8.9.2"
7973-
resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-8.9.2.tgz#0afa4c630820b49125ad4b9ad2b38db10de81134"
7974-
integrity sha512-v04Q+08ohwautwmiDfK5hI+nFW2B/IYhBz7pZM9x1srkwmNA69XOFyo5u34TeVHhYOPbMM2Ubs0uNEcSWHgbbQ==
7975-
dependencies:
7976-
"@sentry/core" "8.9.2"
7977-
"@sentry/types" "8.9.2"
7978-
"@sentry/utils" "8.9.2"
7979-
7980-
"@sentry-internal/[email protected]":
7981-
version "8.9.2"
7982-
resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-8.9.2.tgz#76ff2302f7dd6e3870a34b656e6b9b34e9275c18"
7983-
integrity sha512-vu9TssSjO+XbZjnoyYxMrBI4KgXG+zyqw3ThfPqG6o7O0BGa54fFwtZiMdGq/BHz017FuNiEz4fgtzuDd4gZJQ==
7984-
dependencies:
7985-
"@sentry-internal/replay" "8.9.2"
7986-
"@sentry/core" "8.9.2"
7987-
"@sentry/types" "8.9.2"
7988-
"@sentry/utils" "8.9.2"
7989-
7990-
"@sentry-internal/[email protected]":
7991-
version "8.9.2"
7992-
resolved "https://registry.yarnpkg.com/@sentry-internal/replay/-/replay-8.9.2.tgz#35460590a4be71ba050fd49de95e3f8b0f27e50f"
7993-
integrity sha512-YPnrnXJd6mJpJspJ8pI8hd1KTMOxw+BARP5twiDwXlij1RTotwnNoX9UGaSm+ZPTexPD++6Zyp6xQf4vKKP3yg==
7994-
dependencies:
7995-
"@sentry-internal/browser-utils" "8.9.2"
7996-
"@sentry/core" "8.9.2"
7997-
"@sentry/types" "8.9.2"
7998-
"@sentry/utils" "8.9.2"
7999-
80007962
"@sentry-internal/[email protected]":
80017963
version "2.11.0"
80027964
resolved "https://registry.yarnpkg.com/@sentry-internal/rrdom/-/rrdom-2.11.0.tgz#f7c8f54705ad84ece0e97e53f12e87c687749b32"
@@ -8073,19 +8035,6 @@
80738035
resolved "https://registry.yarnpkg.com/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-2.18.0.tgz#3bee98f94945643b0762ceed1f6cca60db52bdbd"
80748036
integrity sha512-9L4RbhS3WNtc/SokIhc0dwgcvs78YSQPakZejsrIgnzLzCi8mS6PeT+BY0+QCtsXxjd1egM8hqcJeB0lukBkXA==
80758037

8076-
8077-
version "8.9.2"
8078-
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-8.9.2.tgz#4cfd63449f0038718b5435a4537f3d11123a396b"
8079-
integrity sha512-jI5XY4j8Sa+YteokI+4SW+A/ErZxPDnspjvV3dm5pIPWvEFhvDyXWZSepqaoqwo3L7fdkRMzXY8Bi4T7qDVMWg==
8080-
dependencies:
8081-
"@sentry-internal/browser-utils" "8.9.2"
8082-
"@sentry-internal/feedback" "8.9.2"
8083-
"@sentry-internal/replay" "8.9.2"
8084-
"@sentry-internal/replay-canvas" "8.9.2"
8085-
"@sentry/core" "8.9.2"
8086-
"@sentry/types" "8.9.2"
8087-
"@sentry/utils" "8.9.2"
8088-
80898038
80908039
version "2.16.0"
80918040
resolved "https://registry.yarnpkg.com/@sentry/bundler-plugin-core/-/bundler-plugin-core-2.16.0.tgz#0c33e7a054fb56e43bd160ac141f71dfebf6dda5"
@@ -8168,26 +8117,6 @@
81688117
"@sentry/cli-win32-i686" "2.32.1"
81698118
"@sentry/cli-win32-x64" "2.32.1"
81708119

8171-
8172-
version "8.9.2"
8173-
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-8.9.2.tgz#af0f2ec25b88da5467cf327d2ffcd555323c30e6"
8174-
integrity sha512-ixm8NISFlPlEo3FjSaqmq4nnd13BRHoafwJ5MG+okCz6BKGZ1SexEggP42/QpGvDprUUHnfncG6WUMgcarr1zA==
8175-
dependencies:
8176-
"@sentry/types" "8.9.2"
8177-
"@sentry/utils" "8.9.2"
8178-
8179-
8180-
version "8.9.2"
8181-
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-8.9.2.tgz#d143383fc35552d9f153042cc6d56c5ee8ec2fa6"
8182-
integrity sha512-+LFOyQGl+zk5SZRGZD2MEURf7i5RHgP/mt3s85Rza+vz8M211WJ0YsjkIGUJFSY842nged5QLx4JysLaBlLymg==
8183-
8184-
8185-
version "8.9.2"
8186-
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-8.9.2.tgz#58b003d9c1302f61192e7c99ea42bf1cd5cad7f7"
8187-
integrity sha512-A4srR9mEBFdVXwSEKjQ94msUbVkMr8JeFiEj9ouOFORw/Y/ux/WV2bWVD/ZI9wq0TcTNK8L1wBgU8UMS5lIq3A==
8188-
dependencies:
8189-
"@sentry/types" "8.9.2"
8190-
81918120
"@sentry/[email protected]", "@sentry/vite-plugin@^2.18.0":
81928121
version "2.18.0"
81938122
resolved "https://registry.yarnpkg.com/@sentry/vite-plugin/-/vite-plugin-2.18.0.tgz#f263f150b64591ac4db7f4e9a0b2cd8a03cada73"
@@ -8196,16 +8125,6 @@
81968125
"@sentry/bundler-plugin-core" "2.18.0"
81978126
unplugin "1.0.1"
81988127

8199-
8200-
version "8.9.2"
8201-
resolved "https://registry.yarnpkg.com/@sentry/vue/-/vue-8.9.2.tgz#c133d5379a7bf314aaba0338c915b51721ea12a8"
8202-
integrity sha512-apWKOuaahNdvGcJwIA02v3WeSS5QO8I+vkeCUPQBXwORCoyb+opRn5S2Yod85KXf4zPcVrQYjZkb8dtJaxfPBA==
8203-
dependencies:
8204-
"@sentry/browser" "8.9.2"
8205-
"@sentry/core" "8.9.2"
8206-
"@sentry/types" "8.9.2"
8207-
"@sentry/utils" "8.9.2"
8208-
82098128
82108129
version "2.16.0"
82118130
resolved "https://registry.yarnpkg.com/@sentry/webpack-plugin/-/webpack-plugin-2.16.0.tgz#4764577edb10c9575a8b4ce03135493f995f56b9"
@@ -9581,6 +9500,7 @@
95819500
"@types/unist" "*"
95829501

95839502
"@types/history-4@npm:@types/[email protected]", "@types/history-5@npm:@types/[email protected]", "@types/history@*":
9503+
name "@types/history-4"
95849504
version "4.7.8"
95859505
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.8.tgz#49348387983075705fe8f4e02fb67f7daaec4934"
95869506
integrity sha512-S78QIYirQcUoo6UJZx9CSP0O2ix9IaeAXwQi26Rhr/+mg7qqPy8TzaxHSUut7eGjL8WmLccT7/MXf304WjqHcA==
@@ -29084,6 +29004,7 @@ react-is@^18.0.0:
2908429004
"@remix-run/router" "1.0.2"
2908529005

2908629006
"react-router-6@npm:[email protected]", [email protected]:
29007+
name react-router-6
2908729008
version "6.3.0"
2908829009
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.3.0.tgz#3970cc64b4cb4eae0c1ea5203a80334fdd175557"
2908929010
integrity sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==
@@ -31615,6 +31536,7 @@ string-template@~0.2.1:
3161531536
integrity sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=
3161631537

3161731538
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3:
31539+
name string-width-cjs
3161831540
version "4.2.3"
3161931541
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
3162031542
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -34850,6 +34772,7 @@ workerpool@^6.4.0:
3485034772
integrity sha512-i3KR1mQMNwY2wx20ozq2EjISGtQWDIfV56We+yGJ5yDs8jTwQiLLaqHlkBHITlCuJnYlVRmXegxFxZg7gqI++A==
3485134773

3485234774
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
34775+
name wrap-ansi-cjs
3485334776
version "7.0.0"
3485434777
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
3485534778
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==

0 commit comments

Comments
 (0)