@saltcorn/cli 0.6.2 → 0.6.3-beta.0
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 +42 -29
- package/npm-shrinkwrap.json +163 -147
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
- package/src/commands/delete-tenants.js +62 -0
- package/src/commands/fixtures.js +17 -5
- package/src/commands/plugins.js +43 -26
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.6.
|
|
23
|
+
@saltcorn/cli/0.6.3-beta.0 darwin-x64 node-v14.16.1
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -35,6 +35,7 @@ USAGE
|
|
|
35
35
|
* [`saltcorn backup`](#saltcorn-backup)
|
|
36
36
|
* [`saltcorn create-tenant TENANT`](#saltcorn-create-tenant-tenant)
|
|
37
37
|
* [`saltcorn create-user`](#saltcorn-create-user)
|
|
38
|
+
* [`saltcorn delete-tenants`](#saltcorn-delete-tenants)
|
|
38
39
|
* [`saltcorn fixtures`](#saltcorn-fixtures)
|
|
39
40
|
* [`saltcorn help [COMMAND]`](#saltcorn-help-command)
|
|
40
41
|
* [`saltcorn info`](#saltcorn-info)
|
|
@@ -68,7 +69,7 @@ USAGE
|
|
|
68
69
|
$ saltcorn add-schema
|
|
69
70
|
```
|
|
70
71
|
|
|
71
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
72
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/add-schema.js)_
|
|
72
73
|
|
|
73
74
|
## `saltcorn backup`
|
|
74
75
|
|
|
@@ -84,7 +85,7 @@ OPTIONS
|
|
|
84
85
|
-z, --zip zip format
|
|
85
86
|
```
|
|
86
87
|
|
|
87
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
88
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/backup.js)_
|
|
88
89
|
|
|
89
90
|
## `saltcorn create-tenant TENANT`
|
|
90
91
|
|
|
@@ -102,7 +103,7 @@ OPTIONS
|
|
|
102
103
|
-e, --email=email Email of owner of tenant
|
|
103
104
|
```
|
|
104
105
|
|
|
105
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
106
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/create-tenant.js)_
|
|
106
107
|
|
|
107
108
|
## `saltcorn create-user`
|
|
108
109
|
|
|
@@ -120,7 +121,18 @@ OPTIONS
|
|
|
120
121
|
-t, --tenant=tenant tenant
|
|
121
122
|
```
|
|
122
123
|
|
|
123
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
124
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/create-user.js)_
|
|
125
|
+
|
|
126
|
+
## `saltcorn delete-tenants`
|
|
127
|
+
|
|
128
|
+
Delete inactive tenants
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
USAGE
|
|
132
|
+
$ saltcorn delete-tenants
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/delete-tenants.js)_
|
|
124
136
|
|
|
125
137
|
## `saltcorn fixtures`
|
|
126
138
|
|
|
@@ -131,14 +143,15 @@ USAGE
|
|
|
131
143
|
$ saltcorn fixtures
|
|
132
144
|
|
|
133
145
|
OPTIONS
|
|
134
|
-
-r, --reset
|
|
146
|
+
-r, --reset Also reset schema
|
|
147
|
+
-t, --tenant=tenant tenant
|
|
135
148
|
|
|
136
149
|
DESCRIPTION
|
|
137
150
|
...
|
|
138
151
|
This manual step it is never required for users and rarely required for developers
|
|
139
152
|
```
|
|
140
153
|
|
|
141
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
154
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/fixtures.js)_
|
|
142
155
|
|
|
143
156
|
## `saltcorn help [COMMAND]`
|
|
144
157
|
|
|
@@ -155,7 +168,7 @@ OPTIONS
|
|
|
155
168
|
--all see all commands in CLI
|
|
156
169
|
```
|
|
157
170
|
|
|
158
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.
|
|
171
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.3.1/src/commands/help.ts)_
|
|
159
172
|
|
|
160
173
|
## `saltcorn info`
|
|
161
174
|
|
|
@@ -176,7 +189,7 @@ ALIASES
|
|
|
176
189
|
$ saltcorn paths
|
|
177
190
|
```
|
|
178
191
|
|
|
179
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
192
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/info.js)_
|
|
180
193
|
|
|
181
194
|
## `saltcorn install-pack`
|
|
182
195
|
|
|
@@ -192,7 +205,7 @@ OPTIONS
|
|
|
192
205
|
-t, --tenant=tenant tenant
|
|
193
206
|
```
|
|
194
207
|
|
|
195
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
208
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/install-pack.js)_
|
|
196
209
|
|
|
197
210
|
## `saltcorn install-plugin`
|
|
198
211
|
|
|
@@ -208,7 +221,7 @@ OPTIONS
|
|
|
208
221
|
-t, --tenant=tenant tenant
|
|
209
222
|
```
|
|
210
223
|
|
|
211
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
224
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/install-plugin.js)_
|
|
212
225
|
|
|
213
226
|
## `saltcorn list-tenants`
|
|
214
227
|
|
|
@@ -219,7 +232,7 @@ USAGE
|
|
|
219
232
|
$ saltcorn list-tenants
|
|
220
233
|
```
|
|
221
234
|
|
|
222
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
235
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/list-tenants.js)_
|
|
223
236
|
|
|
224
237
|
## `saltcorn localize-plugin PLUGIN PATH`
|
|
225
238
|
|
|
@@ -237,7 +250,7 @@ OPTIONS
|
|
|
237
250
|
-t, --tenant=tenant tenant
|
|
238
251
|
```
|
|
239
252
|
|
|
240
|
-
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
253
|
+
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/localize-plugin.js)_
|
|
241
254
|
|
|
242
255
|
## `saltcorn make-migration`
|
|
243
256
|
|
|
@@ -253,7 +266,7 @@ DESCRIPTION
|
|
|
253
266
|
unless you are a developer.
|
|
254
267
|
```
|
|
255
268
|
|
|
256
|
-
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
269
|
+
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/make-migration.js)_
|
|
257
270
|
|
|
258
271
|
## `saltcorn saltcorn migrate`
|
|
259
272
|
|
|
@@ -275,7 +288,7 @@ DESCRIPTION
|
|
|
275
288
|
servers and need to control when the migrations are run.
|
|
276
289
|
```
|
|
277
290
|
|
|
278
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
291
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/migrate.js)_
|
|
279
292
|
|
|
280
293
|
## `saltcorn plugins`
|
|
281
294
|
|
|
@@ -302,7 +315,7 @@ EXAMPLES
|
|
|
302
315
|
plugins -u -f - force plugin update
|
|
303
316
|
```
|
|
304
317
|
|
|
305
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
318
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/plugins.js)_
|
|
306
319
|
|
|
307
320
|
## `saltcorn release VERSION`
|
|
308
321
|
|
|
@@ -316,7 +329,7 @@ ARGUMENTS
|
|
|
316
329
|
VERSION New version number
|
|
317
330
|
```
|
|
318
331
|
|
|
319
|
-
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
332
|
+
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/release.js)_
|
|
320
333
|
|
|
321
334
|
## `saltcorn reset-schema`
|
|
322
335
|
|
|
@@ -335,7 +348,7 @@ DESCRIPTION
|
|
|
335
348
|
This will delete all existing information
|
|
336
349
|
```
|
|
337
350
|
|
|
338
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
351
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/reset-schema.js)_
|
|
339
352
|
|
|
340
353
|
## `saltcorn restore FILE`
|
|
341
354
|
|
|
@@ -352,7 +365,7 @@ OPTIONS
|
|
|
352
365
|
-t, --tenant=tenant tenant
|
|
353
366
|
```
|
|
354
367
|
|
|
355
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
368
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/restore.js)_
|
|
356
369
|
|
|
357
370
|
## `saltcorn rm-tenant TENANT`
|
|
358
371
|
|
|
@@ -366,7 +379,7 @@ ARGUMENTS
|
|
|
366
379
|
TENANT Tenant to remove
|
|
367
380
|
```
|
|
368
381
|
|
|
369
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
382
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/rm-tenant.js)_
|
|
370
383
|
|
|
371
384
|
## `saltcorn run-benchmark [BASEURL]`
|
|
372
385
|
|
|
@@ -385,7 +398,7 @@ OPTIONS
|
|
|
385
398
|
-t, --token=token API Token for reporting results
|
|
386
399
|
```
|
|
387
400
|
|
|
388
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
401
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/run-benchmark.js)_
|
|
389
402
|
|
|
390
403
|
## `saltcorn run-tests [PACKAGE]`
|
|
391
404
|
|
|
@@ -405,7 +418,7 @@ OPTIONS
|
|
|
405
418
|
--watchAll Watch files for changes and rerun all tests.
|
|
406
419
|
```
|
|
407
420
|
|
|
408
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
421
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/run-tests.js)_
|
|
409
422
|
|
|
410
423
|
## `saltcorn scheduler`
|
|
411
424
|
|
|
@@ -419,7 +432,7 @@ OPTIONS
|
|
|
419
432
|
-v, --verbose Verbose
|
|
420
433
|
```
|
|
421
434
|
|
|
422
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
435
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/scheduler.js)_
|
|
423
436
|
|
|
424
437
|
## `saltcorn serve`
|
|
425
438
|
|
|
@@ -439,7 +452,7 @@ OPTIONS
|
|
|
439
452
|
-v, --verbose Verbose
|
|
440
453
|
```
|
|
441
454
|
|
|
442
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
455
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/serve.js)_
|
|
443
456
|
|
|
444
457
|
## `saltcorn set-cfg KEY VALUE`
|
|
445
458
|
|
|
@@ -458,7 +471,7 @@ OPTIONS
|
|
|
458
471
|
-t, --tenant=tenant tenant
|
|
459
472
|
```
|
|
460
473
|
|
|
461
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
474
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/set-cfg.js)_
|
|
462
475
|
|
|
463
476
|
## `saltcorn setup`
|
|
464
477
|
|
|
@@ -477,7 +490,7 @@ DESCRIPTION
|
|
|
477
490
|
configuration file
|
|
478
491
|
```
|
|
479
492
|
|
|
480
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
493
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/setup.js)_
|
|
481
494
|
|
|
482
495
|
## `saltcorn setup-benchmark`
|
|
483
496
|
|
|
@@ -491,7 +504,7 @@ OPTIONS
|
|
|
491
504
|
-t, --tenant=tenant tenant
|
|
492
505
|
```
|
|
493
506
|
|
|
494
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
507
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/setup-benchmark.js)_
|
|
495
508
|
|
|
496
509
|
## `saltcorn test-plugin PATH`
|
|
497
510
|
|
|
@@ -509,7 +522,7 @@ DESCRIPTION
|
|
|
509
522
|
Extra documentation goes here
|
|
510
523
|
```
|
|
511
524
|
|
|
512
|
-
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
525
|
+
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/test-plugin.js)_
|
|
513
526
|
|
|
514
527
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
515
528
|
|
|
@@ -526,5 +539,5 @@ ARGUMENTS
|
|
|
526
539
|
TENANT tenant name
|
|
527
540
|
```
|
|
528
541
|
|
|
529
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.6.
|
|
542
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.6.3-beta.0/src/commands/transform-field.js)_
|
|
530
543
|
<!-- commandsstop -->
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3-beta.0",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -198,9 +198,9 @@
|
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
"@oclif/command": {
|
|
201
|
-
"version": "1.8.
|
|
202
|
-
"resolved": "https://registry.npmjs.org/@oclif/command/-/command-1.8.
|
|
203
|
-
"integrity": "sha512-
|
|
201
|
+
"version": "1.8.16",
|
|
202
|
+
"resolved": "https://registry.npmjs.org/@oclif/command/-/command-1.8.16.tgz",
|
|
203
|
+
"integrity": "sha512-rmVKYEsKzurfRU0xJz+iHelbi1LGlihIWZ7Qvmb/CBz1EkhL7nOkW4SVXmG2dA5Ce0si2gr88i6q4eBOMRNJ1w==",
|
|
204
204
|
"requires": {
|
|
205
205
|
"@oclif/config": "^1.18.2",
|
|
206
206
|
"@oclif/errors": "^1.3.5",
|
|
@@ -576,9 +576,9 @@
|
|
|
576
576
|
}
|
|
577
577
|
},
|
|
578
578
|
"@oclif/plugin-help": {
|
|
579
|
-
"version": "3.
|
|
580
|
-
"resolved": "https://registry.npmjs.org/@oclif/plugin-help/-/plugin-help-3.
|
|
581
|
-
"integrity": "sha512-
|
|
579
|
+
"version": "3.3.1",
|
|
580
|
+
"resolved": "https://registry.npmjs.org/@oclif/plugin-help/-/plugin-help-3.3.1.tgz",
|
|
581
|
+
"integrity": "sha512-QuSiseNRJygaqAdABYFWn/H1CwIZCp9zp/PLid6yXvy6VcQV7OenEFF5XuYaCvSARe2Tg9r8Jqls5+fw1A9CbQ==",
|
|
582
582
|
"requires": {
|
|
583
583
|
"@oclif/command": "^1.8.15",
|
|
584
584
|
"@oclif/config": "1.18.2",
|
|
@@ -802,30 +802,30 @@
|
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
804
|
"@saltcorn/base-plugin": {
|
|
805
|
-
"version": "0.6.
|
|
806
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.6.
|
|
807
|
-
"integrity": "sha512-
|
|
805
|
+
"version": "0.6.3-beta.0",
|
|
806
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.6.3-beta.0.tgz",
|
|
807
|
+
"integrity": "sha512-6ZqGGdfUrKfo6a8gh1BDl2QcOMtPgYL6WI5kbgwmFGR9lRMTYSXpZEpx1vsN3VqK3Goc1bGPF56zEgSMRJlIOg==",
|
|
808
808
|
"requires": {
|
|
809
|
-
"@saltcorn/data": "0.6.
|
|
809
|
+
"@saltcorn/data": "0.6.3-beta.0"
|
|
810
810
|
}
|
|
811
811
|
},
|
|
812
812
|
"@saltcorn/builder": {
|
|
813
|
-
"version": "0.6.
|
|
814
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.6.
|
|
815
|
-
"integrity": "sha512-
|
|
813
|
+
"version": "0.6.3-beta.0",
|
|
814
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.6.3-beta.0.tgz",
|
|
815
|
+
"integrity": "sha512-DxY57YvYGtI5eO+iQV3Cmc9ZkOonyMluJu0Ie3zUG+toCIe1UhVmXiwNl7OLRHTCexQr2p4sP7+LYVH95tQFtA==",
|
|
816
816
|
"requires": {
|
|
817
817
|
"styled-components": "^4.4.1"
|
|
818
818
|
}
|
|
819
819
|
},
|
|
820
820
|
"@saltcorn/data": {
|
|
821
|
-
"version": "0.6.
|
|
822
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.6.
|
|
823
|
-
"integrity": "sha512-
|
|
824
|
-
"requires": {
|
|
825
|
-
"@saltcorn/db-common": "0.6.
|
|
826
|
-
"@saltcorn/markup": "0.6.
|
|
827
|
-
"@saltcorn/postgres": "0.6.
|
|
828
|
-
"@saltcorn/sqlite": "0.6.
|
|
821
|
+
"version": "0.6.3-beta.0",
|
|
822
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.6.3-beta.0.tgz",
|
|
823
|
+
"integrity": "sha512-P9ST7jfU7xPg6ZktxumeW5NxIKtZ+zOvkLhzm3HNspm0VQQIai2M4js61/DArFjfTLFwfedAHgck3QMQZeLcUw==",
|
|
824
|
+
"requires": {
|
|
825
|
+
"@saltcorn/db-common": "0.6.3-beta.0",
|
|
826
|
+
"@saltcorn/markup": "0.6.3-beta.0",
|
|
827
|
+
"@saltcorn/postgres": "0.6.3-beta.0",
|
|
828
|
+
"@saltcorn/sqlite": "0.6.3-beta.0",
|
|
829
829
|
"acorn": "^8.0.3",
|
|
830
830
|
"adm-zip": "0.5.5",
|
|
831
831
|
"astring": "^1.4.3",
|
|
@@ -853,14 +853,14 @@
|
|
|
853
853
|
}
|
|
854
854
|
},
|
|
855
855
|
"@saltcorn/db-common": {
|
|
856
|
-
"version": "0.6.
|
|
857
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.6.
|
|
858
|
-
"integrity": "sha512-
|
|
856
|
+
"version": "0.6.3-beta.0",
|
|
857
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.6.3-beta.0.tgz",
|
|
858
|
+
"integrity": "sha512-ws0Zvm9BwIPVkUbDve3b6g99WfBVyXagxjVRo3LI+eGR/WvL9e0zUtJaHPFUi58as0S5EF8ra9dnxdUVe+rlTg=="
|
|
859
859
|
},
|
|
860
860
|
"@saltcorn/markup": {
|
|
861
|
-
"version": "0.6.
|
|
862
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.6.
|
|
863
|
-
"integrity": "sha512-
|
|
861
|
+
"version": "0.6.3-beta.0",
|
|
862
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.6.3-beta.0.tgz",
|
|
863
|
+
"integrity": "sha512-uXgJBVI+uqpyqdRasfIUQWxDbjDCI5Zp5bk7bg2XFn19CFDTn+fpjvzg3CiuT3P2FNiQX4ujr0uQiubXUomo5g==",
|
|
864
864
|
"requires": {
|
|
865
865
|
"escape-html": "^1.0.3",
|
|
866
866
|
"html-tags": "3.1.0",
|
|
@@ -868,36 +868,36 @@
|
|
|
868
868
|
}
|
|
869
869
|
},
|
|
870
870
|
"@saltcorn/postgres": {
|
|
871
|
-
"version": "0.6.
|
|
872
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.6.
|
|
873
|
-
"integrity": "sha512-
|
|
871
|
+
"version": "0.6.3-beta.0",
|
|
872
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.6.3-beta.0.tgz",
|
|
873
|
+
"integrity": "sha512-FLxhHTwlREKnxBfWRv/aQnbh67wTbqFnZKQraWqY6zn3FRlB731ZQAf3gWpjdjvXGWlUnBefcQGZoWYApM4I2Q==",
|
|
874
874
|
"optional": true,
|
|
875
875
|
"requires": {
|
|
876
|
-
"@saltcorn/db-common": "0.6.
|
|
876
|
+
"@saltcorn/db-common": "0.6.3-beta.0",
|
|
877
877
|
"pg": "^8.2.1",
|
|
878
878
|
"pg-copy-streams": "^5.1.1"
|
|
879
879
|
}
|
|
880
880
|
},
|
|
881
881
|
"@saltcorn/sbadmin2": {
|
|
882
|
-
"version": "0.6.
|
|
883
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.6.
|
|
884
|
-
"integrity": "sha512-
|
|
882
|
+
"version": "0.6.3-beta.0",
|
|
883
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.6.3-beta.0.tgz",
|
|
884
|
+
"integrity": "sha512-GEZ+aFkya90VRNxPfjUKnBo1XrwwYTi2FG3bJYvvCSHpXZuEvbBbeJZb9r1WkeLX57iUM7iYEValZGgIcPHiqQ==",
|
|
885
885
|
"requires": {
|
|
886
|
-
"@saltcorn/data": "0.6.
|
|
887
|
-
"@saltcorn/markup": "0.6.
|
|
886
|
+
"@saltcorn/data": "0.6.3-beta.0",
|
|
887
|
+
"@saltcorn/markup": "0.6.3-beta.0",
|
|
888
888
|
"startbootstrap-sb-admin-2": "^4.1.4"
|
|
889
889
|
}
|
|
890
890
|
},
|
|
891
891
|
"@saltcorn/server": {
|
|
892
|
-
"version": "0.6.
|
|
893
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.6.
|
|
894
|
-
"integrity": "sha512-
|
|
895
|
-
"requires": {
|
|
896
|
-
"@saltcorn/base-plugin": "0.6.
|
|
897
|
-
"@saltcorn/builder": "0.6.
|
|
898
|
-
"@saltcorn/data": "0.6.
|
|
899
|
-
"@saltcorn/markup": "0.6.
|
|
900
|
-
"@saltcorn/sbadmin2": "0.6.
|
|
892
|
+
"version": "0.6.3-beta.0",
|
|
893
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.6.3-beta.0.tgz",
|
|
894
|
+
"integrity": "sha512-e/mTk12vG5Kj28hetdl7aV0YHIZvmOdiqKL8gUlYLZLhirGvlHPDDsXGznYpaB3dz8rVenu1GG2EEJUk6YnNTg==",
|
|
895
|
+
"requires": {
|
|
896
|
+
"@saltcorn/base-plugin": "0.6.3-beta.0",
|
|
897
|
+
"@saltcorn/builder": "0.6.3-beta.0",
|
|
898
|
+
"@saltcorn/data": "0.6.3-beta.0",
|
|
899
|
+
"@saltcorn/markup": "0.6.3-beta.0",
|
|
900
|
+
"@saltcorn/sbadmin2": "0.6.3-beta.0",
|
|
901
901
|
"@socket.io/cluster-adapter": "^0.1.0",
|
|
902
902
|
"@socket.io/sticky": "^1.0.1",
|
|
903
903
|
"aws-sdk": "^2.1037.0",
|
|
@@ -937,12 +937,12 @@
|
|
|
937
937
|
}
|
|
938
938
|
},
|
|
939
939
|
"@saltcorn/sqlite": {
|
|
940
|
-
"version": "0.6.
|
|
941
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.6.
|
|
942
|
-
"integrity": "sha512-
|
|
940
|
+
"version": "0.6.3-beta.0",
|
|
941
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.6.3-beta.0.tgz",
|
|
942
|
+
"integrity": "sha512-EvMbWMQ0ZnkzDPcmgNtTrHFH3fL5MMEBZN2EoGBhSyz4+7JYAhRLjlKYeByJbqOHWgIXhHKDU/G+z53/b9zipA==",
|
|
943
943
|
"optional": true,
|
|
944
944
|
"requires": {
|
|
945
|
-
"@saltcorn/db-common": "0.6.
|
|
945
|
+
"@saltcorn/db-common": "0.6.3-beta.0",
|
|
946
946
|
"sqlite3": "^5.0.2"
|
|
947
947
|
}
|
|
948
948
|
},
|
|
@@ -1324,9 +1324,9 @@
|
|
|
1324
1324
|
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
|
1325
1325
|
},
|
|
1326
1326
|
"aws-sdk": {
|
|
1327
|
-
"version": "2.
|
|
1328
|
-
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.
|
|
1329
|
-
"integrity": "sha512-
|
|
1327
|
+
"version": "2.1048.0",
|
|
1328
|
+
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1048.0.tgz",
|
|
1329
|
+
"integrity": "sha512-mVwWo+Udiuc/yEZ/DgJQGqOEtfiQjgUdtshx/t6ISe3+jW3TF9hUACwADwx2Sr/fuJyyJ3QD5JYLt5Cw35wQpA==",
|
|
1330
1330
|
"requires": {
|
|
1331
1331
|
"buffer": "4.9.2",
|
|
1332
1332
|
"events": "1.1.1",
|
|
@@ -1467,20 +1467,20 @@
|
|
|
1467
1467
|
"integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
|
|
1468
1468
|
},
|
|
1469
1469
|
"body-parser": {
|
|
1470
|
-
"version": "1.19.
|
|
1471
|
-
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.
|
|
1472
|
-
"integrity": "sha512-
|
|
1470
|
+
"version": "1.19.1",
|
|
1471
|
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.1.tgz",
|
|
1472
|
+
"integrity": "sha512-8ljfQi5eBk8EJfECMrgqNGWPEY5jWP+1IzkzkGdFFEwFQZZyaZ21UqdaHktgiMlH0xLHqIFtE/u2OYE5dOtViA==",
|
|
1473
1473
|
"requires": {
|
|
1474
|
-
"bytes": "3.1.
|
|
1474
|
+
"bytes": "3.1.1",
|
|
1475
1475
|
"content-type": "~1.0.4",
|
|
1476
1476
|
"debug": "2.6.9",
|
|
1477
1477
|
"depd": "~1.1.2",
|
|
1478
|
-
"http-errors": "1.
|
|
1478
|
+
"http-errors": "1.8.1",
|
|
1479
1479
|
"iconv-lite": "0.4.24",
|
|
1480
1480
|
"on-finished": "~2.3.0",
|
|
1481
|
-
"qs": "6.
|
|
1482
|
-
"raw-body": "2.4.
|
|
1483
|
-
"type-is": "~1.6.
|
|
1481
|
+
"qs": "6.9.6",
|
|
1482
|
+
"raw-body": "2.4.2",
|
|
1483
|
+
"type-is": "~1.6.18"
|
|
1484
1484
|
},
|
|
1485
1485
|
"dependencies": {
|
|
1486
1486
|
"debug": {
|
|
@@ -1497,31 +1497,36 @@
|
|
|
1497
1497
|
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
|
|
1498
1498
|
},
|
|
1499
1499
|
"http-errors": {
|
|
1500
|
-
"version": "1.
|
|
1501
|
-
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.
|
|
1502
|
-
"integrity": "sha512-
|
|
1500
|
+
"version": "1.8.1",
|
|
1501
|
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz",
|
|
1502
|
+
"integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==",
|
|
1503
1503
|
"requires": {
|
|
1504
1504
|
"depd": "~1.1.2",
|
|
1505
|
-
"inherits": "2.0.
|
|
1506
|
-
"setprototypeof": "1.
|
|
1505
|
+
"inherits": "2.0.4",
|
|
1506
|
+
"setprototypeof": "1.2.0",
|
|
1507
1507
|
"statuses": ">= 1.5.0 < 2",
|
|
1508
|
-
"toidentifier": "1.0.
|
|
1508
|
+
"toidentifier": "1.0.1"
|
|
1509
1509
|
}
|
|
1510
1510
|
},
|
|
1511
|
-
"inherits": {
|
|
1512
|
-
"version": "2.0.3",
|
|
1513
|
-
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
|
|
1514
|
-
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
|
|
1515
|
-
},
|
|
1516
1511
|
"ms": {
|
|
1517
1512
|
"version": "2.0.0",
|
|
1518
1513
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
|
1519
1514
|
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
|
1520
1515
|
},
|
|
1521
1516
|
"qs": {
|
|
1522
|
-
"version": "6.
|
|
1523
|
-
"resolved": "https://registry.npmjs.org/qs/-/qs-6.
|
|
1524
|
-
"integrity": "sha512-
|
|
1517
|
+
"version": "6.9.6",
|
|
1518
|
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.9.6.tgz",
|
|
1519
|
+
"integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ=="
|
|
1520
|
+
},
|
|
1521
|
+
"setprototypeof": {
|
|
1522
|
+
"version": "1.2.0",
|
|
1523
|
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
|
1524
|
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
|
1525
|
+
},
|
|
1526
|
+
"toidentifier": {
|
|
1527
|
+
"version": "1.0.1",
|
|
1528
|
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
|
1529
|
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="
|
|
1525
1530
|
}
|
|
1526
1531
|
}
|
|
1527
1532
|
},
|
|
@@ -1616,9 +1621,9 @@
|
|
|
1616
1621
|
}
|
|
1617
1622
|
},
|
|
1618
1623
|
"bytes": {
|
|
1619
|
-
"version": "3.1.
|
|
1620
|
-
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.
|
|
1621
|
-
"integrity": "sha512-
|
|
1624
|
+
"version": "3.1.1",
|
|
1625
|
+
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz",
|
|
1626
|
+
"integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg=="
|
|
1622
1627
|
},
|
|
1623
1628
|
"cacheable-request": {
|
|
1624
1629
|
"version": "6.1.0",
|
|
@@ -2743,16 +2748,16 @@
|
|
|
2743
2748
|
}
|
|
2744
2749
|
},
|
|
2745
2750
|
"express": {
|
|
2746
|
-
"version": "4.17.
|
|
2747
|
-
"resolved": "https://registry.npmjs.org/express/-/express-4.17.
|
|
2748
|
-
"integrity": "sha512-
|
|
2751
|
+
"version": "4.17.2",
|
|
2752
|
+
"resolved": "https://registry.npmjs.org/express/-/express-4.17.2.tgz",
|
|
2753
|
+
"integrity": "sha512-oxlxJxcQlYwqPWKVJJtvQiwHgosH/LrLSPA+H4UxpyvSS6jC5aH+5MoHFM+KABgTOt0APue4w66Ha8jCUo9QGg==",
|
|
2749
2754
|
"requires": {
|
|
2750
2755
|
"accepts": "~1.3.7",
|
|
2751
2756
|
"array-flatten": "1.1.1",
|
|
2752
|
-
"body-parser": "1.19.
|
|
2753
|
-
"content-disposition": "0.5.
|
|
2757
|
+
"body-parser": "1.19.1",
|
|
2758
|
+
"content-disposition": "0.5.4",
|
|
2754
2759
|
"content-type": "~1.0.4",
|
|
2755
|
-
"cookie": "0.4.
|
|
2760
|
+
"cookie": "0.4.1",
|
|
2756
2761
|
"cookie-signature": "1.0.6",
|
|
2757
2762
|
"debug": "2.6.9",
|
|
2758
2763
|
"depd": "~1.1.2",
|
|
@@ -2766,32 +2771,19 @@
|
|
|
2766
2771
|
"on-finished": "~2.3.0",
|
|
2767
2772
|
"parseurl": "~1.3.3",
|
|
2768
2773
|
"path-to-regexp": "0.1.7",
|
|
2769
|
-
"proxy-addr": "~2.0.
|
|
2770
|
-
"qs": "6.
|
|
2774
|
+
"proxy-addr": "~2.0.7",
|
|
2775
|
+
"qs": "6.9.6",
|
|
2771
2776
|
"range-parser": "~1.2.1",
|
|
2772
|
-
"safe-buffer": "5.1
|
|
2773
|
-
"send": "0.17.
|
|
2774
|
-
"serve-static": "1.14.
|
|
2775
|
-
"setprototypeof": "1.
|
|
2777
|
+
"safe-buffer": "5.2.1",
|
|
2778
|
+
"send": "0.17.2",
|
|
2779
|
+
"serve-static": "1.14.2",
|
|
2780
|
+
"setprototypeof": "1.2.0",
|
|
2776
2781
|
"statuses": "~1.5.0",
|
|
2777
2782
|
"type-is": "~1.6.18",
|
|
2778
2783
|
"utils-merge": "1.0.1",
|
|
2779
2784
|
"vary": "~1.1.2"
|
|
2780
2785
|
},
|
|
2781
2786
|
"dependencies": {
|
|
2782
|
-
"content-disposition": {
|
|
2783
|
-
"version": "0.5.3",
|
|
2784
|
-
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz",
|
|
2785
|
-
"integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==",
|
|
2786
|
-
"requires": {
|
|
2787
|
-
"safe-buffer": "5.1.2"
|
|
2788
|
-
}
|
|
2789
|
-
},
|
|
2790
|
-
"cookie": {
|
|
2791
|
-
"version": "0.4.0",
|
|
2792
|
-
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz",
|
|
2793
|
-
"integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg=="
|
|
2794
|
-
},
|
|
2795
2787
|
"debug": {
|
|
2796
2788
|
"version": "2.6.9",
|
|
2797
2789
|
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
|
@@ -2811,14 +2803,14 @@
|
|
|
2811
2803
|
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
|
2812
2804
|
},
|
|
2813
2805
|
"qs": {
|
|
2814
|
-
"version": "6.
|
|
2815
|
-
"resolved": "https://registry.npmjs.org/qs/-/qs-6.
|
|
2816
|
-
"integrity": "sha512-
|
|
2806
|
+
"version": "6.9.6",
|
|
2807
|
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.9.6.tgz",
|
|
2808
|
+
"integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ=="
|
|
2817
2809
|
},
|
|
2818
|
-
"
|
|
2819
|
-
"version": "
|
|
2820
|
-
"resolved": "https://registry.npmjs.org/
|
|
2821
|
-
"integrity": "sha512-
|
|
2810
|
+
"setprototypeof": {
|
|
2811
|
+
"version": "1.2.0",
|
|
2812
|
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
|
2813
|
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
|
2822
2814
|
}
|
|
2823
2815
|
}
|
|
2824
2816
|
},
|
|
@@ -5370,11 +5362,11 @@
|
|
|
5370
5362
|
}
|
|
5371
5363
|
},
|
|
5372
5364
|
"pgpass": {
|
|
5373
|
-
"version": "1.0.
|
|
5374
|
-
"resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.
|
|
5375
|
-
"integrity": "sha512-
|
|
5365
|
+
"version": "1.0.5",
|
|
5366
|
+
"resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz",
|
|
5367
|
+
"integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==",
|
|
5376
5368
|
"requires": {
|
|
5377
|
-
"split2": "^
|
|
5369
|
+
"split2": "^4.1.0"
|
|
5378
5370
|
}
|
|
5379
5371
|
},
|
|
5380
5372
|
"picocolors": {
|
|
@@ -5587,12 +5579,12 @@
|
|
|
5587
5579
|
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="
|
|
5588
5580
|
},
|
|
5589
5581
|
"raw-body": {
|
|
5590
|
-
"version": "2.4.
|
|
5591
|
-
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.
|
|
5592
|
-
"integrity": "sha512-
|
|
5582
|
+
"version": "2.4.2",
|
|
5583
|
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.2.tgz",
|
|
5584
|
+
"integrity": "sha512-RPMAFUJP19WIet/99ngh6Iv8fzAbqum4Li7AD6DtGaW2RpMB/11xDoalPiJMTbu6I3hkbMVkATvZrqb9EEqeeQ==",
|
|
5593
5585
|
"requires": {
|
|
5594
|
-
"bytes": "3.1.
|
|
5595
|
-
"http-errors": "1.
|
|
5586
|
+
"bytes": "3.1.1",
|
|
5587
|
+
"http-errors": "1.8.1",
|
|
5596
5588
|
"iconv-lite": "0.4.24",
|
|
5597
5589
|
"unpipe": "1.0.0"
|
|
5598
5590
|
},
|
|
@@ -5603,21 +5595,26 @@
|
|
|
5603
5595
|
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
|
|
5604
5596
|
},
|
|
5605
5597
|
"http-errors": {
|
|
5606
|
-
"version": "1.
|
|
5607
|
-
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.
|
|
5608
|
-
"integrity": "sha512-
|
|
5598
|
+
"version": "1.8.1",
|
|
5599
|
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz",
|
|
5600
|
+
"integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==",
|
|
5609
5601
|
"requires": {
|
|
5610
5602
|
"depd": "~1.1.2",
|
|
5611
|
-
"inherits": "2.0.
|
|
5612
|
-
"setprototypeof": "1.
|
|
5603
|
+
"inherits": "2.0.4",
|
|
5604
|
+
"setprototypeof": "1.2.0",
|
|
5613
5605
|
"statuses": ">= 1.5.0 < 2",
|
|
5614
|
-
"toidentifier": "1.0.
|
|
5606
|
+
"toidentifier": "1.0.1"
|
|
5615
5607
|
}
|
|
5616
5608
|
},
|
|
5617
|
-
"
|
|
5618
|
-
"version": "2.0
|
|
5619
|
-
"resolved": "https://registry.npmjs.org/
|
|
5620
|
-
"integrity": "
|
|
5609
|
+
"setprototypeof": {
|
|
5610
|
+
"version": "1.2.0",
|
|
5611
|
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
|
5612
|
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
|
5613
|
+
},
|
|
5614
|
+
"toidentifier": {
|
|
5615
|
+
"version": "1.0.1",
|
|
5616
|
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
|
5617
|
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="
|
|
5621
5618
|
}
|
|
5622
5619
|
}
|
|
5623
5620
|
},
|
|
@@ -6035,9 +6032,9 @@
|
|
|
6035
6032
|
}
|
|
6036
6033
|
},
|
|
6037
6034
|
"send": {
|
|
6038
|
-
"version": "0.17.
|
|
6039
|
-
"resolved": "https://registry.npmjs.org/send/-/send-0.17.
|
|
6040
|
-
"integrity": "sha512-
|
|
6035
|
+
"version": "0.17.2",
|
|
6036
|
+
"resolved": "https://registry.npmjs.org/send/-/send-0.17.2.tgz",
|
|
6037
|
+
"integrity": "sha512-UJYB6wFSJE3G00nEivR5rgWp8c2xXvJ3OPWPhmuteU0IKj8nKbG3DrjiOmLwpnHGYWAVwA69zmTm++YG0Hmwww==",
|
|
6041
6038
|
"requires": {
|
|
6042
6039
|
"debug": "2.6.9",
|
|
6043
6040
|
"depd": "~1.1.2",
|
|
@@ -6046,9 +6043,9 @@
|
|
|
6046
6043
|
"escape-html": "~1.0.3",
|
|
6047
6044
|
"etag": "~1.8.1",
|
|
6048
6045
|
"fresh": "0.5.2",
|
|
6049
|
-
"http-errors": "
|
|
6046
|
+
"http-errors": "1.8.1",
|
|
6050
6047
|
"mime": "1.6.0",
|
|
6051
|
-
"ms": "2.1.
|
|
6048
|
+
"ms": "2.1.3",
|
|
6052
6049
|
"on-finished": "~2.3.0",
|
|
6053
6050
|
"range-parser": "~1.2.1",
|
|
6054
6051
|
"statuses": "~1.5.0"
|
|
@@ -6074,22 +6071,44 @@
|
|
|
6074
6071
|
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
|
|
6075
6072
|
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
|
|
6076
6073
|
},
|
|
6074
|
+
"http-errors": {
|
|
6075
|
+
"version": "1.8.1",
|
|
6076
|
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz",
|
|
6077
|
+
"integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==",
|
|
6078
|
+
"requires": {
|
|
6079
|
+
"depd": "~1.1.2",
|
|
6080
|
+
"inherits": "2.0.4",
|
|
6081
|
+
"setprototypeof": "1.2.0",
|
|
6082
|
+
"statuses": ">= 1.5.0 < 2",
|
|
6083
|
+
"toidentifier": "1.0.1"
|
|
6084
|
+
}
|
|
6085
|
+
},
|
|
6077
6086
|
"ms": {
|
|
6078
|
-
"version": "2.1.
|
|
6079
|
-
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.
|
|
6080
|
-
"integrity": "sha512-
|
|
6087
|
+
"version": "2.1.3",
|
|
6088
|
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
|
6089
|
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
|
6090
|
+
},
|
|
6091
|
+
"setprototypeof": {
|
|
6092
|
+
"version": "1.2.0",
|
|
6093
|
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
|
6094
|
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
|
|
6095
|
+
},
|
|
6096
|
+
"toidentifier": {
|
|
6097
|
+
"version": "1.0.1",
|
|
6098
|
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
|
6099
|
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="
|
|
6081
6100
|
}
|
|
6082
6101
|
}
|
|
6083
6102
|
},
|
|
6084
6103
|
"serve-static": {
|
|
6085
|
-
"version": "1.14.
|
|
6086
|
-
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.
|
|
6087
|
-
"integrity": "sha512
|
|
6104
|
+
"version": "1.14.2",
|
|
6105
|
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.2.tgz",
|
|
6106
|
+
"integrity": "sha512-+TMNA9AFxUEGuC0z2mevogSnn9MXKb4fa7ngeRMJaaGv8vTwnIEkKi+QGvPt33HSnf8pRS+WGM0EbMtCJLKMBQ==",
|
|
6088
6107
|
"requires": {
|
|
6089
6108
|
"encodeurl": "~1.0.2",
|
|
6090
6109
|
"escape-html": "~1.0.3",
|
|
6091
6110
|
"parseurl": "~1.3.3",
|
|
6092
|
-
"send": "0.17.
|
|
6111
|
+
"send": "0.17.2"
|
|
6093
6112
|
}
|
|
6094
6113
|
},
|
|
6095
6114
|
"set-blocking": {
|
|
@@ -6224,12 +6243,9 @@
|
|
|
6224
6243
|
"integrity": "sha512-Ki212dKK4ogX+xDo4CtOZBVIwhsKBEfsEEcwmJfLQzirgc2jIWdzg40Unxz/HzEUqM1WFzVlQSMF9kZZ2HboLQ=="
|
|
6225
6244
|
},
|
|
6226
6245
|
"split2": {
|
|
6227
|
-
"version": "
|
|
6228
|
-
"resolved": "https://registry.npmjs.org/split2/-/split2-
|
|
6229
|
-
"integrity": "sha512-
|
|
6230
|
-
"requires": {
|
|
6231
|
-
"readable-stream": "^3.0.0"
|
|
6232
|
-
}
|
|
6246
|
+
"version": "4.1.0",
|
|
6247
|
+
"resolved": "https://registry.npmjs.org/split2/-/split2-4.1.0.tgz",
|
|
6248
|
+
"integrity": "sha512-VBiJxFkxiXRlUIeyMQi8s4hgvKCSjtknJv/LVYbrgALPwf5zSKmEwV9Lst25AkvMDnvxODugjdl6KZgwKM1WYQ=="
|
|
6233
6249
|
},
|
|
6234
6250
|
"sprintf-js": {
|
|
6235
6251
|
"version": "1.1.2",
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.6.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":[]},"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":[]},"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}},"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":"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.6.3-beta.0","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":"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,18 +2,18 @@
|
|
|
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.6.
|
|
5
|
+
"version": "0.6.3-beta.0",
|
|
6
6
|
"author": "Tom Nielsen @glutamate",
|
|
7
7
|
"bin": {
|
|
8
8
|
"saltcorn": "./bin/saltcorn"
|
|
9
9
|
},
|
|
10
10
|
"bugs": "https://github.com/saltcorn/saltcorn/issues",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@oclif/command": "^1.8.
|
|
12
|
+
"@oclif/command": "^1.8.16",
|
|
13
13
|
"@oclif/config": "^1.18.2",
|
|
14
|
-
"@oclif/plugin-help": "^3.
|
|
15
|
-
"@saltcorn/data": "0.6.
|
|
16
|
-
"@saltcorn/server": "0.6.
|
|
14
|
+
"@oclif/plugin-help": "^3.3.1",
|
|
15
|
+
"@saltcorn/data": "0.6.3-beta.0",
|
|
16
|
+
"@saltcorn/server": "0.6.3-beta.0",
|
|
17
17
|
"cli-ux": "^5.6.7",
|
|
18
18
|
"contractis": "^0.1.0",
|
|
19
19
|
"dateformat": "^3.0.3",
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category saltcorn-cli
|
|
3
|
+
* @module commands/delete-tenants
|
|
4
|
+
*/
|
|
5
|
+
const { Command, flags } = require("@oclif/command");
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* DeleteTenantsCommand Class
|
|
9
|
+
* @extends oclif.Command
|
|
10
|
+
* @category saltcorn-cli
|
|
11
|
+
*/
|
|
12
|
+
class DeleteTenantsCommand extends Command {
|
|
13
|
+
/**
|
|
14
|
+
* @returns {Promise<void>}
|
|
15
|
+
*/
|
|
16
|
+
async run() {
|
|
17
|
+
const {
|
|
18
|
+
getAllTenantRows,
|
|
19
|
+
deleteTenant,
|
|
20
|
+
} = require("@saltcorn/data/models/tenant");
|
|
21
|
+
const db = require("@saltcorn/data/db");
|
|
22
|
+
const tenantList = await getAllTenantRows();
|
|
23
|
+
const tensExamine = tenantList.slice(
|
|
24
|
+
0,
|
|
25
|
+
Math.round(tenantList.length * 0.8)
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
for (const ten of tensExamine) {
|
|
29
|
+
let nusers, ntables, nviews, npages;
|
|
30
|
+
await db.runWithTenant(ten.subdomain, async () => {
|
|
31
|
+
nusers = await db.count("users");
|
|
32
|
+
ntables = await db.count("_sc_tables");
|
|
33
|
+
nviews = await db.count("_sc_views");
|
|
34
|
+
npages = await db.count("_sc_pages");
|
|
35
|
+
});
|
|
36
|
+
if (nusers < 2 && ntables < 2 && nviews < 1 && npages < 1) {
|
|
37
|
+
console.log("deleting ", ten.subdomain, {
|
|
38
|
+
nusers,
|
|
39
|
+
ntables,
|
|
40
|
+
nviews,
|
|
41
|
+
npages,
|
|
42
|
+
});
|
|
43
|
+
await deleteTenant(ten.subdomain);
|
|
44
|
+
} else {
|
|
45
|
+
console.log("leaving", ten.subdomain, {
|
|
46
|
+
nusers,
|
|
47
|
+
ntables,
|
|
48
|
+
nviews,
|
|
49
|
+
npages,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
this.exit(0);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @type {string}
|
|
59
|
+
*/
|
|
60
|
+
DeleteTenantsCommand.description = `Delete inactive tenants`;
|
|
61
|
+
|
|
62
|
+
module.exports = DeleteTenantsCommand;
|
package/src/commands/fixtures.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @module commands/fixtures
|
|
4
4
|
*/
|
|
5
5
|
const { Command, flags } = require("@oclif/command");
|
|
6
|
-
|
|
6
|
+
const { maybe_as_tenant, parseJSONorString } = require("../common");
|
|
7
7
|
/**
|
|
8
8
|
* FixturesCommand Class
|
|
9
9
|
* @extends oclif.Command
|
|
@@ -17,12 +17,20 @@ class FixturesCommand extends Command {
|
|
|
17
17
|
const fixtures = require("@saltcorn/data/db/fixtures");
|
|
18
18
|
const reset = require("@saltcorn/data/db/reset_schema");
|
|
19
19
|
const { flags } = this.parse(FixturesCommand);
|
|
20
|
-
if (flags.
|
|
21
|
-
|
|
20
|
+
if (flags.tenant) {
|
|
21
|
+
const { loadAllPlugins } = require("@saltcorn/server/load_plugins");
|
|
22
|
+
const { init_multi_tenant } = require("@saltcorn/data/db/state");
|
|
23
|
+
await loadAllPlugins();
|
|
24
|
+
await init_multi_tenant(loadAllPlugins);
|
|
22
25
|
}
|
|
23
|
-
await
|
|
24
|
-
|
|
26
|
+
await maybe_as_tenant(flags.tenant, async () => {
|
|
27
|
+
if (flags.reset) {
|
|
28
|
+
await reset();
|
|
29
|
+
}
|
|
30
|
+
await fixtures();
|
|
31
|
+
});
|
|
25
32
|
|
|
33
|
+
this.exit(0);
|
|
26
34
|
}
|
|
27
35
|
}
|
|
28
36
|
|
|
@@ -39,6 +47,10 @@ This manual step it is never required for users and rarely required for develope
|
|
|
39
47
|
*/
|
|
40
48
|
FixturesCommand.flags = {
|
|
41
49
|
reset: flags.boolean({ char: "r", description: "Also reset schema" }),
|
|
50
|
+
tenant: flags.string({
|
|
51
|
+
char: "t",
|
|
52
|
+
description: "tenant",
|
|
53
|
+
}),
|
|
42
54
|
};
|
|
43
55
|
|
|
44
56
|
module.exports = FixturesCommand;
|
package/src/commands/plugins.js
CHANGED
|
@@ -28,16 +28,23 @@ class PluginsCommand extends Command {
|
|
|
28
28
|
|
|
29
29
|
for (const domain of tenantList) {
|
|
30
30
|
await db.runWithTenant(domain, async () => {
|
|
31
|
-
const myplugins = await Plugin.find(
|
|
31
|
+
const myplugins = await Plugin.find(
|
|
32
|
+
flags.name ? { name: flags.name } : {}
|
|
33
|
+
);
|
|
32
34
|
myplugins.forEach((plugin) => {
|
|
33
|
-
|
|
34
35
|
if (
|
|
35
36
|
plugin.source === "npm" &&
|
|
36
37
|
!plugins.map((p) => p.location).includes(plugin.location)
|
|
37
38
|
) {
|
|
38
39
|
plugins.push(plugin);
|
|
39
|
-
if(flags.verbose)
|
|
40
|
-
console.log(
|
|
40
|
+
if (flags.verbose)
|
|
41
|
+
console.log(
|
|
42
|
+
"%s\t%s\t%s\t%s",
|
|
43
|
+
plugin.location,
|
|
44
|
+
plugin.name,
|
|
45
|
+
plugin.version,
|
|
46
|
+
plugin.source
|
|
47
|
+
);
|
|
41
48
|
else console.log(plugin.location);
|
|
42
49
|
}
|
|
43
50
|
});
|
|
@@ -58,24 +65,26 @@ class PluginsCommand extends Command {
|
|
|
58
65
|
for (let plugin of myplugins) {
|
|
59
66
|
if (plugin.source === "npm" && new_versions[plugin.location]) {
|
|
60
67
|
// the plugin can be up to date
|
|
61
|
-
if(
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
if (
|
|
69
|
+
!flags.force &&
|
|
70
|
+
plugin.version === new_versions[plugin.location]
|
|
71
|
+
) {
|
|
72
|
+
} else if (flags.dryRun) {
|
|
64
73
|
console.log(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const sql_logging = db.get_sql_logging();
|
|
74
|
-
if(flags.verbose) db.set_sql_logging(true);
|
|
75
|
-
await plugin.upsert();
|
|
76
|
-
if(flags.verbose) db.set_sql_logging(sql_logging);
|
|
77
|
-
}
|
|
74
|
+
`Would upgrade ${domain}'s plugin ${
|
|
75
|
+
plugin.location
|
|
76
|
+
} version from ${plugin.version} to ${
|
|
77
|
+
new_versions[plugin.location]
|
|
78
|
+
}`
|
|
79
|
+
);
|
|
80
|
+
} else {
|
|
81
|
+
plugin.version = new_versions[plugin.location];
|
|
78
82
|
|
|
83
|
+
const sql_logging = db.get_sql_logging();
|
|
84
|
+
if (flags.verbose) db.set_sql_logging(true);
|
|
85
|
+
await plugin.upsert();
|
|
86
|
+
if (flags.verbose) db.set_sql_logging(sql_logging);
|
|
87
|
+
}
|
|
79
88
|
}
|
|
80
89
|
}
|
|
81
90
|
});
|
|
@@ -93,13 +102,20 @@ PluginsCommand.flags = {
|
|
|
93
102
|
//list: flags.boolean({ char: "l", description: "List" }),
|
|
94
103
|
upgrade: flags.boolean({ char: "u", description: "Upgrade" }),
|
|
95
104
|
dryRun: flags.boolean({ char: "d", description: "Upgrade dry-run" }),
|
|
96
|
-
verbose: flags.boolean({
|
|
97
|
-
|
|
105
|
+
verbose: flags.boolean({
|
|
106
|
+
char: "v",
|
|
107
|
+
description: "Verbose output",
|
|
108
|
+
default: false,
|
|
109
|
+
}),
|
|
110
|
+
force: flags.boolean({
|
|
111
|
+
char: "f",
|
|
112
|
+
description: "Force update",
|
|
113
|
+
default: false,
|
|
114
|
+
}),
|
|
98
115
|
name: flags.string({
|
|
99
116
|
char: "n",
|
|
100
117
|
description: "Plugin name",
|
|
101
118
|
}),
|
|
102
|
-
|
|
103
119
|
};
|
|
104
120
|
|
|
105
121
|
// TODO Extra documentation goes here
|
|
@@ -114,17 +130,18 @@ Extra documentation goes here
|
|
|
114
130
|
/**
|
|
115
131
|
* @type {string}
|
|
116
132
|
*/
|
|
117
|
-
PluginsCommand.examples = [
|
|
133
|
+
PluginsCommand.examples = [
|
|
134
|
+
//"plugins -l - outputs detailed information about plugins",
|
|
118
135
|
"plugins -v - verbose output of commands",
|
|
119
136
|
"plugins -u -d - dry-run for plugin update",
|
|
120
|
-
"plugins -u -f - force plugin update"
|
|
137
|
+
"plugins -u -f - force plugin update",
|
|
121
138
|
];
|
|
122
139
|
|
|
123
140
|
// TODO Extra help here
|
|
124
141
|
/**
|
|
125
142
|
* @type {string}
|
|
126
143
|
*/
|
|
127
|
-
PluginsCommand.help= "Extra help here"
|
|
144
|
+
PluginsCommand.help = "Extra help here";
|
|
128
145
|
|
|
129
146
|
// PluginsCommand.usage
|
|
130
147
|
|