diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-18 13:59:11 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-18 13:59:11 -0700 |
commit | a59634a1a9b0393622fb121fbe229132c01a2624 (patch) | |
tree | cb4eb3fdf778dfc88d6d389b609b1cef6ebb4b4d /packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts | |
parent | e0d32bd2a3a60b4b2fd96a2874eae3ad976483df (diff) |
Use single-quotes and increase line width
Diffstat (limited to 'packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts')
-rw-r--r-- | packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts b/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts index 03fe19e..019847d 100644 --- a/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts +++ b/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts @@ -1,4 +1,4 @@ -import type { Crypto } from "../../../deps.ts"; +import type { Crypto } from '../../../deps.ts'; let webCrypto: Crypto | undefined = undefined; @@ -17,7 +17,7 @@ export async function getWebCrypto(): Promise<Crypto> { */ // @ts-ignore: We'll handle any errors... // dnt-shim-ignore - const _crypto = await require("node:crypto"); + const _crypto = await require('node:crypto'); webCrypto = _crypto.webcrypto as unknown as Crypto; } catch (_err) { /** @@ -40,8 +40,8 @@ export async function getWebCrypto(): Promise<Crypto> { class MissingWebCrypto extends Error { constructor() { - const message = "An instance of the Crypto API could not be located"; + const message = 'An instance of the Crypto API could not be located'; super(message); - this.name = "MissingWebCrypto"; + this.name = 'MissingWebCrypto'; } } |