refactor: Replace Node.js Buffer operations with Web-standard APIs for convex v8 #27
Annotations
2 errors
|
Run Tests
Process completed with exit code 1.
|
|
convex/lib/crypto.test.ts > crypto > transforms valid hex key correctly:
convex/lib/crypto.ts#L124
TypeError: Failed to execute 'importKey' on 'SubtleCrypto': 2nd argument is not instance of ArrayBuffer, Buffer, TypedArray, or DataView.
❯ getEncryptionKey convex/lib/crypto.ts:124:37
❯ encryptApiKey convex/lib/crypto.ts:148:23
❯ convex/lib/crypto.test.ts:22:33
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' }
|