@hesprs/sync-engine-sdk 3.0.1 → 3.0.2
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/dev.js +1 -1
- package/dist/dev.spec.d.ts +74 -4
- package/dist/index-3gsR9vHT.spec.d.ts +1336 -0
- package/dist/index.js +1 -1
- package/dist/index.spec.d.ts +1 -34
- package/dist/prefix.js +1 -1
- package/package.json +3 -3
- package/dist/debug-wrapper.spec.d.ts +0 -6
- package/dist/node_modules/.bun/synthkernel@._synthkernel.tgz/node_modules/synthkernel/dist/context.spec.d.ts +0 -29
- package/dist/node_modules/.bun/synthkernel@._synthkernel.tgz/node_modules/synthkernel/dist/reactive.spec.d.ts +0 -14
- package/dist/node_modules/.bun/uni-kv@.._.._uni-kv.tgz/node_modules/uni-kv/dist/interface.spec.d.ts +0 -46
- package/dist/packages/plugin/src/components/FilterEditorModal.spec.d.ts +0 -17
- package/dist/packages/plugin/src/components/HeadersEditorModal.spec.d.ts +0 -18
- package/dist/packages/plugin/src/components/MigrationModal.spec.d.ts +0 -45
- package/dist/packages/plugin/src/components/ModuleEditorModal.spec.d.ts +0 -26
- package/dist/packages/plugin/src/components/SourceEditorModal.spec.d.ts +0 -16
- package/dist/packages/plugin/src/components/UnknownModuleModal.spec.d.ts +0 -19
- package/dist/packages/plugin/src/components/file-tree/index.spec.d.ts +0 -7
- package/dist/packages/plugin/src/components/module-management/index.spec.d.ts +0 -23
- package/dist/packages/plugin/src/fs/hierarchical-optimizer.spec.d.ts +0 -1
- package/dist/packages/plugin/src/fs/index.spec.d.ts +0 -13
- package/dist/packages/plugin/src/fs/interface.spec.d.ts +0 -71
- package/dist/packages/plugin/src/fs/middlewares/custom-headers.spec.d.ts +0 -1
- package/dist/packages/plugin/src/fs/middlewares/rate-limiter.spec.d.ts +0 -1
- package/dist/packages/plugin/src/fs/middlewares/retry.spec.d.ts +0 -1
- package/dist/packages/plugin/src/fs/vault/index.spec.d.ts +0 -3
- package/dist/packages/plugin/src/fs/vault/request.spec.d.ts +0 -71
- package/dist/packages/plugin/src/fs/wrappers/asymmetric-storage.spec.d.ts +0 -2
- package/dist/packages/plugin/src/fs/wrappers/cancellation.spec.d.ts +0 -2
- package/dist/packages/plugin/src/fs/wrappers/context.spec.d.ts +0 -2
- package/dist/packages/plugin/src/fs/wrappers/memory-control.spec.d.ts +0 -1
- package/dist/packages/plugin/src/fs/wrappers/optimization.spec.d.ts +0 -1
- package/dist/packages/plugin/src/index.spec.d.ts +0 -30
- package/dist/packages/plugin/src/modules/Bootstrap.spec.d.ts +0 -85
- package/dist/packages/plugin/src/modules/EventBus.spec.d.ts +0 -35
- package/dist/packages/plugin/src/modules/Extensibility.spec.d.ts +0 -96
- package/dist/packages/plugin/src/modules/I18n.spec.d.ts +0 -22
- package/dist/packages/plugin/src/modules/ModulesModal.spec.d.ts +0 -49
- package/dist/packages/plugin/src/modules/Observability.spec.d.ts +0 -58
- package/dist/packages/plugin/src/modules/ProgressModal.spec.d.ts +0 -66
- package/dist/packages/plugin/src/modules/Registrar.spec.d.ts +0 -147
- package/dist/packages/plugin/src/modules/Scheduler.spec.d.ts +0 -43
- package/dist/packages/plugin/src/modules/Storage.spec.d.ts +0 -54
- package/dist/packages/plugin/src/modules/Sync.spec.d.ts +0 -84
- package/dist/packages/plugin/src/settings/controls.spec.d.ts +0 -21
- package/dist/packages/plugin/src/settings/development.spec.d.ts +0 -17
- package/dist/packages/plugin/src/settings/features.spec.d.ts +0 -24
- package/dist/packages/plugin/src/settings/filter.spec.d.ts +0 -11
- package/dist/packages/plugin/src/settings/head.spec.d.ts +0 -23
- package/dist/packages/plugin/src/settings/miscellaneous.spec.d.ts +0 -21
- package/dist/packages/plugin/src/sync/conflict-resolve/keep-local.spec.d.ts +0 -1
- package/dist/packages/plugin/src/sync/conflict-resolve/keep-remote.spec.d.ts +0 -1
- package/dist/packages/plugin/src/sync/conflict-resolve/latest-survive.spec.d.ts +0 -1
- package/dist/packages/plugin/src/sync/conflict-resolve/rename-and-keep-both.spec.d.ts +0 -1
- package/dist/packages/plugin/src/sync/decision/bidirectional.spec.d.ts +0 -2
- package/dist/packages/plugin/src/sync/decision/interface.spec.d.ts +0 -90
- package/dist/packages/plugin/src/sync/index.spec.d.ts +0 -21
- package/dist/packages/plugin/src/sync/tasks/AddRecord.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/CreateLocalDir.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/CreateRemoteDir.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/Download.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/MoveLocal.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/MoveRemote.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/RemoveLocal.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/RemoveRecord.spec.d.ts +0 -7
- package/dist/packages/plugin/src/sync/tasks/RemoveRemote.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/ResolveConflict.spec.d.ts +0 -11
- package/dist/packages/plugin/src/sync/tasks/Upload.spec.d.ts +0 -8
- package/dist/packages/plugin/src/sync/tasks/interface.spec.d.ts +0 -36
- package/dist/packages/plugin/src/sync/utils/detect-moves.spec.d.ts +0 -2
- package/dist/packages/plugin/src/sync/utils/post-traversal.spec.d.ts +0 -1
- package/dist/packages/plugin/src/types.spec.d.ts +0 -40
- package/dist/packages/plugin/src/utils/glob-match.spec.d.ts +0 -5
- package/dist/packages/plugin/src/utils/pipe.spec.d.ts +0 -14
- package/dist/packages/plugin/src/utils/sha-256.spec.d.ts +0 -4
- package/dist/packages/plugin/test/e2e-utils.spec.d.ts +0 -5
- package/dist/packages/plugin/test/test-kit.spec.d.ts +0 -58
- package/dist/prefix.spec.d.ts +0 -6
- package/dist/transform.spec.d.ts +0 -15
- /package/dist/{packages/plugin → plugin}/src/components/MigrationModal.js +0 -0
- /package/dist/{packages/plugin → plugin}/src/components/render-progress.js +0 -0
- /package/dist/{packages/plugin → plugin}/src/utils/pipe.js +0 -0
- /package/dist/{packages/plugin → plugin}/src/utils/round-percent.js +0 -0
- /package/dist/{packages/plugin → plugin}/src/utils/sha-256.js +0 -0
- /package/dist/{packages/plugin → plugin}/src/utils/to-error-message.js +0 -0
- /package/dist/{packages/plugin → plugin}/test/test-kit.js +0 -0
- /package/dist/{packages/shared → shared}/src/get-status.js +0 -0
- /package/dist/{packages/shared → shared}/src/path.js +0 -0
package/dist/dev.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./debug-wrapper.js";import t from"./
|
|
1
|
+
import e from"./debug-wrapper.js";import t from"./plugin/test/test-kit.js";import n from"./plugin/src/utils/sha-256.js";import r from"./transform.js";export{e as debugWrapper,n as sha256,r as syncEngineTransform,t as testKit};
|
package/dist/dev.spec.d.ts
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Ct as FolderStat, St as FileStat, f as Request, p as RequestParam, ut as Fs, vt as RootFs, xt as Binary, yt as WrappedFs } from "./index-3gsR9vHT.spec.js";
|
|
2
|
+
//#region src/sdk/debug-wrapper.d.ts
|
|
3
|
+
declare function debugWrapper(original: Fs, log: (content: string) => void): WrappedFs;
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region test/test-kit.d.ts
|
|
6
|
+
type FsCalls = {
|
|
7
|
+
delete: Array<string>;
|
|
8
|
+
exists: Array<string>;
|
|
9
|
+
list: Array<string>;
|
|
10
|
+
mkdir: Array<string>;
|
|
11
|
+
move: Array<[string, string]>;
|
|
12
|
+
read: Array<[string, FileStat]>;
|
|
13
|
+
readStream: Array<[string, FileStat]>;
|
|
14
|
+
stat: Array<string>;
|
|
15
|
+
write: Array<[string, Binary, FileStat]>;
|
|
16
|
+
writeStream: Array<[string, FileStat]>;
|
|
17
|
+
};
|
|
18
|
+
type FsOptions = {
|
|
19
|
+
control?: Partial<Fs>;
|
|
20
|
+
uid?: string;
|
|
21
|
+
};
|
|
22
|
+
type FsHarness = {
|
|
23
|
+
calls: FsCalls;
|
|
24
|
+
control: Fs;
|
|
25
|
+
fs: RootFs;
|
|
26
|
+
};
|
|
27
|
+
type RequestHarness = {
|
|
28
|
+
calls: Array<RequestParam | string>;
|
|
29
|
+
request: Request;
|
|
30
|
+
};
|
|
31
|
+
declare function bytes(value: string): Binary;
|
|
32
|
+
declare function file(key: string, options?: {
|
|
33
|
+
mtime?: number;
|
|
34
|
+
size?: number;
|
|
35
|
+
uid?: string;
|
|
36
|
+
}): FileStat;
|
|
37
|
+
declare function folder(key: string): FolderStat;
|
|
38
|
+
declare function stream(chunks?: Array<string | Binary>): ReadableStream<Binary>;
|
|
39
|
+
declare function deferred<T>(): {
|
|
40
|
+
promise: Promise<T>;
|
|
41
|
+
reject: (reason?: unknown) => void;
|
|
42
|
+
resolve: (value: T | PromiseLike<T>) => void;
|
|
43
|
+
};
|
|
44
|
+
declare function flush(turns?: number): Promise<void>;
|
|
45
|
+
declare function request(control: Request): RequestHarness;
|
|
46
|
+
declare function fs(options?: FsOptions): FsHarness;
|
|
47
|
+
declare const testKit: {
|
|
48
|
+
bytes: typeof bytes;
|
|
49
|
+
deferred: typeof deferred;
|
|
50
|
+
file: typeof file;
|
|
51
|
+
flush: typeof flush;
|
|
52
|
+
folder: typeof folder;
|
|
53
|
+
fs: typeof fs;
|
|
54
|
+
request: typeof request;
|
|
55
|
+
stream: typeof stream;
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/utils/sha-256.d.ts
|
|
59
|
+
declare function sha256(input: string): Promise<string>;
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/sdk/transform.d.ts
|
|
62
|
+
type SyncEngineConfig = {
|
|
63
|
+
deps?: {
|
|
64
|
+
neverBundle?: true | string | RegExp | Array<string | RegExp> | ((id: string, parentId: string | undefined, isResolved: boolean) => boolean | null | undefined);
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
declare function syncEngineTransform(): {
|
|
68
|
+
name: string;
|
|
69
|
+
renderChunk(code: string): {
|
|
70
|
+
code: string;
|
|
71
|
+
} | undefined;
|
|
72
|
+
tsdownConfig(config: SyncEngineConfig): void;
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
5
75
|
export { debugWrapper, sha256, syncEngineTransform, testKit };
|