From 12588b0cbc38eb6bbc222df3534dc4d1497f0ecc Mon Sep 17 00:00:00 2001 From: abdfnx Date: Wed, 30 Mar 2022 14:04:42 +0300 Subject: [PATCH] chore: update `clean` npm script and update `@secman/crypto` package --- crypto/main.d.ts | 35 +++++++++++++++-------------------- package.json | 2 +- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/crypto/main.d.ts b/crypto/main.d.ts index ed320cbf..834cdc7c 100644 --- a/crypto/main.d.ts +++ b/crypto/main.d.ts @@ -1,23 +1,18 @@ export declare const isBase64: (value: any) => boolean; export declare class CryptoTools { - static transmissionKey: any; - static encryptKey: any; - static sha1(msg: any): string; - static hmac(msg: any, transmissionKey?: any): string; - static encrypt(message: any, password?: any): string; - static decrypt(transitMessage: any, password?: any): string; - static pbkdf2Encrypt(masterPassword: any, secret: any): string; - static sha256Encrypt(value: any): string; - static aesEncrypt(value: any, key?: any): string; - static aesDecrypt(value: any, key?: any): string; - static encryptFields(data: any, encryptKey?: any): void; - static decryptFields(data: any, keyList: any, encryptKey?: any): void; - static encryptPayload( - data: any, - keyList: any, - encryptKey?: any, - transmissionKey?: any - ): { - data: string; - }; + static transmissionKey: any; + static encryptKey: any; + static sha1(msg: any): string; + static hmac(msg: any, transmissionKey?: any): string; + static encrypt(message: any, password?: any): string; + static decrypt(transitMessage: any, password?: any): string; + static pbkdf2Encrypt(masterPassword: any, secret: any): string; + static sha256Encrypt(value: any): string; + static aesEncrypt(value: any, key?: any): string; + static aesDecrypt(value: any, key?: any): string; + static encryptFields(data: any, encryptKey?: any): void; + static decryptFields(data: any, keyList: any, encryptKey?: any): void; + static encryptPayload(data: any, keyList: any, encryptKey?: any, transmissionKey?: any): { + data: string; + }; } diff --git a/package.json b/package.json index 0062c41a..8c8ec65b 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dev": "yarn export:node:options && turbo run dev --parallel", "build": "yarn export:node:options && turbo run build", "export:node:options": "export NODE_OPTIONS=--openssl-legacy-provider", - "clean": "rimraf node_modules && cd core && rimraf node_modules && cd ../desktop && rimraf node_modules && cd ../crypt && rimraf node_modules" + "clean": "rimraf node_modules && cd core && rimraf node_modules && cd ../desktop && rimraf node_modules && cd ../crypto && rimraf node_modules && cd ../tools/spinner && rimraf node_modules && cd ../.." }, "author": { "name": "Secman, Inc.",