web3-eth-accounts
Advanced tools
Comparing version 4.2.0 to 4.2.1-dev.0b75589.0
@@ -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 { |
{ | ||
"name": "web3-eth-accounts", | ||
"version": "4.2.0", | ||
"version": "4.2.1-dev.0b75589.0+0b75589", | ||
"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.7" | ||
"web3-providers-ipc": "4.0.8-dev.0b75589.0+0b75589" | ||
}, | ||
@@ -65,8 +65,8 @@ "dependencies": { | ||
"ethereum-cryptography": "^2.0.0", | ||
"web3-errors": "^1.3.0", | ||
"web3-types": "^1.7.0", | ||
"web3-utils": "^4.3.1", | ||
"web3-validator": "^2.0.6" | ||
"web3-errors": "1.3.1-dev.0b75589.0+0b75589", | ||
"web3-types": "1.7.1-dev.0b75589.0+0b75589", | ||
"web3-utils": "4.3.2-dev.0b75589.0+0b75589", | ||
"web3-validator": "2.0.7-dev.0b75589.0+0b75589" | ||
}, | ||
"gitHead": "4ce72be200d92ca6b2247c52c09f1e456723c0a3" | ||
"gitHead": "0b7558969cecfd7600be9a336ac7f157b6cf6c76" | ||
} |
@@ -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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1356498
29257
2
1
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedeventemitter3@5.0.1(transitive)
- Removedfor-each@0.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arguments@1.1.1(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-generator-function@1.0.10(transitive)
- Removedis-typed-array@1.1.13(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedutil@0.12.5(transitive)
- Removedweb3-errors@1.3.0(transitive)
- Removedweb3-types@1.7.0(transitive)
- Removedweb3-utils@4.3.1(transitive)
- Removedweb3-validator@2.0.6(transitive)
- Removedwhich-typed-array@1.1.15(transitive)
- Removedzod@3.23.8(transitive)