@copilotkit/shared
Version:
<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />
17 lines (13 loc) • 490 B
JavaScript
(async () => {
const { pathToFileURL } = require("node:url");
const cjs = require("../dist/index.cjs");
if (typeof cjs.lambdaClient?.send !== "function") {
throw new Error(
"Expected CommonJS export lambdaClient.send to be a function",
);
}
const esm = await import(pathToFileURL(require.resolve("../dist/index.mjs")));
if (typeof esm.lambdaClient?.send !== "function") {
throw new Error("Expected ESM export lambdaClient.send to be a function");
}
})();