Adding opencode files
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
// 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