()
| 14 | return { |
| 15 | name: INTEGRATION_NAME, |
| 16 | setup() { |
| 17 | if (!pinia || (typeof pinia === 'object' && !('use' in pinia))) { |
| 18 | consoleSandbox(() => { |
| 19 | // eslint-disable-next-line no-console |
| 20 | console.warn( |
| 21 | '[Sentry] The Pinia integration was added, but the passed parameter `pinia` has the wrong value. Make sure to enable Pinia by adding `"@pinia/nuxt"` to the Nuxt modules array and pass pinia to Sentry with `piniaIntegration(usePinia())`. Current value of `pinia`:', |
| 22 | pinia, |
| 23 | ); |
| 24 | }); |
| 25 | } else { |
| 26 | (pinia as Pinia).use(createSentryPiniaPlugin(options)); |
| 27 | } |
| 28 | }, |
| 29 | }; |
| 30 | }) satisfies IntegrationFn; |
| 31 |
nothing calls this directly
no test coverage detected