@saltcorn/cli 0.7.1-beta.3 → 0.7.1
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 +29 -29
- package/npm-shrinkwrap.json +106 -115
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
- package/src/commands/configuration-check.js +3 -10
- package/src/common.js +19 -5
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
|
|
23
|
+
@saltcorn/cli/0.7.1 darwin-x64 node-v14.16.1
|
|
24
24
|
$ saltcorn --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ saltcorn COMMAND
|
|
@@ -70,7 +70,7 @@ USAGE
|
|
|
70
70
|
$ saltcorn add-schema
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
73
|
+
_See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/add-schema.js)_
|
|
74
74
|
|
|
75
75
|
## `saltcorn backup`
|
|
76
76
|
|
|
@@ -86,7 +86,7 @@ OPTIONS
|
|
|
86
86
|
-z, --zip zip format
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
89
|
+
_See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/backup.js)_
|
|
90
90
|
|
|
91
91
|
## `saltcorn configuration-check`
|
|
92
92
|
|
|
@@ -100,7 +100,7 @@ OPTIONS
|
|
|
100
100
|
-t, --tenant=tenant tenant
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
103
|
+
_See code: [src/commands/configuration-check.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/configuration-check.js)_
|
|
104
104
|
|
|
105
105
|
## `saltcorn create-tenant TENANT`
|
|
106
106
|
|
|
@@ -118,7 +118,7 @@ OPTIONS
|
|
|
118
118
|
-e, --email=email Email of owner of tenant
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
121
|
+
_See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/create-tenant.js)_
|
|
122
122
|
|
|
123
123
|
## `saltcorn create-user`
|
|
124
124
|
|
|
@@ -136,7 +136,7 @@ OPTIONS
|
|
|
136
136
|
-t, --tenant=tenant tenant
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
139
|
+
_See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/create-user.js)_
|
|
140
140
|
|
|
141
141
|
## `saltcorn delete-tenants`
|
|
142
142
|
|
|
@@ -147,7 +147,7 @@ USAGE
|
|
|
147
147
|
$ saltcorn delete-tenants
|
|
148
148
|
```
|
|
149
149
|
|
|
150
|
-
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
150
|
+
_See code: [src/commands/delete-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/delete-tenants.js)_
|
|
151
151
|
|
|
152
152
|
## `saltcorn fixtures`
|
|
153
153
|
|
|
@@ -166,7 +166,7 @@ DESCRIPTION
|
|
|
166
166
|
This manual step it is never required for users and rarely required for developers
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
169
|
+
_See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/fixtures.js)_
|
|
170
170
|
|
|
171
171
|
## `saltcorn help [COMMAND]`
|
|
172
172
|
|
|
@@ -204,7 +204,7 @@ ALIASES
|
|
|
204
204
|
$ saltcorn paths
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
207
|
+
_See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/info.js)_
|
|
208
208
|
|
|
209
209
|
## `saltcorn install-pack`
|
|
210
210
|
|
|
@@ -220,7 +220,7 @@ OPTIONS
|
|
|
220
220
|
-t, --tenant=tenant tenant
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
-
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
223
|
+
_See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/install-pack.js)_
|
|
224
224
|
|
|
225
225
|
## `saltcorn install-plugin`
|
|
226
226
|
|
|
@@ -236,7 +236,7 @@ OPTIONS
|
|
|
236
236
|
-t, --tenant=tenant tenant
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
239
|
+
_See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/install-plugin.js)_
|
|
240
240
|
|
|
241
241
|
## `saltcorn list-tenants`
|
|
242
242
|
|
|
@@ -247,7 +247,7 @@ USAGE
|
|
|
247
247
|
$ saltcorn list-tenants
|
|
248
248
|
```
|
|
249
249
|
|
|
250
|
-
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
250
|
+
_See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/list-tenants.js)_
|
|
251
251
|
|
|
252
252
|
## `saltcorn localize-plugin PLUGIN PATH`
|
|
253
253
|
|
|
@@ -265,7 +265,7 @@ OPTIONS
|
|
|
265
265
|
-t, --tenant=tenant tenant
|
|
266
266
|
```
|
|
267
267
|
|
|
268
|
-
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
268
|
+
_See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/localize-plugin.js)_
|
|
269
269
|
|
|
270
270
|
## `saltcorn make-migration`
|
|
271
271
|
|
|
@@ -281,7 +281,7 @@ DESCRIPTION
|
|
|
281
281
|
unless you are a developer.
|
|
282
282
|
```
|
|
283
283
|
|
|
284
|
-
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
284
|
+
_See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/make-migration.js)_
|
|
285
285
|
|
|
286
286
|
## `saltcorn saltcorn migrate`
|
|
287
287
|
|
|
@@ -303,7 +303,7 @@ DESCRIPTION
|
|
|
303
303
|
servers and need to control when the migrations are run.
|
|
304
304
|
```
|
|
305
305
|
|
|
306
|
-
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
306
|
+
_See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/migrate.js)_
|
|
307
307
|
|
|
308
308
|
## `saltcorn plugins`
|
|
309
309
|
|
|
@@ -330,7 +330,7 @@ EXAMPLES
|
|
|
330
330
|
plugins -u -f - force plugin update
|
|
331
331
|
```
|
|
332
332
|
|
|
333
|
-
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
333
|
+
_See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/plugins.js)_
|
|
334
334
|
|
|
335
335
|
## `saltcorn release VERSION`
|
|
336
336
|
|
|
@@ -344,7 +344,7 @@ ARGUMENTS
|
|
|
344
344
|
VERSION New version number
|
|
345
345
|
```
|
|
346
346
|
|
|
347
|
-
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
347
|
+
_See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/release.js)_
|
|
348
348
|
|
|
349
349
|
## `saltcorn reset-schema`
|
|
350
350
|
|
|
@@ -363,7 +363,7 @@ DESCRIPTION
|
|
|
363
363
|
This will delete all existing information
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
366
|
+
_See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/reset-schema.js)_
|
|
367
367
|
|
|
368
368
|
## `saltcorn restore FILE`
|
|
369
369
|
|
|
@@ -380,7 +380,7 @@ OPTIONS
|
|
|
380
380
|
-t, --tenant=tenant tenant
|
|
381
381
|
```
|
|
382
382
|
|
|
383
|
-
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
383
|
+
_See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/restore.js)_
|
|
384
384
|
|
|
385
385
|
## `saltcorn rm-tenant TENANT`
|
|
386
386
|
|
|
@@ -394,7 +394,7 @@ ARGUMENTS
|
|
|
394
394
|
TENANT Tenant to remove
|
|
395
395
|
```
|
|
396
396
|
|
|
397
|
-
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
397
|
+
_See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/rm-tenant.js)_
|
|
398
398
|
|
|
399
399
|
## `saltcorn run-benchmark [BASEURL]`
|
|
400
400
|
|
|
@@ -413,7 +413,7 @@ OPTIONS
|
|
|
413
413
|
-t, --token=token API Token for reporting results
|
|
414
414
|
```
|
|
415
415
|
|
|
416
|
-
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
416
|
+
_See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/run-benchmark.js)_
|
|
417
417
|
|
|
418
418
|
## `saltcorn run-tests [PACKAGE]`
|
|
419
419
|
|
|
@@ -433,7 +433,7 @@ OPTIONS
|
|
|
433
433
|
--watchAll Watch files for changes and rerun all tests.
|
|
434
434
|
```
|
|
435
435
|
|
|
436
|
-
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
436
|
+
_See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/run-tests.js)_
|
|
437
437
|
|
|
438
438
|
## `saltcorn scheduler`
|
|
439
439
|
|
|
@@ -447,7 +447,7 @@ OPTIONS
|
|
|
447
447
|
-v, --verbose Verbose
|
|
448
448
|
```
|
|
449
449
|
|
|
450
|
-
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
450
|
+
_See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/scheduler.js)_
|
|
451
451
|
|
|
452
452
|
## `saltcorn serve`
|
|
453
453
|
|
|
@@ -467,7 +467,7 @@ OPTIONS
|
|
|
467
467
|
-v, --verbose Verbose
|
|
468
468
|
```
|
|
469
469
|
|
|
470
|
-
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
470
|
+
_See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/serve.js)_
|
|
471
471
|
|
|
472
472
|
## `saltcorn set-cfg KEY VALUE`
|
|
473
473
|
|
|
@@ -486,7 +486,7 @@ OPTIONS
|
|
|
486
486
|
-t, --tenant=tenant tenant
|
|
487
487
|
```
|
|
488
488
|
|
|
489
|
-
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
489
|
+
_See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/set-cfg.js)_
|
|
490
490
|
|
|
491
491
|
## `saltcorn setup`
|
|
492
492
|
|
|
@@ -505,7 +505,7 @@ DESCRIPTION
|
|
|
505
505
|
configuration file
|
|
506
506
|
```
|
|
507
507
|
|
|
508
|
-
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
508
|
+
_See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/setup.js)_
|
|
509
509
|
|
|
510
510
|
## `saltcorn setup-benchmark`
|
|
511
511
|
|
|
@@ -519,7 +519,7 @@ OPTIONS
|
|
|
519
519
|
-t, --tenant=tenant tenant
|
|
520
520
|
```
|
|
521
521
|
|
|
522
|
-
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
522
|
+
_See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/setup-benchmark.js)_
|
|
523
523
|
|
|
524
524
|
## `saltcorn test-plugin PATH`
|
|
525
525
|
|
|
@@ -537,7 +537,7 @@ DESCRIPTION
|
|
|
537
537
|
Extra documentation goes here
|
|
538
538
|
```
|
|
539
539
|
|
|
540
|
-
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
540
|
+
_See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/test-plugin.js)_
|
|
541
541
|
|
|
542
542
|
## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
|
|
543
543
|
|
|
@@ -554,5 +554,5 @@ ARGUMENTS
|
|
|
554
554
|
TENANT tenant name
|
|
555
555
|
```
|
|
556
556
|
|
|
557
|
-
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1
|
|
557
|
+
_See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.7.1/src/commands/transform-field.js)_
|
|
558
558
|
<!-- commandsstop -->
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/cli",
|
|
3
|
-
"version": "0.7.1
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"@babel/generator": {
|
|
17
|
-
"version": "7.17.
|
|
18
|
-
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.
|
|
19
|
-
"integrity": "sha512-
|
|
17
|
+
"version": "7.17.9",
|
|
18
|
+
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.9.tgz",
|
|
19
|
+
"integrity": "sha512-rAdDousTwxbIxbz5I7GEQ3lUip+xVCXooZNbsydCWs3xA7ZsYOv+CFRdzGxRX78BmQHu9B1Eso59AOZQOJDEdQ==",
|
|
20
20
|
"requires": {
|
|
21
21
|
"@babel/types": "^7.17.0",
|
|
22
22
|
"jsesc": "^2.5.1",
|
|
@@ -47,21 +47,12 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"@babel/helper-function-name": {
|
|
50
|
-
"version": "7.
|
|
51
|
-
"resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.
|
|
52
|
-
"integrity": "sha512-
|
|
50
|
+
"version": "7.17.9",
|
|
51
|
+
"resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz",
|
|
52
|
+
"integrity": "sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==",
|
|
53
53
|
"requires": {
|
|
54
|
-
"@babel/helper-get-function-arity": "^7.16.7",
|
|
55
54
|
"@babel/template": "^7.16.7",
|
|
56
|
-
"@babel/types": "^7.
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"@babel/helper-get-function-arity": {
|
|
60
|
-
"version": "7.16.7",
|
|
61
|
-
"resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz",
|
|
62
|
-
"integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==",
|
|
63
|
-
"requires": {
|
|
64
|
-
"@babel/types": "^7.16.7"
|
|
55
|
+
"@babel/types": "^7.17.0"
|
|
65
56
|
}
|
|
66
57
|
},
|
|
67
58
|
"@babel/helper-hoist-variables": {
|
|
@@ -106,14 +97,14 @@
|
|
|
106
97
|
}
|
|
107
98
|
},
|
|
108
99
|
"@babel/parser": {
|
|
109
|
-
"version": "7.17.
|
|
110
|
-
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.
|
|
111
|
-
"integrity": "sha512-
|
|
100
|
+
"version": "7.17.9",
|
|
101
|
+
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.9.tgz",
|
|
102
|
+
"integrity": "sha512-vqUSBLP8dQHFPdPi9bc5GK9vRkYHJ49fsZdtoJ8EQ8ibpwk5rPKfvNIwChB0KVXcIjcepEBBd2VHC5r9Gy8ueg=="
|
|
112
103
|
},
|
|
113
104
|
"@babel/runtime": {
|
|
114
|
-
"version": "7.17.
|
|
115
|
-
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.
|
|
116
|
-
"integrity": "sha512-
|
|
105
|
+
"version": "7.17.9",
|
|
106
|
+
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.9.tgz",
|
|
107
|
+
"integrity": "sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==",
|
|
117
108
|
"requires": {
|
|
118
109
|
"regenerator-runtime": "^0.13.4"
|
|
119
110
|
}
|
|
@@ -142,9 +133,9 @@
|
|
|
142
133
|
"integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw=="
|
|
143
134
|
},
|
|
144
135
|
"@babel/highlight": {
|
|
145
|
-
"version": "7.
|
|
146
|
-
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.
|
|
147
|
-
"integrity": "sha512-
|
|
136
|
+
"version": "7.17.9",
|
|
137
|
+
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.17.9.tgz",
|
|
138
|
+
"integrity": "sha512-J9PfEKCbFIv2X5bjTMiZu6Vf341N05QIY+d6FvVKynkG1S7G0j3I0QoRtWIrXhZ+/Nlb5Q0MzqL7TokEJ5BNHg==",
|
|
148
139
|
"requires": {
|
|
149
140
|
"@babel/helper-validator-identifier": "^7.16.7",
|
|
150
141
|
"chalk": "^2.0.0",
|
|
@@ -154,17 +145,17 @@
|
|
|
154
145
|
}
|
|
155
146
|
},
|
|
156
147
|
"@babel/traverse": {
|
|
157
|
-
"version": "7.17.
|
|
158
|
-
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.
|
|
159
|
-
"integrity": "sha512-
|
|
148
|
+
"version": "7.17.9",
|
|
149
|
+
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.9.tgz",
|
|
150
|
+
"integrity": "sha512-PQO8sDIJ8SIwipTPiR71kJQCKQYB5NGImbOviK8K+kg5xkNSYXLBupuX9QhatFowrsvo9Hj8WgArg3W7ijNAQw==",
|
|
160
151
|
"requires": {
|
|
161
152
|
"@babel/code-frame": "^7.16.7",
|
|
162
|
-
"@babel/generator": "^7.17.
|
|
153
|
+
"@babel/generator": "^7.17.9",
|
|
163
154
|
"@babel/helper-environment-visitor": "^7.16.7",
|
|
164
|
-
"@babel/helper-function-name": "^7.
|
|
155
|
+
"@babel/helper-function-name": "^7.17.9",
|
|
165
156
|
"@babel/helper-hoist-variables": "^7.16.7",
|
|
166
157
|
"@babel/helper-split-export-declaration": "^7.16.7",
|
|
167
|
-
"@babel/parser": "^7.17.
|
|
158
|
+
"@babel/parser": "^7.17.9",
|
|
168
159
|
"@babel/types": "^7.17.0",
|
|
169
160
|
"debug": "^4.1.0",
|
|
170
161
|
"globals": "^11.1.0"
|
|
@@ -184,9 +175,9 @@
|
|
|
184
175
|
"integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw=="
|
|
185
176
|
},
|
|
186
177
|
"@babel/highlight": {
|
|
187
|
-
"version": "7.
|
|
188
|
-
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.
|
|
189
|
-
"integrity": "sha512-
|
|
178
|
+
"version": "7.17.9",
|
|
179
|
+
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.17.9.tgz",
|
|
180
|
+
"integrity": "sha512-J9PfEKCbFIv2X5bjTMiZu6Vf341N05QIY+d6FvVKynkG1S7G0j3I0QoRtWIrXhZ+/Nlb5Q0MzqL7TokEJ5BNHg==",
|
|
190
181
|
"requires": {
|
|
191
182
|
"@babel/helper-validator-identifier": "^7.16.7",
|
|
192
183
|
"chalk": "^2.0.0",
|
|
@@ -1150,14 +1141,14 @@
|
|
|
1150
1141
|
}
|
|
1151
1142
|
},
|
|
1152
1143
|
"@saltcorn/admin-models": {
|
|
1153
|
-
"version": "0.7.1
|
|
1154
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/admin-models/-/admin-models-0.7.1
|
|
1155
|
-
"integrity": "sha512
|
|
1156
|
-
"requires": {
|
|
1157
|
-
"@saltcorn/data": "0.7.1
|
|
1158
|
-
"@saltcorn/db-common": "0.7.1
|
|
1159
|
-
"@saltcorn/markup": "0.7.1
|
|
1160
|
-
"@saltcorn/types": "0.7.1
|
|
1144
|
+
"version": "0.7.1",
|
|
1145
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/admin-models/-/admin-models-0.7.1.tgz",
|
|
1146
|
+
"integrity": "sha512-/C2jOOAMoaVUDAX85L2SmZleI2Mf98bw+eiGYCPL9zd/O8uGlWKUvZSfQPiCzQTgPanUMrc4j0CEGay/R36I2g==",
|
|
1147
|
+
"requires": {
|
|
1148
|
+
"@saltcorn/data": "0.7.1",
|
|
1149
|
+
"@saltcorn/db-common": "0.7.1",
|
|
1150
|
+
"@saltcorn/markup": "0.7.1",
|
|
1151
|
+
"@saltcorn/types": "0.7.1",
|
|
1161
1152
|
"adm-zip": "0.5.5",
|
|
1162
1153
|
"csv-stringify": "^5.5.0",
|
|
1163
1154
|
"csvtojson": "^2.0.10",
|
|
@@ -1167,31 +1158,31 @@
|
|
|
1167
1158
|
}
|
|
1168
1159
|
},
|
|
1169
1160
|
"@saltcorn/base-plugin": {
|
|
1170
|
-
"version": "0.7.1
|
|
1171
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.7.1
|
|
1172
|
-
"integrity": "sha512-
|
|
1161
|
+
"version": "0.7.1",
|
|
1162
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.7.1.tgz",
|
|
1163
|
+
"integrity": "sha512-jVtAS7ybQtIz7MGK6aFsfY5XJClIePSDY0XPwqlrg+NL30RD4r8VjBh2excotmYB5575uRPTnCtlfB98csmE2w==",
|
|
1173
1164
|
"requires": {
|
|
1174
|
-
"@saltcorn/data": "0.7.1
|
|
1165
|
+
"@saltcorn/data": "0.7.1"
|
|
1175
1166
|
}
|
|
1176
1167
|
},
|
|
1177
1168
|
"@saltcorn/builder": {
|
|
1178
|
-
"version": "0.7.1
|
|
1179
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.7.1
|
|
1180
|
-
"integrity": "sha512-
|
|
1169
|
+
"version": "0.7.1",
|
|
1170
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.7.1.tgz",
|
|
1171
|
+
"integrity": "sha512-z11Lu4dbK2KUNCsGUB4xlVBhLE35v173bcEAQdgtHFqZjEpdYIw6Cv4CnsS5Nmb05nK36Z8jQpODpzYZQeOCgQ==",
|
|
1181
1172
|
"requires": {
|
|
1182
1173
|
"styled-components": "4.4.1"
|
|
1183
1174
|
}
|
|
1184
1175
|
},
|
|
1185
1176
|
"@saltcorn/data": {
|
|
1186
|
-
"version": "0.7.1
|
|
1187
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.7.1
|
|
1188
|
-
"integrity": "sha512-
|
|
1189
|
-
"requires": {
|
|
1190
|
-
"@saltcorn/db-common": "0.7.1
|
|
1191
|
-
"@saltcorn/markup": "0.7.1
|
|
1192
|
-
"@saltcorn/postgres": "0.7.1
|
|
1193
|
-
"@saltcorn/sqlite": "0.7.1
|
|
1194
|
-
"@saltcorn/types": "0.7.1
|
|
1177
|
+
"version": "0.7.1",
|
|
1178
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.7.1.tgz",
|
|
1179
|
+
"integrity": "sha512-SmC0eX76T5qkT3aMoZ+yCB+1hIFJyVauxBwWzuW8HDTmA9XXUDhEarbUDYLxeeu9Qo4pq8v5Ag/F4F4j3i8Dkg==",
|
|
1180
|
+
"requires": {
|
|
1181
|
+
"@saltcorn/db-common": "0.7.1",
|
|
1182
|
+
"@saltcorn/markup": "0.7.1",
|
|
1183
|
+
"@saltcorn/postgres": "0.7.1",
|
|
1184
|
+
"@saltcorn/sqlite": "0.7.1",
|
|
1185
|
+
"@saltcorn/types": "0.7.1",
|
|
1195
1186
|
"@types/mjml": "4.7.0",
|
|
1196
1187
|
"acorn": "^8.0.3",
|
|
1197
1188
|
"astring": "^1.4.3",
|
|
@@ -1217,14 +1208,14 @@
|
|
|
1217
1208
|
}
|
|
1218
1209
|
},
|
|
1219
1210
|
"@saltcorn/db-common": {
|
|
1220
|
-
"version": "0.7.1
|
|
1221
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.7.1
|
|
1222
|
-
"integrity": "sha512-
|
|
1211
|
+
"version": "0.7.1",
|
|
1212
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.7.1.tgz",
|
|
1213
|
+
"integrity": "sha512-RUQOwZUzi3QCu5MzhPYOS88xwep2nzfnoGU1mgeKL4IE1qtTbn857HhWEj8HvSOSAcDh6kVX1o8IqwTdtMZiYg=="
|
|
1223
1214
|
},
|
|
1224
1215
|
"@saltcorn/markup": {
|
|
1225
|
-
"version": "0.7.1
|
|
1226
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.7.1
|
|
1227
|
-
"integrity": "sha512-
|
|
1216
|
+
"version": "0.7.1",
|
|
1217
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.7.1.tgz",
|
|
1218
|
+
"integrity": "sha512-tUhoSD8bY2pukhZnTs7KPTcpx0V1yQR0g/hUq7ElVFdH7WFLamHX5QHgXoEux1953ABIJthiplNcquWl5G/YIg==",
|
|
1228
1219
|
"requires": {
|
|
1229
1220
|
"escape-html": "^1.0.3",
|
|
1230
1221
|
"html-tags": "3.1.0",
|
|
@@ -1232,37 +1223,37 @@
|
|
|
1232
1223
|
}
|
|
1233
1224
|
},
|
|
1234
1225
|
"@saltcorn/postgres": {
|
|
1235
|
-
"version": "0.7.1
|
|
1236
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.7.1
|
|
1237
|
-
"integrity": "sha512-
|
|
1226
|
+
"version": "0.7.1",
|
|
1227
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.7.1.tgz",
|
|
1228
|
+
"integrity": "sha512-YOW56NrQfAh/eELERKvbovwi+mXEpb0B7zqHJL93DhGtrACSJZfyHCi2PaIXllnVlTdPwfpL13ySQeaQpGWSFQ==",
|
|
1238
1229
|
"optional": true,
|
|
1239
1230
|
"requires": {
|
|
1240
|
-
"@saltcorn/db-common": "0.7.1
|
|
1231
|
+
"@saltcorn/db-common": "0.7.1",
|
|
1241
1232
|
"pg": "^8.2.1",
|
|
1242
1233
|
"pg-copy-streams": "^5.1.1"
|
|
1243
1234
|
}
|
|
1244
1235
|
},
|
|
1245
1236
|
"@saltcorn/sbadmin2": {
|
|
1246
|
-
"version": "0.7.1
|
|
1247
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.7.1
|
|
1248
|
-
"integrity": "sha512-
|
|
1237
|
+
"version": "0.7.1",
|
|
1238
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.7.1.tgz",
|
|
1239
|
+
"integrity": "sha512-2Oq7lCRLNVEl6yULEELP6iqvePPQBXW7lrc0Btbj2ErChm3kfFxx+S6qs+L/yamC6SC25nwh1W2CkcOL5V8v3A==",
|
|
1249
1240
|
"requires": {
|
|
1250
|
-
"@saltcorn/data": "0.7.1
|
|
1251
|
-
"@saltcorn/markup": "0.7.1
|
|
1241
|
+
"@saltcorn/data": "0.7.1",
|
|
1242
|
+
"@saltcorn/markup": "0.7.1",
|
|
1252
1243
|
"startbootstrap-sb-admin-2-bs5": "^4.1.5-beta.3"
|
|
1253
1244
|
}
|
|
1254
1245
|
},
|
|
1255
1246
|
"@saltcorn/server": {
|
|
1256
|
-
"version": "0.7.1
|
|
1257
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.7.1
|
|
1258
|
-
"integrity": "sha512-
|
|
1259
|
-
"requires": {
|
|
1260
|
-
"@saltcorn/admin-models": "0.7.1
|
|
1261
|
-
"@saltcorn/base-plugin": "0.7.1
|
|
1262
|
-
"@saltcorn/builder": "0.7.1
|
|
1263
|
-
"@saltcorn/data": "0.7.1
|
|
1264
|
-
"@saltcorn/markup": "0.7.1
|
|
1265
|
-
"@saltcorn/sbadmin2": "0.7.1
|
|
1247
|
+
"version": "0.7.1",
|
|
1248
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.7.1.tgz",
|
|
1249
|
+
"integrity": "sha512-3mG/IZC5VrQyEQ+/cUphjWxuN3Echyk6YhUc91LI8vgxdjoqV8RlNLtsdObpyxLPtdpld8uSryh2GEnUuu2QPQ==",
|
|
1250
|
+
"requires": {
|
|
1251
|
+
"@saltcorn/admin-models": "0.7.1",
|
|
1252
|
+
"@saltcorn/base-plugin": "0.7.1",
|
|
1253
|
+
"@saltcorn/builder": "0.7.1",
|
|
1254
|
+
"@saltcorn/data": "0.7.1",
|
|
1255
|
+
"@saltcorn/markup": "0.7.1",
|
|
1256
|
+
"@saltcorn/sbadmin2": "0.7.1",
|
|
1266
1257
|
"@socket.io/cluster-adapter": "^0.1.0",
|
|
1267
1258
|
"@socket.io/sticky": "^1.0.1",
|
|
1268
1259
|
"aws-sdk": "^2.1037.0",
|
|
@@ -1306,19 +1297,19 @@
|
|
|
1306
1297
|
}
|
|
1307
1298
|
},
|
|
1308
1299
|
"@saltcorn/sqlite": {
|
|
1309
|
-
"version": "0.7.1
|
|
1310
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.7.1
|
|
1311
|
-
"integrity": "sha512-
|
|
1300
|
+
"version": "0.7.1",
|
|
1301
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.7.1.tgz",
|
|
1302
|
+
"integrity": "sha512-c2+rvVFxKfyta4mKpPQDHJEZeffEx5wTsPtPYojw2ktKe8XzIFby4Vb30eZ5w6yTh1tru0tq0ghsu0/dKR+yjw==",
|
|
1312
1303
|
"optional": true,
|
|
1313
1304
|
"requires": {
|
|
1314
|
-
"@saltcorn/db-common": "0.7.1
|
|
1305
|
+
"@saltcorn/db-common": "0.7.1",
|
|
1315
1306
|
"sqlite3": "^5.0.2"
|
|
1316
1307
|
}
|
|
1317
1308
|
},
|
|
1318
1309
|
"@saltcorn/types": {
|
|
1319
|
-
"version": "0.7.1
|
|
1320
|
-
"resolved": "https://registry.npmjs.org/@saltcorn/types/-/types-0.7.1
|
|
1321
|
-
"integrity": "sha512
|
|
1310
|
+
"version": "0.7.1",
|
|
1311
|
+
"resolved": "https://registry.npmjs.org/@saltcorn/types/-/types-0.7.1.tgz",
|
|
1312
|
+
"integrity": "sha512-XOhMWuYYhftZzy0IANUxnhQNaJIFNR+Y7TsS2MjA369lsOYsLFtpUebYuLQ5VTT3g7AakTR4M+yP8D7EqXGs0A=="
|
|
1322
1313
|
},
|
|
1323
1314
|
"@sindresorhus/is": {
|
|
1324
1315
|
"version": "0.14.0",
|
|
@@ -1711,9 +1702,9 @@
|
|
|
1711
1702
|
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
|
|
1712
1703
|
},
|
|
1713
1704
|
"aws-sdk": {
|
|
1714
|
-
"version": "2.
|
|
1715
|
-
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.
|
|
1716
|
-
"integrity": "sha512-
|
|
1705
|
+
"version": "2.1108.0",
|
|
1706
|
+
"resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1108.0.tgz",
|
|
1707
|
+
"integrity": "sha512-BpoHW6vk8cXQDf0M+j7LSti7db4vIWocfUDTFbmkOT0hH9pR3f4IDzbnGzGmlka6IOFWkb9sVHl+P5S2meswOg==",
|
|
1717
1708
|
"requires": {
|
|
1718
1709
|
"buffer": "4.9.2",
|
|
1719
1710
|
"events": "1.1.1",
|
|
@@ -2133,15 +2124,15 @@
|
|
|
2133
2124
|
}
|
|
2134
2125
|
},
|
|
2135
2126
|
"cheerio-select": {
|
|
2136
|
-
"version": "1.
|
|
2137
|
-
"resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.
|
|
2138
|
-
"integrity": "sha512-
|
|
2127
|
+
"version": "1.6.0",
|
|
2128
|
+
"resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-1.6.0.tgz",
|
|
2129
|
+
"integrity": "sha512-eq0GdBvxVFbqWgmCm7M3XGs1I8oLy/nExUnh6oLqmBditPO9AqQJrkslDpMun/hZ0yyTs8L0m85OHp4ho6Qm9g==",
|
|
2139
2130
|
"requires": {
|
|
2140
|
-
"css-select": "^4.
|
|
2141
|
-
"css-what": "^
|
|
2131
|
+
"css-select": "^4.3.0",
|
|
2132
|
+
"css-what": "^6.0.1",
|
|
2142
2133
|
"domelementtype": "^2.2.0",
|
|
2143
|
-
"domhandler": "^4.
|
|
2144
|
-
"domutils": "^2.
|
|
2134
|
+
"domhandler": "^4.3.1",
|
|
2135
|
+
"domutils": "^2.8.0"
|
|
2145
2136
|
}
|
|
2146
2137
|
},
|
|
2147
2138
|
"chokidar": {
|
|
@@ -2670,13 +2661,13 @@
|
|
|
2670
2661
|
"integrity": "sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU="
|
|
2671
2662
|
},
|
|
2672
2663
|
"css-select": {
|
|
2673
|
-
"version": "4.
|
|
2674
|
-
"resolved": "https://registry.npmjs.org/css-select/-/css-select-4.
|
|
2675
|
-
"integrity": "sha512
|
|
2664
|
+
"version": "4.3.0",
|
|
2665
|
+
"resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz",
|
|
2666
|
+
"integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==",
|
|
2676
2667
|
"requires": {
|
|
2677
2668
|
"boolbase": "^1.0.0",
|
|
2678
|
-
"css-what": "^
|
|
2679
|
-
"domhandler": "^4.3.
|
|
2669
|
+
"css-what": "^6.0.1",
|
|
2670
|
+
"domhandler": "^4.3.1",
|
|
2680
2671
|
"domutils": "^2.8.0",
|
|
2681
2672
|
"nth-check": "^2.0.1"
|
|
2682
2673
|
}
|
|
@@ -2692,9 +2683,9 @@
|
|
|
2692
2683
|
}
|
|
2693
2684
|
},
|
|
2694
2685
|
"css-what": {
|
|
2695
|
-
"version": "
|
|
2696
|
-
"resolved": "https://registry.npmjs.org/css-what/-/css-what-
|
|
2697
|
-
"integrity": "sha512-
|
|
2686
|
+
"version": "6.1.0",
|
|
2687
|
+
"resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz",
|
|
2688
|
+
"integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw=="
|
|
2698
2689
|
},
|
|
2699
2690
|
"cssfilter": {
|
|
2700
2691
|
"version": "0.0.10",
|
|
@@ -4245,9 +4236,9 @@
|
|
|
4245
4236
|
"integrity": "sha1-R5gsWDa9dY/UhJSSPEoQHvbpPjs="
|
|
4246
4237
|
},
|
|
4247
4238
|
"js-beautify": {
|
|
4248
|
-
"version": "1.14.
|
|
4249
|
-
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.
|
|
4250
|
-
"integrity": "sha512-
|
|
4239
|
+
"version": "1.14.2",
|
|
4240
|
+
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.2.tgz",
|
|
4241
|
+
"integrity": "sha512-H85kX95a53os+q1OCqtYe8AXAmgy3BvtysA/V83S3fdhznm6WlUpGi14DqSPbKFsL3dXZFXYl7YQwW9U1+76ng==",
|
|
4251
4242
|
"requires": {
|
|
4252
4243
|
"config-chain": "^1.1.12",
|
|
4253
4244
|
"editorconfig": "^0.15.3",
|
|
@@ -5195,9 +5186,9 @@
|
|
|
5195
5186
|
"dev": true
|
|
5196
5187
|
},
|
|
5197
5188
|
"moment": {
|
|
5198
|
-
"version": "2.29.
|
|
5199
|
-
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.
|
|
5200
|
-
"integrity": "sha512-
|
|
5189
|
+
"version": "2.29.2",
|
|
5190
|
+
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.2.tgz",
|
|
5191
|
+
"integrity": "sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg=="
|
|
5201
5192
|
},
|
|
5202
5193
|
"moment-timezone": {
|
|
5203
5194
|
"version": "0.5.34",
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.7.1-beta.3","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}]}}}
|
|
1
|
+
{"version":"0.7.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":[]},"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
|
|
5
|
+
"version": "0.7.1",
|
|
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
|
|
16
|
-
"@saltcorn/data": "0.7.1
|
|
17
|
-
"@saltcorn/server": "0.7.1
|
|
15
|
+
"@saltcorn/admin-models": "0.7.1",
|
|
16
|
+
"@saltcorn/data": "0.7.1",
|
|
17
|
+
"@saltcorn/server": "0.7.1",
|
|
18
18
|
"cli-ux": "^5.6.7",
|
|
19
19
|
"contractis": "^0.1.0",
|
|
20
20
|
"dateformat": "^3.0.3",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
const { Command, flags } = require("@oclif/command");
|
|
6
6
|
const { cli } = require("cli-ux");
|
|
7
|
-
const { maybe_as_tenant } = require("../common");
|
|
7
|
+
const { maybe_as_tenant, init_some_tenants } = require("../common");
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* ConfigurationCheckCommand Class
|
|
@@ -16,20 +16,13 @@ class ConfigurationCheckCommand extends Command {
|
|
|
16
16
|
* @returns {Promise<void>}
|
|
17
17
|
*/
|
|
18
18
|
async run() {
|
|
19
|
-
const User = require("@saltcorn/data/models/user");
|
|
20
|
-
|
|
21
19
|
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");
|
|
20
|
+
await init_some_tenants(flags.tenant);
|
|
26
21
|
const {
|
|
27
22
|
runConfigurationCheck,
|
|
28
23
|
} = require("@saltcorn/admin-models/models/config-check");
|
|
29
24
|
const { mockReqRes } = require("@saltcorn/data/tests/mocks");
|
|
30
|
-
|
|
31
|
-
const tenants = await getAllTenants();
|
|
32
|
-
await init_multi_tenant(loadAllPlugins, undefined, tenants);
|
|
25
|
+
|
|
33
26
|
const that = this;
|
|
34
27
|
await maybe_as_tenant(flags.tenant, async () => {
|
|
35
28
|
const { passes, errors, pass } = await runConfigurationCheck(
|
package/src/common.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @param {object} ten
|
|
8
|
-
* @param {function} f
|
|
7
|
+
* @param {object} ten
|
|
8
|
+
* @param {function} f
|
|
9
9
|
* @returns {Promise<void>}
|
|
10
10
|
*/
|
|
11
11
|
const maybe_as_tenant = async (ten, f) => {
|
|
@@ -14,8 +14,17 @@ const maybe_as_tenant = async (ten, f) => {
|
|
|
14
14
|
return await db.runWithTenant(ten, f);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
const init_some_tenants = async (tenant) => {
|
|
18
|
+
const { loadAllPlugins } = require("@saltcorn/server/load_plugins");
|
|
19
|
+
const { init_multi_tenant } = require("@saltcorn/data/db/state");
|
|
20
|
+
await loadAllPlugins();
|
|
21
|
+
if (tenant) await init_multi_tenant(loadAllPlugins, undefined, [tenant]);
|
|
22
|
+
else await init_multi_tenant(loadAllPlugins, undefined, []);
|
|
23
|
+
//await init_multi_tenant(loadAllPlugins, undefined, tenants);
|
|
24
|
+
};
|
|
25
|
+
|
|
17
26
|
/**
|
|
18
|
-
* @param {string} s
|
|
27
|
+
* @param {string} s
|
|
19
28
|
* @returns {object}
|
|
20
29
|
*/
|
|
21
30
|
const parseJSONorString = (s) => {
|
|
@@ -27,10 +36,15 @@ const parseJSONorString = (s) => {
|
|
|
27
36
|
};
|
|
28
37
|
|
|
29
38
|
/**
|
|
30
|
-
* @param {numer} ms
|
|
39
|
+
* @param {numer} ms
|
|
31
40
|
* @returns {Promise<void>}
|
|
32
41
|
*/
|
|
33
42
|
function sleep(ms) {
|
|
34
43
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
35
44
|
}
|
|
36
|
-
module.exports = {
|
|
45
|
+
module.exports = {
|
|
46
|
+
maybe_as_tenant,
|
|
47
|
+
parseJSONorString,
|
|
48
|
+
sleep,
|
|
49
|
+
init_some_tenants,
|
|
50
|
+
};
|