@corva/create-app 0.55.0-rc.0 → 0.56.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.
@@ -273,7 +273,7 @@ export class Api {
273
273
  * @param {string} appId
274
274
  * @param {string} uploadId
275
275
  *
276
- * @returns { Promise<{id: number, status: string}>}
276
+ * @returns { Promise<{id: number, status: string, notes: string}>}
277
277
  */
278
278
  async checkApp(appId, uploadId) {
279
279
  const { data } = await this.#api.get(`v2/apps/${appId}/packages/${uploadId}`).json();
@@ -281,6 +281,7 @@ export class Api {
281
281
  return {
282
282
  id: data.id,
283
283
  status: data.attributes.status,
284
+ notes: data.attributes.notes ?? '',
284
285
  };
285
286
  }
286
287
 
@@ -1,5 +1,6 @@
1
1
  import debugFn from 'debug';
2
2
  import { waitForMs } from '../../lib/waitForMs.js';
3
+ import { logger } from '../../../helpers/logger.js';
3
4
 
4
5
  const debug = debugFn('cca:flow:release:step:wait-for-build');
5
6
 
@@ -13,13 +14,18 @@ export const WAIT_FOR_BUILD_FINISH_STEP = {
13
14
  */
14
15
  async fn({ api, appId, packageId, progress }) {
15
16
  do {
16
- const { status } = await api.checkApp(appId, packageId);
17
+ const { status, notes } = await api.checkApp(appId, packageId);
17
18
 
18
19
  progress();
19
20
 
20
21
  debug(`Status: ${status}`);
21
22
 
22
23
  if (!PROCESSING_STATUSES.includes(status)) {
24
+ if (notes) {
25
+ logger.write('\nNotes after package upload:\n\n');
26
+ logger.write(notes);
27
+ }
28
+
23
29
  return { uploadStatus: status };
24
30
  }
25
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.55.0-rc.0",
3
+ "version": "0.56.0-1",
4
4
  "private": false,
5
5
  "description": "Create an app to use it in CORVA.AI",
6
6
  "keywords": [