Skip to content

Commit

Permalink
chore: update identity package version -> 0.0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
eum602 committed Aug 7, 2023
1 parent 30a0e7f commit c8794da
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lacpass-chain-of-trust",
"version": "0.0.11",
"version": "0.0.12",
"description": "Rest api for laccpass Chain Of Trust built on top of Lacchain",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down Expand Up @@ -85,7 +85,7 @@
"express-rate-limit": "^6.3.0",
"helmet": "^5.0.2",
"jsonwebtoken": "^9.0.0",
"lacpass-identity": "^0.0.26",
"lacpass-identity": "^0.0.27",
"morgan": "^1.10.0",
"multer": "^1.4.4",
"nodemailer": "^6.7.3",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './interfaces/manager/manager';
export { INewAccountIdAttribute, DidEntity } from 'lacpass-identity';
export { INewAttribute, DidEntity } from 'lacpass-identity';
export { ManagerService } from './services/manager';
export { ErrorsMessages } from './constants/errorMessages';
export * from './dto/lac1/managerDTO';
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/key/key.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export interface ISecp256k1 {
id: string;
keyId: string;
address: string;
publicKey: string;
}
8 changes: 4 additions & 4 deletions src/services/external/did-lac/did.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ErrorsMessages } from '../../../constants/errorMessages';
import {
DidLacService,
DidType,
INewAccountIdAttribute,
INewAttribute,
INewDelegateResponse
} from 'lacpass-identity';
import { InternalServerError } from 'routing-controllers';
Expand All @@ -20,7 +20,7 @@ import fetch from 'node-fetch';
export class DidServiceLac1 {
public createDid: () => Promise<DidType>;
public addNewEthereumAccountIdAttribute: (
newAccountIdAttribute: INewAccountIdAttribute
newAccountIdAttribute: INewAttribute
) => Promise<INewDelegateResponse>;
log = log4TSProvider.getLogger('IdentityManagerService');

Expand Down Expand Up @@ -68,15 +68,15 @@ export class DidServiceLac1 {
}

private async addNewEthereumAccountIdAttributeByLib(
newAccountIdAttribute: INewAccountIdAttribute
newAccountIdAttribute: INewAttribute
): Promise<INewDelegateResponse> {
return (await this.didService?.addNewEthereumAccountIdAttribute(
newAccountIdAttribute
)) as INewDelegateResponse;
}

private async addNewEthereumAccountIdAttributeByExternalService(
newAccountIdAttribute: INewAccountIdAttribute
newAccountIdAttribute: INewAttribute
): Promise<INewDelegateResponse> {
const result = await fetch(
`${IDENTITY_MANAGER_BASE_URL}${DID_LAC1_ADD_NEW_ETHEREUM_ACCOUNT_ATTRIBUTE}`,
Expand Down
4 changes: 2 additions & 2 deletions src/services/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from 'src/interfaces/manager/manager';
import { Service } from 'typedi';
import { DidServiceLac1 } from './external/did-lac/did.service';
import { INewAccountIdAttribute } from 'lacpass-identity';
import { INewAttribute } from 'lacpass-identity';
import { getRepository } from 'typeorm';
import { Manager } from '../entities/manager.entity';
import { BadRequestError, NotFoundError } from 'routing-controllers';
Expand Down Expand Up @@ -55,7 +55,7 @@ export class ManagerService implements IManagerService {
}

async addManagerAsAttribute(managerRequest: INewManager): Promise<IManager> {
const newAccountIdAttribute: INewAccountIdAttribute = {
const newAccountIdAttribute: INewAttribute = {
did: managerRequest.did,
validDays: managerRequest.validDays,
relation: 'dele'
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5598,10 +5598,10 @@ koa@^2.8.2:
type-is "^1.6.16"
vary "^1.1.2"

lacpass-identity@^0.0.26:
version "0.0.26"
resolved "https://registry.yarnpkg.com/lacpass-identity/-/lacpass-identity-0.0.26.tgz#2e068482a85d93c4480aca6e3e414cdf0a38a2c1"
integrity sha512-Bj4zL/+DTf9YQzmZpRJb3d49dfjmGwq/ob7dYZyNC0R+GoudxoTO95eCZ6OMRXoZqJ97VuadLMaZ+wOZDrjOog==
lacpass-identity@^0.0.27:
version "0.0.27"
resolved "https://registry.yarnpkg.com/lacpass-identity/-/lacpass-identity-0.0.27.tgz#6fc87af8173f98897bd04a8058d9f9f8a69daabb"
integrity sha512-K6WyWRLB5qR2KIluI3tpQOwXQ50px46aku35z/HDsBAiIYQKaCozagXvxRazGzeoR9bY9V84r1Ia/q6T3MscqA==
dependencies:
"@lacchain/gas-model-provider" "^1.0.1"
aws-sdk "^2.1116.0"
Expand All @@ -5620,7 +5620,7 @@ lacpass-identity@^0.0.26:
helmet "^5.0.2"
json-canonicalize "^1.0.6"
jsonwebtoken "^9.0.0"
lacpass-key-manager "^0.0.17"
lacpass-key-manager "^0.0.18"
morgan "^1.10.0"
multer "^1.4.4"
nodemailer "^6.7.3"
Expand All @@ -5640,10 +5640,10 @@ lacpass-identity@^0.0.26:
typescript-logging "^2.1.0"
typescript-logging-log4ts-style "^2.1.0"

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==
lacpass-key-manager@^0.0.18:
version "0.0.18"
resolved "https://registry.yarnpkg.com/lacpass-key-manager/-/lacpass-key-manager-0.0.18.tgz#99fb3bec03e3c6d0de1066f227c38e93778eb0cc"
integrity sha512-hsvGm79XmYK05Nmh15qzRjpSGfQknlqDF8wUSGGjbm1D1MI3c/aGNOFOhJaFE/u1Wrqu1JBlKcQFYq1GnpXHTw==
dependencies:
"@lacchain/gas-model-provider" "^1.0.1"
aws-sdk "^2.1116.0"
Expand Down

0 comments on commit c8794da

Please sign in to comment.