@appsemble/cli 0.20.29 → 0.20.31

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,10 +1,10 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.20.29/config/assets/logo.svg) Appsemble CLI
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.20.31/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.20.29/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.20.29)
7
- [![Code coverage](https://codecov.io/gl/appsemble/appsemble/branch/0.20.29/graph/badge.svg)](https://codecov.io/gl/appsemble/appsemble)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.20.31/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.20.31)
7
+ [![Code coverage](https://codecov.io/gl/appsemble/appsemble/branch/0.20.31/graph/badge.svg)](https://codecov.io/gl/appsemble/appsemble)
8
8
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
9
9
 
10
10
  ## Installation
@@ -95,5 +95,5 @@ appsemble asset create --app-id 1 path/to/example-asset.png
95
95
 
96
96
  ## License
97
97
 
98
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.29/LICENSE.md) ©
98
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.31/LICENSE.md) ©
99
99
  [Appsemble](https://appsemble.com)
@@ -147,10 +147,7 @@ export async function authenticate(remote, scope, inputCredentials) {
147
147
  authorizedRemotes.add(remote);
148
148
  axios.interceptors.request.use((config) => {
149
149
  if (config.baseURL === remote) {
150
- return {
151
- ...config,
152
- headers: { authorization: `Bearer ${data.access_token}`, ...config.headers },
153
- };
150
+ config.headers.set('authorization', `Bearer ${data.access_token}`);
154
151
  }
155
152
  return config;
156
153
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/cli",
3
- "version": "0.20.29",
3
+ "version": "0.20.31",
4
4
  "description": "The CLI for developing with Appsemble apps and blocks",
5
5
  "keywords": [
6
6
  "app",
@@ -34,11 +34,11 @@
34
34
  "test": "NODE_OPTIONS=--experimental-vm-modules jest"
35
35
  },
36
36
  "dependencies": {
37
- "@appsemble/node-utils": "0.20.29",
38
- "@appsemble/types": "0.20.29",
39
- "@appsemble/utils": "0.20.29",
37
+ "@appsemble/node-utils": "0.20.31",
38
+ "@appsemble/types": "0.20.31",
39
+ "@appsemble/utils": "0.20.31",
40
40
  "@fortawesome/fontawesome-common-types": "^6.0.0",
41
- "axios": "^0.27.0",
41
+ "axios": "^1.0.0",
42
42
  "chalk": "^4.0.0",
43
43
  "comment-parser": "^1.0.0",
44
44
  "cosmiconfig": "^7.0.0",
@@ -62,7 +62,7 @@
62
62
  "yargs": "^17.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@appsemble/types": "0.20.29",
65
+ "@appsemble/types": "0.20.31",
66
66
  "@types/concat-stream": "^2.0.0",
67
67
  "@types/inquirer": "^9.0.0",
68
68
  "@types/normalize-path": "^3.0.0",