@live-change/cli 0.9.162 → 0.9.163
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/lib/starter.js +12 -6
- package/package.json +8 -8
package/lib/starter.js
CHANGED
|
@@ -452,7 +452,7 @@ export async function describe(argv) {
|
|
|
452
452
|
console.log(JSON.stringify(service.toJSON(), null, " "))
|
|
453
453
|
return
|
|
454
454
|
}
|
|
455
|
-
console.log(" models:")
|
|
455
|
+
if(Object.keys(service.models).length > 0) console.log(" models:")
|
|
456
456
|
for(const modelName in service.models) {
|
|
457
457
|
const model = service.models[modelName]
|
|
458
458
|
const properties = Object.keys(model.properties ?? {})
|
|
@@ -462,25 +462,25 @@ export async function describe(argv) {
|
|
|
462
462
|
console.log(" ", indexName)
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
console.log(" indexes:")
|
|
465
|
+
if(Object.keys(service.indexes).length > 0) console.log(" indexes:")
|
|
466
466
|
for(const indexName in service.indexes) {
|
|
467
467
|
const index = service.indexes[indexName]
|
|
468
468
|
console.log(" ", indexName)
|
|
469
469
|
}
|
|
470
|
-
console.log(" actions:")
|
|
470
|
+
if(Object.keys(service.actions).length > 0) console.log(" actions:")
|
|
471
471
|
for(const actionName in service.actions) {
|
|
472
472
|
const action = service.actions[actionName]
|
|
473
473
|
const properties = Object.keys(action.properties ?? {})
|
|
474
474
|
console.log(" ", actionName, "(", properties.join(', '), ")")
|
|
475
475
|
}
|
|
476
|
-
console.log(" views:")
|
|
476
|
+
if(Object.keys(service.views).length > 0) console.log(" views:")
|
|
477
477
|
for(const viewName in service.views) {
|
|
478
478
|
const view = service.views[viewName]
|
|
479
479
|
const properties = Object.keys(view.properties ?? {})
|
|
480
480
|
console.log(" ", viewName, "(", properties.join(', '), ")",
|
|
481
481
|
view.global ? "global" : "", view.internal ? "internal" : "", view.remote ? "remote" : "")
|
|
482
482
|
}
|
|
483
|
-
console.log(" triggers:")
|
|
483
|
+
if(Object.keys(service.triggers).length > 0) console.log(" triggers:")
|
|
484
484
|
for(const triggerName in service.triggers) {
|
|
485
485
|
const triggers = service.triggers[triggerName]
|
|
486
486
|
for(const trigger of triggers) {
|
|
@@ -488,12 +488,18 @@ export async function describe(argv) {
|
|
|
488
488
|
console.log(" ", triggerName, "(", properties.join(', '), ")")
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
console.log(" events:")
|
|
491
|
+
if(Object.keys(service.events).length > 0) console.log(" events:")
|
|
492
492
|
for(const eventName in service.events) {
|
|
493
493
|
const event = service.events[eventName]
|
|
494
494
|
const properties = Object.keys(event.properties ?? {})
|
|
495
495
|
console.log(" ", eventName, "(", properties.join(', '), ")")
|
|
496
496
|
}
|
|
497
|
+
if(Object.keys(service.queries).length > 0) console.log(" queries:")
|
|
498
|
+
for(const queryName in service.queries) {
|
|
499
|
+
const query = service.queries[queryName]
|
|
500
|
+
const properties = Object.keys(query.properties ?? {})
|
|
501
|
+
console.log(" ", queryName, "(", properties.join(', '), ")")
|
|
502
|
+
}
|
|
497
503
|
}
|
|
498
504
|
if(argv.service === '*') {
|
|
499
505
|
for(const service of services.serviceDefinitions) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.163",
|
|
4
4
|
"description": "Live Change Framework - command line interface",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"type": "module",
|
|
26
26
|
"homepage": "https://github.com/live-change/live-change-stack",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@live-change/dao": "^0.9.
|
|
29
|
-
"@live-change/dao-sockjs": "^0.9.
|
|
30
|
-
"@live-change/dao-websocket": "^0.9.
|
|
31
|
-
"@live-change/db-server": "^0.9.
|
|
32
|
-
"@live-change/framework": "^0.9.
|
|
33
|
-
"@live-change/server": "^0.9.
|
|
28
|
+
"@live-change/dao": "^0.9.163",
|
|
29
|
+
"@live-change/dao-sockjs": "^0.9.163",
|
|
30
|
+
"@live-change/dao-websocket": "^0.9.163",
|
|
31
|
+
"@live-change/db-server": "^0.9.163",
|
|
32
|
+
"@live-change/framework": "^0.9.163",
|
|
33
|
+
"@live-change/server": "^0.9.163",
|
|
34
34
|
"dotenv": "^17.2.1",
|
|
35
35
|
"express": "^4.18.2",
|
|
36
36
|
"http-proxy-middleware": "2.0.6",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"websocket": "^1.0.34",
|
|
41
41
|
"yargs": "^17.7.2"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c410e1dacd07daed9a5c55367abd7f19d9a575cc"
|
|
44
44
|
}
|