@sentry/wizard 3.36.0 → 3.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/e2e-tests/tests/nuxt-3.test.js +7 -13
  3. package/dist/e2e-tests/tests/nuxt-3.test.js.map +1 -1
  4. package/dist/e2e-tests/tests/nuxt-4.test.js +7 -13
  5. package/dist/e2e-tests/tests/nuxt-4.test.js.map +1 -1
  6. package/dist/package.json +2 -2
  7. package/dist/src/nuxt/nuxt-wizard.js +27 -20
  8. package/dist/src/nuxt/nuxt-wizard.js.map +1 -1
  9. package/dist/src/nuxt/sdk-setup.d.ts +6 -2
  10. package/dist/src/nuxt/sdk-setup.js +107 -43
  11. package/dist/src/nuxt/sdk-setup.js.map +1 -1
  12. package/dist/src/nuxt/templates.d.ts +1 -1
  13. package/dist/src/nuxt/templates.js +5 -3
  14. package/dist/src/nuxt/templates.js.map +1 -1
  15. package/dist/src/nuxt/types.d.ts +2 -0
  16. package/dist/src/nuxt/types.js +10 -0
  17. package/dist/src/nuxt/types.js.map +1 -0
  18. package/dist/src/nuxt/utils.js +42 -6
  19. package/dist/src/nuxt/utils.js.map +1 -1
  20. package/dist/src/react-native/javascript.js +1 -1
  21. package/dist/src/react-native/javascript.js.map +1 -1
  22. package/dist/src/react-native/react-native-wizard.d.ts +5 -4
  23. package/dist/src/react-native/react-native-wizard.js +65 -41
  24. package/dist/src/react-native/react-native-wizard.js.map +1 -1
  25. package/dist/src/utils/clack-utils.d.ts +5 -0
  26. package/dist/src/utils/clack-utils.js +15 -3
  27. package/dist/src/utils/clack-utils.js.map +1 -1
  28. package/dist/test/nuxt/templates.test.js +10 -1
  29. package/dist/test/nuxt/templates.test.js.map +1 -1
  30. package/dist/test/react-native/javascript.test.js +1 -1
  31. package/dist/test/react-native/javascript.test.js.map +1 -1
  32. package/e2e-tests/test-applications/nuxt-4-test-app/README.md +75 -0
  33. package/e2e-tests/test-applications/nuxt-4-test-app/nuxt.config.ts +6 -0
  34. package/e2e-tests/test-applications/nuxt-4-test-app/package.json +18 -0
  35. package/e2e-tests/test-applications/nuxt-4-test-app/public/favicon.ico +0 -0
  36. package/e2e-tests/test-applications/nuxt-4-test-app/public/robots.txt +1 -0
  37. package/e2e-tests/tests/nuxt-3.test.ts +6 -9
  38. package/e2e-tests/tests/nuxt-4.test.ts +6 -9
  39. package/package.json +2 -2
  40. package/src/nuxt/nuxt-wizard.ts +12 -4
  41. package/src/nuxt/sdk-setup.ts +136 -37
  42. package/src/nuxt/templates.ts +15 -8
  43. package/src/nuxt/types.ts +8 -0
  44. package/src/nuxt/utils.ts +17 -7
  45. package/src/react-native/javascript.ts +1 -1
  46. package/src/react-native/react-native-wizard.ts +32 -12
  47. package/src/utils/clack-utils.ts +13 -1
  48. package/test/nuxt/templates.test.ts +33 -6
  49. package/test/react-native/javascript.test.ts +1 -1
@@ -206,12 +206,38 @@ describe('Nuxt code templates', () => {
206
206
 
207
207
  describe('getNuxtModuleFallbackTemplate', () => {
208
208
  it('generates configuration options for the nuxt config', () => {
209
- const template = getNuxtModuleFallbackTemplate({
210
- org: 'my-org',
211
- project: 'my-project',
212
- url: 'https://sentry.io',
213
- selfHosted: false,
214
- });
209
+ const template = getNuxtModuleFallbackTemplate(
210
+ {
211
+ org: 'my-org',
212
+ project: 'my-project',
213
+ url: 'https://sentry.io',
214
+ selfHosted: false,
215
+ },
216
+ false,
217
+ );
218
+
219
+ expect(template).toMatchInlineSnapshot(`
220
+ " modules: ["@sentry/nuxt/module"],
221
+ sentry: {
222
+ sourceMapsUploadOptions: {
223
+ org: "my-org",
224
+ project: "my-project",
225
+ },
226
+ },
227
+ sourcemap: { client: "hidden" },"
228
+ `);
229
+ });
230
+
231
+ it('generates configuration options for the nuxt config with top level import', () => {
232
+ const template = getNuxtModuleFallbackTemplate(
233
+ {
234
+ org: 'my-org',
235
+ project: 'my-project',
236
+ url: 'https://sentry.io',
237
+ selfHosted: false,
238
+ },
239
+ true,
240
+ );
215
241
 
216
242
  expect(template).toMatchInlineSnapshot(`
217
243
  " modules: ["@sentry/nuxt/module"],
@@ -220,6 +246,7 @@ describe('Nuxt code templates', () => {
220
246
  org: "my-org",
221
247
  project: "my-project",
222
248
  },
249
+ autoInjectServerSentry: "top-level-import",
223
250
  },
224
251
  sourcemap: { client: "hidden" },"
225
252
  `);
@@ -33,7 +33,7 @@ Sentry.init({
33
33
  dsn: 'dsn',
34
34
 
35
35
  // uncomment the line below to enable Spotlight (https://spotlightjs.com)
36
- // enableSpotlight: __DEV__,
36
+ // spotlight: __DEV__,
37
37
  });
38
38
 
39
39
  const App = () => {