@cityofzion/bs-neox 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/BSNeoX.js +8 -0
  2. package/package.json +2 -2
package/dist/BSNeoX.js CHANGED
@@ -28,6 +28,14 @@ const consensus_1 = require("./assets/abis/consensus");
28
28
  const key_management_1 = require("./assets/abis/key-management");
29
29
  const neox_tpke_1 = require("neox-tpke");
30
30
  const viem_1 = require("viem");
31
+ // Necessary to run on Node.js
32
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
33
+ // @ts-expect-error
34
+ if (typeof self === 'undefined') {
35
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
36
+ // @ts-expect-error
37
+ global.self = global;
38
+ }
31
39
  class BSNeoX extends bs_ethereum_1.BSEthereum {
32
40
  constructor(name, network, getLedgerTransport) {
33
41
  super(name, undefined, undefined, getLedgerTransport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neox",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",
@@ -15,8 +15,8 @@
15
15
  "ethers": "~5.7.2",
16
16
  "neox-tpke": "~1.0.5",
17
17
  "viem": "~2.38.5",
18
- "@cityofzion/blockchain-service": "1.22.6",
19
18
  "@cityofzion/bs-ethereum": "2.14.8",
19
+ "@cityofzion/blockchain-service": "1.22.6",
20
20
  "@cityofzion/bs-neo3": "1.17.7"
21
21
  },
22
22
  "devDependencies": {