Socket
Socket
Sign inDemoInstall

@0xsequence/auth

Package Overview
Dependencies
Maintainers
4
Versions
494
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/auth - npm Package Compare versions

Comparing version 0.10.8 to 0.10.9

12

CHANGELOG.md
# @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 @@

9

dist/0xsequence-auth.cjs.dev.js

@@ -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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc