@appsemble/cli 0.37.5 → 0.37.6
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
|
-
#  Appsemble CLI
|
|
2
2
|
|
|
3
3
|
> Manage apps and blocks from the command line.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/cli)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.37.6)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -342,5 +342,5 @@ appsemble run-cronjobs --interval 30
|
|
|
342
342
|
|
|
343
343
|
## License
|
|
344
344
|
|
|
345
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.37.
|
|
345
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.37.6/LICENSE.md) ©
|
|
346
346
|
[Appsemble](https://appsemble.com)
|
package/lib/authentication.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hostname } from 'node:os';
|
|
2
|
-
import { AppsembleError, assertKoaCondition,
|
|
2
|
+
import { AppsembleError, assertKoaCondition, getKeyring, getService, logger, throwKoaError, } from '@appsemble/node-utils';
|
|
3
3
|
import { checkbox } from '@inquirer/prompts';
|
|
4
4
|
import Koa from 'koa';
|
|
5
5
|
import open from 'open';
|
|
@@ -43,7 +43,7 @@ function waitForCredentials(url) {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
export async function login({ clientCredentials, remote }) {
|
|
46
|
-
const { setPassword } = await
|
|
46
|
+
const { setPassword } = await getKeyring();
|
|
47
47
|
const url = new URL('/settings/client-credentials', remote);
|
|
48
48
|
let credentials = clientCredentials;
|
|
49
49
|
if (credentials) {
|
|
@@ -61,7 +61,7 @@ export async function login({ clientCredentials, remote }) {
|
|
|
61
61
|
logger.info(`Successfully stored credentials for ${clientId} 🕶`);
|
|
62
62
|
}
|
|
63
63
|
export async function remove({ remote }) {
|
|
64
|
-
const { deletePassword, findCredentials } = await
|
|
64
|
+
const { deletePassword, findCredentials } = await getKeyring();
|
|
65
65
|
const choices = await findCredentials(getService(remote));
|
|
66
66
|
if (choices.length === 0) {
|
|
67
67
|
logger.warn('No client credentials are currently in use.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/cli",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.6",
|
|
4
4
|
"description": "The CLI for developing with Appsemble apps and blocks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"test": "vitest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@appsemble/node-utils": "0.37.
|
|
48
|
-
"@appsemble/types": "0.37.
|
|
49
|
-
"@appsemble/lang-sdk": "0.37.
|
|
50
|
-
"@appsemble/utils": "0.37.
|
|
47
|
+
"@appsemble/node-utils": "0.37.6",
|
|
48
|
+
"@appsemble/types": "0.37.6",
|
|
49
|
+
"@appsemble/lang-sdk": "0.37.6",
|
|
50
|
+
"@appsemble/utils": "0.37.6",
|
|
51
51
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
52
52
|
"@inquirer/prompts": "^8.0.0",
|
|
53
53
|
"@koa/cors": "^5.0.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"yargs": "^17.0.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@appsemble/types": "0.37.
|
|
94
|
-
"@appsemble/server": "0.37.
|
|
93
|
+
"@appsemble/types": "0.37.6",
|
|
94
|
+
"@appsemble/server": "0.37.6",
|
|
95
95
|
"@types/concat-stream": "2.0.3",
|
|
96
96
|
"@types/koa__cors": "5.0.1",
|
|
97
97
|
"@types/koa-compress": "4.0.7",
|
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
"sequelize": "6.37.8",
|
|
109
109
|
"titleize": "4.0.0",
|
|
110
110
|
"untildify": "6.0.0",
|
|
111
|
-
"vitest": "
|
|
111
|
+
"vitest": "4.1.10",
|
|
112
112
|
"yoctocolors-cjs": "2.1.3"
|
|
113
113
|
},
|
|
114
114
|
"optionalDependencies": {
|
|
115
|
-
"
|
|
115
|
+
"@napi-rs/keyring": "^1.3.0"
|
|
116
116
|
},
|
|
117
117
|
"engines": {
|
|
118
118
|
"node": ">=24"
|
|
@@ -6,7 +6,7 @@ pages:
|
|
|
6
6
|
- name: Example Page A
|
|
7
7
|
blocks:
|
|
8
8
|
- type: action-button
|
|
9
|
-
version: 0.37.
|
|
9
|
+
version: 0.37.6
|
|
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.37.
|
|
20
|
+
version: 0.37.6
|
|
21
21
|
parameters:
|
|
22
22
|
icon: arrow-left
|
|
23
23
|
actions:
|