@automattic/vip 2.38.0-dev.0 → 2.38.0-dev.2
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/dist/commands/phpmyadmin.js +11 -7
- package/npm-shrinkwrap.json +8 -8
- package/package.json +1 -1
|
@@ -122,7 +122,7 @@ class PhpMyAdminCommand {
|
|
|
122
122
|
this.track = trackerFn;
|
|
123
123
|
this.progressTracker = new _progress.ProgressTracker([{
|
|
124
124
|
id: this.steps.ENABLE,
|
|
125
|
-
name: 'Enabling PHPMyAdmin for this
|
|
125
|
+
name: 'Enabling PHPMyAdmin for this environment'
|
|
126
126
|
}, {
|
|
127
127
|
id: this.steps.GENERATE,
|
|
128
128
|
name: 'Generating access link'
|
|
@@ -147,11 +147,7 @@ class PhpMyAdminCommand {
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
async getStatus() {
|
|
150
|
-
|
|
151
|
-
return await getPhpMyAdminStatus(this.app.id, this.env.id);
|
|
152
|
-
} catch (err) {
|
|
153
|
-
exit.withError('Failed to get PhpMyAdmin status. Please try again. If the problem persists, please contact support.');
|
|
154
|
-
}
|
|
150
|
+
return await getPhpMyAdminStatus(this.app.id, this.env.id);
|
|
155
151
|
}
|
|
156
152
|
async maybeEnablePhpMyAdmin() {
|
|
157
153
|
const status = await this.getStatus();
|
|
@@ -180,7 +176,14 @@ class PhpMyAdminCommand {
|
|
|
180
176
|
this.progressTracker.stepSuccess(this.steps.ENABLE);
|
|
181
177
|
} catch (err) {
|
|
182
178
|
this.progressTracker.stepFailed(this.steps.ENABLE);
|
|
183
|
-
|
|
179
|
+
const error = err;
|
|
180
|
+
void this.track('error', {
|
|
181
|
+
error_type: 'enable_pma',
|
|
182
|
+
error_message: error.message,
|
|
183
|
+
stack: error.stack
|
|
184
|
+
});
|
|
185
|
+
this.stopProgressTracker();
|
|
186
|
+
exit.withError('Failed to enable PhpMyAdmin. Please try again. If the problem persists, please contact support.');
|
|
184
187
|
}
|
|
185
188
|
let url;
|
|
186
189
|
try {
|
|
@@ -195,6 +198,7 @@ class PhpMyAdminCommand {
|
|
|
195
198
|
error_message: error.message,
|
|
196
199
|
stack: error.stack
|
|
197
200
|
});
|
|
201
|
+
this.stopProgressTracker();
|
|
198
202
|
exit.withError(`Failed to generate PhpMyAdmin URL: ${error.message}`);
|
|
199
203
|
}
|
|
200
204
|
void this.openUrl(url);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/vip",
|
|
3
|
-
"version": "2.38.0-dev.
|
|
3
|
+
"version": "2.38.0-dev.2",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@automattic/vip",
|
|
9
|
-
"version": "2.38.0-dev.
|
|
9
|
+
"version": "2.38.0-dev.2",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
@@ -3853,9 +3853,9 @@
|
|
|
3853
3853
|
"dev": true
|
|
3854
3854
|
},
|
|
3855
3855
|
"node_modules/@types/node": {
|
|
3856
|
-
"version": "18.19.
|
|
3857
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.
|
|
3858
|
-
"integrity": "sha512-
|
|
3856
|
+
"version": "18.19.9",
|
|
3857
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.9.tgz",
|
|
3858
|
+
"integrity": "sha512-oZFKlC8l5YtzGQNT4zC2PiSSKzQVZ8bAwwd+EYdPLtyk0nSEq6O16SkK+rkkT2eflDAbormJgEF3QnH3oDrTSw==",
|
|
3859
3859
|
"dependencies": {
|
|
3860
3860
|
"undici-types": "~5.26.4"
|
|
3861
3861
|
}
|
|
@@ -16370,9 +16370,9 @@
|
|
|
16370
16370
|
"dev": true
|
|
16371
16371
|
},
|
|
16372
16372
|
"@types/node": {
|
|
16373
|
-
"version": "18.19.
|
|
16374
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.
|
|
16375
|
-
"integrity": "sha512-
|
|
16373
|
+
"version": "18.19.9",
|
|
16374
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.9.tgz",
|
|
16375
|
+
"integrity": "sha512-oZFKlC8l5YtzGQNT4zC2PiSSKzQVZ8bAwwd+EYdPLtyk0nSEq6O16SkK+rkkT2eflDAbormJgEF3QnH3oDrTSw==",
|
|
16376
16376
|
"requires": {
|
|
16377
16377
|
"undici-types": "~5.26.4"
|
|
16378
16378
|
}
|