Initial Version of sitemap.xml spec
This commit is contained in:
11
test-crypto-global.mjs
Normal file
11
test-crypto-global.mjs
Normal file
@@ -0,0 +1,11 @@
|
||||
// Test that crypto is available globally (Node.js Web Crypto API)
|
||||
// Note: crypto is natively available in Node.js, no need to import server.js
|
||||
|
||||
// Should have crypto available
|
||||
if (globalThis.crypto && globalThis.crypto.randomUUID) {
|
||||
const uuid = globalThis.crypto.randomUUID();
|
||||
process.stdout.write(`✅ crypto is available globally: ${uuid}\n`);
|
||||
} else {
|
||||
process.stdout.write('❌ crypto is NOT available globally\n');
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user