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

@dfns/lib-ethersjs6

Package Overview
Dependencies
Maintainers
12
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfns/lib-ethersjs6 - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2-rc.1

8

index.js

@@ -9,8 +9,7 @@ "use strict";

constructor(options, provider) {
var _a, _b;
super(provider);
this.options = {
...options,
maxRetries: (_a = options.maxRetries) !== null && _a !== void 0 ? _a : 3,
retryInterval: (_b = options.retryInterval) !== null && _b !== void 0 ? _b : 1000,
maxRetries: options.maxRetries ?? 3,
retryInterval: options.retryInterval ?? 1000,
};

@@ -22,3 +21,2 @@ }

async getAddress() {
var _a, _b;
if (!this.address) {

@@ -28,3 +26,3 @@ const { walletId, dfnsClient } = this.options;

if (!res.signingKey || res.signingKey.scheme !== Wallets_1.KeyScheme.ECDSA || res.signingKey.curve !== Wallets_1.KeyCurve.secp256k1) {
throw new Error(`wallet ${walletId} has incompatible scheme (${(_a = res.signingKey) === null || _a === void 0 ? void 0 : _a.scheme}) or curve (${(_b = res.signingKey) === null || _b === void 0 ? void 0 : _b.curve})`);
throw new Error(`wallet ${walletId} has incompatible scheme (${res.signingKey?.scheme}) or curve (${res.signingKey?.curve})`);
}

@@ -31,0 +29,0 @@ if (res.address) {

{
"name": "@dfns/lib-ethersjs6",
"version": "0.1.1",
"dependencies": {
"buffer": "6.0.3",
"cross-fetch": "3.1.6",
"ethers": "6.6.1",
"uuid": "9.0.0"
},
"peerDependencies": {
"@dfns/sdk": "0.1.1"
},
"version": "0.1.2-rc.1",
"main": "./index.js",
"types": "./index.d.ts"
"type": "commonjs"
}
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