Socket
Socket
Sign inDemoInstall

web3-eth-accounts

Package Overview
Dependencies
Maintainers
4
Versions
437
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-eth-accounts - npm Package Compare versions

Comparing version 4.2.1-dev.e746566.0 to 4.2.1

11

lib/commonjs/tx/transactionFactory.js

@@ -25,12 +25,3 @@ "use strict";

const legacyTransaction_js_1 = require("./legacyTransaction.js");
let extraTxTypes;
// use the global object, to work fine even if web3-eth and web3-eth-accounts was on a different versions:
const typedGlobal = global;
if (!typedGlobal.extraTxTypes) {
extraTxTypes = new Map();
typedGlobal.extraTxTypes = extraTxTypes;
}
else {
extraTxTypes = typedGlobal.extraTxTypes;
}
const extraTxTypes = new Map();
// eslint-disable-next-line @typescript-eslint/no-extraneous-class

@@ -37,0 +28,0 @@ class TransactionFactory {

@@ -22,12 +22,3 @@ /*

import { Transaction } from './legacyTransaction.js';
let extraTxTypes;
// use the global object, to work fine even if web3-eth and web3-eth-accounts was on a different versions:
const typedGlobal = global;
if (!typedGlobal.extraTxTypes) {
extraTxTypes = new Map();
typedGlobal.extraTxTypes = extraTxTypes;
}
else {
extraTxTypes = typedGlobal.extraTxTypes;
}
const extraTxTypes = new Map();
// eslint-disable-next-line @typescript-eslint/no-extraneous-class

@@ -34,0 +25,0 @@ export class TransactionFactory {

14

package.json
{
"name": "web3-eth-accounts",
"version": "4.2.1-dev.e746566.0+e746566",
"version": "4.2.1",
"description": "Package for managing Ethereum accounts and signing",

@@ -58,3 +58,3 @@ "main": "./lib/commonjs/index.js",

"typescript": "^4.7.4",
"web3-providers-ipc": "4.0.8-dev.e746566.0+e746566"
"web3-providers-ipc": "^4.0.7"
},

@@ -65,8 +65,8 @@ "dependencies": {

"ethereum-cryptography": "^2.0.0",
"web3-errors": "1.3.1-dev.e746566.0+e746566",
"web3-types": "1.7.1-dev.e746566.0+e746566",
"web3-utils": "4.3.2-dev.e746566.0+e746566",
"web3-validator": "2.0.7-dev.e746566.0+e746566"
"web3-errors": "^1.3.0",
"web3-types": "^1.7.0",
"web3-utils": "^4.3.1",
"web3-validator": "^2.0.6"
},
"gitHead": "e746566d4e150787e48bd5ff93e40d21b3b72086"
"gitHead": "4de0bd185a6b7cb1d432a1f02501dc369d22590b"
}

@@ -34,11 +34,3 @@ /*

let extraTxTypes: Map<Numbers, typeof BaseTransaction<unknown>>;
// use the global object, to work fine even if web3-eth and web3-eth-accounts was on a different versions:
const typedGlobal = global as unknown as {extraTxTypes: Map<Numbers, typeof BaseTransaction<unknown>>}
if (!typedGlobal.extraTxTypes) {
extraTxTypes = new Map();
typedGlobal.extraTxTypes = extraTxTypes;
} else {
extraTxTypes = typedGlobal.extraTxTypes;
}
const extraTxTypes: Map<Numbers, typeof BaseTransaction<unknown>> = new Map();

@@ -149,3 +141,3 @@ // eslint-disable-next-line @typescript-eslint/no-extraneous-class

if (isUint8Array(data)) {
return this.fromSerializedData(data , txOptions);
return this.fromSerializedData(data, txOptions);
}

@@ -152,0 +144,0 @@ if (Array.isArray(data)) {

Sorry, the diff of this file is not supported yet

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