@saltcorn/cli 0.6.1 → 0.6.2-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 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.1 darwin-x64 node-v14.16.1
23
+ @saltcorn/cli/0.6.2-beta.0 darwin-x64 node-v14.16.1
24
24
  $ saltcorn --help [COMMAND]
25
25
  USAGE
26
26
  $ saltcorn COMMAND
@@ -68,7 +68,7 @@ USAGE
68
68
  $ saltcorn add-schema
69
69
  ```
70
70
 
71
- _See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/add-schema.js)_
71
+ _See code: [src/commands/add-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/add-schema.js)_
72
72
 
73
73
  ## `saltcorn backup`
74
74
 
@@ -84,7 +84,7 @@ OPTIONS
84
84
  -z, --zip zip format
85
85
  ```
86
86
 
87
- _See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/backup.js)_
87
+ _See code: [src/commands/backup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/backup.js)_
88
88
 
89
89
  ## `saltcorn create-tenant TENANT`
90
90
 
@@ -102,7 +102,7 @@ OPTIONS
102
102
  -e, --email=email Email of owner of tenant
103
103
  ```
104
104
 
105
- _See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/create-tenant.js)_
105
+ _See code: [src/commands/create-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/create-tenant.js)_
106
106
 
107
107
  ## `saltcorn create-user`
108
108
 
@@ -120,7 +120,7 @@ OPTIONS
120
120
  -t, --tenant=tenant tenant
121
121
  ```
122
122
 
123
- _See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/create-user.js)_
123
+ _See code: [src/commands/create-user.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/create-user.js)_
124
124
 
125
125
  ## `saltcorn fixtures`
126
126
 
@@ -138,7 +138,7 @@ DESCRIPTION
138
138
  This manual step it is never required for users and rarely required for developers
139
139
  ```
140
140
 
141
- _See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/fixtures.js)_
141
+ _See code: [src/commands/fixtures.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/fixtures.js)_
142
142
 
143
143
  ## `saltcorn help [COMMAND]`
144
144
 
@@ -155,7 +155,7 @@ OPTIONS
155
155
  --all see all commands in CLI
156
156
  ```
157
157
 
158
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.5/src/commands/help.ts)_
158
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.7/src/commands/help.ts)_
159
159
 
160
160
  ## `saltcorn info`
161
161
 
@@ -176,7 +176,7 @@ ALIASES
176
176
  $ saltcorn paths
177
177
  ```
178
178
 
179
- _See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/info.js)_
179
+ _See code: [src/commands/info.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/info.js)_
180
180
 
181
181
  ## `saltcorn install-pack`
182
182
 
@@ -192,7 +192,7 @@ OPTIONS
192
192
  -t, --tenant=tenant tenant
193
193
  ```
194
194
 
195
- _See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/install-pack.js)_
195
+ _See code: [src/commands/install-pack.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/install-pack.js)_
196
196
 
197
197
  ## `saltcorn install-plugin`
198
198
 
@@ -208,7 +208,7 @@ OPTIONS
208
208
  -t, --tenant=tenant tenant
209
209
  ```
210
210
 
211
- _See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/install-plugin.js)_
211
+ _See code: [src/commands/install-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/install-plugin.js)_
212
212
 
213
213
  ## `saltcorn list-tenants`
214
214
 
@@ -219,7 +219,7 @@ USAGE
219
219
  $ saltcorn list-tenants
220
220
  ```
221
221
 
222
- _See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/list-tenants.js)_
222
+ _See code: [src/commands/list-tenants.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/list-tenants.js)_
223
223
 
224
224
  ## `saltcorn localize-plugin PLUGIN PATH`
225
225
 
@@ -237,7 +237,7 @@ OPTIONS
237
237
  -t, --tenant=tenant tenant
238
238
  ```
239
239
 
240
- _See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/localize-plugin.js)_
240
+ _See code: [src/commands/localize-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/localize-plugin.js)_
241
241
 
242
242
  ## `saltcorn make-migration`
243
243
 
@@ -253,7 +253,7 @@ DESCRIPTION
253
253
  unless you are a developer.
254
254
  ```
255
255
 
256
- _See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/make-migration.js)_
256
+ _See code: [src/commands/make-migration.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/make-migration.js)_
257
257
 
258
258
  ## `saltcorn saltcorn migrate`
259
259
 
@@ -275,7 +275,7 @@ DESCRIPTION
275
275
  servers and need to control when the migrations are run.
276
276
  ```
277
277
 
278
- _See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/migrate.js)_
278
+ _See code: [src/commands/migrate.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/migrate.js)_
279
279
 
280
280
  ## `saltcorn plugins`
281
281
 
@@ -302,7 +302,7 @@ EXAMPLES
302
302
  plugins -u -f - force plugin update
303
303
  ```
304
304
 
305
- _See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/plugins.js)_
305
+ _See code: [src/commands/plugins.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/plugins.js)_
306
306
 
307
307
  ## `saltcorn release VERSION`
308
308
 
@@ -316,7 +316,7 @@ ARGUMENTS
316
316
  VERSION New version number
317
317
  ```
318
318
 
319
- _See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/release.js)_
319
+ _See code: [src/commands/release.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/release.js)_
320
320
 
321
321
  ## `saltcorn reset-schema`
322
322
 
@@ -335,7 +335,7 @@ DESCRIPTION
335
335
  This will delete all existing information
336
336
  ```
337
337
 
338
- _See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/reset-schema.js)_
338
+ _See code: [src/commands/reset-schema.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/reset-schema.js)_
339
339
 
340
340
  ## `saltcorn restore FILE`
341
341
 
@@ -352,7 +352,7 @@ OPTIONS
352
352
  -t, --tenant=tenant tenant
353
353
  ```
354
354
 
355
- _See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/restore.js)_
355
+ _See code: [src/commands/restore.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/restore.js)_
356
356
 
357
357
  ## `saltcorn rm-tenant TENANT`
358
358
 
@@ -366,7 +366,7 @@ ARGUMENTS
366
366
  TENANT Tenant to remove
367
367
  ```
368
368
 
369
- _See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/rm-tenant.js)_
369
+ _See code: [src/commands/rm-tenant.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/rm-tenant.js)_
370
370
 
371
371
  ## `saltcorn run-benchmark [BASEURL]`
372
372
 
