@automattic/vip 3.9.1 → 3.9.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.
@@ -9,7 +9,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
9
9
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  (0, _command.default)({
12
- requiredArgs: 1
12
+ requiredArgs: 1,
13
+ format: true
13
14
  }).example('vip app list', 'Retrieve a list of applications that can be accessed by the current authenticated VIP-CLI user.').example('vip app example-app', 'Retrieve information about the application named "example-app" and its environments.').example('WPVIP_DEPLOY_TOKEN=1234 vip @example-app.develop app deploy file.zip', 'Deploy a local archived file named "file.zip" that contains application code to a VIP Platform environment that has Custom Deployment enabled.').command('list', 'Retrieve a list of applications that can be accessed by the current authenticated VIP-CLI user.').command('deploy', 'Deploy an archived file of application code to an environment that has Custom Deployment enabled.').argv(process.argv, async arg => {
14
15
  await (0, _tracker.trackEvent)('app_command_execute');
15
16
  let res;
@@ -33,16 +34,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
33
34
 
34
35
  // Clone the read-only response object so we can modify it
35
36
  const clonedResponse = Object.assign({}, res);
36
- const header = [{
37
- key: 'id',
38
- value: res.id
39
- }, {
40
- key: 'name',
41
- value: res.name
42
- }, {
43
- key: 'repo',
44
- value: res.repo
45
- }];
46
37
  clonedResponse.environments = clonedResponse.environments.map(env => {
47
38
  const clonedEnv = Object.assign({}, env);
48
39
  clonedEnv.name = (0, _command.getEnvIdentifier)(env);
@@ -62,8 +53,5 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
62
53
  delete clonedEnv.deploymentStrategy;
63
54
  return clonedEnv;
64
55
  });
65
- return {
66
- header,
67
- data: clonedResponse.environments
68
- };
56
+ return clonedResponse.environments;
69
57
  });
package/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Changelog
2
2
 
3
+ ### 3.9.2
4
+
5
+ * Fix `vip app`
6
+
7
+ **Full Changelog**: https://github.com/Automattic/vip-cli/compare/3.9.1...3.9.2
8
+
3
9
  ### 3.9.1
4
10
 
5
11
  * Fix custom deploy zip file size limitation
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "3.9.1",
3
+ "version": "3.9.2",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@automattic/vip",
9
- "version": "3.9.1",
9
+ "version": "3.9.2",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "3.9.1",
3
+ "version": "3.9.2",
4
4
  "description": "The VIP Javascript library & CLI",
5
5
  "main": "index.js",
6
6
  "bin": {