mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-30 12:23:12 -08:00
chore: upgrade tiddlywiki
This commit is contained in:
parent
1d49362093
commit
04152eaabb
4 changed files with 350 additions and 6 deletions
18
flow-typed/npm/@tiddlygit/tiddlywiki_vx.x.x.js
vendored
18
flow-typed/npm/@tiddlygit/tiddlywiki_vx.x.x.js
vendored
|
|
@ -1,5 +1,5 @@
|
|||
// flow-typed signature: 6a211634652c2c983c4b0c701eee2488
|
||||
// flow-typed version: <<STUB>>/@tiddlygit/tiddlywiki_v^5.1.23-prerelease.20201003-fix-file-info/flow_v0.135.0
|
||||
// flow-typed signature: aa6671de9c1924e9f224b6bde2062598
|
||||
// flow-typed version: <<STUB>>/@tiddlygit/tiddlywiki_v^5.1.23-prerelease.20201011-fix-file-info/flow_v0.135.0
|
||||
|
||||
/**
|
||||
* This is an autogenerated libdef stub for:
|
||||
|
|
@ -322,6 +322,10 @@ declare module '@tiddlygit/tiddlywiki/core/modules/filters/fields' {
|
|||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/filter' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/format' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
|
@ -474,6 +478,10 @@ declare module '@tiddlygit/tiddlywiki/core/modules/filters/range' {
|
|||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/reduce' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
||||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/regexp' {
|
||||
declare module.exports: any;
|
||||
}
|
||||
|
|
@ -2268,6 +2276,9 @@ declare module '@tiddlygit/tiddlywiki/core/modules/filters/field.js' {
|
|||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/fields.js' {
|
||||
declare module.exports: $Exports<'@tiddlygit/tiddlywiki/core/modules/filters/fields'>;
|
||||
}
|
||||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/filter.js' {
|
||||
declare module.exports: $Exports<'@tiddlygit/tiddlywiki/core/modules/filters/filter'>;
|
||||
}
|
||||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/format.js' {
|
||||
declare module.exports: $Exports<'@tiddlygit/tiddlywiki/core/modules/filters/format'>;
|
||||
}
|
||||
|
|
@ -2382,6 +2393,9 @@ declare module '@tiddlygit/tiddlywiki/core/modules/filters/previous.js' {
|
|||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/range.js' {
|
||||
declare module.exports: $Exports<'@tiddlygit/tiddlywiki/core/modules/filters/range'>;
|
||||
}
|
||||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/reduce.js' {
|
||||
declare module.exports: $Exports<'@tiddlygit/tiddlywiki/core/modules/filters/reduce'>;
|
||||
}
|
||||
declare module '@tiddlygit/tiddlywiki/core/modules/filters/regexp.js' {
|
||||
declare module.exports: $Exports<'@tiddlygit/tiddlywiki/core/modules/filters/regexp'>;
|
||||
}
|
||||
|
|
|
|||
330
flow-typed/npm/bluebird_v3.x.x.js
vendored
Normal file
330
flow-typed/npm/bluebird_v3.x.x.js
vendored
Normal file
|
|
@ -0,0 +1,330 @@
|
|||
// flow-typed signature: 55f6f471f003e310f0b2cf093203660e
|
||||
// flow-typed version: 7472df5490/bluebird_v3.x.x/flow_>=v0.104.x
|
||||
|
||||
type Bluebird$RangeError = Error;
|
||||
type Bluebird$CancellationErrors = Error;
|
||||
type Bluebird$TimeoutError = Error;
|
||||
type Bluebird$RejectionError = Error;
|
||||
type Bluebird$OperationalError = Error;
|
||||
|
||||
type Bluebird$ConcurrencyOption = { concurrency: number, ... };
|
||||
type Bluebird$SpreadOption = { spread: boolean, ... };
|
||||
type Bluebird$MultiArgsOption = { multiArgs: boolean, ... };
|
||||
type Bluebird$BluebirdConfig = {
|
||||
warnings?: boolean,
|
||||
longStackTraces?: boolean,
|
||||
cancellation?: boolean,
|
||||
monitoring?: boolean,
|
||||
...
|
||||
};
|
||||
|
||||
declare class Bluebird$PromiseInspection<T> {
|
||||
isCancelled(): boolean;
|
||||
isFulfilled(): boolean;
|
||||
isRejected(): boolean;
|
||||
pending(): boolean;
|
||||
reason(): any;
|
||||
value(): T;
|
||||
}
|
||||
|
||||
type Bluebird$PromisifyOptions = {|
|
||||
multiArgs?: boolean,
|
||||
context: any
|
||||
|};
|
||||
|
||||
declare type Bluebird$PromisifyAllOptions = {
|
||||
suffix?: string,
|
||||
filter?: (
|
||||
name: string,
|
||||
func: Function,
|
||||
target?: any,
|
||||
passesDefaultFilter?: boolean
|
||||
) => boolean,
|
||||
// The promisifier gets a reference to the original method and should return a function which returns a promise
|
||||
promisifier?: (originalMethod: Function) => () => Bluebird$Promise<any>,
|
||||
...
|
||||
};
|
||||
|
||||
declare type $Promisable<T> = Promise<T> | T;
|
||||
|
||||
declare class Bluebird$Disposable<R> {}
|
||||
|
||||
declare class Bluebird$Promise<+R> extends Promise<R> {
|
||||
static RangeError: Class<Bluebird$RangeError>;
|
||||
static CancellationErrors: Class<Bluebird$CancellationErrors>;
|
||||
static TimeoutError: Class<Bluebird$TimeoutError>;
|
||||
static RejectionError: Class<Bluebird$RejectionError>;
|
||||
static OperationalError: Class<Bluebird$OperationalError>;
|
||||
|
||||
static Defer: Class<Bluebird$Defer>;
|
||||
static PromiseInspection: Class<Bluebird$PromiseInspection<*>>;
|
||||
|
||||
static all<T: Iterable<mixed>>(promises: Promise<T>): Bluebird$Promise<
|
||||
$TupleMap<T, <V>(p: Promise<V> | V) => V>
|
||||
>;
|
||||
static all<T: Iterable<mixed>>(promises: T): Bluebird$Promise<
|
||||
$TupleMap<T, <V>(p: Promise<V> | V) => V>
|
||||
>;
|
||||
static props(
|
||||
input: Object | Map<*, *> | $Promisable<Object | Map<*, *>>
|
||||
): Bluebird$Promise<*>;
|
||||
static any<T, Elem: $Promisable<T>>(
|
||||
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>
|
||||
): Bluebird$Promise<T>;
|
||||
static race<T, Elem: $Promisable<T>>(
|
||||
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>
|
||||
): Bluebird$Promise<T>;
|
||||
static reject<T>(error?: any): Bluebird$Promise<T>;
|
||||
static resolve(): Bluebird$Promise<void>;
|
||||
static resolve<T>(object: Promise<T>): Bluebird$Promise<T>;
|
||||
static resolve<T>(object: T): Bluebird$Promise<T>;
|
||||
static some<T, Elem: $Promisable<T>>(
|
||||
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
|
||||
count: number
|
||||
): Bluebird$Promise<Array<T>>;
|
||||
static join<T, A>(
|
||||
value1: $Promisable<A>,
|
||||
handler: (a: A) => $Promisable<T>
|
||||
): Bluebird$Promise<T>;
|
||||
static join<T, A, B>(
|
||||
value1: $Promisable<A>,
|
||||
value2: $Promisable<B>,
|
||||
handler: (a: A, b: B) => $Promisable<T>
|
||||
): Bluebird$Promise<T>;
|
||||
static join<T, A, B, C>(
|
||||
value1: $Promisable<A>,
|
||||
value2: $Promisable<B>,
|
||||
value3: $Promisable<C>,
|
||||
handler: (a: A, b: B, c: C) => $Promisable<T>
|
||||
): Bluebird$Promise<T>;
|
||||
static map<T, U, Elem: $Promisable<T>>(
|
||||
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
|
||||
mapper: (item: T, index: number, arrayLength: number) => $Promisable<U>,
|
||||
options?: Bluebird$ConcurrencyOption
|
||||
): Bluebird$Promise<Array<U>>;
|
||||
static mapSeries<T, U, Elem: $Promisable<T>>(
|
||||
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
|
||||
mapper: (item: T, index: number, arrayLength: number) => $Promisable<U>
|
||||
): Bluebird$Promise<Array<U>>;
|
||||
static reduce<T, U, Elem: $Promisable<T>>(
|
||||
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
|
||||
reducer: (
|
||||
total: U,
|
||||
current: T,
|
||||
index: number,
|
||||
arrayLength: number
|
||||
) => $Promisable<U>,
|
||||
initialValue?: $Promisable<U>
|
||||
): Bluebird$Promise<U>;
|
||||
static filter<T, Elem: $Promisable<T>>(
|
||||
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
|
||||
filterer: (
|
||||
item: T,
|
||||
index: number,
|
||||
arrayLength: number
|
||||
) => $Promisable<boolean>,
|
||||
option?: Bluebird$ConcurrencyOption
|
||||
): Bluebird$Promise<Array<T>>;
|
||||
static each<T, Elem: $Promisable<T>>(
|
||||
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
|
||||
iterator: (
|
||||
item: T,
|
||||
index: number,
|
||||
arrayLength: number
|
||||
) => $Promisable<mixed>
|
||||
): Bluebird$Promise<Array<T>>;
|
||||
static try<T>(
|
||||
fn: () => $Promisable<T>,
|
||||
args: ?Array<any>,
|
||||
ctx: ?any
|
||||
): Bluebird$Promise<T>;
|
||||
static attempt<T>(
|
||||
fn: () => $Promisable<T>,
|
||||
args: ?Array<any>,
|
||||
ctx: ?any
|
||||
): Bluebird$Promise<T>;
|
||||
static delay<T>(ms: number, value: $Promisable<T>): Bluebird$Promise<T>;
|
||||
static delay(ms: number): Bluebird$Promise<void>;
|
||||
static config(config: Bluebird$BluebirdConfig): void;
|
||||
|
||||
static defer(): Bluebird$Defer;
|
||||
static setScheduler(
|
||||
scheduler: (callback: (...args: Array<any>) => void) => void
|
||||
): void;
|
||||
static promisify(
|
||||
nodeFunction: Function,
|
||||
receiver?: Bluebird$PromisifyOptions
|
||||
): Function;
|
||||
static promisifyAll(
|
||||
target: Object | Array<Object>,
|
||||
options?: Bluebird$PromisifyAllOptions
|
||||
): void;
|
||||
|
||||
static coroutine(generatorFunction: Function): Function;
|
||||
static spawn<T>(generatorFunction: Function): Promise<T>;
|
||||
|
||||
// It doesn't seem possible to have type-generics for a variable number of arguments.
|
||||
// Handle up to 3 arguments, then just give up and accept 'any'.
|
||||
static method<T, R: $Promisable<T>>(fn: () => R): () => Bluebird$Promise<T>;
|
||||
static method<T, R: $Promisable<T>, A>(
|
||||
fn: (a: A) => R
|
||||
): (a: A) => Bluebird$Promise<T>;
|
||||
static method<T, R: $Promisable<T>, A, B>(
|
||||
fn: (a: A, b: B) => R
|
||||
): (a: A, b: B) => Bluebird$Promise<T>;
|
||||
static method<T, R: $Promisable<T>, A, B, C>(
|
||||
fn: (a: A, b: B, c: C) => R
|
||||
): (a: A, b: B, c: C) => Bluebird$Promise<T>;
|
||||
static method<T, R: $Promisable<T>>(
|
||||
fn: (...args: any) => R
|
||||
): (...args: any) => Bluebird$Promise<T>;
|
||||
|
||||
static cast<T>(value: $Promisable<T>): Bluebird$Promise<T>;
|
||||
// static bind(ctx: any): Bluebird$Promise<void>;
|
||||
static is(value: any): boolean;
|
||||
static longStackTraces(): void;
|
||||
|
||||
static onPossiblyUnhandledRejection(handler: (reason: any) => any): void;
|
||||
static fromCallback<T>(
|
||||
resolver: (fn: (error: ?Error, value?: T) => any) => any,
|
||||
options?: Bluebird$MultiArgsOption
|
||||
): Bluebird$Promise<T>;
|
||||
|
||||
constructor(
|
||||
callback: (
|
||||
resolve: (result?: $Promisable<R>) => void,
|
||||
reject: (error?: any) => void,
|
||||
onCancel?: (fn?: () => void) => void,
|
||||
) => mixed
|
||||
): void;
|
||||
then(onFulfill: null | void, onReject: null | void): Bluebird$Promise<R>;
|
||||
then<U>(
|
||||
onFulfill: null | void,
|
||||
onReject: (error: any) => Promise<U> | U
|
||||
): Bluebird$Promise<R | U>;
|
||||
then<U>(
|
||||
onFulfill: (value: R) => Promise<U> | U,
|
||||
onReject: null | void | ((error: any) => Promise<U> | U)
|
||||
): Bluebird$Promise<U>;
|
||||
catch(onReject: null | void): Promise<R>;
|
||||
catch<U>(onReject?: (error: any) => $Promisable<U>): Bluebird$Promise<U>;
|
||||
catch<U, ErrorT: Error>(
|
||||
err: Class<ErrorT>,
|
||||
onReject: (error: ErrorT) => $Promisable<U>
|
||||
): Bluebird$Promise<U>;
|
||||
catch<U, ErrorT: Error>(
|
||||
err1: Class<ErrorT>,
|
||||
err2: Class<ErrorT>,
|
||||
onReject: (error: ErrorT) => $Promisable<U>
|
||||
): Bluebird$Promise<U>;
|
||||
catch<U, ErrorT: Error>(
|
||||
err1: Class<ErrorT>,
|
||||
err2: Class<ErrorT>,
|
||||
err3: Class<ErrorT>,
|
||||
onReject: (error: ErrorT) => $Promisable<U>
|
||||
): Bluebird$Promise<U>;
|
||||
caught<U, ErrorT: Error>(
|
||||
err: Class<ErrorT>,
|
||||
onReject: (error: Error) => $Promisable<U>
|
||||
): Bluebird$Promise<U>;
|
||||
caught<U, ErrorT: Error>(
|
||||
err1: Class<ErrorT>,
|
||||
err2: Class<ErrorT>,
|
||||
onReject: (error: ErrorT) => $Promisable<U>
|
||||
): Bluebird$Promise<U>;
|
||||
caught<U, ErrorT: Error>(
|
||||
err1: Class<ErrorT>,
|
||||
err2: Class<ErrorT>,
|
||||
err3: Class<ErrorT>,
|
||||
onReject: (error: ErrorT) => $Promisable<U>
|
||||
): Bluebird$Promise<U>;
|
||||
caught<U>(onReject: (error: any) => $Promisable<U>): Bluebird$Promise<U>;
|
||||
|
||||
error<U>(onReject?: (error: any) => ?$Promisable<U>): Bluebird$Promise<U>;
|
||||
done<U>(
|
||||
onFulfill?: (value: R) => mixed,
|
||||
onReject?: (error: any) => mixed
|
||||
): void;
|
||||
finally<T>(onDone?: (value: R) => mixed): Bluebird$Promise<T>;
|
||||
lastly<T>(onDone?: (value: R) => mixed): Bluebird$Promise<T>;
|
||||
tap<T>(onDone?: (value: R) => mixed): Bluebird$Promise<T>;
|
||||
delay(ms: number): Bluebird$Promise<R>;
|
||||
timeout(ms: number, message?: string): Bluebird$Promise<R>;
|
||||
cancel(): void;
|
||||
|
||||
// bind(ctx: any): Bluebird$Promise<R>;
|
||||
call(propertyName: string, ...args: Array<any>): Bluebird$Promise<any>;
|
||||
throw(reason: Error): Bluebird$Promise<R>;
|
||||
thenThrow(reason: Error): Bluebird$Promise<R>;
|
||||
all<T>(): Bluebird$Promise<Array<T>>;
|
||||
any<T>(): Bluebird$Promise<T>;
|
||||
some<T>(count: number): Bluebird$Promise<Array<T>>;
|
||||
race<T>(): Bluebird$Promise<T>;
|
||||
map<T, U>(
|
||||
mapper: (item: T, index: number, arrayLength: number) => $Promisable<U>,
|
||||
options?: Bluebird$ConcurrencyOption
|
||||
): Bluebird$Promise<Array<U>>;
|
||||
mapSeries<T, U>(
|
||||
mapper: (item: T, index: number, arrayLength: number) => $Promisable<U>
|
||||
): Bluebird$Promise<Array<U>>;
|
||||
reduce<T, U>(
|
||||
reducer: (
|
||||
total: T,
|
||||
item: U,
|
||||
index: number,
|
||||
arrayLength: number
|
||||
) => $Promisable<T>,
|
||||
initialValue?: $Promisable<T>
|
||||
): Bluebird$Promise<T>;
|
||||
filter<T>(
|
||||
filterer: (
|
||||
item: T,
|
||||
index: number,
|
||||
arrayLength: number
|
||||
) => $Promisable<boolean>,
|
||||
options?: Bluebird$ConcurrencyOption
|
||||
): Bluebird$Promise<Array<T>>;
|
||||
each<T, U>(
|
||||
iterator: (item: T, index: number, arrayLength: number) => $Promisable<U>
|
||||
): Bluebird$Promise<Array<T>>;
|
||||
asCallback<T>(
|
||||
callback: (error: ?any, value?: T) => any,
|
||||
options?: Bluebird$SpreadOption
|
||||
): void;
|
||||
return<T>(value: T): Bluebird$Promise<T>;
|
||||
thenReturn<T>(value: T): Bluebird$Promise<T>;
|
||||
spread<T>(...args: Array<T>): Bluebird$Promise<*>;
|
||||
|
||||
reflect(): Bluebird$Promise<Bluebird$PromiseInspection<*>>;
|
||||
|
||||
isFulfilled(): boolean;
|
||||
isRejected(): boolean;
|
||||
isPending(): boolean;
|
||||
isResolved(): boolean;
|
||||
|
||||
value(): R;
|
||||
reason(): any;
|
||||
|
||||
disposer(
|
||||
disposer: (value: R, promise: Promise<*>) => void
|
||||
): Bluebird$Disposable<R>;
|
||||
|
||||
static using<T, A>(
|
||||
disposable: Bluebird$Disposable<T>,
|
||||
handler: (value: T) => $Promisable<A>
|
||||
): Bluebird$Promise<A>;
|
||||
|
||||
suppressUnhandledRejections(): void;
|
||||
}
|
||||
|
||||
declare class Bluebird$Defer {
|
||||
promise: Bluebird$Promise<*>;
|
||||
resolve: (value: any) => any;
|
||||
reject: (value: any) => any;
|
||||
}
|
||||
|
||||
declare module "bluebird" {
|
||||
declare module.exports: typeof Bluebird$Promise;
|
||||
|
||||
declare type Disposable<T> = Bluebird$Disposable<T>;
|
||||
}
|
||||
6
package-lock.json
generated
6
package-lock.json
generated
|
|
@ -4613,9 +4613,9 @@
|
|||
}
|
||||
},
|
||||
"@tiddlygit/tiddlywiki": {
|
||||
"version": "5.1.23-prerelease.20201003-fix-file-info",
|
||||
"resolved": "https://registry.npmjs.org/@tiddlygit/tiddlywiki/-/tiddlywiki-5.1.23-prerelease.20201003-fix-file-info.tgz",
|
||||
"integrity": "sha512-CMVq/sOkdctpP2/kCgXeFwBrQ2V62W1Y0teAfJBhWFzyPdf8WJfTpcIw4jZfVvV5BFQkXX0sWsDh5LtFGrEJ4Q=="
|
||||
"version": "5.1.23-prerelease.20201011-fix-file-info",
|
||||
"resolved": "https://registry.npmjs.org/@tiddlygit/tiddlywiki/-/tiddlywiki-5.1.23-prerelease.20201011-fix-file-info.tgz",
|
||||
"integrity": "sha512-qEjvdOmgElQjSZpjUoovEahN8IlThxRtzNcoclZOJzHp6lg9COU+StFDF9LD0f5Gz1JvKGbO1QFoUszRgEZPXA=="
|
||||
},
|
||||
"@tootallnate/once": {
|
||||
"version": "1.1.2",
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
"author": "Lin Onetwo<linonetwo012@gmail.com>, Quang Lam <quang.lam2807@gmail.com>",
|
||||
"dependencies": {
|
||||
"@cliqz/adblocker-electron": "1.18.3",
|
||||
"@tiddlygit/tiddlywiki": "^5.1.23-prerelease.20201003-fix-file-info",
|
||||
"@tiddlygit/tiddlywiki": "^5.1.23-prerelease.20201011-fix-file-info",
|
||||
"bluebird": "^3.7.2",
|
||||
"chokidar": "^3.4.2",
|
||||
"darkreader": "4.9.21",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue