Skip to content

Commit

Permalink
Update node:crypto to crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Dec 23, 2023
1 parent c759d6a commit bd661c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/sdk-core/src/encryptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ENCRYPTOR_VERSION = '1.0';

let subtle: SubtleCrypto;
if (typeof window === 'undefined') {
const crypto = require('node:crypto')
const crypto = require('crypto')
subtle = crypto.subtle
} else {
subtle = window.crypto.subtle
Expand Down

0 comments on commit bd661c1

Please sign in to comment.