@saltcorn/cli 0.7.1-beta.1 → 0.7.1-beta.2
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 +43 -28
- package/npm-shrinkwrap.json +96 -96
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
- package/src/commands/configuration-check.js +67 -0
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @saltcorn/cli
|
|
|
20
20
|
$ saltcorn COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ saltcorn (-v|--version|version)
|
|
23
|
-
@saltcorn/cli/0.7.1-beta.
|
|
23
|
+
@saltcorn/cli/0.7.1-beta.2 darwin-x64 node-v14.16.1
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -33,6 +33,7 @@ USAGE
|
|
|
33
33
|
<!-- commands -->
|
|
34
34
|
* [`saltcorn add-schema`](#saltcorn-add-schema)
|
|
35
35
|
* [`saltcorn backup`](#saltcorn-backup)
|
|
36
|
+
* [`saltcorn configuration-check`](#saltcorn-configuration-check)
|
|
36
37
|
* [`saltcorn create-tenant TENANT`](#saltcorn-create-tenant-tenant)
|
|
37
38
|
* [`saltcorn create-user`](#saltcorn-create-user)
|
|
38
39
|
* [`saltcorn delete-tenants`](#saltcorn-delete-tenants)
|
|
@@ -69,7 +70,7 @@ USAGE
|
|
|
69
70
|
$ saltcorn add-schema
|
|
70
71
|
```
|
|
71
72
|
|
|
72
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
73
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/add-schema.js)_
|
|
73
74
|
|
|
74
75
|
## `saltcorn backup`
|
|
75
76
|
|
|
@@ -85,7 +86,21 @@ OPTIONS
|
|
|
85
86
|
-z, --zip zip format
|
|
86
87
|
```
|
|
87
88
|
|
|
88
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
89
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/backup.js)_
|
|
90
|
+
|
|
91
|
+
## `saltcorn configuration-check`
|
|
92
|
+
|
|
93
|
+
Check configuration
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
USAGE
|
|
97
|
+
$ saltcorn configuration-check
|
|
98
|
+
|
|
99
|
+
OPTIONS
|
|
100
|
+
-t, --tenant=tenant tenant
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/configuration-check.js)_
|
|
89
104
|
|
|
90
105
|
## `saltcorn create-tenant TENANT`
|
|
91
106
|
|
|
@@ -103,7 +118,7 @@ OPTIONS
|
|
|
103
118
|
-e, --email=email Email of owner of tenant
|
|
104
119
|
```
|
|
105
120
|
|
|
106
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
121
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/create-tenant.js)_
|
|
107
122
|
|
|
108
123
|
## `saltcorn create-user`
|
|
109
124
|
|
|
@@ -121,7 +136,7 @@ OPTIONS
|
|
|
121
136
|
-t, --tenant=tenant tenant
|
|
122
137
|
```
|
|
123
138
|
|
|
124
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
139
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/create-user.js)_
|
|
125
140
|
|
|
126
141
|
## `saltcorn delete-tenants`
|
|
127
142
|
|
|
@@ -132,7 +147,7 @@ USAGE
|
|
|
132
147
|
$ saltcorn delete-tenants
|
|
133
148
|
```
|
|
134
149
|
|
|
135
|
-
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
150
|
+
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/delete-tenants.js)_
|
|
136
151
|
|
|
137
152
|
## `saltcorn fixtures`
|
|
138
153
|
|
|
@@ -151,7 +166,7 @@ DESCRIPTION
|
|
|
151
166
|
This manual step it is never required for users and rarely required for developers
|
|
152
167
|
```
|
|
153
168
|
|
|
154
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
169
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/fixtures.js)_
|
|
155
170
|
|
|
156
171
|
## `saltcorn help [COMMAND]`
|
|
157
172
|
|
|
@@ -189,7 +204,7 @@ ALIASES
|
|
|
189
204
|
$ saltcorn paths
|
|
190
205
|
```
|
|
191
206
|
|
|
192
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
207
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/info.js)_
|
|
193
208
|
|
|
194
209
|
## `saltcorn install-pack`
|
|
195
210
|
|
|
@@ -205,7 +220,7 @@ OPTIONS
|
|
|
205
220
|
-t, --tenant=tenant tenant
|
|
206
221
|
```
|
|
207
222
|
|
|
208
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
223
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/install-pack.js)_
|
|
209
224
|
|
|
210
225
|
## `saltcorn install-plugin`
|
|
211
226
|
|
|
@@ -221,7 +236,7 @@ OPTIONS
|
|
|
221
236
|
-t, --tenant=tenant tenant
|
|
222
237
|
```
|
|
223
238
|
|
|
224
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
239
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/install-plugin.js)_
|
|
225
240
|
|
|
226
241
|
## `saltcorn list-tenants`
|
|
227
242
|
|
|
@@ -232,7 +247,7 @@ USAGE
|
|
|
232
247
|
$ saltcorn list-tenants
|
|
233
248
|
```
|
|
234
249
|
|
|
235
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
250
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/list-tenants.js)_
|
|
236
251
|
|
|
237
252
|
## `saltcorn localize-plugin PLUGIN PATH`
|
|
238
253
|
|
|
@@ -250,7 +265,7 @@ OPTIONS
|
|
|
250
265
|
-t, --tenant=tenant tenant
|
|
251
266
|
```
|
|
252
267
|
|
|
253
|
-
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
268
|
+
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/localize-plugin.js)_
|
|
254
269
|
|
|
255
270
|
## `saltcorn make-migration`
|
|
256
271
|
|
|
@@ -266,7 +281,7 @@ DESCRIPTION
|
|
|
266
281
|
unless you are a developer.
|
|
267
282
|
```
|
|
268
283
|
|
|
269
|
-
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
284
|
+
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/make-migration.js)_
|
|
270
285
|
|
|
271
286
|
## `saltcorn saltcorn migrate`
|
|
272
287
|
|
|
@@ -288,7 +303,7 @@ DESCRIPTION
|
|
|
288
303
|
servers and need to control when the migrations are run.
|
|
289
304
|
```
|
|
290
305
|
|
|
291
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
306
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/migrate.js)_
|
|
292
307
|
|
|
293
308
|
## `saltcorn plugins`
|
|
294
309
|
|
|
@@ -315,7 +330,7 @@ EXAMPLES
|
|
|
315
330
|
plugins -u -f - force plugin update
|
|
316
331
|
```
|
|
317
332
|
|
|
318
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
333
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/plugins.js)_
|
|
319
334
|
|
|
320
335
|
## `saltcorn release VERSION`
|
|
321
336
|
|
|
@@ -329,7 +344,7 @@ ARGUMENTS
|
|
|
329
344
|
VERSION New version number
|
|
330
345
|
```
|
|
331
346
|
|
|
332
|
-
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
347
|
+
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/release.js)_
|
|
333
348
|
|
|
334
349
|
## `saltcorn reset-schema`
|
|
335
350
|
|
|
@@ -348,7 +363,7 @@ DESCRIPTION
|
|
|
348
363
|
This will delete all existing information
|
|
349
364
|
```
|
|
350
365
|
|
|
351
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
366
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/reset-schema.js)_
|
|
352
367
|
|
|
353
368
|
## `saltcorn restore FILE`
|
|
354
369
|
|
|
@@ -365,7 +380,7 @@ OPTIONS
|
|
|
365
380
|
-t, --tenant=tenant tenant
|
|
366
381
|
```
|
|
367
382
|
|
|
368
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
383
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/restore.js)_
|
|
369
384
|
|
|
370
385
|
## `saltcorn rm-tenant TENANT`
|
|
371
386
|
|
|
@@ -379,7 +394,7 @@ ARGUMENTS
|
|
|
379
394
|
TENANT Tenant to remove
|
|
380
395
|
```
|
|
381
396
|
|
|
382
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
397
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/rm-tenant.js)_
|
|
383
398
|
|
|
384
399
|
## `saltcorn run-benchmark [BASEURL]`
|
|
385
400
|
|
|
@@ -398,7 +413,7 @@ OPTIONS
|
|
|
398
413
|
-t, --token=token API Token for reporting results
|
|
399
414
|
```
|
|
400
415
|
|
|
401
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
416
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/run-benchmark.js)_
|
|
402
417
|
|
|
403
418
|
## `saltcorn run-tests [PACKAGE]`
|
|
404
419
|
|
|
@@ -418,7 +433,7 @@ OPTIONS
|
|
|
418
433
|
--watchAll Watch files for changes and rerun all tests.
|
|
419
434
|
```
|
|
420
435
|
|
|
421
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
436
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/run-tests.js)_
|
|
422
437
|
|
|
423
438
|
## `saltcorn scheduler`
|
|
424
439
|
|
|
@@ -432,7 +447,7 @@ OPTIONS
|
|
|
432
447
|
-v, --verbose Verbose
|
|
433
448
|
```
|
|
434
449
|
|
|
435
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
450
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/scheduler.js)_
|
|
436
451
|
|
|
437
452
|
## `saltcorn serve`
|
|
438
453
|
|
|
@@ -452,7 +467,7 @@ OPTIONS
|
|
|
452
467
|
-v, --verbose Verbose
|
|
453
468
|
```
|
|
454
469
|
|
|
455
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
470
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/serve.js)_
|
|
456
471
|
|
|
457
472
|
## `saltcorn set-cfg KEY VALUE`
|
|
458
473
|
|
|
@@ -471,7 +486,7 @@ OPTIONS
|
|
|
471
486
|
-t, --tenant=tenant tenant
|
|
472
487
|
```
|
|
473
488
|
|
|
474
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
489
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/set-cfg.js)_
|
|
475
490
|
|
|
476
491
|
## `saltcorn setup`
|
|
477
492
|
|
|
@@ -490,7 +505,7 @@ DESCRIPTION
|
|
|
490
505
|
configuration file
|
|
491
506
|
```
|
|
492
507
|
|
|
493
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
508
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/setup.js)_
|
|
494
509
|
|
|
495
510
|
## `saltcorn setup-benchmark`
|
|
496
511
|
|
|
@@ -504,7 +519,7 @@ OPTIONS
|
|
|
504
519
|
-t, --tenant=tenant tenant
|
|
505
520
|
```
|
|
506
521
|
|
|
507
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
522
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/setup-benchmark.js)_
|
|
508
523
|
|
|
509
524
|
## `saltcorn test-plugin PATH`
|
|
510
525
|
|
|
@@ -522,7 +537,7 @@ DESCRIPTION
|
|
|
522
537
|
Extra documentation goes here
|
|
523
538
|
```
|
|
524
539
|
|
|
525
|
-
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
540
|
+
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/test-plugin.js)_
|
|
526
541
|
|
|
527
542
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
528
543
|
|
|
@@ -539,5 +554,5 @@ ARGUMENTS
|
|
|
539
554
|
TENANT tenant name
|
|
540
555
|
```
|
|
541
556
|
|
|
542
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.
|
|
557
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1-beta.2/src/commands/transform-field.js)_
|
|
543
558
|
<!-- commandsstop -->
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
|
-
"version": "0.7.1-beta.
|
|
3
|
+
"version": "0.7.1-beta.2",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -106,14 +106,14 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"@babel/parser": {
|
|
109
|
-
"version": "7.17.
|
|
110
|
-
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.
|
|
111
|
-
"integrity": "sha512-
|
|
109
|
+
"version": "7.17.8",
|
|
110
|
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.8.tgz",
|
|
111
|
+
"integrity": "sha512-BoHhDJrJXqcg+ZL16Xv39H9n+AqJ4pcDrQBGZN+wHxIysrLZ3/ECwCBUch/1zUNhnsXULcONU3Ei5Hmkfk6kiQ=="
|
|
112
112
|
},
|
|
113
113
|
"@babel/runtime": {
|
|
114
|
-
"version": "7.17.
|
|
115
|
-
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.
|
|
116
|
-
"integrity": "sha512-
|
|
114
|
+
"version": "7.17.8",
|
|
115
|
+
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.8.tgz",
|
|
116
|
+
"integrity": "sha512-dQpEpK0O9o6lj6oPu0gRDbbnk+4LeHlNcBpspf6Olzt3GIX4P1lWF1gS+pHLDFlaJvbR6q7jCfQ08zA4QJBnmA==",
|
|
117
117
|
"requires": {
|
|
118
118
|
"regenerator-runtime": "^0.13.4"
|
|
119
119
|
}
|
|
@@ -1150,14 +1150,14 @@
|
|
|
1150
1150
|
}
|
|
1151
1151
|
},
|
|
1152
1152
|
"@saltcorn/admin-models": {
|
|
1153
|
-
"version": "0.7.1-beta.
|
|
1154
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/admin-models/-/admin-models-0.7.1-beta.
|
|
1155
|
-
"integrity": "sha512-
|
|
1156
|
-
"requires": {
|
|
1157
|
-
"@saltcorn/data": "0.7.1-beta.
|
|
1158
|
-
"@saltcorn/db-common": "0.7.1-beta.
|
|
1159
|
-
"@saltcorn/markup": "0.7.1-beta.
|
|
1160
|
-
"@saltcorn/types": "0.7.1-beta.
|
|
1153
|
+
"version": "0.7.1-beta.2",
|
|
1154
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/admin-models/-/admin-models-0.7.1-beta.2.tgz",
|
|
1155
|
+
"integrity": "sha512-DCns9fj8sMQWP5596+e+Y1HxpaFvR9sDPrb6pSzQT7A9yUx5+tdjp2Xlto5VE3lcuy5QAtoP6WiVWy6PzGXfYQ==",
|
|
1156
|
+
"requires": {
|
|
1157
|
+
"@saltcorn/data": "0.7.1-beta.2",
|
|
1158
|
+
"@saltcorn/db-common": "0.7.1-beta.2",
|
|
1159
|
+
"@saltcorn/markup": "0.7.1-beta.2",
|
|
1160
|
+
"@saltcorn/types": "0.7.1-beta.2",
|
|
1161
1161
|
"adm-zip": "0.5.5",
|
|
1162
1162
|
"csv-stringify": "^5.5.0",
|
|
1163
1163
|
"csvtojson": "^2.0.10",
|
|
@@ -1167,31 +1167,31 @@
|
|
|
1167
1167
|
}
|
|
1168
1168
|
},
|
|
1169
1169
|
"@saltcorn/base-plugin": {
|
|
1170
|
-
"version": "0.7.1-beta.
|
|
1171
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.7.1-beta.
|
|
1172
|
-
"integrity": "sha512-
|
|
1170
|
+
"version": "0.7.1-beta.2",
|
|
1171
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.7.1-beta.2.tgz",
|
|
1172
|
+
"integrity": "sha512-I+MzyTfuCqwqsP5lClomklIlc1A+emeFN8DGJJb6Yml8D9NtqNwfYzDx6lDjiX0R4QWtl5/O0DWkU+CDY5/8lw==",
|
|
1173
1173
|
"requires": {
|
|
1174
|
-
"@saltcorn/data": "0.7.1-beta.
|
|
1174
|
+
"@saltcorn/data": "0.7.1-beta.2"
|
|
1175
1175
|
}
|
|
1176
1176
|
},
|
|
1177
1177
|
"@saltcorn/builder": {
|
|
1178
|
-
"version": "0.7.1-beta.
|
|
1179
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.7.1-beta.
|
|
1180
|
-
"integrity": "sha512
|
|
1178
|
+
"version": "0.7.1-beta.2",
|
|
1179
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.7.1-beta.2.tgz",
|
|
1180
|
+
"integrity": "sha512-/LCio6sEnLrydr1KVkyjUli/hSemUWguQrgJwJbaq8nr9cWMiPAhVFdLGDSvExTypR5432jYBB/ESCFD2Wms5Q==",
|
|
1181
1181
|
"requires": {
|
|
1182
1182
|
"styled-components": "4.4.1"
|
|
1183
1183
|
}
|
|
1184
1184
|
},
|
|
1185
1185
|
"@saltcorn/data": {
|
|
1186
|
-
"version": "0.7.1-beta.
|
|
1187
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.7.1-beta.
|
|
1188
|
-
"integrity": "sha512-
|
|
1189
|
-
"requires": {
|
|
1190
|
-
"@saltcorn/db-common": "0.7.1-beta.
|
|
1191
|
-
"@saltcorn/markup": "0.7.1-beta.
|
|
1192
|
-
"@saltcorn/postgres": "0.7.1-beta.
|
|
1193
|
-
"@saltcorn/sqlite": "0.7.1-beta.
|
|
1194
|
-
"@saltcorn/types": "0.7.1-beta.
|
|
1186
|
+
"version": "0.7.1-beta.2",
|
|
1187
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.7.1-beta.2.tgz",
|
|
1188
|
+
"integrity": "sha512-fAUHLBtGd6tQ2uAYC/EbP9sG2fAzkCkZowbizLuXJpKocUZqV/e6G2siruioQ87FQPRKtZbj/5sKvA6yH5Sl9g==",
|
|
1189
|
+
"requires": {
|
|
1190
|
+
"@saltcorn/db-common": "0.7.1-beta.2",
|
|
1191
|
+
"@saltcorn/markup": "0.7.1-beta.2",
|
|
1192
|
+
"@saltcorn/postgres": "0.7.1-beta.2",
|
|
1193
|
+
"@saltcorn/sqlite": "0.7.1-beta.2",
|
|
1194
|
+
"@saltcorn/types": "0.7.1-beta.2",
|
|
1195
1195
|
"@types/mjml": "4.7.0",
|
|
1196
1196
|
"acorn": "^8.0.3",
|
|
1197
1197
|
"astring": "^1.4.3",
|
|
@@ -1217,14 +1217,14 @@
|
|
|
1217
1217
|
}
|
|
1218
1218
|
},
|
|
1219
1219
|
"@saltcorn/db-common": {
|
|
1220
|
-
"version": "0.7.1-beta.
|
|
1221
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.7.1-beta.
|
|
1222
|
-
"integrity": "sha512-
|
|
1220
|
+
"version": "0.7.1-beta.2",
|
|
1221
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.7.1-beta.2.tgz",
|
|
1222
|
+
"integrity": "sha512-vXcoh4hw+qn9Mt3dQ1rdtf777Q7NbWEC5gzGNePoD2CZeOAHwmuIyARK2aIe7ufuPm2waXrtkFOieM3IaXxU9w=="
|
|
1223
1223
|
},
|
|
1224
1224
|
"@saltcorn/markup": {
|
|
1225
|
-
"version": "0.7.1-beta.
|
|
1226
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.7.1-beta.
|
|
1227
|
-
"integrity": "sha512
|
|
1225
|
+
"version": "0.7.1-beta.2",
|
|
1226
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.7.1-beta.2.tgz",
|
|
1227
|
+
"integrity": "sha512-/CJiGAeeYFuNNgMOhgdbT6Azf3I7eVBh2uFEp5q1/pwTTOMsEqFwWmYlPijkDAbHivjT+hObp+B12u2qMuFH5g==",
|
|
1228
1228
|
"requires": {
|
|
1229
1229
|
"escape-html": "^1.0.3",
|
|
1230
1230
|
"html-tags": "3.1.0",
|
|
@@ -1232,37 +1232,37 @@
|
|
|
1232
1232
|
}
|
|
1233
1233
|
},
|
|
1234
1234
|
"@saltcorn/postgres": {
|
|
1235
|
-
"version": "0.7.1-beta.
|
|
1236
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.7.1-beta.
|
|
1237
|
-
"integrity": "sha512-
|
|
1235
|
+
"version": "0.7.1-beta.2",
|
|
1236
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.7.1-beta.2.tgz",
|
|
1237
|
+
"integrity": "sha512-jxSaX74DrhQrq+cL7D0iSSWAO4mKAMoajTMb+NygwLV4youV0xwnspfLTHDqb7CD7a0LQ/dRCCwVXlqTWMuP3A==",
|
|
1238
1238
|
"optional": true,
|
|
1239
1239
|
"requires": {
|
|
1240
|
-
"@saltcorn/db-common": "0.7.1-beta.
|
|
1240
|
+
"@saltcorn/db-common": "0.7.1-beta.2",
|
|
1241
1241
|
"pg": "^8.2.1",
|
|
1242
1242
|
"pg-copy-streams": "^5.1.1"
|
|
1243
1243
|
}
|
|
1244
1244
|
},
|
|
1245
1245
|
"@saltcorn/sbadmin2": {
|
|
1246
|
-
"version": "0.7.1-beta.
|
|
1247
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.7.1-beta.
|
|
1248
|
-
"integrity": "sha512-
|
|
1246
|
+
"version": "0.7.1-beta.2",
|
|
1247
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.7.1-beta.2.tgz",
|
|
1248
|
+
"integrity": "sha512-tsrvyWbbrkWWHT7P0UN2szSNR+cIkZOcI/kma19GlV5qWs0F566419YeIuxwlO9q3UocMpHUnQkP9rE/XPC75Q==",
|
|
1249
1249
|
"requires": {
|
|
1250
|
-
"@saltcorn/data": "0.7.1-beta.
|
|
1251
|
-
"@saltcorn/markup": "0.7.1-beta.
|
|
1250
|
+
"@saltcorn/data": "0.7.1-beta.2",
|
|
1251
|
+
"@saltcorn/markup": "0.7.1-beta.2",
|
|
1252
1252
|
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.3"
|
|
1253
1253
|
}
|
|
1254
1254
|
},
|
|
1255
1255
|
"@saltcorn/server": {
|
|
1256
|
-
"version": "0.7.1-beta.
|
|
1257
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.7.1-beta.
|
|
1258
|
-
"integrity": "sha512-
|
|
1259
|
-
"requires": {
|
|
1260
|
-
"@saltcorn/admin-models": "0.7.1-beta.
|
|
1261
|
-
"@saltcorn/base-plugin": "0.7.1-beta.
|
|
1262
|
-
"@saltcorn/builder": "0.7.1-beta.
|
|
1263
|
-
"@saltcorn/data": "0.7.1-beta.
|
|
1264
|
-
"@saltcorn/markup": "0.7.1-beta.
|
|
1265
|
-
"@saltcorn/sbadmin2": "0.7.1-beta.
|
|
1256
|
+
"version": "0.7.1-beta.2",
|
|
1257
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.7.1-beta.2.tgz",
|
|
1258
|
+
"integrity": "sha512-f/6z/XS69oHHosWM6LsOG41G4Q7sZZKIQF6orzruOUCSkQEu0s3hnnt7O45ntr+FTydTlLerWvPWys6O0dY+Fw==",
|
|
1259
|
+
"requires": {
|
|
1260
|
+
"@saltcorn/admin-models": "0.7.1-beta.2",
|
|
1261
|
+
"@saltcorn/base-plugin": "0.7.1-beta.2",
|
|
1262
|
+
"@saltcorn/builder": "0.7.1-beta.2",
|
|
1263
|
+
"@saltcorn/data": "0.7.1-beta.2",
|
|
1264
|
+
"@saltcorn/markup": "0.7.1-beta.2",
|
|
1265
|
+
"@saltcorn/sbadmin2": "0.7.1-beta.2",
|
|
1266
1266
|
"@socket.io/cluster-adapter": "^0.1.0",
|
|
1267
1267
|
"@socket.io/sticky": "^1.0.1",
|
|
1268
1268
|
"aws-sdk": "^2.1037.0",
|
|
@@ -1306,19 +1306,19 @@
|
|
|
1306
1306
|
}
|
|
1307
1307
|
},
|
|
1308
1308
|
"@saltcorn/sqlite": {
|
|
1309
|
-
"version": "0.7.1-beta.
|
|
1310
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.7.1-beta.
|
|
1311
|
-
"integrity": "sha512
|
|
1309
|
+
"version": "0.7.1-beta.2",
|
|
1310
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.7.1-beta.2.tgz",
|
|
1311
|
+
"integrity": "sha512-xMzet9NVreIcHHqGh6Uxba6iT+YLluhJvH8ab/YwtoT/L35XT7uh3srQC8QtljIvQrL8prJPZc12cq7ddWAlXQ==",
|
|
1312
1312
|
"optional": true,
|
|
1313
1313
|
"requires": {
|
|
1314
|
-
"@saltcorn/db-common": "0.7.1-beta.
|
|
1314
|
+
"@saltcorn/db-common": "0.7.1-beta.2",
|
|
1315
1315
|
"sqlite3": "^5.0.2"
|
|
1316
1316
|
}
|
|
1317
1317
|
},
|
|
1318
1318
|
"@saltcorn/types": {
|
|
1319
|
-
"version": "0.7.1-beta.
|
|
1320
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/types/-/types-0.7.1-beta.
|
|
1321
|
-
"integrity": "sha512-
|
|
1319
|
+
"version": "0.7.1-beta.2",
|
|
1320
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/types/-/types-0.7.1-beta.2.tgz",
|
|
1321
|
+
"integrity": "sha512-Q8nJK3SojNbvar8aefYZC0WYI8FAI98IIVyQNs1JhMI30XaJra0lD1l5r2TPi+LSf4TlHTahiXh55DI44dao7A=="
|
|
1322
1322
|
},
|
|
1323
1323
|
"@sindresorhus/is": {
|
|
1324
1324
|
"version": "0.14.0",
|
|
@@ -1335,9 +1335,9 @@
|
|
|
1335
1335
|
},
|
|
1336
1336
|
"dependencies": {
|
|
1337
1337
|
"debug": {
|
|
1338
|
-
"version": "4.3.
|
|
1339
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.
|
|
1340
|
-
"integrity": "sha512
|
|
1338
|
+
"version": "4.3.4",
|
|
1339
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
1340
|
+
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
1341
1341
|
"requires": {
|
|
1342
1342
|
"ms": "2.1.2"
|
|
1343
1343
|
}
|
|
@@ -1711,9 +1711,9 @@
|
|
|
1711
1711
|
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
|
1712
1712
|
},
|
|
1713
1713
|
"aws-sdk": {
|
|
1714
|
-
"version": "2.
|
|
1715
|
-
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.
|
|
1716
|
-
"integrity": "sha512-
|
|
1714
|
+
"version": "2.1097.0",
|
|
1715
|
+
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1097.0.tgz",
|
|
1716
|
+
"integrity": "sha512-fChMDiSfWcW0EUWmiqlyc+VAIXKH0w7BBruL3cVWSwO+5oA5A9juGF4NCBV2/KAHzaKaG0hXKPE49Wh6Lq74ag==",
|
|
1717
1717
|
"requires": {
|
|
1718
1718
|
"buffer": "4.9.2",
|
|
1719
1719
|
"events": "1.1.1",
|
|
@@ -2928,9 +2928,9 @@
|
|
|
2928
2928
|
}
|
|
2929
2929
|
},
|
|
2930
2930
|
"domhandler": {
|
|
2931
|
-
"version": "4.3.
|
|
2932
|
-
"resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.
|
|
2933
|
-
"integrity": "sha512-
|
|
2931
|
+
"version": "4.3.1",
|
|
2932
|
+
"resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz",
|
|
2933
|
+
"integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==",
|
|
2934
2934
|
"requires": {
|
|
2935
2935
|
"domelementtype": "^2.2.0"
|
|
2936
2936
|
}
|
|
@@ -3049,9 +3049,9 @@
|
|
|
3049
3049
|
},
|
|
3050
3050
|
"dependencies": {
|
|
3051
3051
|
"debug": {
|
|
3052
|
-
"version": "4.3.
|
|
3053
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.
|
|
3054
|
-
"integrity": "sha512
|
|
3052
|
+
"version": "4.3.4",
|
|
3053
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
3054
|
+
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
3055
3055
|
"requires": {
|
|
3056
3056
|
"ms": "2.1.2"
|
|
3057
3057
|
}
|
|
@@ -3922,9 +3922,9 @@
|
|
|
3922
3922
|
},
|
|
3923
3923
|
"dependencies": {
|
|
3924
3924
|
"debug": {
|
|
3925
|
-
"version": "4.3.
|
|
3926
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.
|
|
3927
|
-
"integrity": "sha512
|
|
3925
|
+
"version": "4.3.4",
|
|
3926
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
3927
|
+
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
3928
3928
|
"requires": {
|
|
3929
3929
|
"ms": "2.1.2"
|
|
3930
3930
|
}
|
|
@@ -4486,9 +4486,9 @@
|
|
|
4486
4486
|
"integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="
|
|
4487
4487
|
},
|
|
4488
4488
|
"debug": {
|
|
4489
|
-
"version": "4.3.
|
|
4490
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.
|
|
4491
|
-
"integrity": "sha512
|
|
4489
|
+
"version": "4.3.4",
|
|
4490
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
4491
|
+
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
4492
4492
|
"requires": {
|
|
4493
4493
|
"ms": "2.1.2"
|
|
4494
4494
|
}
|
|
@@ -4764,9 +4764,9 @@
|
|
|
4764
4764
|
}
|
|
4765
4765
|
},
|
|
4766
4766
|
"minimist": {
|
|
4767
|
-
"version": "1.2.
|
|
4768
|
-
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.
|
|
4769
|
-
"integrity": "sha512-
|
|
4767
|
+
"version": "1.2.6",
|
|
4768
|
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
|
|
4769
|
+
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="
|
|
4770
4770
|
},
|
|
4771
4771
|
"minipass": {
|
|
4772
4772
|
"version": "2.9.0",
|
|
@@ -5445,9 +5445,9 @@
|
|
|
5445
5445
|
"integrity": "sha512-3l4E8uMPY1HdMMryPRUAl+oIHtXtyiTlIiESNSVSNxcPfzAFzeTbXFQkZfAwBbo0B1qMSG8nUABx+Gd+YrbKrQ=="
|
|
5446
5446
|
},
|
|
5447
5447
|
"nodemailer": {
|
|
5448
|
-
"version": "6.7.
|
|
5449
|
-
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.7.
|
|
5450
|
-
"integrity": "sha512-
|
|
5448
|
+
"version": "6.7.3",
|
|
5449
|
+
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.7.3.tgz",
|
|
5450
|
+
"integrity": "sha512-KUdDsspqx89sD4UUyUKzdlUOper3hRkDVkrKh/89G+d9WKsU5ox51NWS4tB1XR5dPUdR4SP0E3molyEfOvSa3g=="
|
|
5451
5451
|
},
|
|
5452
5452
|
"nopt": {
|
|
5453
5453
|
"version": "3.0.6",
|
|
@@ -6625,9 +6625,9 @@
|
|
|
6625
6625
|
},
|
|
6626
6626
|
"dependencies": {
|
|
6627
6627
|
"debug": {
|
|
6628
|
-
"version": "4.3.
|
|
6629
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.
|
|
6630
|
-
"integrity": "sha512
|
|
6628
|
+
"version": "4.3.4",
|
|
6629
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
6630
|
+
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
6631
6631
|
"requires": {
|
|
6632
6632
|
"ms": "2.1.2"
|
|
6633
6633
|
}
|
|
@@ -6650,9 +6650,9 @@
|
|
|
6650
6650
|
},
|
|
6651
6651
|
"dependencies": {
|
|
6652
6652
|
"debug": {
|
|
6653
|
-
"version": "4.3.
|
|
6654
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.
|
|
6655
|
-
"integrity": "sha512
|
|
6653
|
+
"version": "4.3.4",
|
|
6654
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
6655
|
+
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
6656
6656
|
"requires": {
|
|
6657
6657
|
"ms": "2.1.2"
|
|
6658
6658
|
}
|
|
@@ -6903,9 +6903,9 @@
|
|
|
6903
6903
|
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw=="
|
|
6904
6904
|
},
|
|
6905
6905
|
"systeminformation": {
|
|
6906
|
-
"version": "5.11.
|
|
6907
|
-
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.11.
|
|
6908
|
-
"integrity": "sha512-
|
|
6906
|
+
"version": "5.11.9",
|
|
6907
|
+
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.11.9.tgz",
|
|
6908
|
+
"integrity": "sha512-eeMtL9UJFR/LYG+2rpeAgZ0Va4ojlNQTkYiQH/xbbPwDjDMsaetj3Pkc+C1aH5G8mav6HvDY8kI4Vl4noksSkA=="
|
|
6909
6909
|
},
|
|
6910
6910
|
"tar": {
|
|
6911
6911
|
"version": "2.2.2",
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.7.1-beta.1","commands":{"add-schema":{"id":"add-schema","description":"Add Saltcorn schema to existing database","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"backup":{"id":"backup","description":"Backup the PostgreSQL database to a file with pg_dump or zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"zip":{"name":"zip","type":"boolean","char":"z","description":"zip format","allowNo":false}},"args":[]},"create-tenant":{"id":"create-tenant","description":"Create a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"email":{"name":"email","type":"option","char":"e","description":"Email of owner of tenant"},"description":{"name":"description","type":"option","char":"d","description":"Description of tenant"}},"args":[{"name":"tenant","description":"Tenant subdomain to create","required":true}]},"create-user":{"id":"create-user","description":"Create a new user","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"Admin user","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"email"},"role":{"name":"role","type":"option","char":"r","description":"role"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"delete-tenants":{"id":"delete-tenants","description":"Delete inactive tenants","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"fixtures":{"id":"fixtures","description":"Load fixtures for testing\n...\nThis manual step it is never required for users and rarely required for developers\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"reset":{"name":"reset","type":"boolean","char":"r","description":"Also reset schema","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"info":{"id":"info","description":"Show paths\n...\nShow configuration and file store paths\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":["paths"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"install-pack":{"id":"install-pack","description":"Install a pack","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Pack name in store"},"file":{"name":"file","type":"option","char":"f","description":"File with pack JSON"}},"args":[]},"install-plugin":{"id":"install-plugin","description":"Install a plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Plugin name in store"},"directory":{"name":"directory","type":"option","char":"d","description":"Directory with local plugin"}},"args":[]},"list-tenants":{"id":"list-tenants","description":"List tenants in CSV format","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"localize-plugin":{"id":"localize-plugin","description":"Convert plugin to local plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"plugin","description":"Current plugin name","required":true},{"name":"path","description":"Absolute path to local plugin","required":true}]},"make-migration":{"id":"make-migration","description":"Create a new blank Database structure migration file.\nThese migrations update database structure.\nYou should not normally need to run this\nunless you are a developer.\n","usage":"make-migration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"migrate":{"id":"migrate","description":"Run Database structure migrations\n...\nNOTE!\n- Please stop Saltcorn before run DB migrations.\n- Please make db backup before migration.\n- There are no way to rollback migration if you doesn't make backup.\n\nThis is not normally required as migrations will be run when the server starts.\nHowever, this command may be useful if you are running multiple application\nservers and need to control when the migrations are run.\n","usage":"saltcorn migrate","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"plugins":{"id":"plugins","description":"List and upgrade plugins for tenants\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"examples":["plugins -v - verbose output of commands","plugins -u -d - dry-run for plugin update","plugins -u -f - force plugin update"],"flags":{"upgrade":{"name":"upgrade","type":"boolean","char":"u","description":"Upgrade","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","char":"d","description":"Upgrade dry-run","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Force update","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"Plugin name"}},"args":[]},"release":{"id":"release","description":"Release a new saltcorn version","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"version","description":"New version number","required":true}]},"reset-schema":{"id":"reset-schema","description":"Reset the database\n...\nThis will delete all existing information\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"restore":{"id":"restore","description":"Restore a previously backed up database (zip or sqlc format)","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"file","description":"backup file to restore","required":true}]},"rm-tenant":{"id":"rm-tenant","description":"Remove a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"tenant","description":"Tenant to remove","required":true}]},"run-benchmark":{"id":"run-benchmark","description":"Run benchmark","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"token":{"name":"token","type":"option","char":"t","description":"API Token for reporting results"},"benchmark":{"name":"benchmark","type":"option","char":"b","description":"Which benchmark to run"},"delay":{"name":"delay","type":"option","char":"d","description":"delay between runs (s)","default":30}},"args":[{"name":"baseurl","description":"Base URL","required":false}]},"run-tests":{"id":"run-tests","description":"Run test suites","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false},"testFilter":{"name":"testFilter","type":"option","char":"t","description":"Filter tests by suite or test name"},"watch":{"name":"watch","type":"boolean","description":"Watch files for changes and rerun tests related to changed files.","allowNo":false},"watchAll":{"name":"watchAll","type":"boolean","description":"Watch files for changes and rerun all tests.","allowNo":false}},"args":[{"name":"package","description":"which package to run tests for"}]},"scheduler":{"id":"scheduler","description":"Run the Saltcorn scheduler","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"serve":{"id":"serve","description":"Start the Saltcorn server","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"port":{"name":"port","type":"option","char":"p","description":"port","default":3000},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"watchReaper":{"name":"watchReaper","type":"boolean","char":"r","description":"Watch reaper","allowNo":false},"dev":{"name":"dev","type":"boolean","char":"d","description":"Run in dev mode and re-start on file changes","allowNo":false},"addschema":{"name":"addschema","type":"boolean","char":"a","description":"Add schema if missing","allowNo":false},"nomigrate":{"name":"nomigrate","type":"boolean","char":"n","description":"No migrations","allowNo":false},"noscheduler":{"name":"noscheduler","type":"boolean","char":"s","description":"No scheduler","allowNo":false}},"args":[]},"set-cfg":{"id":"set-cfg","description":"Set a configuration value","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"plugin":{"name":"plugin","type":"option","char":"p","description":"plugin"}},"args":[{"name":"key","description":"Configuration key","required":true},{"name":"value","description":"Configuration value (JSON or string)","required":true}]},"setup-benchmark":{"id":"setup-benchmark","description":"Setup an instance for benchmarking","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"setup":{"id":"setup","description":"Set up a new system\n...\nThis will attempt to install or connect a database, and set up a \nconfiguration file\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false}},"args":[]},"test-plugin":{"id":"test-plugin","description":"Test a plugin\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin package","required":true}]},"transform-field":{"id":"transform-field","description":"transform an existing field by applying a calculated expression","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"expression","description":"expression to calculate field","required":true},{"name":"field","description":"field name","required":true},{"name":"table","description":"table name","required":true},{"name":"tenant","description":"tenant name","required":false}]}}}
|
|
1
|
+
{"version":"0.7.1-beta.2","commands":{"add-schema":{"id":"add-schema","description":"Add Saltcorn schema to existing database","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"backup":{"id":"backup","description":"Backup the PostgreSQL database to a file with pg_dump or zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"zip":{"name":"zip","type":"boolean","char":"z","description":"zip format","allowNo":false}},"args":[]},"configuration-check":{"id":"configuration-check","description":"Check configuration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"create-tenant":{"id":"create-tenant","description":"Create a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"email":{"name":"email","type":"option","char":"e","description":"Email of owner of tenant"},"description":{"name":"description","type":"option","char":"d","description":"Description of tenant"}},"args":[{"name":"tenant","description":"Tenant subdomain to create","required":true}]},"create-user":{"id":"create-user","description":"Create a new user","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"Admin user","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"email"},"role":{"name":"role","type":"option","char":"r","description":"role"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"delete-tenants":{"id":"delete-tenants","description":"Delete inactive tenants","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"fixtures":{"id":"fixtures","description":"Load fixtures for testing\n...\nThis manual step it is never required for users and rarely required for developers\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"reset":{"name":"reset","type":"boolean","char":"r","description":"Also reset schema","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"info":{"id":"info","description":"Show paths\n...\nShow configuration and file store paths\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":["paths"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"json format","allowNo":false}},"args":[]},"install-pack":{"id":"install-pack","description":"Install a pack","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Pack name in store"},"file":{"name":"file","type":"option","char":"f","description":"File with pack JSON"}},"args":[]},"install-plugin":{"id":"install-plugin","description":"Install a plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"name":{"name":"name","type":"option","char":"n","description":"Plugin name in store"},"directory":{"name":"directory","type":"option","char":"d","description":"Directory with local plugin"}},"args":[]},"list-tenants":{"id":"list-tenants","description":"List tenants in CSV format","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"localize-plugin":{"id":"localize-plugin","description":"Convert plugin to local plugin","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"plugin","description":"Current plugin name","required":true},{"name":"path","description":"Absolute path to local plugin","required":true}]},"make-migration":{"id":"make-migration","description":"Create a new blank Database structure migration file.\nThese migrations update database structure.\nYou should not normally need to run this\nunless you are a developer.\n","usage":"make-migration","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"migrate":{"id":"migrate","description":"Run Database structure migrations\n...\nNOTE!\n- Please stop Saltcorn before run DB migrations.\n- Please make db backup before migration.\n- There are no way to rollback migration if you doesn't make backup.\n\nThis is not normally required as migrations will be run when the server starts.\nHowever, this command may be useful if you are running multiple application\nservers and need to control when the migrations are run.\n","usage":"saltcorn migrate","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"plugins":{"id":"plugins","description":"List and upgrade plugins for tenants\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"examples":["plugins -v - verbose output of commands","plugins -u -d - dry-run for plugin update","plugins -u -f - force plugin update"],"flags":{"upgrade":{"name":"upgrade","type":"boolean","char":"u","description":"Upgrade","allowNo":false},"dryRun":{"name":"dryRun","type":"boolean","char":"d","description":"Upgrade dry-run","allowNo":false},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Force update","allowNo":false},"name":{"name":"name","type":"option","char":"n","description":"Plugin name"}},"args":[]},"release":{"id":"release","description":"Release a new saltcorn version","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"version","description":"New version number","required":true}]},"reset-schema":{"id":"reset-schema","description":"Reset the database\n...\nThis will delete all existing information\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"force":{"name":"force","type":"boolean","char":"f","description":"force","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"restore":{"id":"restore","description":"Restore a previously backed up database (zip or sqlc format)","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[{"name":"file","description":"backup file to restore","required":true}]},"rm-tenant":{"id":"rm-tenant","description":"Remove a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"tenant","description":"Tenant to remove","required":true}]},"run-benchmark":{"id":"run-benchmark","description":"Run benchmark","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"token":{"name":"token","type":"option","char":"t","description":"API Token for reporting results"},"benchmark":{"name":"benchmark","type":"option","char":"b","description":"Which benchmark to run"},"delay":{"name":"delay","type":"option","char":"d","description":"delay between runs (s)","default":30}},"args":[{"name":"baseurl","description":"Base URL","required":false}]},"run-tests":{"id":"run-tests","description":"Run test suites","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false},"testFilter":{"name":"testFilter","type":"option","char":"t","description":"Filter tests by suite or test name"},"watch":{"name":"watch","type":"boolean","description":"Watch files for changes and rerun tests related to changed files.","allowNo":false},"watchAll":{"name":"watchAll","type":"boolean","description":"Watch files for changes and rerun all tests.","allowNo":false}},"args":[{"name":"package","description":"which package to run tests for"}]},"scheduler":{"id":"scheduler","description":"Run the Saltcorn scheduler","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false}},"args":[]},"serve":{"id":"serve","description":"Start the Saltcorn server","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"port":{"name":"port","type":"option","char":"p","description":"port","default":3000},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose","allowNo":false},"watchReaper":{"name":"watchReaper","type":"boolean","char":"r","description":"Watch reaper","allowNo":false},"dev":{"name":"dev","type":"boolean","char":"d","description":"Run in dev mode and re-start on file changes","allowNo":false},"addschema":{"name":"addschema","type":"boolean","char":"a","description":"Add schema if missing","allowNo":false},"nomigrate":{"name":"nomigrate","type":"boolean","char":"n","description":"No migrations","allowNo":false},"noscheduler":{"name":"noscheduler","type":"boolean","char":"s","description":"No scheduler","allowNo":false}},"args":[]},"set-cfg":{"id":"set-cfg","description":"Set a configuration value","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"plugin":{"name":"plugin","type":"option","char":"p","description":"plugin"}},"args":[{"name":"key","description":"Configuration key","required":true},{"name":"value","description":"Configuration value (JSON or string)","required":true}]},"setup-benchmark":{"id":"setup-benchmark","description":"Setup an instance for benchmarking","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"}},"args":[]},"setup":{"id":"setup","description":"Set up a new system\n...\nThis will attempt to install or connect a database, and set up a \nconfiguration file\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"coverage":{"name":"coverage","type":"boolean","char":"c","description":"Coverage","allowNo":false}},"args":[]},"test-plugin":{"id":"test-plugin","description":"Test a plugin\n...\nExtra documentation goes here\n","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"path to plugin package","required":true}]},"transform-field":{"id":"transform-field","description":"transform an existing field by applying a calculated expression","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"expression","description":"expression to calculate field","required":true},{"name":"field","description":"field name","required":true},{"name":"table","description":"table name","required":true},{"name":"tenant","description":"tenant name","required":false}]}}}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
3
|
"description": "Command-line interface for Saltcorn, open-source no-code platform",
|
|
4
4
|
"homepage": "https://saltcorn.com",
|
|
5
|
-
"version": "0.7.1-beta.
|
|
5
|
+
"version": "0.7.1-beta.2",
|
|
6
6
|
"author": "Tom Nielsen @glutamate",
|
|
7
7
|
"bin": {
|
|
8
8
|
"saltcorn": "./bin/saltcorn"
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"@oclif/command": "^1.8.16",
|
|
13
13
|
"@oclif/config": "^1.18.3",
|
|
14
14
|
"@oclif/plugin-help": "^3.3.1",
|
|
15
|
-
"@saltcorn/admin-models": "0.7.1-beta.
|
|
16
|
-
"@saltcorn/data": "0.7.1-beta.
|
|
17
|
-
"@saltcorn/server": "0.7.1-beta.
|
|
15
|
+
"@saltcorn/admin-models": "0.7.1-beta.2",
|
|
16
|
+
"@saltcorn/data": "0.7.1-beta.2",
|
|
17
|
+
"@saltcorn/server": "0.7.1-beta.2",
|
|
18
18
|
"cli-ux": "^5.6.7",
|
|
19
19
|
"contractis": "^0.1.0",
|
|
20
20
|
"dateformat": "^3.0.3",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node-watch": "^0.7.3",
|
|
25
25
|
"source-map-support": "^0.5.21",
|
|
26
26
|
"sudo": "^1.0.3",
|
|
27
|
-
"systeminformation": "^5.11.
|
|
27
|
+
"systeminformation": "^5.11.9",
|
|
28
28
|
"tcp-port-used": "^1.0.2",
|
|
29
29
|
"wrk": "^1.2.1"
|
|
30
30
|
},
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category saltcorn-cli
|
|
3
|
+
* @module commands/configuration-check
|
|
4
|
+
*/
|
|
5
|
+
const { Command, flags } = require("@oclif/command");
|
|
6
|
+
const { cli } = require("cli-ux");
|
|
7
|
+
const { maybe_as_tenant } = require("../common");
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* ConfigurationCheckCommand Class
|
|
11
|
+
* @extends oclif.Command
|
|
12
|
+
* @category saltcorn-cli
|
|
13
|
+
*/
|
|
14
|
+
class ConfigurationCheckCommand extends Command {
|
|
15
|
+
/**
|
|
16
|
+
* @returns {Promise<void>}
|
|
17
|
+
*/
|
|
18
|
+
async run() {
|
|
19
|
+
const User = require("@saltcorn/data/models/user");
|
|
20
|
+
|
|
21
|
+
const { flags } = this.parse(ConfigurationCheckCommand);
|
|
22
|
+
|
|
23
|
+
const { loadAllPlugins } = require("@saltcorn/server/load_plugins");
|
|
24
|
+
const { init_multi_tenant } = require("@saltcorn/data/db/state");
|
|
25
|
+
const { getAllTenants } = require("@saltcorn/admin-models/models/tenant");
|
|
26
|
+
const {
|
|
27
|
+
runConfigurationCheck,
|
|
28
|
+
} = require("@saltcorn/admin-models/models/config-check");
|
|
29
|
+
const { mockReqRes } = require("@saltcorn/data/tests/mocks");
|
|
30
|
+
await loadAllPlugins();
|
|
31
|
+
const tenants = await getAllTenants();
|
|
32
|
+
await init_multi_tenant(loadAllPlugins, undefined, tenants);
|
|
33
|
+
const that = this;
|
|
34
|
+
await maybe_as_tenant(flags.tenant, async () => {
|
|
35
|
+
const { passes, errors, pass } = await runConfigurationCheck(
|
|
36
|
+
mockReqRes.req
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
if (!pass) {
|
|
40
|
+
errors.forEach((s) => console.log(s + "\n"));
|
|
41
|
+
console.log(`FAIL - ${errors.length} checks failed`);
|
|
42
|
+
that.exit(1);
|
|
43
|
+
} else {
|
|
44
|
+
passes.forEach((s) => console.log(s));
|
|
45
|
+
console.log("Success - all checks pass");
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
this.exit(0);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {string}
|
|
54
|
+
*/
|
|
55
|
+
ConfigurationCheckCommand.description = `Check configuration`;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @type {object}
|
|
59
|
+
*/
|
|
60
|
+
ConfigurationCheckCommand.flags = {
|
|
61
|
+
tenant: flags.string({
|
|
62
|
+
char: "t",
|
|
63
|
+
description: "tenant",
|
|
64
|
+
}),
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
module.exports = ConfigurationCheckCommand;
|