generator-jhipster-sentry-module 1.0.6 → 1.0.8

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.
@@ -120,10 +120,20 @@ module.exports = class extends Generator {
120
120
 
121
121
  // Frontend templates
122
122
  if (this.clientFramework === 'react') {
123
- this.fs.copyTpl(this.templatePath('client/react/sentry.ts.ejs'), `${webappDir}app/sentry.ts`);
124
- } else if (this.clientFramework === 'angularX') {
125
- this.fs.copyTpl(this.templatePath('client/angular/sentry.ts.ejs'), `${webappDir}app/sentry.ts`);
126
- }
123
+ this.fs.copyTpl(
124
+ this.templatePath('client/react/sentry.ts.ejs'),
125
+ `${webappDir}app/sentry.ts`,
126
+ {
127
+ sentryDsn: this.promptAnswers.sentryDsn
128
+ }
129
+ ); } else if (this.clientFramework === 'angularX') {
130
+ this.fs.copyTpl(
131
+ this.templatePath('client/react/sentry.ts.ejs'),
132
+ `${webappDir}app/sentry.ts`,
133
+ {
134
+ sentryDsn: this.promptAnswers.sentryDsn
135
+ }
136
+ ); }
127
137
  }
128
138
 
129
139
  install() {
@@ -1,6 +1,6 @@
1
1
  import * as Sentry from '@sentry/react';
2
2
 
3
3
  Sentry.init({
4
- dsn: '<%= jhipsterAppConfig.sentry.dsn %>',
4
+ dsn: '<%= sentryDsn %>',
5
5
  environment: 'dev',
6
6
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-jhipster-sentry-module",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Adding Sentry integration to JHipster projects",
5
5
  "keywords": [
6
6
  "yeoman-generator",