chore: upgrade eslint and prettier (#2376)

* chore: upgrade eslint and prettier

* chore: add restrict-template-expressions
This commit is contained in:
Mo
2023-07-27 14:36:05 -05:00
committed by GitHub
parent acc41edb02
commit 4a29e2a24c
1283 changed files with 4416 additions and 5131 deletions

View File

@@ -2,6 +2,7 @@ import {
StreamEncryptor,
StreamDecryptor,
SodiumConstant,
SodiumTag,
StreamDecryptorResult,
Base64String,
Base64URLSafeString,
@@ -299,7 +300,7 @@ export class SNWebCrypto implements PureCryptoInterface {
encryptor: StreamEncryptor,
plainBuffer: Uint8Array,
assocData?: Utf8String,
tag: SodiumConstant = SodiumConstant.CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PUSH,
tag: SodiumTag = SodiumTag.CRYPTO_SECRETSTREAM_XCHACHA20POLY1305_TAG_PUSH,
): Uint8Array {
const encryptedBuffer = sodium.crypto_secretstream_xchacha20poly1305_push(
encryptor.state as sodium.StateAddress,

View File

@@ -1,3 +1,3 @@
export * from './crypto'
export * from './utils'
export { SodiumConstant } from '@standardnotes/sncrypto-common'
export { SodiumConstant, SodiumTag } from '@standardnotes/sncrypto-common'