@@ -385,7 +385,7 @@ OPTIONS
385
385
  -t, --token=token API Token for reporting results
386
386
  ```
387
387
 
388
- _See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/run-benchmark.js)_
388
+ _See code: [src/commands/run-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/run-benchmark.js)_
389
389
 
390
390
  ## `saltcorn run-tests [PACKAGE]`
391
391
 
@@ -405,7 +405,7 @@ OPTIONS
405
405
  --watchAll Watch files for changes and rerun all tests.
406
406
  ```
407
407
 
408
- _See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/run-tests.js)_
408
+ _See code: [src/commands/run-tests.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/run-tests.js)_
409
409
 
410
410
  ## `saltcorn scheduler`
411
411
 
@@ -419,7 +419,7 @@ OPTIONS
419
419
  -v, --verbose Verbose
420
420
  ```
421
421
 
422
- _See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/scheduler.js)_
422
+ _See code: [src/commands/scheduler.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/scheduler.js)_
423
423
 
424
424
  ## `saltcorn serve`
425
425
 
@@ -431,6 +431,7 @@ USAGE
431
431
 
432
432
  OPTIONS
433
433
  -a, --addschema Add schema if missing
434
+ -d, --dev Run in dev mode and re-start on file changes
434
435
  -n, --nomigrate No migrations
435
436
  -p, --port=port [default: 3000] port
436
437
  -r, --watchReaper Watch reaper
@@ -438,7 +439,7 @@ OPTIONS
438
439
  -v, --verbose Verbose
439
440
  ```
440
441
 
441
- _See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/serve.js)_
442
+ _See code: [src/commands/serve.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/serve.js)_
442
443
 
443
444
  ## `saltcorn set-cfg KEY VALUE`
444
445
 
@@ -457,7 +458,7 @@ OPTIONS
457
458
  -t, --tenant=tenant tenant
458
459
  ```
459
460
 
460
- _See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/set-cfg.js)_
461
+ _See code: [src/commands/set-cfg.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/set-cfg.js)_
461
462
 
462
463
  ## `saltcorn setup`
463
464
 
@@ -476,7 +477,7 @@ DESCRIPTION
476
477
  configuration file
477
478
  ```
478
479
 
479
- _See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/setup.js)_
480
+ _See code: [src/commands/setup.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/setup.js)_
480
481
 
481
482
  ## `saltcorn setup-benchmark`
482
483
 
@@ -490,7 +491,7 @@ OPTIONS
490
491
  -t, --tenant=tenant tenant
491
492
  ```
492
493
 
493
- _See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/setup-benchmark.js)_
494
+ _See code: [src/commands/setup-benchmark.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/setup-benchmark.js)_
494
495
 
495
496
  ## `saltcorn test-plugin PATH`
496
497
 
@@ -508,7 +509,7 @@ DESCRIPTION
508
509
  Extra documentation goes here
509
510
  ```
510
511
 
511
- _See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/test-plugin.js)_
512
+ _See code: [src/commands/test-plugin.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/test-plugin.js)_
512
513
 
513
514
  ## `saltcorn transform-field EXPRESSION FIELD TABLE [TENANT]`
514
515
 
@@ -525,5 +526,5 @@ ARGUMENTS
525
526
  TENANT tenant name
