From 852e035d6ffceec32f7b4d2197140a27b4afb330 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Mon, 28 Oct 2024 12:24:56 +0330 Subject: [PATCH] fix(crypto): remove side effects --- packages/crypto/src/pre-config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/crypto/src/pre-config.ts b/packages/crypto/src/pre-config.ts index 29d508a5..6058bf46 100644 --- a/packages/crypto/src/pre-config.ts +++ b/packages/crypto/src/pre-config.ts @@ -4,7 +4,7 @@ import type {TokenGeneratorConfig} from './token.js'; /** * Alwatr hash generator recommended configuration for making random self-validate **user-id**. */ -export const userIdGeneratorRecommendedConfig: HashGeneratorConfig = { +export const userIdGeneratorRecommendedConfig: HashGeneratorConfig = /* #__PURE__ */ { prefix: 'u', algorithm: 'sha1', encoding: 'base64url', @@ -14,7 +14,7 @@ export const userIdGeneratorRecommendedConfig: HashGeneratorConfig = { /** * Hash generator recommended configuration for making random self-validate **device-id**. */ -export const deviceIdGeneratorRecommendedConfig: HashGeneratorConfig = { +export const deviceIdGeneratorRecommendedConfig: HashGeneratorConfig = /* #__PURE__ */ { ...userIdGeneratorRecommendedConfig, prefix: 'd', }; @@ -22,7 +22,7 @@ export const deviceIdGeneratorRecommendedConfig: HashGeneratorConfig = { /** * Hash generator pre configuration for making random self-validate **secrets**. */ -export const secretGeneratorRecommendedConfig: HashGeneratorConfig = { +export const secretGeneratorRecommendedConfig: HashGeneratorConfig = /* #__PURE__ */ { prefix: 's', algorithm: 'sha384', encoding: 'base64url', @@ -32,7 +32,7 @@ export const secretGeneratorRecommendedConfig: HashGeneratorConfig = { /** * Token generator recommended configuration for making secure self-validate **user-token**. */ -export const userTokenGeneratorRecommendedConfig: Omit = { +export const userTokenGeneratorRecommendedConfig: Omit = /* #__PURE__ */ { prefix: 't', algorithm: 'sha224', encoding: 'base64url',