New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dynamic-labs/ethereum

Package Overview
Dependencies
Maintainers
0
Versions
617
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynamic-labs/ethereum - npm Package Compare versions

Comparing version 4.7.1 to 4.7.2

2

package.js
'use client'
var version = "4.7.1";
var version = "4.7.2";
export { version };
{
"name": "@dynamic-labs/ethereum",
"version": "4.7.1",
"version": "4.7.2",
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",

@@ -26,11 +26,11 @@ "author": "Dynamic Labs, Inc.",

"buffer": "6.0.3",
"@metamask/sdk": "0.30.1",
"@dynamic-labs/assert-package-version": "4.7.1",
"@dynamic-labs/embedded-wallet-evm": "4.7.1",
"@dynamic-labs/ethereum-core": "4.7.1",
"@dynamic-labs/logger": "4.7.1",
"@dynamic-labs/types": "4.7.1",
"@dynamic-labs/utils": "4.7.1",
"@dynamic-labs/wallet-book": "4.7.1",
"@dynamic-labs/wallet-connector-core": "4.7.1"
"@metamask/sdk": "0.32.0",
"@dynamic-labs/assert-package-version": "4.7.2",
"@dynamic-labs/embedded-wallet-evm": "4.7.2",
"@dynamic-labs/ethereum-core": "4.7.2",
"@dynamic-labs/logger": "4.7.2",
"@dynamic-labs/types": "4.7.2",
"@dynamic-labs/utils": "4.7.2",
"@dynamic-labs/wallet-book": "4.7.2",
"@dynamic-labs/wallet-connector-core": "4.7.2"
},

@@ -37,0 +37,0 @@ "peerDependencies": {

@@ -200,11 +200,14 @@ 'use client'

return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c, _d, _e;
var _a, _b, _c, _d, _e, _f;
logger.debug('refreshSession was called', this.name);
if ((_b = (_a = WalletConnect.provider) === null || _a === void 0 ? void 0 : _a.session) === null || _b === void 0 ? void 0 : _b.topic) {
if (localStorage.getItem(this.sessionTopicKey) ===
if (!((_b = (_a = WalletConnect.provider) === null || _a === void 0 ? void 0 : _a.session) === null || _b === void 0 ? void 0 : _b.topic) ||
localStorage.getItem(this.sessionTopicKey) !==
((_d = (_c = WalletConnect.provider) === null || _c === void 0 ? void 0 : _c.session) === null || _d === void 0 ? void 0 : _d.topic)) {
this.session = WalletConnect.provider.session;
this.setActiveAccount(((_e = localStorage.getItem(this.activeAccountKey)) !== null && _e !== void 0 ? _e : undefined));
}
const chain = (_e = this.getMappedChainsByPreferredOrder()) === null || _e === void 0 ? void 0 : _e[0];
logger.debug('provider is not connected, skipping refreshSession, just setting the default chain', chain);
this.currentChainId = chain;
return;
}
this.session = WalletConnect.provider.session;
this.setActiveAccount(((_f = localStorage.getItem(this.activeAccountKey)) !== null && _f !== void 0 ? _f : undefined));
const walletClient = this.getWalletClient();

@@ -211,0 +214,0 @@ const walletChainId = yield walletClient.getChainId();

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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