Initial import

This commit is contained in:
David Soria Parra 2024-09-24 21:49:12 +01:00
commit 02e421c1f1
No known key found for this signature in database

7
dist/shared/message.js generated vendored Normal file
View file

@ -0,0 +1,7 @@
// Throws an exception if the message is invalid or unsupported.
export function validateMessage(message) {
if (message.jsonrpc !== "2.0") {
throw new Error(`Message is not in a supported JSON-RPC version: ${message}`);
}
}
//# sourceMappingURL=message.js.map