From e61a61704648471723c142a53c596e4ab884e5ac Mon Sep 17 00:00:00 2001 From: eum602 Date: Wed, 31 May 2023 22:48:25 -0500 Subject: [PATCH] chore: update Logger identifier, update identity package --- package.json | 4 ++-- src/config/index.ts | 3 ++- src/index.ts | 2 +- yarn.lock | 18 +++++++++--------- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 14ba870..6906120 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lacpass-chain-of-trust", - "version": "0.0.4", + "version": "0.0.7", "description": "Rest api for laccpass Chain Of Trust built on top of Lacchain", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", @@ -83,7 +83,7 @@ "express-rate-limit": "^6.3.0", "helmet": "^5.0.2", "jsonwebtoken": "^9.0.0", - "lacpass-identity": "^0.0.16", + "lacpass-identity": "^0.0.20", "morgan": "^1.10.0", "multer": "^1.4.4", "nodemailer": "^6.7.3", diff --git a/src/config/index.ts b/src/config/index.ts index a6a33f5..8c87826 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -1,3 +1,4 @@ +import { randomUUID } from 'crypto'; import { config } from 'dotenv'; import { LogLevel } from 'typescript-logging'; import { Log4TSProvider } from 'typescript-logging-log4ts-style'; @@ -5,7 +6,7 @@ import { Log4TSProvider } from 'typescript-logging-log4ts-style'; config({ path: `.env.${process.env.ENV || 'dev'}` }); export const log4TSProvider = Log4TSProvider.createProvider( - 'Log4ProviderChainOfTrust', + 'Log4ProviderChainOfTrust' + randomUUID(), { level: LogLevel.Debug, groups: [ diff --git a/src/index.ts b/src/index.ts index 60a94ce..581ac46 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ export * from './interfaces/manager/manager'; -export { INewAccountIdAttribute } from 'lacpass-identity'; +export { INewAccountIdAttribute, DidEntity } from 'lacpass-identity'; export { ManagerService } from './services/manager'; export { ErrorsMessages } from './constants/errorMessages'; export * from './dto/lac1/managerDTO'; diff --git a/yarn.lock b/yarn.lock index 22ca2a0..c9cc18d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5217,10 +5217,10 @@ koa@^2.8.2: type-is "^1.6.16" vary "^1.1.2" -lacpass-identity@^0.0.16: - version "0.0.16" - resolved "https://registry.yarnpkg.com/lacpass-identity/-/lacpass-identity-0.0.16.tgz#87f3c67b5b707875aa5161c2cde994585298d090" - integrity sha512-l0b2rRksM0uWS4uei1fOmSQ+q3yhIr52NO3Sy1gQY2N5B5VFv1RT0agJLhggsVx1IMhBbx2K8GJm4/415tBbLw== +lacpass-identity@^0.0.20: + version "0.0.20" + resolved "https://registry.yarnpkg.com/lacpass-identity/-/lacpass-identity-0.0.20.tgz#b463f8cc11b9b285e3116ec4481b22933cc8c453" + integrity sha512-jsI2Yf2pxpQzZ4Tt519Si2gOhldAZUBgrvw0qgErBskDwEScctVblF6KCPbxS2SnvTcHfk+kW13GyeTwJZpyuw== dependencies: "@lacchain/gas-model-provider" "^1.0.1" aws-sdk "^2.1116.0" @@ -5239,7 +5239,7 @@ lacpass-identity@^0.0.16: express-rate-limit "^6.3.0" helmet "^5.0.2" jsonwebtoken "^9.0.0" - lacpass-key-manager "^0.0.15" + lacpass-key-manager "^0.0.17" morgan "^1.10.0" multer "^1.4.4" nodemailer "^6.7.3" @@ -5259,10 +5259,10 @@ lacpass-identity@^0.0.16: typescript-logging "^2.1.0" typescript-logging-log4ts-style "^2.1.0" -lacpass-key-manager@^0.0.15: - version "0.0.15" - resolved "https://registry.yarnpkg.com/lacpass-key-manager/-/lacpass-key-manager-0.0.15.tgz#f227f6dc564716c7aede62043d7ea41e83300e00" - integrity sha512-f3FbSbHZEKaw/TSVWYhROCe1thEttljgUqLLOxIMddq/useJQV/UO9P8mjfta0+ALpVHHWJAwnC6IJ8yO7KaLg== +lacpass-key-manager@^0.0.17: + version "0.0.17" + resolved "https://registry.yarnpkg.com/lacpass-key-manager/-/lacpass-key-manager-0.0.17.tgz#3e8ddc87e4a2766467c53f6f22d06975c1723030" + integrity sha512-D36Lau2UKK0LwDQSrE6xQM4JMiI5/tS+Z6fmFBFUiYg4/hrtPWL6ii50S6IM/lVcm5UcEhwzMxwoI/QHHUs2Pw== dependencies: "@lacchain/gas-model-provider" "^1.0.1" aws-sdk "^2.1116.0"