@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.
- package/CHANGELOG.md +13 -0
- package/dist/e2e-tests/tests/nuxt-3.test.js +7 -13
- package/dist/e2e-tests/tests/nuxt-3.test.js.map +1 -1
- package/dist/e2e-tests/tests/nuxt-4.test.js +7 -13
- package/dist/e2e-tests/tests/nuxt-4.test.js.map +1 -1
- package/dist/package.json +2 -2
- package/dist/src/nuxt/nuxt-wizard.js +27 -20
- package/dist/src/nuxt/nuxt-wizard.js.map +1 -1
- package/dist/src/nuxt/sdk-setup.d.ts +6 -2
- package/dist/src/nuxt/sdk-setup.js +107 -43
- package/dist/src/nuxt/sdk-setup.js.map +1 -1
- package/dist/src/nuxt/templates.d.ts +1 -1
- package/dist/src/nuxt/templates.js +5 -3
- package/dist/src/nuxt/templates.js.map +1 -1
- package/dist/src/nuxt/types.d.ts +2 -0
- package/dist/src/nuxt/types.js +10 -0
- package/dist/src/nuxt/types.js.map +1 -0
- package/dist/src/nuxt/utils.js +42 -6
- package/dist/src/nuxt/utils.js.map +1 -1
- package/dist/src/react-native/javascript.js +1 -1
- package/dist/src/react-native/javascript.js.map +1 -1
- package/dist/src/react-native/react-native-wizard.d.ts +5 -4
- package/dist/src/react-native/react-native-wizard.js +65 -41
- package/dist/src/react-native/react-native-wizard.js.map +1 -1
- package/dist/src/utils/clack-utils.d.ts +5 -0
- package/dist/src/utils/clack-utils.js +15 -3
- package/dist/src/utils/clack-utils.js.map +1 -1
- package/dist/test/nuxt/templates.test.js +10 -1
- package/dist/test/nuxt/templates.test.js.map +1 -1
- package/dist/test/react-native/javascript.test.js +1 -1
- package/dist/test/react-native/javascript.test.js.map +1 -1
- package/e2e-tests/test-applications/nuxt-4-test-app/README.md +75 -0
- package/e2e-tests/test-applications/nuxt-4-test-app/nuxt.config.ts +6 -0
- package/e2e-tests/test-applications/nuxt-4-test-app/package.json +18 -0
- package/e2e-tests/test-applications/nuxt-4-test-app/public/favicon.ico +0 -0
- package/e2e-tests/test-applications/nuxt-4-test-app/public/robots.txt +1 -0
- package/e2e-tests/tests/nuxt-3.test.ts +6 -9
- package/e2e-tests/tests/nuxt-4.test.ts +6 -9
- package/package.json +2 -2
- package/src/nuxt/nuxt-wizard.ts +12 -4
- package/src/nuxt/sdk-setup.ts +136 -37
- package/src/nuxt/templates.ts +15 -8
- package/src/nuxt/types.ts +8 -0
- package/src/nuxt/utils.ts +17 -7
- package/src/react-native/javascript.ts +1 -1
- package/src/react-native/react-native-wizard.ts +32 -12
- package/src/utils/clack-utils.ts +13 -1
- package/test/nuxt/templates.test.ts +33 -6
- 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
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
`);
|