@automerge/subduction 0.8.0-alpha.1 → 0.9.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/cjs/wasm-base64.cjs +1 -1
- package/dist/cjs/web-bindings.cjs +308 -87
- package/dist/cjs/web.cjs +309 -88
- package/dist/esm/wasm-base64.js +1 -1
- package/dist/iife/index.js +309 -88
- package/dist/index.d.ts +87 -24
- package/dist/subduction.wasm +0 -0
- package/dist/wasm_bindgen/bundler/snippets/subduction_wasm-0ed7fd66cebca59f/inline0.js +9 -0
- package/dist/wasm_bindgen/bundler/subduction_wasm.d.ts +87 -24
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.js +294 -96
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.wasm.d.ts +28 -20
- package/dist/wasm_bindgen/nodejs/snippets/subduction_wasm-0ed7fd66cebca59f/inline0.js +9 -0
- package/dist/wasm_bindgen/nodejs/subduction_wasm.cjs +296 -96
- package/dist/wasm_bindgen/nodejs/subduction_wasm.d.ts +87 -24
- package/dist/wasm_bindgen/nodejs/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/nodejs/subduction_wasm_bg.wasm.d.ts +28 -20
- package/dist/wasm_bindgen/web/snippets/subduction_wasm-0ed7fd66cebca59f/inline0.js +9 -0
- package/dist/wasm_bindgen/web/subduction_wasm.d.ts +115 -44
- package/dist/wasm_bindgen/web/subduction_wasm.js +296 -96
- package/dist/wasm_bindgen/web/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/web/subduction_wasm_bg.wasm.d.ts +28 -20
- package/package.json +1 -1
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline0.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline1.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline2.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline0.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline1.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline2.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline0.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline1.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-68c0499598a3382c → sedimentree_wasm-1de4a01519b0f11f}/inline2.js +0 -0
|
Binary file
|
|
@@ -21,8 +21,8 @@ export const webcryptosigner_sign: (a: number, b: number, c: number) => any;
|
|
|
21
21
|
export const webcryptosigner_verifyingKey: (a: number) => any;
|
|
22
22
|
export const webcryptosigner_peerId: (a: number) => number;
|
|
23
23
|
export const __wbg_subduction_free: (a: number, b: number) => void;
|
|
24
|
-
export const subduction_new: (a: any, b: any, c: number, d: number, e: number, f: number) => number;
|
|
25
|
-
export const subduction_hydrate: (a: any, b: any, c: number, d: number, e: number, f: number) => any;
|
|
24
|
+
export const subduction_new: (a: any, b: any, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
25
|
+
export const subduction_hydrate: (a: any, b: any, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
26
26
|
export const subduction_addSedimentree: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
27
27
|
export const subduction_removeSedimentree: (a: number, b: number) => any;
|
|
28
28
|
export const subduction_connect: (a: number, b: any, c: number) => any;
|
|
@@ -45,6 +45,9 @@ export const subduction_syncWithPeer: (a: number, b: number, c: number, d: numbe
|
|
|
45
45
|
export const subduction_syncWithAllPeers: (a: number, b: number, c: number, d: number, e: bigint) => any;
|
|
46
46
|
export const subduction_fullSyncWithPeer: (a: number, b: number, c: number, d: number, e: bigint) => any;
|
|
47
47
|
export const subduction_fullSyncWithAllPeers: (a: number, b: number, c: bigint) => any;
|
|
48
|
+
export const subduction_publishEphemeral: (a: number, b: number, c: number, d: number) => any;
|
|
49
|
+
export const subduction_subscribeEphemeral: (a: number, b: number, c: number) => any;
|
|
50
|
+
export const subduction_unsubscribeEphemeral: (a: number, b: number, c: number) => any;
|
|
48
51
|
export const subduction_sedimentreeIds: (a: number) => any;
|
|
49
52
|
export const subduction_getCommits: (a: number, b: number) => any;
|
|
50
53
|
export const subduction_getFragments: (a: number, b: number) => any;
|
|
@@ -68,17 +71,24 @@ export const syncstats_fragmentsSent: (a: number) => number;
|
|
|
68
71
|
export const syncstats_totalReceived: (a: number) => number;
|
|
69
72
|
export const syncstats_totalSent: (a: number) => number;
|
|
70
73
|
export const syncstats_isEmpty: (a: number) => number;
|
|
74
|
+
export const syncstats_remoteHeads: (a: number) => [number, number];
|
|
75
|
+
export const __wbg_authenticatedtransport_free: (a: number, b: number) => void;
|
|
76
|
+
export const authenticatedtransport_setup: (a: any, b: any, c: number, d: number) => any;
|
|
77
|
+
export const authenticatedtransport_setupDiscover: (a: any, b: any, c: number, d: number, e: number) => any;
|
|
78
|
+
export const authenticatedtransport_accept: (a: any, b: any, c: number, d: number) => any;
|
|
79
|
+
export const authenticatedtransport_peerId: (a: number) => number;
|
|
71
80
|
export const __wbg_subductionhttplongpoll_free: (a: number, b: number) => void;
|
|
72
81
|
export const subductionhttplongpoll_sendBytes: (a: number, b: number, c: number) => any;
|
|
73
82
|
export const subductionhttplongpoll_recvBytes: (a: number) => any;
|
|
74
83
|
export const subductionhttplongpoll_disconnect: (a: number) => any;
|
|
84
|
+
export const subductionhttplongpoll_onDisconnect: (a: number, b: any) => void;
|
|
75
85
|
export const __wbg_authenticatedlongpoll_free: (a: number, b: number) => void;
|
|
76
86
|
export const authenticatedlongpoll_peerId: (a: number) => number;
|
|
77
87
|
export const authenticatedlongpoll_sessionId: (a: number) => [number, number];
|
|
78
88
|
export const authenticatedlongpoll_toTransport: (a: number) => number;
|
|
79
89
|
export const __wbg_subductionlongpoll_free: (a: number, b: number) => void;
|
|
80
|
-
export const subductionlongpoll_tryConnect: (a: number, b: number, c: any, d: number) => any;
|
|
81
|
-
export const subductionlongpoll_tryDiscover: (a: number, b: number, c: any, d: number, e: number) => any;
|
|
90
|
+
export const subductionlongpoll_tryConnect: (a: number, b: number, c: any, d: number, e: number) => any;
|
|
91
|
+
export const subductionlongpoll_tryDiscover: (a: number, b: number, c: any, d: number, e: number, f: number) => any;
|
|
82
92
|
export const __wbg_syncmessage_free: (a: number, b: number) => void;
|
|
83
93
|
export const syncmessage_toBytes: (a: number) => [number, number];
|
|
84
94
|
export const syncmessage_fromBytes: (a: number, b: number) => [number, number, number];
|
|
@@ -100,18 +110,20 @@ export const __wbg_messageporttransport_free: (a: number, b: number) => void;
|
|
|
100
110
|
export const messageporttransport_sendBytes: (a: number, b: number, c: number) => any;
|
|
101
111
|
export const messageporttransport_recvBytes: (a: number) => any;
|
|
102
112
|
export const messageporttransport_disconnect: (a: number) => any;
|
|
113
|
+
export const messageporttransport_onDisconnect: (a: number, b: any) => void;
|
|
103
114
|
export const makeMessagePortTransport: (a: any) => number;
|
|
104
115
|
export const __wbg_nonce_free: (a: number, b: number) => void;
|
|
105
116
|
export const nonce_new: (a: number, b: number) => [number, number, number];
|
|
106
117
|
export const nonce_random: () => number;
|
|
107
118
|
export const nonce_bytes: (a: number) => [number, number];
|
|
108
119
|
export const __wbg_subductionwebsocket_free: (a: number, b: number) => void;
|
|
109
|
-
export const subductionwebsocket_setup: (a: any, b: any, c: number) => any;
|
|
110
|
-
export const subductionwebsocket_tryConnect: (a: any, b: any, c: number) => any;
|
|
111
|
-
export const subductionwebsocket_tryDiscover: (a: any, b: any, c: number, d: number) => any;
|
|
120
|
+
export const subductionwebsocket_setup: (a: any, b: any, c: number, d: number) => any;
|
|
121
|
+
export const subductionwebsocket_tryConnect: (a: any, b: any, c: number, d: number) => any;
|
|
122
|
+
export const subductionwebsocket_tryDiscover: (a: any, b: any, c: number, d: number, e: number) => any;
|
|
112
123
|
export const subductionwebsocket_sendBytes: (a: number, b: number, c: number) => any;
|
|
113
124
|
export const subductionwebsocket_recvBytes: (a: number) => any;
|
|
114
125
|
export const subductionwebsocket_disconnect: (a: number) => any;
|
|
126
|
+
export const subductionwebsocket_onDisconnect: (a: number, b: any) => void;
|
|
115
127
|
export const __wbg_authenticatedwebsocket_free: (a: number, b: number) => void;
|
|
116
128
|
export const authenticatedwebsocket_peerId: (a: number) => number;
|
|
117
129
|
export const authenticatedwebsocket_toTransport: (a: number) => number;
|
|
@@ -128,11 +140,6 @@ export const __wbg_batchsyncresponse_free: (a: number, b: number) => void;
|
|
|
128
140
|
export const batchsyncresponse_id: (a: number) => number;
|
|
129
141
|
export const batchsyncresponse_request_id: (a: number) => number;
|
|
130
142
|
export const batchsyncresponse___wasm_refgen_toWasmBatchSyncResponse: (a: number) => number;
|
|
131
|
-
export const __wbg_authenticatedtransport_free: (a: number, b: number) => void;
|
|
132
|
-
export const authenticatedtransport_setup: (a: any, b: any, c: number) => any;
|
|
133
|
-
export const authenticatedtransport_setupDiscover: (a: any, b: any, c: number, d: number) => any;
|
|
134
|
-
export const authenticatedtransport_accept: (a: any, b: any, c: number) => any;
|
|
135
|
-
export const authenticatedtransport_peerId: (a: number) => number;
|
|
136
143
|
export const memorysigner_new: () => number;
|
|
137
144
|
export const messageporttransport_new: (a: any) => number;
|
|
138
145
|
export const __wbg_webcryptosigner_free: (a: number, b: number) => void;
|
|
@@ -215,14 +222,15 @@ export const __wbg_signedloosecommit_free: (a: number, b: number) => void;
|
|
|
215
222
|
export const sedimentreeid___wasm_refgen_toWasmSedimentreeId: (a: number) => number;
|
|
216
223
|
export const sedimentreeid_toBytes: (a: number) => [number, number];
|
|
217
224
|
export const fragmentwithblob_blob: (a: number) => any;
|
|
218
|
-
export const
|
|
219
|
-
export const
|
|
220
|
-
export const
|
|
221
|
-
export const
|
|
222
|
-
export const
|
|
223
|
-
export const
|
|
224
|
-
export const
|
|
225
|
-
export const
|
|
225
|
+
export const __wasm_bindgen_func_elem_274: (a: number, b: number) => void;
|
|
226
|
+
export const __wasm_bindgen_func_elem_1605: (a: number, b: number, c: any) => [number, number];
|
|
227
|
+
export const __wasm_bindgen_func_elem_1605_191: (a: number, b: number, c: any, d: any) => void;
|
|
228
|
+
export const __wasm_bindgen_func_elem_1605_192: (a: number, b: number, c: any, d: any) => void;
|
|
229
|
+
export const __wasm_bindgen_func_elem_590: (a: number, b: number, c: any) => void;
|
|
230
|
+
export const __wasm_bindgen_func_elem_590_1: (a: number, b: number, c: any) => void;
|
|
231
|
+
export const __wasm_bindgen_func_elem_590_2: (a: number, b: number, c: any) => void;
|
|
232
|
+
export const __wasm_bindgen_func_elem_590_3: (a: number, b: number, c: any) => void;
|
|
233
|
+
export const __wasm_bindgen_func_elem_589: (a: number, b: number) => void;
|
|
226
234
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
227
235
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
228
236
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
export function makeOpenPolicy() {
|
|
3
|
+
return {
|
|
4
|
+
authorizeConnect() { return Promise.resolve(); },
|
|
5
|
+
authorizeFetch() { return Promise.resolve(); },
|
|
6
|
+
authorizePut() { return Promise.resolve(); },
|
|
7
|
+
filterAuthorizedFetch(_peer, ids) { return Promise.resolve(ids); },
|
|
8
|
+
};
|
|
9
|
+
}
|