@0xsequence/auth
Advanced tools
Comparing version 0.10.8 to 0.10.9
# @0xsequence/auth | ||
## 0.10.9 | ||
### Patch Changes | ||
- add support for public addresses as signers in session.open | ||
- Updated dependencies [undefined] | ||
- @0xsequence/abi@0.10.9 | ||
- @0xsequence/api@0.10.9 | ||
- @0xsequence/config@0.10.9 | ||
- @0xsequence/network@0.10.9 | ||
- @0xsequence/wallet@0.10.9 | ||
## 0.10.8 | ||
@@ -4,0 +16,0 @@ |
@@ -264,5 +264,6 @@ 'use strict'; | ||
return _extends({}, s, { | ||
address: await s.signer.getAddress() | ||
address: typeof s.signer === 'string' ? s.signer : await s.signer.getAddress() | ||
}); | ||
})); | ||
const fullSigners = signers.filter(s => typeof s.signer !== 'string').map(s => s.signer); | ||
const existingWallet = (await configFinder.findLastWalletOfInitialSigner({ | ||
@@ -290,3 +291,3 @@ signer: referenceSigner, | ||
context: context | ||
}, ...signers.map(s => s.signer)); | ||
}, ...fullSigners); | ||
const session = new Session(config$1, context, account, metadata); // Fire JWT requests before opening session. The server-side will have to | ||
@@ -308,3 +309,3 @@ // be smart enough to try a few times if it fails on the first block, as in | ||
context: context | ||
}, ...signers.map(s => s.signer))); // Fire JWT requests again, but with new config | ||
}, ...fullSigners)); // Fire JWT requests again, but with new config | ||
// MAYBE This is not neccesary, we can rely on the first request? | ||
@@ -323,3 +324,3 @@ // TODO: lets remove this one we no longer depend on session | ||
context: context | ||
}, ...signers.map(s => s.signer)); | ||
}, ...fullSigners); | ||
await account.publishConfig(noIndex ? false : true); | ||
@@ -326,0 +327,0 @@ const session = new Session(config$1, context, account, metadata); |
@@ -264,5 +264,6 @@ 'use strict'; | ||
return _extends({}, s, { | ||
address: await s.signer.getAddress() | ||
address: typeof s.signer === 'string' ? s.signer : await s.signer.getAddress() | ||
}); | ||
})); | ||
const fullSigners = signers.filter(s => typeof s.signer !== 'string').map(s => s.signer); | ||
const existingWallet = (await configFinder.findLastWalletOfInitialSigner({ | ||
@@ -290,3 +291,3 @@ signer: referenceSigner, | ||
context: context | ||
}, ...signers.map(s => s.signer)); | ||
}, ...fullSigners); | ||
const session = new Session(config$1, context, account, metadata); // Fire JWT requests before opening session. The server-side will have to | ||
@@ -308,3 +309,3 @@ // be smart enough to try a few times if it fails on the first block, as in | ||
context: context | ||
}, ...signers.map(s => s.signer))); // Fire JWT requests again, but with new config | ||
}, ...fullSigners)); // Fire JWT requests again, but with new config | ||
// MAYBE This is not neccesary, we can rely on the first request? | ||
@@ -323,3 +324,3 @@ // TODO: lets remove this one we no longer depend on session | ||
context: context | ||
}, ...signers.map(s => s.signer)); | ||
}, ...fullSigners); | ||
await account.publishConfig(noIndex ? false : true); | ||
@@ -326,0 +327,0 @@ const session = new Session(config$1, context, account, metadata); |
@@ -260,5 +260,6 @@ import { ethers } from 'ethers'; | ||
return _extends({}, s, { | ||
address: await s.signer.getAddress() | ||
address: typeof s.signer === 'string' ? s.signer : await s.signer.getAddress() | ||
}); | ||
})); | ||
const fullSigners = signers.filter(s => typeof s.signer !== 'string').map(s => s.signer); | ||
const existingWallet = (await configFinder.findLastWalletOfInitialSigner({ | ||
@@ -286,3 +287,3 @@ signer: referenceSigner, | ||
context: context | ||
}, ...signers.map(s => s.signer)); | ||
}, ...fullSigners); | ||
const session = new Session(config, context, account, metadata); // Fire JWT requests before opening session. The server-side will have to | ||
@@ -304,3 +305,3 @@ // be smart enough to try a few times if it fails on the first block, as in | ||
context: context | ||
}, ...signers.map(s => s.signer))); // Fire JWT requests again, but with new config | ||
}, ...fullSigners)); // Fire JWT requests again, but with new config | ||
// MAYBE This is not neccesary, we can rely on the first request? | ||
@@ -319,3 +320,3 @@ // TODO: lets remove this one we no longer depend on session | ||
context: context | ||
}, ...signers.map(s => s.signer)); | ||
}, ...fullSigners); | ||
await account.publishConfig(noIndex ? false : true); | ||
@@ -322,0 +323,0 @@ const session = new Session(config, context, account, metadata); |
@@ -54,3 +54,3 @@ import { WalletConfig } from "@0xsequence/config"; | ||
signers: { | ||
signer: AbstractSigner; | ||
signer: AbstractSigner | string; | ||
weight: ethers.BigNumberish; | ||
@@ -57,0 +57,0 @@ }[]; |
{ | ||
"name": "@0xsequence/auth", | ||
"version": "0.10.8", | ||
"version": "0.10.9", | ||
"description": "auth sub-package for Sequence", | ||
@@ -20,7 +20,7 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/auth", | ||
"dependencies": { | ||
"@0xsequence/abi": "^0.10.8", | ||
"@0xsequence/api": "^0.10.8", | ||
"@0xsequence/config": "^0.10.8", | ||
"@0xsequence/network": "^0.10.8", | ||
"@0xsequence/wallet": "^0.10.8", | ||
"@0xsequence/abi": "^0.10.9", | ||
"@0xsequence/api": "^0.10.9", | ||
"@0xsequence/config": "^0.10.9", | ||
"@0xsequence/network": "^0.10.9", | ||
"@0xsequence/wallet": "^0.10.9", | ||
"@0xsequence/ethauth": "^0.4.3", | ||
@@ -27,0 +27,0 @@ "ethers": "^5.0.32" |
@@ -203,3 +203,3 @@ import { editConfig, genConfig, SequenceUtilsFinder, WalletConfig } from "@0xsequence/config" | ||
referenceSigner: string, | ||
signers: { signer: AbstractSigner, weight: ethers.BigNumberish }[], | ||
signers: { signer: AbstractSigner | string, weight: ethers.BigNumberish }[], | ||
thershold: ethers.BigNumberish, | ||
@@ -229,3 +229,7 @@ metadata: SessionMeta, | ||
const solvedSigners = Promise.all(signers.map(async (s) => ({ ...s, address: await s.signer.getAddress() }))) | ||
const solvedSigners = Promise.all( | ||
signers.map(async s => ({ ...s, address: typeof(s.signer) === 'string' ? s.signer : await s.signer.getAddress() })) | ||
) | ||
const fullSigners = signers.filter(s => typeof(s.signer) !== 'string').map(s => s.signer) | ||
@@ -257,3 +261,3 @@ const existingWallet = (await configFinder.findLastWalletOfInitialSigner({ | ||
context: context | ||
}, ...signers.map((s) => s.signer)) | ||
}, ...fullSigners) | ||
@@ -286,3 +290,3 @@ const session = new Session( | ||
context: context | ||
}, ...signers.map((s) => s.signer))) | ||
}, ...fullSigners)) | ||
@@ -305,3 +309,3 @@ // Fire JWT requests again, but with new config | ||
context: context | ||
}, ...signers.map((s) => s.signer)) | ||
}, ...fullSigners) | ||
@@ -308,0 +312,0 @@ await account.publishConfig(noIndex ? false : true) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55075
1267
1
Updated@0xsequence/abi@^0.10.9
Updated@0xsequence/api@^0.10.9
Updated@0xsequence/config@^0.10.9
Updated@0xsequence/network@^0.10.9
Updated@0xsequence/wallet@^0.10.9