generator-razor 14.0.0 → 14.0.1

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 (2) hide show
  1. package/app/index.js +7 -4
  2. package/package.json +1 -1
package/app/index.js CHANGED
@@ -68,7 +68,7 @@ export default class extends Generator {
68
68
  default: 'root',
69
69
  store: true
70
70
  }, {
71
- type: 'password',
71
+ type: 'input',
72
72
  name: 'DbPassword',
73
73
  message: 'Database password?',
74
74
  default: 'root',
@@ -125,7 +125,7 @@ export default class extends Generator {
125
125
  default: 'admin',
126
126
  store: true
127
127
  }, {
128
- type: 'password',
128
+ type: 'input',
129
129
  name: 'Pass',
130
130
  message: 'TYPO3 install tool & admin user password?',
131
131
  default: 'joh316'
@@ -183,7 +183,7 @@ export default class extends Generator {
183
183
  store: true
184
184
  }, {
185
185
  when: answers => answers.Transport === 'smtp',
186
- type: 'password',
186
+ type: 'input',
187
187
  name: 'SmtpPass',
188
188
  message: 'SMTP password?',
189
189
  default: '',
@@ -797,12 +797,15 @@ export default class extends Generator {
797
797
 
798
798
  const connectionOptions = {
799
799
  host: this.props.DbHostname,
800
- port: Number(this.props.DbPort),
801
800
  user: this.props.DbUsername,
802
801
  password: this.props.DbPassword,
803
802
  multipleStatements: true
804
803
  }
805
804
 
805
+ if (this.props.DbPort) {
806
+ connectionOptions.port = Number(this.props.DbPort)
807
+ }
808
+
806
809
  if (this.props.DbSocket) {
807
810
  connectionOptions.socketPath = this.props.DbSocket
808
811
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",