526
527
  ```
527
528
 
528
- _See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.6.1/src/commands/transform-field.js)_
529
+ _See code: [src/commands/transform-field.js](https://github.com/saltcorn/saltcorn/blob/v0.6.2-beta.0/src/commands/transform-field.js)_
529
530
  <!-- commandsstop -->
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@saltcorn/cli",
3
- "version": "0.6.1",
3
+ "version": "0.6.2-beta.0",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
7
7
  "@babel/code-frame": {
8
- "version": "7.12.13",
9
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz",
10
- "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==",
8
+ "version": "7.16.0",
9
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.0.tgz",
10
+ "integrity": "sha512-IF4EOMEV+bfYwOmNxGzSnjR2EmQod7f1UXOpZM3l4i4o4QNwzjtJAu/HxdjHq0aYBvdqMuQEY1eg0nqW9ZPORA==",
11
11
  "dev": true,
12
12
  "requires": {
13
- "@babel/highlight": "^7.12.13"
13
+ "@babel/highlight": "^7.16.0"
14
14
  }
15
15
  },
16
16
  "@babel/generator": {
@@ -81,18 +81,18 @@
81
81
  }
82
82
  },
83
83
  "@babel/helper-validator-identifier": {
84
- "version": "7.14.0",
85
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz",
86
- "integrity": "sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A==",
84
+ "version": "7.15.7",
85
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz",
86
+ "integrity": "sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==",
87
87
  "dev": true
88
88
  },
89
89
  "@babel/highlight": {
90
- "version": "7.14.0",
91
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.0.tgz",
92
- "integrity": "sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg==",
90
+ "version": "7.16.0",
91
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.0.tgz",
92
+ "integrity": "sha512-t8MH41kUQylBtu2+4IQA3atqevA2lRgqA2wyVB/YiWmsDSuylZZuXOUy9ric30hfzauEFfdsuk/eXTRrGrfd0g==",
93
93
  "dev": true,
94
94
  "requires": {
95
- "@babel/helper-validator-identifier": "^7.14.0",
95
+ "@babel/helper-validator-identifier": "^7.15.7",
96
96
  "chalk": "^2.0.0",
97
97
  "js-tokens": "^4.0.0"
98
98
  }
@@ -249,14 +249,14 @@
249
249
  }
250
250
  },
251
251
  "@oclif/command": {
252
- "version": "1.8.3",
253
- "resolved": "https://registry.npmjs.org/@oclif/command/-/command-1.8.3.tgz",
254
- "integrity": "sha512-OGjrhdVgTT2TAAj/2RrdXjwxaDoTm16c2LfAzrta1xIFe6/XhgQIYDmeRN/RptQoZQBX8e9Vv2JoQq+TbghJmw==",
252
+ "version": "1.8.4",
253
+ "resolved": "https://registry.npmjs.org/@oclif/command/-/command-1.8.4.tgz",
254
+ "integrity": "sha512-fZVzaIzC0CSj5KCgAp84Z+LHqSwElA6G2lCRiQW4UfDaOx1CrHXbUCqGDBpV6lG1sobuJzKlsS6mh5fmJWeEyw==",
255
255
  "requires": {
256
- "@oclif/config": "^1.15.1",
256
+ "@oclif/config": "^1.17.1",
257
257
  "@oclif/errors": "^1.3.5",
258
- "@oclif/parser": "^3.8.5",
259
- "@oclif/plugin-help": "^3.2.4",
258
+ "@oclif/parser": "^3.8.6",
259
+ "@oclif/plugin-help": "^3.2.6",
260
260
  "debug": "^4.1.1",
261
261
  "semver": "^7.3.2"
262
262
  }
@@ -295,16 +295,16 @@
295
295
  }
296
296
  },
297
297
  "@oclif/dev-cli": {
298
- "version": "1.26.0",
299
- "resolved": "https://registry.npmjs.org/@oclif/dev-cli/-/dev-cli-1.26.0.tgz",
300
- "integrity": "sha512-272udZP+bG4qahoAcpWcMTJKiA+V42kRMqQM7n4tgW35brYb2UP5kK+p08PpF8sgSfRTV8MoJVJG9ax5kY82PA==",
298
+ "version": "1.26.3",
299
+ "resolved": "https://registry.npmjs.org/@oclif/dev-cli/-/dev-cli-1.26.3.tgz",
300
+ "integrity": "sha512-SJAoKNPbqY6OOhCSFN/xmtx6qoHq84Qck/ABW6YEgGxdLn9wZlK23ogO1KkRcVRFGbY930w/9x2nsNP1IyIwSQ==",
301
301
  "dev": true,
302
302
  "requires": {
303
- "@oclif/command": "^1.8.0",
304
- "@oclif/config": "^1.17.0",
305
- "@oclif/errors": "^1.3.3",
306
- "@oclif/plugin-help": "^3.2.0",
307
- "cli-ux": "^5.2.1",
303
+ "@oclif/command": "^1.8.4",
304
+ "@oclif/config": "^1.17.1",
305
+ "@oclif/errors": "^1.3.5",
306
+ "@oclif/plugin-help": "^3.2.7",
307
+ "cli-ux": "^5.6.4",
308
308
  "debug": "^4.1.1",
309
309
  "find-yarn-workspace-root": "^2.0.0",
310
310
  "fs-extra": "^8.1",
@@ -315,122 +315,11 @@
315
315
  "tslib": "^2.0.3"
316
316
  },
317
317
  "dependencies": {
318
- "@oclif/errors": {
319
- "version": "1.3.4",
320
- "resolved": "https://registry.npmjs.org/@oclif/errors/-/errors-1.3.4.tgz",
321
- "integrity": "sha512-pJKXyEqwdfRTUdM8n5FIHiQQHg5ETM0Wlso8bF9GodczO40mF5Z3HufnYWJE7z8sGKxOeJCdbAVZbS8Y+d5GCw==",
322
- "dev": true,
323
- "requires": {
324
- "clean-stack": "^3.0.0",
325
- "fs-extra": "^8.1",
326
- "indent-string": "^4.0.0",
327
- "strip-ansi": "^6.0.0",
328
- "wrap-ansi": "^7.0.0"
329
- }
330
- },
331
- "ansi-regex": {
332
- "version": "5.0.0",
333
- "resolved": "",
334
- "dev": true
335
- },
336
- "ansi-styles": {
337
- "version": "4.3.0",
338
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
339
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
340
- "dev": true,
341
- "requires": {
342
- "color-convert": "^2.0.1"
343
- }
344
- },
345
- "clean-stack": {
346
- "version": "3.0.1",
347
- "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz",
348
- "integrity": "sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg==",
349
- "dev": true,
350
- "requires": {
351
- "escape-string-regexp": "4.0.0"
352
- }
353
- },
354
- "color-convert": {
355
- "version": "2.0.1",
356
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
357
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
358
- "dev": true,
359
- "requires": {
360
- "color-name": "~1.1.4"
361
- }
362
- },
363
- "color-name": {
364
- "version": "1.1.4",
365
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
366
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
367
- "dev": true
368
- },
369
- "escape-string-regexp": {
370
- "version": "4.0.0",
371
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
372
- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
373
- "dev": true
374
- },
375
- "fs-extra": {
376
- "version": "8.1.0",
377
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
378
- "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
379
- "dev": true,
380
- "requires": {
381
- "graceful-fs": "^4.2.0",
382
- "jsonfile": "^4.0.0",
383
- "universalify": "^0.1.0"
384
- }
385
- },
386
- "indent-string": {
387
- "version": "4.0.0",
388
- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
389
- "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
390
- "dev": true
391
- },
392
- "is-fullwidth-code-point": {
393
- "version": "3.0.0",
394
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
395
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
396
- "dev": true
397
- },
398
- "string-width": {
399
- "version": "4.2.2",
400
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz",
401
- "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==",
402
- "dev": true,
403
- "requires": {
404
- "emoji-regex": "^8.0.0",
405
- "is-fullwidth-code-point": "^3.0.0",
406
- "strip-ansi": "^6.0.0"
407
- }
408
- },
409
- "strip-ansi": {
410
- "version": "6.0.0",
411
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
412
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
413
- "dev": true,
414
- "requires": {
415
- "ansi-regex": "^5.0.0"
416
- }
417
- },
418
318
  "tslib": {
419
- "version": "2.2.0",
420
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz",
421
- "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==",
319
+ "version": "2.3.1",
320
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
321
+ "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==",
422
322
  "dev": true
423
- },
424
- "wrap-ansi": {
425
- "version": "7.0.0",
426
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
427
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
428
- "dev": true,
429
- "requires": {
430
- "ansi-styles": "^4.0.0",
431
- "string-width": "^4.1.0",
432
- "strip-ansi": "^6.0.0"
433
- }
434
323
  }
435
324
  }
436
325
  },
@@ -574,14 +463,14 @@
574
463
  }
575
464
  },
576
465
  "@oclif/plugin-help": {
577
- "version": "3.2.5",
578
- "resolved": "https://registry.npmjs.org/@oclif/plugin-help/-/plugin-help-3.2.5.tgz",
579
- "integrity": "sha512-fjkZTstvacCPicF2oaa3Lc+Yw3ocKEaW6x6O7doVqMLuoMUX6wBOQ+f1a3VFzO1fErqNeFPDlUlVUhwq9yMzQg==",
466
+ "version": "3.2.7",
467
+ "resolved": "https://registry.npmjs.org/@oclif/plugin-help/-/plugin-help-3.2.7.tgz",
468
+ "integrity": "sha512-X6ErYHwsKGZTtfmY64nwx13lHrVHhJJMKhcvBv4KxO170yvu+vw38DirLVibJKrF70A42QjGd9vgiyFTpyeULQ==",
580
469
  "requires": {
581
- "@oclif/command": "^1.8.3",
470
+ "@oclif/command": "^1.8.4",
582
471
  "@oclif/config": "^1.17.1",
583
472
  "@oclif/errors": "^1.3.5",
584
- "chalk": "^4.1.0",
473
+ "chalk": "^4.1.2",
585
474
  "indent-string": "^4.0.0",
586
475
  "lodash": "^4.17.21",
587
476
  "string-width": "^4.2.0",
@@ -789,30 +678,30 @@
789
678
  }
790
679
  },
791
680
  "@saltcorn/base-plugin": {
792
- "version": "0.6.1",
793
- "resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.6.1.tgz",
794
- "integrity": "sha512-ftKWT3SLRo7pvwQvIH5kyryykcM2ZssZMQbi1kFI6RxMkzQAi0sBzRgN6PPjKNgMCTWe48xU5bITp9pT/07fOw==",
681
+ "version": "0.6.2-beta.0",
682
+ "resolved": "https://registry.npmjs.org/@saltcorn/base-plugin/-/base-plugin-0.6.2-beta.0.tgz",
683
+ "integrity": "sha512-HsRXXScs1GlWC8vQ5sETvrxCOfNz415fh/pLCD4nEAOVOkjdbdwHKTos7taazeq4bv6KOQR2YhgXGuRrIYqpqg==",
795
684
  "requires": {
796
- "@saltcorn/data": "0.6.1"
685
+ "@saltcorn/data": "0.6.2-beta.0"
797
686
  }
798
687
  },
799
688
  "@saltcorn/builder": {
800
- "version": "0.6.1",
801
- "resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.6.1.tgz",
802
- "integrity": "sha512-U6q5+Qmy+5yjrZgn8N1YJDYbowP22qjD3TPpt8Zl1nwPu2xjABbeojH7xs96hWv33DOnBhpc5Vs6T4g9Je2GHQ==",
689
+ "version": "0.6.2-beta.0",
690
+ "resolved": "https://registry.npmjs.org/@saltcorn/builder/-/builder-0.6.2-beta.0.tgz",
691
+ "integrity": "sha512-f0FBlsJuKUwKboG1Bo1FzVoBD/6ILHuPwsD2SywxfvW0PNxttHATJ38N25LWSWcJ6Txbg3D+OOmaCQ0Aib0UxA==",
803
692
  "requires": {
804
693
  "styled-components": "^4.4.1"
805
694
  }
806
695
  },
807
696
  "@saltcorn/data": {
808
- "version": "0.6.1",
809
- "resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.6.1.tgz",
810
- "integrity": "sha512-Jwho1gfusGsghozULZuE1dt74tdhMOTkj3ddPHFlXXoZgfcXl9gpSv70jGeth+DRmSNmp7oRE1jIZ84AhG2D1w==",
811
- "requires": {
812
- "@saltcorn/db-common": "0.6.1",
813
- "@saltcorn/markup": "0.6.1",
814
- "@saltcorn/postgres": "0.6.1",
815
- "@saltcorn/sqlite": "0.6.1",
697
+ "version": "0.6.2-beta.0",
698
+ "resolved": "https://registry.npmjs.org/@saltcorn/data/-/data-0.6.2-beta.0.tgz",
699
+ "integrity": "sha512-NC/4nPPXQv51PTkb7jGQGN+aAn+TNAIdSsqpM1JWh+zrvEHQzfeIVjySLY6ofuc09pfJbEKSARh8FXVh/Hi6Hw==",
700
+ "requires": {
701
+ "@saltcorn/db-common": "0.6.2-beta.0",
702
+ "@saltcorn/markup": "0.6.2-beta.0",
703
+ "@saltcorn/postgres": "0.6.2-beta.0",
704
+ "@saltcorn/sqlite": "0.6.2-beta.0",
816
705
  "acorn": "^8.0.3",
817
706
  "adm-zip": "0.5.5",
818
707
  "astring": "^1.4.3",
@@ -840,18 +729,18 @@
840
729
  }
841
730
  },
842
731
  "@saltcorn/db-common": {
843
- "version": "0.6.1",
844
- "resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.6.1.tgz",
845
- "integrity": "sha512-YCWXsnWwyoTnQFZYWvT3ecYUZ/xsXk4ZAKOhO/3lFQycfmwRgNUiJ9Dlilmkt4iN/1/1y1CwB/56wD8hggqJrA==",
732
+ "version": "0.6.2-beta.0",
733
+ "resolved": "https://registry.npmjs.org/@saltcorn/db-common/-/db-common-0.6.2-beta.0.tgz",
734
+ "integrity": "sha512-/3E+olHCeieLJa7OjIcgeuCTLnrszNHUdbCn43DzopfJ0x9IoybEpnmEX1tBetGDeelIqbixJFdDAhdYI9bYFw==",
846
735
  "requires": {
847
- "@saltcorn/markup": "0.6.1",
736
+ "@saltcorn/markup": "0.6.2-beta.0",
848
737
  "contractis": "^0.1.0"
849
738
  }
850
739
  },
851
740
  "@saltcorn/markup": {
852
- "version": "0.6.1",
853
- "resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.6.1.tgz",
854
- "integrity": "sha512-bBoSTtNUsBFBDRsBas++swdDIWCWmojEZy6VRYlhV2XA0DwJ3f1e1shndI8MTz76Y0BiUAmSyU+o0hX5Eh2mDw==",
741
+ "version": "0.6.2-beta.0",
742
+ "resolved": "https://registry.npmjs.org/@saltcorn/markup/-/markup-0.6.2-beta.0.tgz",
743
+ "integrity": "sha512-8XTxVD0w8YW6yaGaSWyq+EcSwtXNaZyp+ItKvU/lF5BHOCU/Da1aXgyw1TXUZ8BA8AQhK8KQcjqlTPEqUYDOkg==",
855
744
  "requires": {
856
745
  "contractis": "^0.1.0",
857
746
  "escape-html": "^1.0.3",
@@ -860,36 +749,36 @@
860
749
  }
861
750
  },
862
751
  "@saltcorn/postgres": {
863
- "version": "0.6.1",
864
- "resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.6.1.tgz",
865
- "integrity": "sha512-G9qXE3PSIOiJvoLCau5A6G6EoBt5tngzjl9fsxVNYxZy73+/oz/KT0dGcR/P8LnyuLYqQxVBE8EIToxKDa3K3Q==",
752
+ "version": "0.6.2-beta.0",
753
+ "resolved": "https://registry.npmjs.org/@saltcorn/postgres/-/postgres-0.6.2-beta.0.tgz",
754
+ "integrity": "sha512-A/ceJcD98rIwV+N+BWDj/bjsloW+/Px8wz5DrArIYQLqFdFXFuQX2njHM4Hporqhdvgz2M6hTrFNJK5yWdRaew==",
866
755
  "optional": true,
867
756
  "requires": {
868
- "@saltcorn/db-common": "0.6.1",
757
+ "@saltcorn/db-common": "0.6.2-beta.0",
869
758
  "pg": "^8.2.1",
870
759
  "pg-copy-streams": "^5.1.1"
871
760
  }
872
761
  },
873
762
  "@saltcorn/sbadmin2": {
874
- "version": "0.6.1",
875
- "resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.6.1.tgz",
876
- "integrity": "sha512-AJNQ7RmioHjKgodyFKzfCoalnzRFPlxvomGmyHYbCVyH3bgNGGv3h/gG0npnPc8R6K7qPwq1HYoYrVC1YC8Cvg==",
763
+ "version": "0.6.2-beta.0",
764
+ "resolved": "https://registry.npmjs.org/@saltcorn/sbadmin2/-/sbadmin2-0.6.2-beta.0.tgz",
765
+ "integrity": "sha512-+mIuBNStEXB0m924qF/OE7AfgP/V5PsAkTQCpjv0W0jr834/tu8SQfz3QO8Fx/AUaaCxhx4rUFCLI+A7mm17iQ==",
877
766
  "requires": {
878
- "@saltcorn/data": "0.6.1",
879
- "@saltcorn/markup": "0.6.1",
767
+ "@saltcorn/data": "0.6.2-beta.0",
768
+ "@saltcorn/markup": "0.6.2-beta.0",
880
769
  "startbootstrap-sb-admin-2": "^4.1.4"
881
770
  }
882
771
  },
883
772
  "@saltcorn/server": {
884
- "version": "0.6.1",
885
- "resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.6.1.tgz",
886
- "integrity": "sha512-q2NIGZ1kkjaBxleIQqO4Qj4K8yw8vArAN26Uxq344OYaU+cRtTmGLSha+sOJd7dDAH02HOtoJBIV9Fkib4vUZw==",
887
- "requires": {
888
- "@saltcorn/base-plugin": "0.6.1",
889
- "@saltcorn/builder": "0.6.1",
890
- "@saltcorn/data": "0.6.1",
891
- "@saltcorn/markup": "0.6.1",
892
- "@saltcorn/sbadmin2": "0.6.1",
773
+ "version": "0.6.2-beta.0",
774
+ "resolved": "https://registry.npmjs.org/@saltcorn/server/-/server-0.6.2-beta.0.tgz",
775
+ "integrity": "sha512-n9+tIQ5JZaPMJahui+mRkbcadc60AoeZzWAKKMk3LGF5lXJSiN1pdbXsWtuTFrXbZfmlyHzck+egZl4Hk8aR1w==",
776
+ "requires": {
777
+ "@saltcorn/base-plugin": "0.6.2-beta.0",
778
+ "@saltcorn/builder": "0.6.2-beta.0",
779
+ "@saltcorn/data": "0.6.2-beta.0",
780
+ "@saltcorn/markup": "0.6.2-beta.0",
781
+ "@saltcorn/sbadmin2": "0.6.2-beta.0",
893
782
  "@socket.io/cluster-adapter": "^0.1.0",
894
783
  "@socket.io/sticky": "^1.0.1",
895
784
  "connect-flash": "^0.1.1",
@@ -912,6 +801,7 @@
912
801
  "live-plugin-manager": "^0.16.0",
913
802
  "moment": "^2.27.0",
914
803
  "node-fetch": "2.6.2",
804
+ "node-watch": "^0.7.2",
915
805
  "passport": "^0.4.1",
916
806
  "passport-custom": "^1.1.1",
917
807
  "passport-http-bearer": "^1.0.1",
@@ -923,12 +813,12 @@
923
813
  }
924
814
  },
925
815
  "@saltcorn/sqlite": {
926
- "version": "0.6.1",
927
- "resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.6.1.tgz",
928
- "integrity": "sha512-yOo7pci9+jUdUQe5m4EsWOUFOS09SBqtS3/lzP4S4JacKNlPkc2HSRlHF27aCBukXA4BSyxuCLDS9sQJ5pi44w==",
816
+ "version": "0.6.2-beta.0",
817
+ "resolved": "https://registry.npmjs.org/@saltcorn/sqlite/-/sqlite-0.6.2-beta.0.tgz",
818
+ "integrity": "sha512-ioJNeUe/fRIsImbqeKtIETaL+zEB+Z4bUQt1G9hQ+CcUaenO8npKfSpDq2eskUL/NyVElEYmmmzoAvwIo5Mftw==",
929
819
  "optional": true,
930
820
  "requires": {
931
- "@saltcorn/db-common": "0.6.1",
821
+ "@saltcorn/db-common": "0.6.2-beta.0",
932
822
  "sqlite3": "^5.0.2"
933
823
  }
934
824
  },
@@ -1721,17 +1611,18 @@
1721
1611
  }
1722
1612
  },
1723
1613
  "cli-progress": {
1724
- "version": "3.9.0",
1725
- "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.9.0.tgz",
1726
- "integrity": "sha512-g7rLWfhAo/7pF+a/STFH/xPyosaL1zgADhI0OM83hl3c7S43iGvJWEAV2QuDOnQ8i6EMBj/u4+NTd0d5L+4JfA==",
1614
+ "version": "3.9.1",
1615
+ "resolved": "https://registry.npmjs.org/cli-progress/-/cli-progress-3.9.1.tgz",
1616
+ "integrity": "sha512-AXxiCe2a0Lm0VN+9L0jzmfQSkcZm5EYspfqXKaSIQKqIk+0hnkZ3/v1E9B39mkD6vYhKih3c/RPsJBSwq9O99Q==",
1727
1617
  "requires": {
1728
1618
  "colors": "^1.1.2",
1729
1619
  "string-width": "^4.2.0"
1730
1620
  },
1731
1621
  "dependencies": {
1732
1622
  "ansi-regex": {
1733
- "version": "5.0.0",
1734
- "resolved": ""
1623
+ "version": "5.0.1",
1624
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
1625
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="
1735
1626
  },
1736
1627
  "is-fullwidth-code-point": {
1737
1628
  "version": "3.0.0",
@@ -1739,32 +1630,32 @@
1739
1630
  "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="
1740
1631
  },
1741
1632
  "string-width": {
1742
- "version": "4.2.2",
1743
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz",
1744
- "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==",
1633
+ "version": "4.2.3",
1634
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
1635
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
1745
1636
  "requires": {
1746
1637
  "emoji-regex": "^8.0.0",
1747
1638
  "is-fullwidth-code-point": "^3.0.0",
1748
- "strip-ansi": "^6.0.0"
1639
+ "strip-ansi": "^6.0.1"
1749
1640
  }
1750
1641
  },
1751
1642
  "strip-ansi": {
1752
- "version": "6.0.0",
1753
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
1754
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
1643
+ "version": "6.0.1",
1644
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
1645
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1755
1646
  "requires": {
1756
- "ansi-regex": "^5.0.0"
1647
+ "ansi-regex": "^5.0.1"
1757
1648
  }
1758
1649
  }
1759
1650
  }
1760
1651
  },
1761
1652
  "cli-ux": {
1762
- "version": "5.6.3",
1763
- "resolved": "https://registry.npmjs.org/cli-ux/-/cli-ux-5.6.3.tgz",
1764
- "integrity": "sha512-/oDU4v8BiDjX2OKcSunGH0iGDiEtj2rZaGyqNuv9IT4CgcSMyVWAMfn0+rEHaOc4n9ka78B0wo1+N1QX89f7mw==",
1653
+ "version": "5.6.4",
1654
+ "resolved": "https://registry.npmjs.org/cli-ux/-/cli-ux-5.6.4.tgz",
1655
+ "integrity": "sha512-jW2oROKZdb3NlIHCMjjtaanuElHB/IhYPE5kgsbhmNtiBcUg/4L5QYyDbJ0n/wF+LAb/tl+Bh30lAHq5bmsbMA==",
1765
1656
  "requires": {
1766
- "@oclif/command": "^1.6.0",
1767
- "@oclif/errors": "^1.2.1",
1657
+ "@oclif/command": "^1.8.4",
1658
+ "@oclif/errors": "^1.3.5",
1768
1659
  "@oclif/linewrap": "^1.0.0",
1769
1660
  "@oclif/screen": "^1.0.3",
1770
1661
  "ansi-escapes": "^4.3.0",
@@ -1805,9 +1696,9 @@
1805
1696
  }
1806
1697
  },
1807
1698
  "chalk": {
1808
- "version": "4.1.1",
1809
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz",
1810
- "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==",
1699
+ "version": "4.1.2",
1700
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
1701
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
1811
1702
  "requires": {
1812
1703
  "ansi-styles": "^4.1.0",
1813
1704
  "supports-color": "^7.1.0"
@@ -1823,14 +1714,6 @@
1823
1714
  }
1824
1715
  }
1825
1716
  },
1826
- "clean-stack": {
1827
- "version": "3.0.1",
1828
- "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz",
1829
- "integrity": "sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg==",
1830
- "requires": {
1831
- "escape-string-regexp": "4.0.0"
1832
- }
1833
- },
1834
1717
  "color-convert": {
1835
1718
  "version": "2.0.1",
1836
1719
  "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -1844,31 +1727,11 @@
1844
1727
  "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
1845
1728
  "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
1846
1729
  },
1847
- "escape-string-regexp": {
1848
- "version": "4.0.0",
1849
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
1850
- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="
1851
- },
1852
- "fs-extra": {
1853
- "version": "8.1.0",
1854
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
1855
- "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
1856
- "requires": {
1857
- "graceful-fs": "^4.2.0",
1858
- "jsonfile": "^4.0.0",
1859
- "universalify": "^0.1.0"
1860
- }
1861
- },
1862
1730
  "has-flag": {
1863
1731
  "version": "4.0.0",
1864
1732
  "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
1865
1733
  "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
1866
1734
  },
1867
- "indent-string": {
1868
- "version": "4.0.0",
1869
- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
1870
- "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg=="
1871
- },
1872
1735
  "is-fullwidth-code-point": {
1873
1736
  "version": "3.0.0",
1874
1737
  "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
@@ -1884,21 +1747,21 @@
1884
1747
  }
1885
1748
  },
1886
1749
  "string-width": {
1887
- "version": "4.2.2",
1888
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz",
1889
- "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==",
1750
+ "version": "4.2.3",
1751
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
1752
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
1890
1753
  "requires": {
1891
1754
  "emoji-regex": "^8.0.0",
1892
1755
  "is-fullwidth-code-point": "^3.0.0",
1893
- "strip-ansi": "^6.0.0"
1756
+ "strip-ansi": "^6.0.1"
1894
1757
  }
1895
1758
  },
1896
1759
  "strip-ansi": {
1897
- "version": "6.0.0",
1898
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
1899
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
1760
+ "version": "6.0.1",
1761
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
1762
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1900
1763
  "requires": {
1901
- "ansi-regex": "^5.0.0"
1764
+ "ansi-regex": "^5.0.1"
1902
1765
  }
1903
1766
  },
1904
1767
  "supports-color": {
@@ -1910,9 +1773,9 @@
1910
1773
  }
1911
1774
  },
1912
1775
  "tslib": {
1913
- "version": "2.3.0",
1914
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
1915
- "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
1776
+ "version": "2.3.1",
1777
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
1778
+ "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
1916
1779
  }
1917
1780
  }
1918
1781
  },
@@ -3051,21 +2914,10 @@
3051
2914
  }
3052
2915
  },
3053
2916
  "github-slugger": {
3054
- "version": "1.3.0",
3055
- "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.3.0.tgz",
3056
- "integrity": "sha512-gwJScWVNhFYSRDvURk/8yhcFBee6aFjye2a7Lhb2bUyRulpIoek9p0I9Kt7PT67d/nUlZbFu8L9RLiA0woQN8Q==",
3057
- "dev": true,
3058
- "requires": {
3059
- "emoji-regex": ">=6.0.0 <=6.1.1"
3060
- },
3061
- "dependencies": {
3062
- "emoji-regex": {
3063
- "version": "6.1.1",
3064
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-6.1.1.tgz",
3065
- "integrity": "sha1-xs0OwbBkLio8Z6ETfvxeeW2k+I4=",
3066
- "dev": true
3067
- }
3068
- }
2917
+ "version": "1.4.0",
2918
+ "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.4.0.tgz",
2919
+ "integrity": "sha512-w0dzqw/nt51xMVmlaV1+JRzN+oCa1KfcgGEWhxUG16wbdA+Xnt/yoFO8Z8x/V82ZcZ0wy6ln9QDup5avbhiDhQ==",
2920
+ "dev": true
3069
2921
  },
3070
2922
  "glob": {
3071
2923
  "version": "7.1.6",
@@ -3351,9 +3203,9 @@
3351
3203
  },
3352
3204
  "dependencies": {
3353
3205
  "is-stream": {
3354
- "version": "2.0.0",
3355
- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz",
3356
- "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==",
3206
+ "version": "2.0.1",
3207
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
3208
+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
3357
3209
  "dev": true
3358
3210
  }
3359
3211
  }
@@ -4007,9 +3859,9 @@
4007
3859
  }
4008
3860
  },
4009
3861
  "lines-and-columns": {
4010
- "version": "1.1.6",
4011
- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz",
4012
- "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=",
3862
+ "version": "1.2.4",
3863
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
3864
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
4013
3865
  "dev": true
4014
3866
  },
4015
3867
  "live-plugin-manager": {
@@ -4780,6 +4632,11 @@
4780
4632
  }
4781
4633
  }
4782
4634
  },
4635
+ "node-watch": {
4636
+ "version": "0.7.2",
4637
+ "resolved": "https://registry.npmjs.org/node-watch/-/node-watch-0.7.2.tgz",
4638
+ "integrity": "sha512-g53VjSARRv1JdST0LZRIg8RiuLr1TaBbVPsVvxh0/0Ymvi0xYUjDuoqQQAWtHJQUXhiShowPT/aXKNeHBcyQsw=="
4639
+ },
4783
4640
  "nodemailer": {
4784
4641
  "version": "6.7.1",
4785
4642
  "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.7.1.tgz",
@@ -4794,15 +4651,26 @@
4794
4651
  }
4795
4652
  },
4796
4653
  "normalize-package-data": {
4797
- "version": "3.0.2",
4798
- "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.2.tgz",
4799
- "integrity": "sha512-6CdZocmfGaKnIHPVFhJJZ3GuR8SsLKvDANFp47Jmy51aKIr8akjAWTSxtpI+MBgBFdSMRyo4hMpDlT6dTffgZg==",
4654
+ "version": "3.0.3",
4655
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz",
4656
+ "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==",
4800
4657
  "dev": true,
4801
4658
  "requires": {
4802
4659
  "hosted-git-info": "^4.0.1",
4803
- "resolve": "^1.20.0",
4660
+ "is-core-module": "^2.5.0",
4804
4661
  "semver": "^7.3.4",
4805
4662
  "validate-npm-package-license": "^3.0.1"
4663
+ },
4664
+ "dependencies": {
4665
+ "is-core-module": {
4666
+ "version": "2.8.0",
4667
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.0.tgz",
4668
+ "integrity": "sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==",
4669
+ "dev": true,
4670
+ "requires": {
4671
+ "has": "^1.0.3"
4672
+ }
4673
+ }
4806
4674
  }
4807
4675
  },
4808
4676
  "normalize-url": {
@@ -6811,9 +6679,9 @@
6811
6679
  "integrity": "sha512-uJ93Je3il1dY9rBP05OHr91lwdHd5oNoX82oyHhuAfe69mdbEb0fxeufbaLChA9vBfDNj581OrbH/CbaM0az1g=="
6812
6680
  },
6813
6681
  "ws": {
6814
- "version": "7.5.5",
6815
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.5.tgz",
6816
- "integrity": "sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w=="
6682
+ "version": "7.5.6",
6683
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.6.tgz",
6684
+ "integrity": "sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA=="
6817
6685
  },
6818
6686
  "x-xss-protection": {
6819
6687
  "version": "1.3.0",
@@ -1 +1 @@
1
- {"version":"0.6.1","commands":{"add-schema":{"id":"add-schema","description":"Add Saltcorn schema to existing database","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"backup":{"id":"backup","description":"Backup the PostgreSQL database to a file with pg_dump or zip","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"output":{"name":"output","type":"option","char":"o","description":"output filename"},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"zip":{"name":"zip","type":"boolean","char":"z","description":"zip format","allowNo":false}},"args":[]},"create-tenant":{"id":"create-tenant","description":"Create a tenant","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"email":{"name":"email","type":"option","char":"e","description":"Email of owner of tenant"},"description":{"name":"description","type":"option","char":"d","description":"Description of tenant"}},"args":[{"name":"tenant","description":"Tenant subdomain to create","required":true}]},"create-user":{"id":"create-user","description":"Create a new user","pluginName":"@saltcorn/cli","pluginType":"core","aliases":[],"flags":{"admin":{"name":"admin","type":"boolean","char":"a","description":"Admin user","allowNo":false},"tenant":{"name":"tenant","type":"option","char":"t","description":"tenant"},"email":{"name":"email","type":"option","char":"e","description":"email"},"role":{"name":"role","type":"option","char":"r","description":"role"},"password":{"name":"password","type":"option","char":"p","description":"password"}},"args":[]},"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},"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.2-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":[]},"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}]}}}
package/package.json CHANGED
@@ -2,31 +2,32 @@
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.1",
5
+ "version": "0.6.2-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.3",
12
+ "@oclif/command": "^1.8.4",
13
13
  "@oclif/config": "^1.17.1",
14
- "@oclif/plugin-help": "^3.2.5",
15
- "@saltcorn/data": "0.6.1",
16
- "@saltcorn/server": "0.6.1",
17
- "cli-ux": "^5.6.3",
14
+ "@oclif/plugin-help": "^3.2.7",
15
+ "@saltcorn/data": "0.6.2-beta.0",
16
+ "@saltcorn/server": "0.6.2-beta.0",
17
+ "cli-ux": "^5.6.4",
18
18
  "contractis": "^0.1.0",
19
19
  "dateformat": "^3.0.3",
20
20
  "inquirer": "^7.3.3",
21
21
  "js-yaml": "^4.1.0",
22
22
  "node-fetch": "2.6.2",
23
+ "node-watch": "^0.7.2",
23
24
  "sudo": "^1.0.3",
24
25
  "systeminformation": "^5.9.15",
25
26
  "tcp-port-used": "^1.0.2",
26
27
  "wrk": "^1.2.1"
27
28
  },
28
29
  "devDependencies": {
29
- "@oclif/dev-cli": "^1.26.0",
30
+ "@oclif/dev-cli": "^1.26.3",
30
31
  "globby": "^10.0.2"
31
32
  },
32
33
  "engines": {
@@ -55,7 +56,9 @@
55
56
  "postpack": "rm -f oclif.manifest.json",
56
57
  "prepack": "oclif-dev manifest && oclif-dev readme",
57
58
  "test": "echo NO TESTS",
58
- "version": "oclif-dev readme && git add README.md"
59
+ "version": "oclif-dev readme && git add README.md",
60
+ "tsc": "echo \"Error: no TypeScript support yet\"",
61
+ "clean": "echo \"Error: no TypeScript support yet\""
59
62
  },
60
63
  "publishConfig": {
61
64
  "access": "public"
@@ -52,12 +52,23 @@ class ReleaseCommand extends Command {
52
52
  JSON.stringify(json, null, 2)
53
53
  );
54
54
  };
55
+ const compileTsFiles = () => {
56
+ spawnSync("npm", ["install"], {
57
+ stdio: "inherit",
58
+ cwd: ".",
59
+ });
60
+ spawnSync("npm", ["run", "tsc"], {
61
+ stdio: "inherit",
62
+ cwd: ".",
63
+ });
64
+ }
55
65
  const publish = (dir) =>
56
66
  spawnSync("npm", ["publish"], {
57
67
  stdio: "inherit",
58
68
  cwd: `packages/${dir}/`,
59
69
  });
60
70
 
71
+ compileTsFiles();
61
72
  //for each package:
62
73
  // 1. update version
63
74
  // 2. update dependencies for other packages
@@ -108,6 +119,7 @@ class ReleaseCommand extends Command {
108
119
  });
109
120
  console.log("Now run:\n");
110
121
  console.log(" rm -rf packages/saltcorn-cli/node_modules\n");
122
+ console.log(" rm -rf node_modules\n");
111
123
  this.exit(0);
112
124
  }
113
125
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @category saltcorn-cli
3
- * @module commands/run-nenchmark
3
+ * @module commands/run-benchmark
4
4
  */
5
5
  const { Command, flags } = require("@oclif/command");
6
6
  const si = require("systeminformation");
@@ -40,6 +40,7 @@ class ServeCommand extends Command {
40
40
  if (flags.nomigrate) serveArgs.disableMigrate = true;
41
41
  if (flags.noscheduler) serveArgs.disableScheduler = true;
42
42
  if (flags.watchReaper) serveArgs.watchReaper = true;
43
+ if (flags.dev) serveArgs.dev = true;
43
44
  if (flags.verbose) {
44
45
  const db = require("@saltcorn/data/db");
45
46
  db.set_sql_logging();
@@ -58,10 +59,14 @@ ServeCommand.description = `Start the Saltcorn server`;
58
59
  * @type {object}
59
60
  */
60
61
  ServeCommand.flags = {
61
- port: flags.integer({ char: "p", description: "port", default: 3000 }),
62
62
  port: flags.integer({ char: "p", description: "port", default: 3000 }),
63
63
  verbose: flags.boolean({ char: "v", description: "Verbose" }),
64
64
  watchReaper: flags.boolean({ char: "r", description: "Watch reaper" }),
65
+ dev: flags.boolean({
66
+ string: "dev",
67
+ char: "d",
68
+ description: "Run in dev mode and re-start on file changes",
69
+ }),
65
70
  addschema: flags.boolean({ char: "a", description: "Add schema if missing" }),
66
71
  nomigrate: flags.boolean({ char: "n", description: "No migrations" }),
67
72
  noscheduler: flags.boolean({ char: "s", description: "No scheduler" }),
package/src/index.js CHANGED
@@ -1,6 +1,34 @@
1
1
  /**
2
2
  * @category saltcorn-cli
3
- * @module saltcorn-cli/common
3
+ * @module saltcorn-cli/index
4
4
  */
5
5
 
6
+ /**
7
+ * All files in the commands directory.
8
+ * @namespace saltcorn-cli_overview
9
+ * @property {module:commands/add-schema} add-schema
10
+ * @property {module:commands/backup} backup
11
+ * @property {module:commands/create-tenant} create-tenant
12
+ * @property {module:commands/create-user} create-user
13
+ * @property {module:commands/fixtures} fixtures
14
+ * @property {module:commands/info} info
15
+ * @property {module:commands/install-pack} install-pack
16
+ * @property {module:commands/install-plugin} install-plugin
17
+ * @property {module:commands/list-tenants} list-tenants
18
+ * @property {module:commands/localize-plugin} localize-plugin
19
+ * @property {module:commands/make-migration} make-migration
20
+ * @property {module:commands/migrate} migrate
21
+ * @property {module:commands/plugins} plugins
22
+ * @property {module:commands/release} release
23
+ * @property {module:commands/reset-schema} reset-schema
24
+ * @property {module:commands/restore} restore
25
+ * @property {module:commands/rm-tenant} rm-tenant
26
+ * @property {module:commands/run-benchmark} run-benchmark
27
+ * @property {module:commands/setup} setup
28
+ * @property {module:commands/test-plugin} test-plugin
29
+ * @property {module:commands/transform-field} transform-field
30
+ *
31
+ * @category saltcorn-cli
32
+ */
33
+
6
34
  module.exports = require("@oclif/command");