@tiddlywiki/mws 0.0.14 → 0.0.16

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
@@ -36,7 +36,7 @@ If there are any database changes, MWS should pick them up and apply them. The c
36
36
  If you want to work on the project,
37
37
 
38
38
  - `git clone https://github.com/TiddlyWiki/MultiWikiServer`
39
- - `npm install`
39
+ - `npm install` or `npm run install-android`
40
40
  - `cd react-user-mgmt`
41
41
  - `npm install`
42
42
  - `cd ..`
package/dist/server.d.ts CHANGED
@@ -10,6 +10,7 @@ import * as fs from 'fs';
10
10
  import * as tiddlywiki from 'tiddlywiki';
11
11
  import { TW } from 'tiddlywiki';
12
12
  import * as http2 from 'node:http2';
13
+ import * as commander from 'commander';
13
14
  import { SqlMigrationAwareDriverAdapterFactory, SqlDriverAdapter } from '@prisma/driver-adapter-utils';
14
15
  import * as http2$1 from 'http2';
15
16
  import { OutgoingHttpHeaders, IncomingHttpHeaders as IncomingHttpHeaders$1, IncomingMessage as IncomingMessage$1, ServerResponse as ServerResponse$1 } from 'node:http';
@@ -216,7 +217,6 @@ declare class Command {
216
217
  declare class SqliteAdapter {
217
218
  private databasePath;
218
219
  constructor(databasePath: string);
219
- setupRequired: boolean;
220
220
  adapter: SqlMigrationAwareDriverAdapterFactory;
221
221
  init(): Promise<void>;
222
222
  createMigrationsTable(libsql: SqlDriverAdapter): Promise<void>;
@@ -255,8 +255,7 @@ declare class StartupCommander {
255
255
  SessionManager: typeof SessionManager;
256
256
  AttachmentService: typeof AttachmentService;
257
257
  /** Signals that database setup is required. May be set to false by any qualified setup command. */
258
- get setupRequired(): boolean;
259
- set setupRequired(v: boolean);
258
+ setupRequired: boolean;
260
259
  outputPath: string;
261
260
  }
262
261
  /**
@@ -268,6 +267,8 @@ Parse a sequence of commands
268
267
  */
269
268
  declare class Commander extends StartupCommander {
270
269
  constructor(config: MWSConfig, $tw: TW, PasswordService: PasswordService);
270
+ program: commander.Command;
271
+ init(): Promise<void>;
271
272
  create_mws_listen: (params: string[]) => Command;
272
273
  /**
273
274
  * The promise of the current execution.
@@ -285,6 +286,8 @@ declare class Commander extends StartupCommander {
285
286
  static initCommands(moduleType?: string): void;
286
287
  addCommandTokens(params: string[]): void;
287
288
  execute(commandTokens: string[]): Promise<void>;
289
+ executeInternal(commandTokens: string[]): Promise<void>;
290
+ setPromise(): void;
288
291
  executeNextCommand(): void;
289
292
  extractNamedParameters(params: string[], mandatoryParameters?: string[]): any;
290
293
  }