@appsemble/cli 0.27.0 → 0.27.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.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.27.0/config/assets/logo.svg) Appsemble CLI
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.27.1/config/assets/logo.svg) Appsemble CLI
2
2
 
3
3
  > Manage apps and blocks from the command line.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/cli)](https://www.npmjs.com/package/@appsemble/cli)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.27.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.27.0)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.27.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.27.1)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -305,5 +305,5 @@ appsemble run-cronjobs --interval 30
305
305
 
306
306
  ## License
307
307
 
308
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.0/LICENSE.md) ©
308
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.1/LICENSE.md) ©
309
309
  [Appsemble](https://appsemble.com)
@@ -1,4 +1,4 @@
1
- import { AppsembleError, authenticate, logger } from '@appsemble/node-utils';
1
+ import { AppsembleError, logger } from '@appsemble/node-utils';
2
2
  import fg from 'fast-glob';
3
3
  import normalizePath from 'normalize-path';
4
4
  import { updateApp } from '../../lib/app.js';
@@ -81,7 +81,6 @@ export async function handler({ clientCredentials, id, paths, remote, ...args })
81
81
  }
82
82
  const normalizedPaths = paths.map((path) => normalizePath(path));
83
83
  const directories = await fg(normalizedPaths, { absolute: true, onlyDirectories: true });
84
- await authenticate(remote, 'apps:write', clientCredentials);
85
84
  logger.info(`Updating ${directories.length} apps`);
86
85
  for (const dir of directories) {
87
86
  await updateApp({
package/lib/app.js CHANGED
@@ -663,10 +663,15 @@ export async function publishApp({ assets, clientCredentials, context, dryRun, m
663
663
  const rcCollections = rc.context[context].collections;
664
664
  if (Array.isArray(rcCollections)) {
665
665
  for (const collectionId of rcCollections) {
666
- await axios.post(`/api/appCollections/${collectionId}/apps`, { AppId: data.id }, {
667
- baseURL: remote,
668
- });
669
- logger.info(`Successfully added app to collection ${collectionId}`);
666
+ try {
667
+ await axios.post(`/api/appCollections/${collectionId}/apps`, { AppId: data.id }, {
668
+ baseURL: remote,
669
+ });
670
+ logger.info(`Successfully added app to collection ${collectionId}`);
671
+ }
672
+ catch (error) {
673
+ logger.error(error);
674
+ }
670
675
  }
671
676
  }
672
677
  if (appVariantPath !== path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/cli",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "The CLI for developing with Appsemble apps and blocks",
5
5
  "keywords": [
6
6
  "app",
@@ -42,9 +42,9 @@
42
42
  "test": "vitest"
43
43
  },
44
44
  "dependencies": {
45
- "@appsemble/node-utils": "0.27.0",
46
- "@appsemble/types": "0.27.0",
47
- "@appsemble/utils": "0.27.0",
45
+ "@appsemble/node-utils": "0.27.1",
46
+ "@appsemble/types": "0.27.1",
47
+ "@appsemble/utils": "0.27.1",
48
48
  "@fortawesome/fontawesome-common-types": "^6.0.0",
49
49
  "@koa/cors": "^4.0.0",
50
50
  "@odata/parser": "^0.2.0",
@@ -87,7 +87,7 @@
87
87
  "yargs": "^17.0.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@appsemble/types": "0.27.0",
90
+ "@appsemble/types": "0.27.1",
91
91
  "@types/concat-stream": "^2.0.0",
92
92
  "@types/inquirer": "^9.0.0",
93
93
  "@types/normalize-path": "^3.0.0",
@@ -6,7 +6,7 @@ pages:
6
6
  - name: Example Page A
7
7
  blocks:
8
8
  - type: action-button
9
- version: 0.27.0
9
+ version: 0.27.1
10
10
  parameters:
11
11
  icon: arrow-right
12
12
  actions:
@@ -17,7 +17,7 @@ pages:
17
17
  - name: Example Page B
18
18
  blocks:
19
19
  - type: action-button
20
- version: 0.27.0
20
+ version: 0.27.1
21
21
  parameters:
22
22
  icon: arrow-left
23
23
  actions:
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@appsemble/sdk": "0.27.0",
5
+ "@appsemble/sdk": "0.27.1",
6
6
  "mini-jsx": "^4.0.0"
7
7
  }
8
8
  }
@@ -2,8 +2,8 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@appsemble/preact": "0.27.0",
6
- "@appsemble/sdk": "0.27.0",
5
+ "@appsemble/preact": "0.27.1",
6
+ "@appsemble/sdk": "0.27.1",
7
7
  "preact": "^10.0.0"
8
8
  }
9
9
  }
@@ -2,6 +2,6 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@appsemble/sdk": "0.27.0"
5
+ "@appsemble/sdk": "0.27.1"
6
6
  }
7
7
  }