@tiddlywiki/mws 0.0.18 → 0.0.20
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/dist/server.d.ts +8 -4
- package/dist/server.js +342 -221
- package/dist/server.js.map +1 -1
- package/editions/mws-docs/tiddlers/$__StoryList.tid +1 -2
- package/package.json +1 -1
- package/react-user-mgmt/public/favicon.png +0 -0
- package/react-user-mgmt/public/main.js +45 -45
- package/react-user-mgmt/public/main.js.map +4 -4
- package/react-user-mgmt/public/stats.json +1 -1
- package/tiddlywiki-types/boot/boot.d.ts +1 -0
- package/react-user-mgmt/public/main.css +0 -2
- package/react-user-mgmt/public/main.css.map +0 -7
package/dist/server.d.ts
CHANGED
|
@@ -554,6 +554,9 @@ declare const Z2: Z2<FieldTypeGroups>;
|
|
|
554
554
|
declare global {
|
|
555
555
|
type PrismaTxnClient = Omit<Commander["engine"], "$connect" | "$disconnect" | "$on" | "$transaction" | "$use" | "$extends">;
|
|
556
556
|
type ART<T extends (...args: any) => any> = Awaited<ReturnType<T>>;
|
|
557
|
+
type Complete<T> = {
|
|
558
|
+
[K in keyof T]-?: T[K];
|
|
559
|
+
};
|
|
557
560
|
/**
|
|
558
561
|
* This primarily makes sure that positional arguments are used correctly
|
|
559
562
|
* (so you can't switch a title and bag_name around).
|
|
@@ -773,9 +776,9 @@ declare class StreamerState {
|
|
|
773
776
|
get cookies(): URLSearchParams;
|
|
774
777
|
}
|
|
775
778
|
|
|
776
|
-
declare function startupCache(commander: Commander): Promise<{
|
|
777
|
-
|
|
778
|
-
|
|
779
|
+
declare function startupCache(rootRoute: rootRoute, commander: Commander): Promise<{
|
|
780
|
+
tiddlerFiles: Map<any, any>;
|
|
781
|
+
tiddlerHashes: Map<any, any>;
|
|
779
782
|
}>;
|
|
780
783
|
type CacheState = ART<typeof startupCache>;
|
|
781
784
|
|
|
@@ -884,8 +887,9 @@ interface MWSConfigConfig {
|
|
|
884
887
|
readonly enableBrowserCache?: boolean;
|
|
885
888
|
/** The path prefix must start with a slash, and end without a slash */
|
|
886
889
|
readonly pathPrefix?: string;
|
|
890
|
+
readonly enablePluginCache?: boolean;
|
|
887
891
|
}
|
|
888
|
-
interface SiteConfig extends MWSConfigConfig {
|
|
892
|
+
interface SiteConfig extends Complete<MWSConfigConfig> {
|
|
889
893
|
wikiPath: string;
|
|
890
894
|
attachmentSizeLimit: number;
|
|
891
895
|
attachmentsEnabled: boolean;
|