@portkey/did
Advanced tools
Comparing version 2.7.1-alpha.4 to 2.7.1
@@ -30,2 +30,3 @@ /// <reference types="node" /> | ||
}; | ||
originChainId?: ChainId; | ||
constructor({ accountProvider, storage, service, connectService, }: { | ||
@@ -32,0 +33,0 @@ accountProvider: IAccountProvider<T>; |
@@ -88,2 +88,3 @@ "use strict"; | ||
this.aaInfo = { accountInfo: { caAddress: status.caAddress, caHash: status.caHash } }; | ||
this.originChainId = chainId; | ||
} | ||
@@ -126,2 +127,3 @@ return status; | ||
this.aaInfo = { accountInfo: { caAddress: status.caAddress, caHash: status.caHash } }; | ||
this.originChainId = chainId; | ||
this.caInfo[chainId] = { caAddress: status.caAddress, caHash: status.caHash }; | ||
@@ -349,2 +351,3 @@ } | ||
aaInfo: this.aaInfo, | ||
originChainId: this.originChainId, | ||
}); | ||
@@ -364,3 +367,3 @@ const aesStr = utils_1.aes.encrypt(data, password); | ||
if (data) { | ||
const { aesPrivateKey, caInfo, accountInfo, aaInfo } = JSON.parse(data); | ||
const { aesPrivateKey, caInfo, accountInfo, aaInfo, originChainId } = JSON.parse(data); | ||
const privateKey = utils_1.aes.decrypt(aesPrivateKey, password); | ||
@@ -372,2 +375,3 @@ if (aesPrivateKey && privateKey) { | ||
this.aaInfo = aaInfo || {}; | ||
this.originChainId = originChainId; | ||
} | ||
@@ -374,0 +378,0 @@ } |
@@ -30,2 +30,3 @@ /// <reference types="node" /> | ||
}; | ||
originChainId?: ChainId; | ||
constructor({ accountProvider, storage, service, connectService, }: { | ||
@@ -32,0 +33,0 @@ accountProvider: IAccountProvider<T>; |
@@ -82,2 +82,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.aaInfo = { accountInfo: { caAddress: status.caAddress, caHash: status.caHash } }; | ||
this.originChainId = chainId; | ||
} | ||
@@ -120,2 +121,3 @@ return status; | ||
this.aaInfo = { accountInfo: { caAddress: status.caAddress, caHash: status.caHash } }; | ||
this.originChainId = chainId; | ||
this.caInfo[chainId] = { caAddress: status.caAddress, caHash: status.caHash }; | ||
@@ -343,2 +345,3 @@ } | ||
aaInfo: this.aaInfo, | ||
originChainId: this.originChainId, | ||
}); | ||
@@ -358,3 +361,3 @@ const aesStr = aes.encrypt(data, password); | ||
if (data) { | ||
const { aesPrivateKey, caInfo, accountInfo, aaInfo } = JSON.parse(data); | ||
const { aesPrivateKey, caInfo, accountInfo, aaInfo, originChainId } = JSON.parse(data); | ||
const privateKey = aes.decrypt(aesPrivateKey, password); | ||
@@ -366,2 +369,3 @@ if (aesPrivateKey && privateKey) { | ||
this.aaInfo = aaInfo || {}; | ||
this.originChainId = originChainId; | ||
} | ||
@@ -368,0 +372,0 @@ } |
@@ -30,2 +30,3 @@ /// <reference types="node" /> | ||
}; | ||
originChainId?: ChainId; | ||
constructor({ accountProvider, storage, service, connectService, }: { | ||
@@ -32,0 +33,0 @@ accountProvider: IAccountProvider<T>; |
{ | ||
"name": "@portkey/did", | ||
"version": "2.7.1-alpha.4", | ||
"version": "2.7.1", | ||
"description": "", | ||
@@ -44,9 +44,9 @@ "main": "./dist/commonjs/index.js", | ||
"dependencies": { | ||
"@portkey/accounts": "^2.7.1-alpha.4", | ||
"@portkey/contracts": "^2.7.1-alpha.4", | ||
"@portkey/graphql": "^2.7.1-alpha.4", | ||
"@portkey/request": "^2.7.1-alpha.4", | ||
"@portkey/services": "^2.7.1-alpha.4", | ||
"@portkey/types": "^2.7.1-alpha.4", | ||
"@portkey/utils": "^2.7.1-alpha.4" | ||
"@portkey/accounts": "^2.7.1", | ||
"@portkey/contracts": "^2.7.1", | ||
"@portkey/graphql": "^2.7.1", | ||
"@portkey/request": "^2.7.1", | ||
"@portkey/services": "^2.7.1", | ||
"@portkey/types": "^2.7.1", | ||
"@portkey/utils": "^2.7.1" | ||
}, | ||
@@ -60,3 +60,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "c4cceacb23f96ca1ec317068d8aa75f55d27f7c8" | ||
"gitHead": "c628a91c32e318577b722a07b0ef38238674383a" | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
118154
2144
0
Updated@portkey/accounts@^2.7.1
Updated@portkey/contracts@^2.7.1
Updated@portkey/graphql@^2.7.1
Updated@portkey/request@^2.7.1
Updated@portkey/services@^2.7.1
Updated@portkey/types@^2.7.1
Updated@portkey/utils@^2.7.1