LookAtMySuitBot/js/node_modules/jose/dist/node/esm/runtime/flags.js

6 lines
419 B
JavaScript
Raw Normal View History

2023-12-24 20:08:39 -05:00
const [major, minor] = process.versions.node.split('.').map((str) => parseInt(str, 10));
export const oneShotCallback = major >= 16 || (major === 15 && minor >= 13);
export const rsaPssParams = !('electron' in process.versions) && (major >= 17 || (major === 16 && minor >= 9));
export const jwkExport = major >= 16 || (major === 15 && minor >= 9);
export const jwkImport = major >= 16 || (major === 15 && minor >= 12);