@comapeo/ipc 2.0.0 → 2.1.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/dist/client.d.ts +5 -3
- package/package.json +7 -6
package/dist/client.d.ts
CHANGED
|
@@ -58,16 +58,18 @@ export type MapeoClientApi = {
|
|
|
58
58
|
waitForSync?: boolean | undefined;
|
|
59
59
|
} | undefined) => Promise<string>;
|
|
60
60
|
setDeviceInfo: <T extends import("type-fest").IsEqual<import("@comapeo/core/dist/schema/client.js").DeviceInfoParam & {
|
|
61
|
-
deviceType?: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "UNRECOGNIZED" | undefined;
|
|
61
|
+
deviceType?: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "selfHostedServer" | "UNRECOGNIZED" | undefined;
|
|
62
62
|
}, T> extends true ? import("@comapeo/core/dist/schema/client.js").DeviceInfoParam & {
|
|
63
|
-
deviceType?: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "UNRECOGNIZED" | undefined;
|
|
63
|
+
deviceType?: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "selfHostedServer" | "UNRECOGNIZED" | undefined;
|
|
64
64
|
} : import("type-fest/source/exact.js").ExactObject<import("@comapeo/core/dist/schema/client.js").DeviceInfoParam & {
|
|
65
|
-
deviceType?: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "UNRECOGNIZED" | undefined;
|
|
65
|
+
deviceType?: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "selfHostedServer" | "UNRECOGNIZED" | undefined;
|
|
66
66
|
}, T>>(deviceInfo: T) => Promise<void>;
|
|
67
67
|
getDeviceInfo: () => Promise<{
|
|
68
68
|
deviceId: string;
|
|
69
69
|
deviceType: "device_type_unspecified" | "mobile" | "tablet" | "desktop" | "selfHostedServer" | "UNRECOGNIZED";
|
|
70
70
|
} & Partial<import("@comapeo/core/dist/schema/client.js").DeviceInfoParam>>;
|
|
71
|
+
setIsArchiveDevice: (isArchiveDevice: boolean) => Promise<void>;
|
|
72
|
+
getIsArchiveDevice: () => Promise<boolean>;
|
|
71
73
|
readonly invite: import("rpc-reflector/lib/types.js").ClientApi<import("@comapeo/core/dist/invite-api.js").InviteApi> & (() => Promise<import("@comapeo/core/dist/invite-api.js").InviteApi>);
|
|
72
74
|
startLocalPeerDiscoveryServer: () => Promise<{
|
|
73
75
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comapeo/ipc",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "IPC wrappers for
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "IPC wrappers for CoMapeo Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "git+https://github.com/digidem/
|
|
28
|
+
"url": "git+https://github.com/digidem/comapeo-ipc.git"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"mapeo",
|
|
@@ -36,18 +36,19 @@
|
|
|
36
36
|
},
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"bugs": {
|
|
39
|
-
"url": "https://github.com/digidem/
|
|
39
|
+
"url": "https://github.com/digidem/comapeo-ipc/issues"
|
|
40
40
|
},
|
|
41
|
-
"homepage": "https://github.com/digidem/
|
|
41
|
+
"homepage": "https://github.com/digidem/comapeo-ipc#readme",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"eventemitter3": "^5.0.1",
|
|
44
44
|
"p-defer": "^4.0.0",
|
|
45
45
|
"rpc-reflector": "^1.3.11"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@comapeo/core": "2.
|
|
48
|
+
"@comapeo/core": "^2.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
+
"@comapeo/core": "2.2.0",
|
|
51
52
|
"@digidem/types": "^2.1.0",
|
|
52
53
|
"@mapeo/crypto": "^1.0.0-alpha.8",
|
|
53
54
|
"@types/nanobench": "^3.0.0",
|