whatsapp-api-js
Version:
A TypeScript server agnostic Whatsapp's Official API framework
30 lines (29 loc) • 501 B
JavaScript
import { webcrypto } from "node:crypto";
function NodeNext(settings) {
return settings;
}
function Node18(settings) {
return {
...settings,
ponyfill: {
subtle: webcrypto.subtle,
...settings.ponyfill
}
};
}
function Node15(settings, fetch_ponyfill) {
return {
...settings,
ponyfill: {
fetch: fetch_ponyfill,
subtle: webcrypto.subtle,
...settings.ponyfill
}
};
}
export {
Node15,
Node18,
NodeNext
};
//# sourceMappingURL=node.js.map