Skip to content

Commit

Permalink
deploy: c9f2a75
Browse files Browse the repository at this point in the history
  • Loading branch information
AbigailDeng committed Aug 22, 2024
1 parent 7c316cd commit 618aebe
Show file tree
Hide file tree
Showing 27 changed files with 77 additions and 62 deletions.
16 changes: 8 additions & 8 deletions badges.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"total": {"lines":{"total":942,"covered":933,"skipped":0,"pct":99.04},"statements":{"total":983,"covered":974,"skipped":0,"pct":99.08},"functions":{"total":216,"covered":214,"skipped":0,"pct":99.07},"branches":{"total":489,"covered":477,"skipped":0,"pct":97.54},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
{"total": {"lines":{"total":947,"covered":936,"skipped":0,"pct":98.83},"statements":{"total":988,"covered":977,"skipped":0,"pct":98.88},"functions":{"total":216,"covered":214,"skipped":0,"pct":99.07},"branches":{"total":489,"covered":477,"skipped":0,"pct":97.54},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/index.js": {"lines":{"total":12,"covered":12,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":12,"covered":12,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/chain/chainMethod.js": {"lines":{"total":35,"covered":35,"skipped":0,"pct":100},"functions":{"total":10,"covered":10,"skipped":0,"pct":100},"statements":{"total":35,"covered":35,"skipped":0,"pct":100},"branches":{"total":24,"covered":24,"skipped":0,"pct":100}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/chain/index.js": {"lines":{"total":61,"covered":61,"skipped":0,"pct":100},"functions":{"total":13,"covered":13,"skipped":0,"pct":100},"statements":{"total":63,"covered":63,"skipped":0,"pct":100},"branches":{"total":28,"covered":28,"skipped":0,"pct":100}}
Expand All @@ -7,7 +7,7 @@
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/util/bloom.js": {"lines":{"total":25,"covered":25,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":26,"covered":26,"skipped":0,"pct":100},"branches":{"total":24,"covered":24,"skipped":0,"pct":100}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/util/errors.js": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/util/formatters.js": {"lines":{"total":20,"covered":20,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":20,"covered":20,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/util/httpProvider.js": {"lines":{"total":117,"covered":109,"skipped":0,"pct":93.16},"functions":{"total":25,"covered":23,"skipped":0,"pct":92},"statements":{"total":119,"covered":111,"skipped":0,"pct":93.27},"branches":{"total":69,"covered":62,"skipped":0,"pct":89.85}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/util/httpProvider.js": {"lines":{"total":122,"covered":112,"skipped":0,"pct":91.8},"functions":{"total":25,"covered":23,"skipped":0,"pct":92},"statements":{"total":124,"covered":114,"skipped":0,"pct":91.93},"branches":{"total":69,"covered":62,"skipped":0,"pct":89.85}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/util/keccak.js": {"lines":{"total":14,"covered":14,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/util/keyStore.js": {"lines":{"total":38,"covered":38,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":38,"covered":38,"skipped":0,"pct":100},"branches":{"total":20,"covered":20,"skipped":0,"pct":100}}
,"/home/runner/work/aelf-web3.js/aelf-web3.js/src/util/merkleTree.js": {"lines":{"total":49,"covered":49,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":53,"covered":53,"skipped":0,"pct":100},"branches":{"total":22,"covered":22,"skipped":0,"pct":100}}
Expand Down
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h1>All files</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">99.08% </span>
<span class="strong">98.88% </span>
<span class="quiet">Statements</span>
<span class='fraction'>974/983</span>
<span class='fraction'>977/988</span>
</div>


Expand All @@ -44,9 +44,9 @@ <h1>All files</h1>


<div class='fl pad1y space-right2'>
<span class="strong">99.04% </span>
<span class="strong">98.83% </span>
<span class="quiet">Lines</span>
<span class='fraction'>933/942</span>
<span class='fraction'>936/947</span>
</div>


Expand Down Expand Up @@ -125,17 +125,17 @@ <h1>All files</h1>

<tr>
<td class="file high" data-value="src/util"><a href="src/util/index.html">src/util</a></td>
<td data-value="98.72" class="pic high">
<td data-value="98.41" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 98%"></div><div class="cover-empty" style="width: 2%"></div></div>
</td>
<td data-value="98.72" class="pct high">98.72%</td>
<td data-value="625" class="abs high">617/625</td>
<td data-value="98.41" class="pct high">98.41%</td>
<td data-value="630" class="abs high">620/630</td>
<td data-value="97.94" class="pct high">97.94%</td>
<td data-value="341" class="abs high">334/341</td>
<td data-value="98.56" class="pct high">98.56%</td>
<td data-value="139" class="abs high">137/139</td>
<td data-value="98.65" class="pct high">98.65%</td>
<td data-value="595" class="abs high">587/595</td>
<td data-value="98.33" class="pct high">98.33%</td>
<td data-value="600" class="abs high">590/600</td>
</tr>

<tr>
Expand All @@ -161,7 +161,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/chain/chainMethod.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/chain</a
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/chain/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> src/chain</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/chain/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/chain</a
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/contract/contractMethod.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/contract
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/contract/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../../index.html">All files</a> src/contract</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/contract/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/contract
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../index.html">All files</a> src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> index.j
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/util/bloom.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/util/errors.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion src/util/formatters.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
33 changes: 24 additions & 9 deletions src/util/httpProvider.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">93.27% </span>
<span class="strong">91.93% </span>
<span class="quiet">Statements</span>
<span class='fraction'>111/119</span>
<span class='fraction'>114/124</span>
</div>


Expand All @@ -44,9 +44,9 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>


<div class='fl pad1y space-right2'>
<span class="strong">93.16% </span>
<span class="strong">91.8% </span>
<span class="quiet">Lines</span>
<span class='fraction'>109/117</span>
<span class='fraction'>112/122</span>
</div>


Expand Down Expand Up @@ -328,7 +328,12 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<a name='L263'></a><a href='#L263'>263</a>
<a name='L264'></a><a href='#L264'>264</a>
<a name='L265'></a><a href='#L265'>265</a>
<a name='L266'></a><a href='#L266'>266</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<a name='L266'></a><a href='#L266'>266</a>
<a name='L267'></a><a href='#L267'>267</a>
<a name='L268'></a><a href='#L268'>268</a>
<a name='L269'></a><a href='#L269'>269</a>
<a name='L270'></a><a href='#L270'>270</a>
<a name='L271'></a><a href='#L271'>271</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand All @@ -344,6 +349,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<span class="cline-any cline-yes">22x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">22x</span>
<span class="cline-any cline-yes">22x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand All @@ -355,15 +361,19 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<span class="cline-any cline-yes">11x</span>
<span class="cline-any cline-yes">11x</span>
<span class="cline-any cline-yes">11x</span>
<span class="cline-any cline-yes">11x</span>
<span class="cline-any cline-yes">11x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand Down Expand Up @@ -544,7 +554,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<span class="cline-any cline-yes">26x</span>
<span class="cline-any cline-yes">26x</span>
<span class="cline-any cline-yes">26x</span>
<span class="cline-any cline-yes">781x</span>
<span class="cline-any cline-yes">810x</span>
<span class="cline-any cline-yes">26x</span>
<span class="cline-any cline-yes">26x</span>
<span class="cline-any cline-yes">26x</span>
Expand Down Expand Up @@ -609,25 +619,30 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
let isFetch = false;
let NodeHeaders;
if (process.env.RUNTIME_ENV === 'browser') {
console.log(1);
// For browsers use DOM Api XMLHttpRequest
// serviceworker without window and document, only with self
// eslint-disable-next-line no-restricted-globals
const _self = typeof self === 'object' ? self : <span class="branch-1 cbranch-no" title="branch not covered" >{};</span>
const _window = typeof window === 'object' ? window : <span class="branch-1 cbranch-no" title="branch not covered" >_self;</span>
if (typeof _window.XMLHttpRequest !== 'undefined') {
console.log('1-1');
RequestLibrary = _window.XMLHttpRequest;
isFetch = false;
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (typeof _window.fetch !== 'undefined') {
console.log('1-2');
RequestLibrary = _window.fetch;
isFetch = true;
}
} else <span class="missing-if-branch" title="else path not taken" >E</span>{
<span class="cstat-no" title="statement not covered" > console.log(2);</span>
// For node use xmlhttprequest
// eslint-disable-next-line global-require
<span class="cstat-no" title="statement not covered" > RequestLibraryXMLOnly = require('xmlhttprequest').XMLHttpRequest;</span>
// eslint-disable-next-line global-require
<span class="cstat-no" title="statement not covered" > RequestLibrary = require('node-fetch').default;</span>
<span class="cstat-no" title="statement not covered" > NodeHeaders = RequestLibrary.Headers;</span>
const NodeFetch = <span class="cstat-no" title="statement not covered" >require('node-fetch');</span>
<span class="cstat-no" title="statement not covered" > RequestLibrary = NodeFetch.default;</span>
<span class="cstat-no" title="statement not covered" > NodeHeaders = NodeFetch.Headers;</span>
<span class="cstat-no" title="statement not covered" > isFetch = true;</span>
}
&nbsp;
Expand Down Expand Up @@ -865,7 +880,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/util</a>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-08-21T08:13:09.008Z
at 2024-08-22T08:20:57.024Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 618aebe

Please sign in to comment.