Zilliqa / zilliqa-js

JavaScript SDK for Zilliqa blockchain
https://www.npmjs.com/package/@zilliqa-js/zilliqa
GNU General Public License v3.0
131 stars 74 forks source link

fix: check global var process #429

Closed ghost closed 2 years ago

ghost commented 2 years ago

Description

This PR checks if the global variable process exists.

Motivation and Context

How has this been tested?

Screenshots (if appropriate):

Types of changes

Checklist:

codecov-commenter commented 2 years ago

Codecov Report

Merging #429 (bb99bdc) into dev (3c243fc) will increase coverage by 0.30%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #429      +/-   ##
==========================================
+ Coverage   82.12%   82.42%   +0.30%     
==========================================
  Files          43       44       +1     
  Lines        1807     1844      +37     
  Branches      332      341       +9     
==========================================
+ Hits         1484     1520      +36     
- Misses        322      323       +1     
  Partials        1        1              
Impacted Files Coverage Δ
packages/zilliqa-js-crypto/src/random.ts 96.96% <100.00%> (+2.23%) :arrow_up:
packages/zilliqa-js-crypto/src/index.ts 100.00% <0.00%> (ø)
packages/zilliqa-js-crypto/src/signature.ts 88.88% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3c243fc...bb99bdc. Read the comment docs.