@appsemble/cli 0.24.12 → 0.24.13
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.24.13)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -304,5 +304,5 @@ appsemble run-cronjobs --interval 30
|
|
|
304
304
|
|
|
305
305
|
## License
|
|
306
306
|
|
|
307
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.24.
|
|
307
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.24.13/LICENSE.md) ©
|
|
308
308
|
[Appsemble](https://appsemble.com)
|
package/lib/app.js
CHANGED
|
@@ -353,6 +353,7 @@ export async function updateApp({ clientCredentials, context, force, path, ...op
|
|
|
353
353
|
const sentryDsn = (_l = appsembleContext.sentryDsn) !== null && _l !== void 0 ? _l : options.sentryDsn;
|
|
354
354
|
const sentryEnvironment = (_m = appsembleContext.sentryEnvironment) !== null && _m !== void 0 ? _m : options.sentryEnvironment;
|
|
355
355
|
const googleAnalyticsId = (_o = appsembleContext.googleAnalyticsId) !== null && _o !== void 0 ? _o : options.googleAnalyticsId;
|
|
356
|
+
const { appLock } = appsembleContext;
|
|
356
357
|
logger.info(`App id: ${id}`);
|
|
357
358
|
logger.verbose(`App remote: ${remote}`);
|
|
358
359
|
logger.verbose(`App is template: ${inspect(template, { colors: true })}`);
|
|
@@ -389,6 +390,18 @@ export async function updateApp({ clientCredentials, context, force, path, ...op
|
|
|
389
390
|
formData.append('googleAnalyticsID', googleAnalyticsId);
|
|
390
391
|
}
|
|
391
392
|
await authenticate(remote, 'apps:write', clientCredentials);
|
|
393
|
+
if (appLock) {
|
|
394
|
+
logger.info(`Setting AppLock to ${appLock}`);
|
|
395
|
+
try {
|
|
396
|
+
await axios.post(`/api/apps/${id}/lock`, {
|
|
397
|
+
locked: appLock,
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
catch (error) {
|
|
401
|
+
logger.error(error);
|
|
402
|
+
process.exit(1);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
392
405
|
let data;
|
|
393
406
|
try {
|
|
394
407
|
data = await axios
|
|
@@ -449,6 +462,7 @@ export async function publishApp({ assets, assetsClonable, clientCredentials, co
|
|
|
449
462
|
const sentryDsn = (_l = appsembleContext.sentryDsn) !== null && _l !== void 0 ? _l : options.sentryDsn;
|
|
450
463
|
const sentryEnvironment = (_m = appsembleContext.sentryEnvironment) !== null && _m !== void 0 ? _m : options.sentryEnvironment;
|
|
451
464
|
const googleAnalyticsId = (_o = appsembleContext.googleAnalyticsId) !== null && _o !== void 0 ? _o : options.googleAnalyticsId;
|
|
465
|
+
const appLock = appsembleContext.appLock || 'unlocked';
|
|
452
466
|
logger.verbose(`App remote: ${remote}`);
|
|
453
467
|
logger.verbose(`App organization: ${organizationId}`);
|
|
454
468
|
logger.verbose(`App is template: ${inspect(template, { colors: true })}`);
|
|
@@ -462,6 +476,7 @@ export async function publishApp({ assets, assetsClonable, clientCredentials, co
|
|
|
462
476
|
formData.append('demoMode', String(demoMode));
|
|
463
477
|
formData.append('visibility', visibility);
|
|
464
478
|
formData.append('iconBackground', iconBackground);
|
|
479
|
+
formData.append('locked', appLock);
|
|
465
480
|
if (icon) {
|
|
466
481
|
const realIcon = typeof icon === 'string' ? createReadStream(icon) : icon;
|
|
467
482
|
logger.info(`Using icon from ${(_p = realIcon.path) !== null && _p !== void 0 ? _p : 'stdin'}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/cli",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.13",
|
|
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.24.
|
|
46
|
-
"@appsemble/types": "0.24.
|
|
47
|
-
"@appsemble/utils": "0.24.
|
|
45
|
+
"@appsemble/node-utils": "0.24.13",
|
|
46
|
+
"@appsemble/types": "0.24.13",
|
|
47
|
+
"@appsemble/utils": "0.24.13",
|
|
48
48
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
49
49
|
"@koa/cors": "^4.0.0",
|
|
50
50
|
"@odata/parser": "^0.2.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"yargs": "^17.0.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@appsemble/types": "0.24.
|
|
89
|
+
"@appsemble/types": "0.24.13",
|
|
90
90
|
"@types/concat-stream": "^2.0.0",
|
|
91
91
|
"@types/inquirer": "^9.0.0",
|
|
92
92
|
"@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.24.
|
|
9
|
+
version: 0.24.13
|
|
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.24.
|
|
20
|
+
version: 0.24.13
|
|
21
21
|
parameters:
|
|
22
22
|
icon: arrow-left
|
|
23
23
|
actions:
|