@xmtp/wasm-bindings 1.7.0-rc3 → 1.8.0-dev.8ab4077
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/README.md +14 -6
- package/dist/bindings_wasm.d.ts +594 -442
- package/dist/bindings_wasm.js +688 -303
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +95 -80
- package/package.json +42 -29
|
Binary file
|
|
@@ -1,92 +1,43 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
4
|
+
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
6
|
+
export const __wbg_conversations_free: (a: number, b: number) => void;
|
|
7
|
+
export const __wbg_deletedmessage_free: (a: number, b: number) => void;
|
|
8
|
+
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
9
|
+
export const __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
10
|
+
export const __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
11
|
+
export const __wbg_get_deletedmessage_adminInboxId: (a: number) => [number, number];
|
|
12
|
+
export const __wbg_get_deletedmessage_deletedBy: (a: number) => number;
|
|
13
|
+
export const __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
14
|
+
export const __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
15
|
+
export const __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
16
|
+
export const __wbg_set_deletedmessage_adminInboxId: (a: number, b: number, c: number) => void;
|
|
17
|
+
export const __wbg_set_deletedmessage_deletedBy: (a: number, b: number) => void;
|
|
6
18
|
export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
|
|
7
|
-
export const
|
|
19
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
8
20
|
export const applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
9
|
-
export const attachmentContentType: () => any;
|
|
10
|
-
export const authhandle_id: (a: number) => number;
|
|
11
|
-
export const authhandle_new: () => number;
|
|
12
|
-
export const authhandle_set: (a: number, b: any) => any;
|
|
13
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
14
21
|
export const client_addWalletSignatureRequest: (a: number, b: any) => any;
|
|
15
|
-
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
16
|
-
export const client_apiIdentityStatistics: (a: number) => any;
|
|
17
|
-
export const client_apiStatistics: (a: number) => any;
|
|
18
|
-
export const client_appVersion: (a: number) => [number, number];
|
|
19
22
|
export const client_applySignatureRequest: (a: number, b: number) => any;
|
|
20
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
21
23
|
export const client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any) => any;
|
|
22
|
-
export const client_clearAllStatistics: (a: number) => void;
|
|
23
|
-
export const client_conversations: (a: number) => number;
|
|
24
24
|
export const client_createInboxSignatureRequest: (a: number) => [number, number, number];
|
|
25
|
-
export const
|
|
26
|
-
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
27
|
-
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
28
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
29
|
-
export const client_inboxState: (a: number, b: number) => any;
|
|
30
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
31
|
-
export const client_installationId: (a: number) => [number, number];
|
|
32
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
33
|
-
export const client_isRegistered: (a: number) => number;
|
|
34
|
-
export const client_libxmtpVersion: (a: number) => [number, number];
|
|
25
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
35
26
|
export const client_registerIdentity: (a: number, b: number) => any;
|
|
36
27
|
export const client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
|
|
37
28
|
export const client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
|
|
38
29
|
export const client_revokeWalletSignatureRequest: (a: number, b: any) => any;
|
|
39
|
-
export const
|
|
30
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
40
31
|
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
41
|
-
export const client_syncPreferences: (a: number) => any;
|
|
42
32
|
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const encodeReadReceipt: (a: any) => [number, number, number];
|
|
52
|
-
export const encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
53
|
-
export const encodeText: (a: number, b: number) => [number, number, number];
|
|
54
|
-
export const encodeTransactionReference: (a: any) => [number, number, number];
|
|
55
|
-
export const encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
56
|
-
export const encryptAttachment: (a: any) => [number, number, number];
|
|
57
|
-
export const generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
58
|
-
export const getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: any) => any;
|
|
59
|
-
export const groupUpdatedContentType: () => any;
|
|
60
|
-
export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
61
|
-
export const intentContentType: () => any;
|
|
62
|
-
export const leaveRequestContentType: () => any;
|
|
63
|
-
export const markdownContentType: () => any;
|
|
64
|
-
export const multiRemoteAttachmentContentType: () => any;
|
|
65
|
-
export const reactionContentType: () => any;
|
|
66
|
-
export const readReceiptContentType: () => any;
|
|
67
|
-
export const remoteAttachmentContentType: () => any;
|
|
68
|
-
export const replyContentType: () => any;
|
|
69
|
-
export const revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
70
|
-
export const signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
71
|
-
export const signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
72
|
-
export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
73
|
-
export const signaturerequesthandle_signatureText: (a: number) => any;
|
|
74
|
-
export const textContentType: () => any;
|
|
75
|
-
export const transactionReferenceContentType: () => any;
|
|
76
|
-
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
77
|
-
export const walletSendCallsContentType: () => any;
|
|
78
|
-
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
79
|
-
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
80
|
-
export const __wbg_conversations_free: (a: number, b: number) => void;
|
|
81
|
-
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
82
|
-
export const __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
|
|
83
|
-
export const __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
|
|
84
|
-
export const __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
85
|
-
export const __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
|
|
86
|
-
export const __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
87
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
88
|
-
export const client_getConsentState: (a: number, b: any, c: number, d: number) => any;
|
|
89
|
-
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
33
|
+
export const contentTypeAttachment: () => any;
|
|
34
|
+
export const contentTypeGroupUpdated: () => any;
|
|
35
|
+
export const contentTypeIntent: () => any;
|
|
36
|
+
export const contentTypeLeaveRequest: () => any;
|
|
37
|
+
export const contentTypeMarkdown: () => any;
|
|
38
|
+
export const contentTypeMultiRemoteAttachment: () => any;
|
|
39
|
+
export const contentTypeReaction: () => any;
|
|
40
|
+
export const contentTypeText: () => any;
|
|
90
41
|
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
91
42
|
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
92
43
|
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
@@ -101,7 +52,6 @@ export const conversation_dmPeerInboxId: (a: number) => [number, number, number,
|
|
|
101
52
|
export const conversation_findDuplicateDms: (a: number) => any;
|
|
102
53
|
export const conversation_findEnrichedMessages: (a: number, b: number) => any;
|
|
103
54
|
export const conversation_findMessages: (a: number, b: number) => any;
|
|
104
|
-
export const conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
105
55
|
export const conversation_getDebugInfo: (a: number) => any;
|
|
106
56
|
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
107
57
|
export const conversation_getLastReadTimes: (a: number) => any;
|
|
@@ -120,8 +70,10 @@ export const conversation_listMembers: (a: number) => any;
|
|
|
120
70
|
export const conversation_membershipState: (a: number) => [number, number, number];
|
|
121
71
|
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
122
72
|
export const conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
73
|
+
export const conversation_prepareMessage: (a: number, b: any, c: number) => [number, number, number, number];
|
|
123
74
|
export const conversation_processStreamedGroupMessage: (a: number, b: any) => any;
|
|
124
75
|
export const conversation_publishMessages: (a: number) => any;
|
|
76
|
+
export const conversation_publishStoredMessage: (a: number, b: number, c: number) => any;
|
|
125
77
|
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
126
78
|
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
127
79
|
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
@@ -133,7 +85,6 @@ export const conversation_sendAttachment: (a: number, b: any, c: number) => any;
|
|
|
133
85
|
export const conversation_sendIntent: (a: number, b: any, c: number) => any;
|
|
134
86
|
export const conversation_sendMarkdown: (a: number, b: number, c: number, d: number) => any;
|
|
135
87
|
export const conversation_sendMultiRemoteAttachment: (a: number, b: any, c: number) => any;
|
|
136
|
-
export const conversation_sendOptimistic: (a: number, b: any, c: any) => [number, number, number, number];
|
|
137
88
|
export const conversation_sendReaction: (a: number, b: any, c: number) => any;
|
|
138
89
|
export const conversation_sendReadReceipt: (a: number, b: number) => any;
|
|
139
90
|
export const conversation_sendRemoteAttachment: (a: number, b: any, c: number) => any;
|
|
@@ -145,12 +96,12 @@ export const conversation_stream: (a: number, b: any) => [number, number, number
|
|
|
145
96
|
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
146
97
|
export const conversation_sync: (a: number) => any;
|
|
147
98
|
export const conversation_updateAppData: (a: number, b: number, c: number) => any;
|
|
148
|
-
export const conversation_updateConsentState: (a: number, b:
|
|
99
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
149
100
|
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
150
101
|
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
151
102
|
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
152
103
|
export const conversation_updateMessageDisappearingSettings: (a: number, b: any) => any;
|
|
153
|
-
export const conversation_updatePermissionPolicy: (a: number, b:
|
|
104
|
+
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
154
105
|
export const conversationlistitem_new: (a: number, b: number, c: number) => number;
|
|
155
106
|
export const conversations_createDm: (a: number, b: any, c: number) => any;
|
|
156
107
|
export const conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
@@ -172,10 +123,74 @@ export const conversations_streamMessageDeletions: (a: number, b: any) => [numbe
|
|
|
172
123
|
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
173
124
|
export const conversations_sync: (a: number) => any;
|
|
174
125
|
export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
126
|
+
export const encodeAttachment: (a: any) => [number, number, number];
|
|
127
|
+
export const encodeIntent: (a: any) => [number, number, number];
|
|
128
|
+
export const encodeMarkdown: (a: number, b: number) => [number, number, number];
|
|
129
|
+
export const encodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
130
|
+
export const encodeReaction: (a: any) => [number, number, number];
|
|
131
|
+
export const encodeText: (a: number, b: number) => [number, number, number];
|
|
132
|
+
export const generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
|
|
133
|
+
export const getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
134
|
+
export const metadataFieldName: (a: number) => [number, number];
|
|
135
|
+
export const opfsClearAll: () => any;
|
|
136
|
+
export const opfsDeleteFile: (a: number, b: number) => any;
|
|
137
|
+
export const opfsExportDb: (a: number, b: number) => any;
|
|
138
|
+
export const opfsFileCount: () => any;
|
|
139
|
+
export const opfsFileExists: (a: number, b: number) => any;
|
|
140
|
+
export const opfsImportDb: (a: number, b: number, c: any) => any;
|
|
141
|
+
export const opfsInit: () => any;
|
|
142
|
+
export const opfsListFiles: () => any;
|
|
143
|
+
export const opfsPoolCapacity: () => any;
|
|
144
|
+
export const revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
145
|
+
export const signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
|
|
146
|
+
export const signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
|
|
147
|
+
export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
|
|
148
|
+
export const signaturerequesthandle_signatureText: (a: number) => any;
|
|
175
149
|
export const streamcloser_end: (a: number) => void;
|
|
176
150
|
export const streamcloser_endAndWait: (a: number) => any;
|
|
177
151
|
export const streamcloser_isClosed: (a: number) => number;
|
|
178
152
|
export const streamcloser_waitForReady: (a: number) => any;
|
|
153
|
+
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
154
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
155
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
156
|
+
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
157
|
+
export const client_apiIdentityStatistics: (a: number) => any;
|
|
158
|
+
export const client_apiStatistics: (a: number) => any;
|
|
159
|
+
export const client_appVersion: (a: number) => [number, number];
|
|
160
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
161
|
+
export const client_clearAllStatistics: (a: number) => void;
|
|
162
|
+
export const client_conversations: (a: number) => number;
|
|
163
|
+
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
164
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
165
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
166
|
+
export const client_installationId: (a: number) => [number, number];
|
|
167
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
168
|
+
export const client_isRegistered: (a: number) => number;
|
|
169
|
+
export const client_libxmtpVersion: (a: number) => [number, number];
|
|
170
|
+
export const client_sendSyncRequest: (a: number) => any;
|
|
171
|
+
export const client_syncPreferences: (a: number) => any;
|
|
172
|
+
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: bigint, t: number, u: number, v: number) => any;
|
|
173
|
+
export const contentTypeActions: () => any;
|
|
174
|
+
export const contentTypeReadReceipt: () => any;
|
|
175
|
+
export const contentTypeRemoteAttachment: () => any;
|
|
176
|
+
export const contentTypeReply: () => any;
|
|
177
|
+
export const contentTypeTransactionReference: () => any;
|
|
178
|
+
export const contentTypeWalletSendCalls: () => any;
|
|
179
|
+
export const decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
|
|
180
|
+
export const encodeActions: (a: any) => [number, number, number];
|
|
181
|
+
export const encodeReadReceipt: (a: any) => [number, number, number];
|
|
182
|
+
export const encodeRemoteAttachment: (a: any) => [number, number, number];
|
|
183
|
+
export const encodeTransactionReference: (a: any) => [number, number, number];
|
|
184
|
+
export const encodeWalletSendCalls: (a: any) => [number, number, number];
|
|
185
|
+
export const encryptAttachment: (a: any) => [number, number, number];
|
|
186
|
+
export const __wbg_authhandle_free: (a: number, b: number) => void;
|
|
187
|
+
export const authhandle_id: (a: number) => number;
|
|
188
|
+
export const authhandle_new: () => number;
|
|
189
|
+
export const authhandle_set: (a: number, b: any) => any;
|
|
190
|
+
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
191
|
+
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
192
|
+
export const client_inboxState: (a: number, b: number) => any;
|
|
193
|
+
export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
179
194
|
export const rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
180
195
|
export const rust_zstd_wasm_shim_free: (a: number) => void;
|
|
181
196
|
export const rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
@@ -208,14 +223,14 @@ export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
|
208
223
|
export const intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
209
224
|
export const intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
210
225
|
export const intounderlyingbytesource_type: (a: number) => number;
|
|
226
|
+
export const wasm_bindgen__convert__closures_____invoke__h956b60152b2cf005: (a: number, b: number) => void;
|
|
227
|
+
export const wasm_bindgen__closure__destroy__h3c5639ee43c80f22: (a: number, b: number) => void;
|
|
211
228
|
export const wasm_bindgen__convert__closures_____invoke__hceddd2b8fc291040: (a: number, b: number) => void;
|
|
212
229
|
export const wasm_bindgen__closure__destroy__hfbd660e60d498df9: (a: number, b: number) => void;
|
|
213
230
|
export const wasm_bindgen__convert__closures_____invoke__hdff293b41f2cecc6: (a: number, b: number, c: any) => void;
|
|
214
231
|
export const wasm_bindgen__closure__destroy__hed8af60076250245: (a: number, b: number) => void;
|
|
215
232
|
export const wasm_bindgen__convert__closures_____invoke__h6af3cd86eb56f4b1: (a: number, b: number) => void;
|
|
216
233
|
export const wasm_bindgen__closure__destroy__he7b712e0eb1b5ac1: (a: number, b: number) => void;
|
|
217
|
-
export const wasm_bindgen__convert__closures_____invoke__h956b60152b2cf005: (a: number, b: number) => void;
|
|
218
|
-
export const wasm_bindgen__closure__destroy__h3c5639ee43c80f22: (a: number, b: number) => void;
|
|
219
234
|
export const wasm_bindgen__convert__closures_____invoke__h47a8fb56fc48c5fb: (a: number, b: number, c: any, d: any) => void;
|
|
220
235
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
221
236
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
package/package.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"license": "MIT",
|
|
3
|
+
"version": "1.8.0-dev.8ab4077",
|
|
6
4
|
"description": "WASM bindings for the libXMTP rust library",
|
|
7
5
|
"keywords": [
|
|
8
6
|
"xmtp",
|
|
@@ -20,39 +18,64 @@
|
|
|
20
18
|
},
|
|
21
19
|
"repository": {
|
|
22
20
|
"type": "git",
|
|
23
|
-
"url": "https
|
|
21
|
+
"url": "git+https://git@github.com/xmtp/libxmtp.git",
|
|
24
22
|
"directory": "bindings_wasm"
|
|
25
23
|
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"type": "module",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/bindings_wasm.d.ts",
|
|
29
|
+
"default": "./dist/bindings_wasm.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"main": "dist/bindings_wasm.js",
|
|
33
|
+
"types": "dist/bindings_wasm.d.ts",
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
26
37
|
"scripts": {
|
|
27
38
|
"build": "yarn clean && yarn build:web && yarn clean:release",
|
|
28
39
|
"build:macos": "yarn clean && yarn build:web:macos && yarn clean:release",
|
|
29
|
-
"build:web": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
30
40
|
"build:test": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --no-opt --target web --out-dir ./dist --no-pack --release -- --features test-utils",
|
|
31
|
-
"build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
32
41
|
"build:test:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --no-opt --target web --out-dir ./dist --no-pack --release -- --features test-utils",
|
|
42
|
+
"build:web": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
43
|
+
"build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
33
44
|
"check": "cargo check --target wasm32-unknown-unknown",
|
|
34
45
|
"check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
|
|
35
46
|
"clean": "rm -rf ./dist",
|
|
36
47
|
"clean:release": "rm ./dist/.gitignore",
|
|
48
|
+
"format": "prettier -w .",
|
|
49
|
+
"format:check": "prettier -c .",
|
|
37
50
|
"lint": "yarn lint:clippy && yarn lint:fmt",
|
|
38
|
-
"lint:macos": "yarn lint:clippy:macos && yarn lint:fmt",
|
|
39
51
|
"lint:clippy": "cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
|
|
40
52
|
"lint:clippy:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
|
|
41
53
|
"lint:fmt": "cargo fmt --check",
|
|
54
|
+
"lint:macos": "yarn lint:clippy:macos && yarn lint:fmt",
|
|
42
55
|
"prepublishOnly": "yarn build",
|
|
43
|
-
"test": "
|
|
56
|
+
"test": "cargo test --target wasm32-unknown-unknown",
|
|
57
|
+
"test:integration": "yarn build:test && vitest run",
|
|
58
|
+
"test:integration:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang yarn build:test:macos && vitest run",
|
|
59
|
+
"test:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo test --target wasm32-unknown-unknown",
|
|
60
|
+
"typecheck": "tsc --noEmit"
|
|
44
61
|
},
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
64
|
+
"@sqlite.org/sqlite-wasm": "^3.47.0-build1",
|
|
65
|
+
"@vitest/browser": "^4.0.8",
|
|
66
|
+
"@vitest/browser-playwright": "^4.0.8",
|
|
67
|
+
"@xmtp/content-type-remote-attachment": "^2.0.3",
|
|
68
|
+
"binaryen": "^125.0.0",
|
|
69
|
+
"playwright": "^1.56.1",
|
|
70
|
+
"prettier": "^3.7.4",
|
|
71
|
+
"prettier-plugin-packagejson": "^2.5.20",
|
|
72
|
+
"tsx": "^4.20.6",
|
|
73
|
+
"typescript": "^5.9.3",
|
|
74
|
+
"viem": "^2.31.3",
|
|
75
|
+
"vitest": "^4.0.8",
|
|
76
|
+
"wasm-pack": "^0.13.1"
|
|
55
77
|
},
|
|
78
|
+
"packageManager": "yarn@4.11.0",
|
|
56
79
|
"engines": {
|
|
57
80
|
"node": ">=22"
|
|
58
81
|
},
|
|
@@ -60,15 +83,5 @@
|
|
|
60
83
|
"access": "public",
|
|
61
84
|
"provenance": true,
|
|
62
85
|
"registry": "https://registry.npmjs.org/"
|
|
63
|
-
}
|
|
64
|
-
"devDependencies": {
|
|
65
|
-
"@sqlite.org/sqlite-wasm": "^3.47.0-build1",
|
|
66
|
-
"binaryen": "^124.0.0",
|
|
67
|
-
"tsx": "^4.20.6",
|
|
68
|
-
"wasm-pack": "^0.13.1"
|
|
69
|
-
},
|
|
70
|
-
"packageManager": "yarn@4.11.0",
|
|
71
|
-
"workspaces": [
|
|
72
|
-
"tests/integration/**"
|
|
73
|
-
]
|
|
86
|
+
}
|
|
74
87
|
}
|