new deploy: 2023-09-19T16:27:39+00:00
This commit is contained in:
parent
03c2b00008
commit
861fcfd2f0
8 changed files with 335 additions and 249 deletions
|
@ -1 +1 @@
|
|||
window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA61Yy47aMBT9F3ebZrh58diNKlWdRbtATDcIjSIwQzQkQbHTF+Lfex1CbIOdhIjNaGzOI77n2jgcSZH/ZmS2PJKPJNuQGXgTh2RxSsmMbOg2LvecOKQs9jhe72PGKHuq590dT/f4YT2NAHJyLjoheI3OOs8YL8o1z4tWrU86UNF1yCEuaMaVh5JWMPKCxkuot3qcAcO0GS2qf9sNJGqQC88/aNZucYH01fdGgUyVUb4Q/OeS79ptrpCD3N57u70/2O0bjTe0o+GM+L7OURj6UWP99sb/Hjpa49bOvZ36DG6j1fooBq5hytZmApEXyb+YJ3lHu9332O618gMWcamIPfZX1iPrGjS0tX7kPNkm62pdrNPsGj3YtUxfswLLcKe9jfaI1S92QvmuEjSUQf7I4XPkL5Ku4/cKOchti1PfESkq9pK9MFZ2mJoJg7zTuPhQ6zbvLLSF8TD3r3kxp4f8/oeQxKE916P0Cmqoy5c8TRHL8Hn7GRoIHd4rh6A1/UNmR/KLFkycjDPiub47Rfw2ofuNuIWRy8XhbEBW9Wc/qbgTCcQZ8jQiznLkeJHrT2G1cpYXRvVBNVHBAEdggoEG83DkmWCeBvNx5JtgvgYLcBSYYIEGC3EUmmChBotwFJlgkQYb42hsgo012ARHExNsosEwlOXUBJvq5RXVBmMOcBVElYQ5Cj0LEDUHYxqgxwGi7GAMBPREQFQejJmAHgqI4oMxFtBzAVF/MCYDejQgIgBjOKCnAyIFMOYDekAgggBjRHDOqNpxuNU43bycdx7uncvF6kje6u3YHARHMsE/p5PcfGIkhGP9PiO5U8mdWrjaG41kgmSChdm8fEnWSLJGFpb4IkrrL6IkS86Hk+IbKsahRQMPuHqKbXHdNxrKssG2btS4JSq1BluxkZjpFxZFQC2brW5XAry+digqvqLit6iUaVldoOzP4ylKnl2pel2Lq9caSY4kN+pB3dVvJ1JgLAXGdoGS6SxQmghsXSTuUGLlvLpDKeRAIQcWsrgJqCW7qb+ycrAt3SSCzVhU1wlFSykC2KrALAkoe8G2FeoXbclRCmBbf/UDg2QoPWJrEfmLgaQpTWrsUTzeDsmB7pMMMcvV6fQfqoEpUMoRAAA=";
|
||||
window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA61YTW/iMBD9L95rljKGhI/bqtJqe9g9VO1eEKoiMCUqSVCc7Bfiv+84hNiGcRIiLlVt3psZz5txJjmwLP0t2XxxYB9RsmZz4FOPJWEs2JytxSYsdjnzWJHtcL3ahVIK+VDtD7Z5vMMfq20EsKN3tuMDr+2s0kTmWbHK06zR1icbaNj12D7MRJIbQWlXMOTj2pey3ujjBOhnW4qs/LfZgUb18pKnHyJpdnGG9LK/SjPZJkOJ6GqdD8e6ZqTIX1R0X4p82+zlAtnL23tnb+939vZNhGvRUs4kvqvnwPdHQe367S3/u28pvGt3g+utzzCobTWGQnCJLVeRKUSaRf/CPEpbivm2sAeXlu9wiHNG3LK/tt0qNaZvYb3KDtVUgfo25mNr52tQ33P8SPNoE61KdVqcEejeXov4NclQzBvdu2j3OP3LVlm+KQU1pZd/5OTPyH+J2h5RF8he3ja49R2RKmNPyZOURYtTmtDLdxxmH2benlsT7WDczfvXNHsW+/T2IDSxb811SL2B6uvlMY1jxEqMt5tDgtDie+kxdC3+sPmB/RKZVPf7nPHBaDBD/CYSu7WaVNl5uDo5YMvqt59CzY0KcYI8DJm3GHp8MpjwYLn0FmdG+UO5UcIAV0DBwIJxXHEKxi3YCFcjCjayYGNcjSnY2IL5uPIpmG/BAlwFFCywYBNcTSjYxIJNcTWlYFMLhqIsZhRsZqdXZRtIHeBCiFIJWgpbC1A5B1INsOUAlXYgBQFbEVCZB1ITsEUBlXwgZQFbF1D5B1IZsKUBJQGQ4oCtDigVgNQHbIFACQGkRGBrxJUQnNSI2xpxJQQnNeIX/VI2DN0xJ43KfsdGz8X66dT32Lnn4fTA3qrLYHa+hg5shn+OR936aqUMh/ZMqLlYdzUZq41mW2+dBtegOplqVtIUX1N8B6V+p9YsI0ZXiOrZGVfPziiJTvepEerUiHXqsIF3crUlN5isSxucaxsokNPGNdFIFHdlComJPWMZ0Y+N6MfdDOTVpGRYCQwrQYOVIi7Kmc8djyEjuHRES+VbeFi+T2ryRHMnHajb6rVQGzCkbFCy/IphhGwWa4MGhbSdgSE6uERX06JKWF5OiwbZOCu4DqtmHjPTV7IZ7Q2u/qaMYA1n5eBkVKLRSdzVSlK1gd22+HzQMYzcPFJwo+xcVVd9rtEco+Bd9X4hsNmcLkb93UnTjIOR58IreB/txS5KELNYHo//ATdIPpoQFAAA";
|
|
@ -32,7 +32,8 @@
|
|||
</div></section>
|
||||
<section class="tsd-index-section">
|
||||
<h3 class="tsd-index-heading">Properties</h3>
|
||||
<div class="tsd-index-list"><a href="default.html#token" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>token?</span></a>
|
||||
<div class="tsd-index-list"><a href="default.html#cors" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>cors</span></a>
|
||||
<a href="default.html#token" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>token?</span></a>
|
||||
<a href="default.html#url" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>url</span></a>
|
||||
<a href="default.html#username" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>username</span></a>
|
||||
</div></section>
|
||||
|
@ -46,10 +47,12 @@
|
|||
<a href="default.html#getNumUnreadNotifications" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Num<wbr/>Unread<wbr/>Notifications</span></a>
|
||||
<a href="default.html#getTokenAuth" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Token<wbr/>Auth</span></a>
|
||||
<a href="default.html#getTokenAuthHeader" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Token<wbr/>Auth<wbr/>Header</span></a>
|
||||
<a href="default.html#getUrl" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Url</span></a>
|
||||
<a href="default.html#getUser" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>User</span></a>
|
||||
<a href="default.html#lastReadTime" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>last<wbr/>Read<wbr/>Time</span></a>
|
||||
<a href="default.html#markNotificationRead" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>mark<wbr/>Notification<wbr/>Read</span></a>
|
||||
<a href="default.html#markNotificationReadForRepo" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>mark<wbr/>Notification<wbr/>Read<wbr/>For<wbr/>Repo</span></a>
|
||||
<a href="default.html#setCors" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>set<wbr/>Cors</span></a>
|
||||
<a href="default.html#setTokenAuth" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>set<wbr/>Token<wbr/>Auth</span></a>
|
||||
</div></section></div></details></section></section>
|
||||
<section class="tsd-panel-group tsd-member-group">
|
||||
|
@ -72,9 +75,14 @@
|
|||
<h4 class="tsd-returns-title">Returns <a href="default.html" class="tsd-signature-type tsd-kind-class">default</a></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:21</li></ul></aside></li></ul></section></section>
|
||||
<li>Defined in index.ts:22</li></ul></aside></li></ul></section></section>
|
||||
<section class="tsd-panel-group tsd-member-group">
|
||||
<h2>Properties</h2>
|
||||
<section class="tsd-panel tsd-member"><a id="cors" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>cors</span><a href="#cors" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<div class="tsd-signature"><span class="tsd-kind-property">cors</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:16</li></ul></aside></section>
|
||||
<section class="tsd-panel tsd-member"><a id="token" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>token</span><a href="#token" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<div class="tsd-signature"><span class="tsd-kind-property">token</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type ">Auth</span></div><aside class="tsd-sources">
|
||||
|
@ -107,7 +115,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:120</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:134</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getCommentsForIssue" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>Comments<wbr/>For<wbr/>Issue</span><a href="#getCommentsForIssue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -123,7 +131,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Issue</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:213</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:227</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getIssue" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>Issue</span><a href="#getIssue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -152,7 +160,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Issue</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:182</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:196</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getNotificationThread" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>Notification<wbr/>Thread</span><a href="#getNotificationThread" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -171,7 +179,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Notification</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:100</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:114</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getNotifications" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>Notifications</span><a href="#getNotifications" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -182,7 +190,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">Notification</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:69</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:84</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getNumUnreadNotifications" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>Num<wbr/>Unread<wbr/>Notifications</span><a href="#getNumUnreadNotifications" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -193,7 +201,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:84</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:98</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getTokenAuth" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>Token<wbr/>Auth</span><a href="#getTokenAuth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -204,7 +212,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Auth</span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:38</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:40</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getTokenAuthHeader" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>Token<wbr/>Auth<wbr/>Header</span><a href="#getTokenAuthHeader" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -218,7 +226,15 @@
|
|||
<h5><span class="tsd-kind-property">Authorization</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:49</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:51</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getUrl" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>Url</span><a href="#getUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
<li class="tsd-signature tsd-anchor-link" id="getUrl.getUrl-1"><span class="tsd-kind-call-signature">get<wbr/>Url</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">URL</span><a href="#getUrl.getUrl-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
||||
<li class="tsd-description">
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">URL</span></h4><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:55</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="getUser" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>get<wbr/>User</span><a href="#getUser" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -229,7 +245,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type ">User</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:56</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:67</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="lastReadTime" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>last<wbr/>Read<wbr/>Time</span><a href="#lastReadTime" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -245,7 +261,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Date</span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:113</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:127</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="markNotificationRead" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>mark<wbr/>Notification<wbr/>Read</span><a href="#markNotificationRead" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -264,7 +280,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:161</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:175</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="markNotificationReadForRepo" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>mark<wbr/>Notification<wbr/>Read<wbr/>For<wbr/>Repo</span><a href="#markNotificationReadForRepo" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -288,7 +304,15 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:171</li></ul></aside></li></ul></section>
|
||||
<li>Defined in index.ts:185</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="setCors" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>set<wbr/>Cors</span><a href="#setCors" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
<li class="tsd-signature tsd-anchor-link" id="setCors.setCors-1"><span class="tsd-kind-call-signature">set<wbr/>Cors</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setCors.setCors-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
||||
<li class="tsd-description">
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:77</li></ul></aside></li></ul></section>
|
||||
<section class="tsd-panel tsd-member"><a id="setTokenAuth" class="tsd-anchor"></a>
|
||||
<h3 class="tsd-anchor-link"><span>set<wbr/>Token<wbr/>Auth</span><a href="#setTokenAuth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures">
|
||||
|
@ -307,7 +331,7 @@
|
|||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">></span></h4>
|
||||
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in index.ts:29</li></ul></aside></li></ul></section></section></div>
|
||||
<li>Defined in index.ts:31</li></ul></aside></li></ul></section></section></div>
|
||||
<div class="col-sidebar">
|
||||
<div class="page-menu">
|
||||
<div class="tsd-navigation settings">
|
||||
|
@ -328,6 +352,7 @@
|
|||
<div class="tsd-accordion-details">
|
||||
<ul>
|
||||
<li><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-512"></use></svg><span>constructor</span></a></li>
|
||||
<li><a href="#cors" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>cors</span></a></li>
|
||||
<li><a href="#token" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>token</span></a></li>
|
||||
<li><a href="#url" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>url</span></a></li>
|
||||
<li><a href="#username" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>username</span></a></li>
|
||||
|
@ -339,10 +364,12 @@
|
|||
<li><a href="#getNumUnreadNotifications" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Num<wbr/>Unread<wbr/>Notifications</span></a></li>
|
||||
<li><a href="#getTokenAuth" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Token<wbr/>Auth</span></a></li>
|
||||
<li><a href="#getTokenAuthHeader" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Token<wbr/>Auth<wbr/>Header</span></a></li>
|
||||
<li><a href="#getUrl" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Url</span></a></li>
|
||||
<li><a href="#getUser" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>User</span></a></li>
|
||||
<li><a href="#lastReadTime" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>last<wbr/>Read<wbr/>Time</span></a></li>
|
||||
<li><a href="#markNotificationRead" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>mark<wbr/>Notification<wbr/>Read</span></a></li>
|
||||
<li><a href="#markNotificationReadForRepo" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>mark<wbr/>Notification<wbr/>Read<wbr/>For<wbr/>Repo</span></a></li>
|
||||
<li><a href="#setCors" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>set<wbr/>Cors</span></a></li>
|
||||
<li><a href="#setTokenAuth" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>set<wbr/>Token<wbr/>Auth</span></a></li></ul></div></details></div>
|
||||
<div class="site-menu">
|
||||
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg><span>forgejo-notifications-core</span></a>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<coverage generated="1695082449641" clover="3.2.0">
|
||||
<project timestamp="1695082449641" name="All files">
|
||||
<metrics statements="78" coveredstatements="67" conditionals="15" coveredconditionals="10" methods="20" coveredmethods="18" elements="113" coveredelements="95" complexity="0" loc="78" ncloc="78" packages="1" files="2" classes="2"/>
|
||||
<coverage generated="1695140853600" clover="3.2.0">
|
||||
<project timestamp="1695140853600" name="All files">
|
||||
<metrics statements="84" coveredstatements="69" conditionals="16" coveredconditionals="10" methods="22" coveredmethods="19" elements="122" coveredelements="98" complexity="0" loc="84" ncloc="84" packages="1" files="2" classes="2"/>
|
||||
<file name="auth.ts" path="/woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/src/auth.ts">
|
||||
<metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
|
||||
<line num="8" count="1" type="stmt"/>
|
||||
|
@ -9,82 +9,88 @@
|
|||
<line num="16" count="1" type="stmt"/>
|
||||
</file>
|
||||
<file name="index.ts" path="/woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/src/index.ts">
|
||||
<metrics statements="75" coveredstatements="64" conditionals="15" coveredconditionals="10" methods="18" coveredmethods="16"/>
|
||||
<metrics statements="81" coveredstatements="66" conditionals="16" coveredconditionals="10" methods="20" coveredmethods="17"/>
|
||||
<line num="5" count="1" type="stmt"/>
|
||||
<line num="22" count="1" type="stmt"/>
|
||||
<line num="30" count="1" type="stmt"/>
|
||||
<line num="31" count="1" type="stmt"/>
|
||||
<line num="23" count="1" type="stmt"/>
|
||||
<line num="24" count="1" type="stmt"/>
|
||||
<line num="32" count="1" type="stmt"/>
|
||||
<line num="39" count="22" type="cond" truecount="1" falsecount="1"/>
|
||||
<line num="40" count="22" type="stmt"/>
|
||||
<line num="42" count="0" type="stmt"/>
|
||||
<line num="50" count="21" type="stmt"/>
|
||||
<line num="57" count="2" type="stmt"/>
|
||||
<line num="58" count="2" type="stmt"/>
|
||||
<line num="63" count="2" type="stmt"/>
|
||||
<line num="70" count="3" type="stmt"/>
|
||||
<line num="71" count="3" type="stmt"/>
|
||||
<line num="72" count="3" type="stmt"/>
|
||||
<line num="73" count="3" type="stmt"/>
|
||||
<line num="79" count="3" type="stmt"/>
|
||||
<line num="85" count="1" type="stmt"/>
|
||||
<line num="86" count="1" type="stmt"/>
|
||||
<line num="92" count="1" type="stmt"/>
|
||||
<line num="93" count="1" type="stmt"/>
|
||||
<line num="101" count="1" type="stmt"/>
|
||||
<line num="102" count="1" type="stmt"/>
|
||||
<line num="33" count="1" type="stmt"/>
|
||||
<line num="34" count="1" type="stmt"/>
|
||||
<line num="41" count="22" type="cond" truecount="1" falsecount="1"/>
|
||||
<line num="42" count="22" type="stmt"/>
|
||||
<line num="44" count="0" type="stmt"/>
|
||||
<line num="52" count="21" type="stmt"/>
|
||||
<line num="56" count="20" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="57" count="0" type="stmt"/>
|
||||
<line num="58" count="0" type="stmt"/>
|
||||
<line num="59" count="0" type="stmt"/>
|
||||
<line num="61" count="20" type="stmt"/>
|
||||
<line num="68" count="2" type="stmt"/>
|
||||
<line num="69" count="2" type="stmt"/>
|
||||
<line num="74" count="2" type="stmt"/>
|
||||
<line num="78" count="0" type="stmt"/>
|
||||
<line num="85" count="3" type="stmt"/>
|
||||
<line num="86" count="3" type="stmt"/>
|
||||
<line num="87" count="3" type="stmt"/>
|
||||
<line num="93" count="3" type="stmt"/>
|
||||
<line num="99" count="1" type="stmt"/>
|
||||
<line num="100" count="1" type="stmt"/>
|
||||
<line num="106" count="1" type="stmt"/>
|
||||
<line num="107" count="1" type="stmt"/>
|
||||
<line num="114" count="5" type="stmt"/>
|
||||
<line num="121" count="5" type="stmt"/>
|
||||
<line num="123" count="5" type="stmt"/>
|
||||
<line num="124" count="12" type="stmt"/>
|
||||
<line num="127" count="5" type="stmt"/>
|
||||
<line num="129" count="5" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="130" count="5" type="stmt"/>
|
||||
<line num="131" count="5" type="stmt"/>
|
||||
<line num="134" count="5" type="stmt"/>
|
||||
<line num="135" count="2" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="136" count="2" type="stmt"/>
|
||||
<line num="137" count="2" type="stmt"/>
|
||||
<line num="139" count="0" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="140" count="0" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="141" count="0" type="stmt"/>
|
||||
<line num="142" count="0" type="stmt"/>
|
||||
<line num="147" count="5" type="stmt"/>
|
||||
<line num="115" count="1" type="stmt"/>
|
||||
<line num="116" count="1" type="stmt"/>
|
||||
<line num="121" count="1" type="stmt"/>
|
||||
<line num="128" count="5" type="stmt"/>
|
||||
<line num="135" count="5" type="stmt"/>
|
||||
<line num="137" count="5" type="stmt"/>
|
||||
<line num="138" count="12" type="stmt"/>
|
||||
<line num="141" count="5" type="stmt"/>
|
||||
<line num="143" count="5" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="144" count="5" type="stmt"/>
|
||||
<line num="145" count="5" type="stmt"/>
|
||||
<line num="148" count="5" type="stmt"/>
|
||||
<line num="149" count="12" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="150" count="5" type="stmt"/>
|
||||
<line num="151" count="5" type="stmt"/>
|
||||
<line num="154" count="5" type="stmt"/>
|
||||
<line num="162" count="0" type="stmt"/>
|
||||
<line num="163" count="0" type="stmt"/>
|
||||
<line num="172" count="0" type="stmt"/>
|
||||
<line num="173" count="0" type="stmt"/>
|
||||
<line num="183" count="7" type="stmt"/>
|
||||
<line num="184" count="7" type="stmt"/>
|
||||
<line num="189" count="7" type="stmt"/>
|
||||
<line num="191" count="7" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="192" count="7" type="stmt"/>
|
||||
<line num="195" count="7" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="196" count="7" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="149" count="2" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="150" count="2" type="stmt"/>
|
||||
<line num="151" count="2" type="stmt"/>
|
||||
<line num="153" count="0" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="154" count="0" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="155" count="0" type="stmt"/>
|
||||
<line num="156" count="0" type="stmt"/>
|
||||
<line num="161" count="5" type="stmt"/>
|
||||
<line num="162" count="5" type="stmt"/>
|
||||
<line num="163" count="12" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="164" count="5" type="stmt"/>
|
||||
<line num="165" count="5" type="stmt"/>
|
||||
<line num="168" count="5" type="stmt"/>
|
||||
<line num="176" count="0" type="stmt"/>
|
||||
<line num="177" count="0" type="stmt"/>
|
||||
<line num="186" count="0" type="stmt"/>
|
||||
<line num="187" count="0" type="stmt"/>
|
||||
<line num="197" count="7" type="stmt"/>
|
||||
<line num="201" count="7" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="202" count="0" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="203" count="0" type="stmt"/>
|
||||
<line num="207" count="7" type="stmt"/>
|
||||
<line num="216" count="6" type="stmt"/>
|
||||
<line num="217" count="6" type="stmt"/>
|
||||
<line num="222" count="6" type="stmt"/>
|
||||
<line num="224" count="6" type="stmt"/>
|
||||
<line num="225" count="4" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="226" count="4" type="stmt"/>
|
||||
<line num="229" count="4" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="230" count="4" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="231" count="4" type="stmt"/>
|
||||
<line num="234" count="4" type="stmt"/>
|
||||
<line num="237" count="6" type="stmt"/>
|
||||
<line num="239" count="6" type="stmt"/>
|
||||
<line num="243" count="1" type="stmt"/>
|
||||
<line num="198" count="7" type="stmt"/>
|
||||
<line num="203" count="7" type="stmt"/>
|
||||
<line num="205" count="7" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="206" count="7" type="stmt"/>
|
||||
<line num="209" count="7" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="210" count="7" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="211" count="7" type="stmt"/>
|
||||
<line num="215" count="7" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="216" count="0" type="cond" truecount="0" falsecount="1"/>
|
||||
<line num="217" count="0" type="stmt"/>
|
||||
<line num="221" count="7" type="stmt"/>
|
||||
<line num="230" count="6" type="stmt"/>
|
||||
<line num="231" count="6" type="stmt"/>
|
||||
<line num="236" count="6" type="stmt"/>
|
||||
<line num="238" count="6" type="stmt"/>
|
||||
<line num="239" count="4" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="240" count="4" type="stmt"/>
|
||||
<line num="243" count="4" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="244" count="4" type="cond" truecount="1" falsecount="0"/>
|
||||
<line num="245" count="4" type="stmt"/>
|
||||
<line num="248" count="4" type="stmt"/>
|
||||
<line num="251" count="6" type="stmt"/>
|
||||
<line num="253" count="6" type="stmt"/>
|
||||
<line num="257" count="1" type="stmt"/>
|
||||
</file>
|
||||
</project>
|
||||
</coverage>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -118,7 +118,7 @@ export default Auth;
|
|||
<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 2023-09-19T00:14:09.634Z
|
||||
at 2023-09-19T16:27:33.592Z
|
||||
</div>
|
||||
<script src="prettify.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -23,30 +23,30 @@
|
|||
<div class='clearfix'>
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">86.25% </span>
|
||||
<span class="strong">82.55% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>69/80</span>
|
||||
<span class='fraction'>71/86</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">66.66% </span>
|
||||
<span class="strong">62.5% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>10/15</span>
|
||||
<span class='fraction'>10/16</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">90% </span>
|
||||
<span class="strong">86.36% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>18/20</span>
|
||||
<span class='fraction'>19/22</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">85.89% </span>
|
||||
<span class="strong">82.14% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>67/78</span>
|
||||
<span class='fraction'>69/84</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -95,17 +95,17 @@
|
|||
|
||||
<tr>
|
||||
<td class="file high" data-value="index.ts"><a href="index.ts.html">index.ts</a></td>
|
||||
<td data-value="85.52" class="pic high">
|
||||
<div class="chart"><div class="cover-fill" style="width: 85%"></div><div class="cover-empty" style="width: 15%"></div></div>
|
||||
<td data-value="81.7" class="pic high">
|
||||
<div class="chart"><div class="cover-fill" style="width: 81%"></div><div class="cover-empty" style="width: 19%"></div></div>
|
||||
</td>
|
||||
<td data-value="85.52" class="pct high">85.52%</td>
|
||||
<td data-value="76" class="abs high">65/76</td>
|
||||
<td data-value="66.66" class="pct medium">66.66%</td>
|
||||
<td data-value="15" class="abs medium">10/15</td>
|
||||
<td data-value="88.88" class="pct high">88.88%</td>
|
||||
<td data-value="18" class="abs high">16/18</td>
|
||||
<td data-value="85.33" class="pct high">85.33%</td>
|
||||
<td data-value="75" class="abs high">64/75</td>
|
||||
<td data-value="81.7" class="pct high">81.7%</td>
|
||||
<td data-value="82" class="abs high">67/82</td>
|
||||
<td data-value="62.5" class="pct medium">62.5%</td>
|
||||
<td data-value="16" class="abs medium">10/16</td>
|
||||
<td data-value="85" class="pct high">85%</td>
|
||||
<td data-value="20" class="abs high">17/20</td>
|
||||
<td data-value="81.48" class="pct high">81.48%</td>
|
||||
<td data-value="81" class="abs high">66/81</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
@ -116,7 +116,7 @@
|
|||
<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 2023-09-19T00:14:09.634Z
|
||||
at 2023-09-19T16:27:33.592Z
|
||||
</div>
|
||||
<script src="prettify.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -23,30 +23,30 @@
|
|||
<div class='clearfix'>
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">85.52% </span>
|
||||
<span class="strong">81.7% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>65/76</span>
|
||||
<span class='fraction'>67/82</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">66.66% </span>
|
||||
<span class="strong">62.5% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>10/15</span>
|
||||
<span class='fraction'>10/16</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">88.88% </span>
|
||||
<span class="strong">85% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>16/18</span>
|
||||
<span class='fraction'>17/20</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">85.33% </span>
|
||||
<span class="strong">81.48% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>64/75</span>
|
||||
<span class='fraction'>66/81</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -307,7 +307,21 @@
|
|||
<a name='L242'></a><a href='#L242'>242</a>
|
||||
<a name='L243'></a><a href='#L243'>243</a>
|
||||
<a name='L244'></a><a href='#L244'>244</a>
|
||||
<a name='L245'></a><a href='#L245'>245</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
||||
<a name='L245'></a><a href='#L245'>245</a>
|
||||
<a name='L246'></a><a href='#L246'>246</a>
|
||||
<a name='L247'></a><a href='#L247'>247</a>
|
||||
<a name='L248'></a><a href='#L248'>248</a>
|
||||
<a name='L249'></a><a href='#L249'>249</a>
|
||||
<a name='L250'></a><a href='#L250'>250</a>
|
||||
<a name='L251'></a><a href='#L251'>251</a>
|
||||
<a name='L252'></a><a href='#L252'>252</a>
|
||||
<a name='L253'></a><a href='#L253'>253</a>
|
||||
<a name='L254'></a><a href='#L254'>254</a>
|
||||
<a name='L255'></a><a href='#L255'>255</a>
|
||||
<a name='L256'></a><a href='#L256'>256</a>
|
||||
<a name='L257'></a><a href='#L257'>257</a>
|
||||
<a name='L258'></a><a href='#L258'>258</a>
|
||||
<a name='L259'></a><a href='#L259'>259</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
|
@ -328,6 +342,8 @@
|
|||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">1x</span>
|
||||
<span class="cline-any cline-yes">1x</span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
|
@ -360,6 +376,15 @@
|
|||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">20x</span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">20x</span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
|
@ -373,10 +398,13 @@
|
|||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">3x</span>
|
||||
<span class="cline-any cline-yes">3x</span>
|
||||
<span class="cline-any cline-yes">3x</span>
|
||||
<span class="cline-any cline-yes">3x</span>
|
||||
|
@ -566,6 +594,7 @@ class Forgejo {
|
|||
url: URL;
|
||||
username: string;
|
||||
token?: Auth;
|
||||
cors: boolean;
|
||||
/**
|
||||
* Represents a Forgejo instance.
|
||||
* @constructor
|
||||
|
@ -573,6 +602,7 @@ class Forgejo {
|
|||
*/
|
||||
constructor(url: string) {
|
||||
this.url = new URL(url);
|
||||
this.cors = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -602,28 +632,40 @@ class Forgejo {
|
|||
getTokenAuthHeader() {
|
||||
return { Authorization: `token ${this.getTokenAuth().getToken()}` };
|
||||
}
|
||||
|
||||
getUrl(): URL {
|
||||
<span class="missing-if-branch" title="if path not taken" >I</span>if (this.cors) {
|
||||
let url = <span class="cstat-no" title="statement not covered" >new URL("http://localhost:3030");</span>
|
||||
<span class="cstat-no" title="statement not covered" > url.pathname = this.url.toString();</span>
|
||||
<span class="cstat-no" title="statement not covered" > return url;</span>
|
||||
}
|
||||
return this.url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get logged in user
|
||||
*/
|
||||
async getUser(): Promise<User> {
|
||||
this.url.pathname = "/api/v1/user";
|
||||
let res = await fetch(this.url, {
|
||||
let res = await fetch(this.getUrl(), {
|
||||
method: "GET",
|
||||
credentials: "omit",
|
||||
headers: this.getTokenAuthHeader(),
|
||||
});
|
||||
return await res.json();
|
||||
}
|
||||
|
||||
<span class="fstat-no" title="function not covered" > setCors() {</span>
|
||||
<span class="cstat-no" title="statement not covered" > this.cors = true;</span>
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all notifications
|
||||
*/
|
||||
async getNotifications(): Promise<Array<Notification>> {
|
||||
this.url.pathname = "/api/v1/notifications";
|
||||
this.url.pathname = "/api/v1/notifications";
|
||||
console.log(this.url);
|
||||
let res = await fetch(this.url, {
|
||||
let res = await fetch(this.getUrl(), {
|
||||
method: "GET",
|
||||
credentials: "omit",
|
||||
headers: this.getTokenAuthHeader(),
|
||||
|
@ -636,7 +678,7 @@ class Forgejo {
|
|||
*/
|
||||
async getNumUnreadNotifications(): Promise<number> {
|
||||
this.url.pathname = "/api/v1/notifications/new";
|
||||
let res = await fetch(this.url, {
|
||||
let res = await fetch(this.getUrl(), {
|
||||
method: "GET",
|
||||
credentials: "omit",
|
||||
headers: this.getTokenAuthHeader(),
|
||||
|
@ -652,7 +694,7 @@ class Forgejo {
|
|||
*/
|
||||
async getNotificationThread(id: number): Promise<Notification> {
|
||||
this.url.pathname = `/api/v1/notifications/threads/${id}`;
|
||||
let res = await fetch(this.url, {
|
||||
let res = await fetch(this.getUrl(), {
|
||||
method: "GET",
|
||||
credentials: "omit",
|
||||
headers: this.getTokenAuthHeader(),
|
||||
|
@ -734,7 +776,7 @@ class Forgejo {
|
|||
*/
|
||||
async getIssue(owner: string, repo: string, id: number): Promise<Issue> {
|
||||
this.url.pathname = `/api/v1/repos/${owner}/${repo}/issues/${id}`;
|
||||
let res = await fetch(this.url, {
|
||||
let res = await fetch(this.getUrl(), {
|
||||
method: "GET",
|
||||
credentials: "omit",
|
||||
headers: this.getTokenAuthHeader(),
|
||||
|
@ -767,7 +809,7 @@ class Forgejo {
|
|||
// TODO: check if issue.number != issue.id causes problems. I'm assuming
|
||||
// Issue.number is the local repository issue ID and issue.id is DB ID
|
||||
this.url.pathname = `/api/v1/repos/${issue.repository.owner}/${issue.repository.name}/issues/${issue.number}/comments`;
|
||||
let res = await fetch(this.url, {
|
||||
let res = await fetch(this.getUrl(), {
|
||||
method: "GET",
|
||||
credentials: "omit",
|
||||
headers: this.getTokenAuthHeader(),
|
||||
|
@ -802,7 +844,7 @@ export default Forgejo;
|
|||
<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 2023-09-19T00:14:09.634Z
|
||||
at 2023-09-19T16:27:33.592Z
|
||||
</div>
|
||||
<script src="prettify.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -16,136 +16,147 @@ BRH:0
|
|||
end_of_record
|
||||
TN:
|
||||
SF:src/index.ts
|
||||
FN:21,(anonymous_2)
|
||||
FN:29,(anonymous_3)
|
||||
FN:38,(anonymous_4)
|
||||
FN:49,(anonymous_5)
|
||||
FN:56,(anonymous_6)
|
||||
FN:69,(anonymous_7)
|
||||
FN:84,(anonymous_8)
|
||||
FN:100,(anonymous_9)
|
||||
FN:113,(anonymous_10)
|
||||
FN:120,(anonymous_11)
|
||||
FN:123,(anonymous_12)
|
||||
FN:22,(anonymous_2)
|
||||
FN:31,(anonymous_3)
|
||||
FN:40,(anonymous_4)
|
||||
FN:51,(anonymous_5)
|
||||
FN:55,(anonymous_6)
|
||||
FN:67,(anonymous_7)
|
||||
FN:77,(anonymous_8)
|
||||
FN:84,(anonymous_9)
|
||||
FN:98,(anonymous_10)
|
||||
FN:114,(anonymous_11)
|
||||
FN:127,(anonymous_12)
|
||||
FN:134,(anonymous_13)
|
||||
FN:148,(anonymous_14)
|
||||
FN:161,(anonymous_15)
|
||||
FN:171,(anonymous_16)
|
||||
FN:182,(anonymous_17)
|
||||
FN:213,(anonymous_18)
|
||||
FN:224,(anonymous_19)
|
||||
FNF:18
|
||||
FNH:16
|
||||
FN:137,(anonymous_14)
|
||||
FN:148,(anonymous_15)
|
||||
FN:162,(anonymous_16)
|
||||
FN:175,(anonymous_17)
|
||||
FN:185,(anonymous_18)
|
||||
FN:196,(anonymous_19)
|
||||
FN:227,(anonymous_20)
|
||||
FN:238,(anonymous_21)
|
||||
FNF:20
|
||||
FNH:17
|
||||
FNDA:1,(anonymous_2)
|
||||
FNDA:1,(anonymous_3)
|
||||
FNDA:22,(anonymous_4)
|
||||
FNDA:21,(anonymous_5)
|
||||
FNDA:2,(anonymous_6)
|
||||
FNDA:3,(anonymous_7)
|
||||
FNDA:1,(anonymous_8)
|
||||
FNDA:1,(anonymous_9)
|
||||
FNDA:5,(anonymous_10)
|
||||
FNDA:5,(anonymous_11)
|
||||
FNDA:12,(anonymous_12)
|
||||
FNDA:2,(anonymous_13)
|
||||
FNDA:20,(anonymous_6)
|
||||
FNDA:2,(anonymous_7)
|
||||
FNDA:0,(anonymous_8)
|
||||
FNDA:3,(anonymous_9)
|
||||
FNDA:1,(anonymous_10)
|
||||
FNDA:1,(anonymous_11)
|
||||
FNDA:5,(anonymous_12)
|
||||
FNDA:5,(anonymous_13)
|
||||
FNDA:12,(anonymous_14)
|
||||
FNDA:0,(anonymous_15)
|
||||
FNDA:0,(anonymous_16)
|
||||
FNDA:7,(anonymous_17)
|
||||
FNDA:6,(anonymous_18)
|
||||
FNDA:4,(anonymous_19)
|
||||
FNDA:2,(anonymous_15)
|
||||
FNDA:12,(anonymous_16)
|
||||
FNDA:0,(anonymous_17)
|
||||
FNDA:0,(anonymous_18)
|
||||
FNDA:7,(anonymous_19)
|
||||
FNDA:6,(anonymous_20)
|
||||
FNDA:4,(anonymous_21)
|
||||
DA:5,1
|
||||
DA:22,1
|
||||
DA:30,1
|
||||
DA:31,1
|
||||
DA:23,1
|
||||
DA:24,1
|
||||
DA:32,1
|
||||
DA:39,22
|
||||
DA:40,22
|
||||
DA:42,0
|
||||
DA:50,21
|
||||
DA:57,2
|
||||
DA:58,2
|
||||
DA:63,2
|
||||
DA:70,3
|
||||
DA:71,3
|
||||
DA:72,3
|
||||
DA:73,3
|
||||
DA:79,3
|
||||
DA:85,1
|
||||
DA:86,1
|
||||
DA:92,1
|
||||
DA:93,1
|
||||
DA:101,1
|
||||
DA:102,1
|
||||
DA:33,1
|
||||
DA:34,1
|
||||
DA:41,22
|
||||
DA:42,22
|
||||
DA:44,0
|
||||
DA:52,21
|
||||
DA:56,20
|
||||
DA:57,0
|
||||
DA:58,0
|
||||
DA:59,0
|
||||
DA:61,20
|
||||
DA:68,2
|
||||
DA:69,2
|
||||
DA:74,2
|
||||
DA:78,0
|
||||
DA:85,3
|
||||
DA:86,3
|
||||
DA:87,3
|
||||
DA:93,3
|
||||
DA:99,1
|
||||
DA:100,1
|
||||
DA:106,1
|
||||
DA:107,1
|
||||
DA:114,5
|
||||
DA:121,5
|
||||
DA:123,5
|
||||
DA:124,12
|
||||
DA:127,5
|
||||
DA:129,5
|
||||
DA:130,5
|
||||
DA:131,5
|
||||
DA:134,5
|
||||
DA:135,2
|
||||
DA:136,2
|
||||
DA:137,2
|
||||
DA:139,0
|
||||
DA:140,0
|
||||
DA:141,0
|
||||
DA:142,0
|
||||
DA:147,5
|
||||
DA:115,1
|
||||
DA:116,1
|
||||
DA:121,1
|
||||
DA:128,5
|
||||
DA:135,5
|
||||
DA:137,5
|
||||
DA:138,12
|
||||
DA:141,5
|
||||
DA:143,5
|
||||
DA:144,5
|
||||
DA:145,5
|
||||
DA:148,5
|
||||
DA:149,12
|
||||
DA:150,5
|
||||
DA:151,5
|
||||
DA:154,5
|
||||
DA:162,0
|
||||
DA:163,0
|
||||
DA:172,0
|
||||
DA:173,0
|
||||
DA:183,7
|
||||
DA:184,7
|
||||
DA:189,7
|
||||
DA:191,7
|
||||
DA:192,7
|
||||
DA:195,7
|
||||
DA:196,7
|
||||
DA:149,2
|
||||
DA:150,2
|
||||
DA:151,2
|
||||
DA:153,0
|
||||
DA:154,0
|
||||
DA:155,0
|
||||
DA:156,0
|
||||
DA:161,5
|
||||
DA:162,5
|
||||
DA:163,12
|
||||
DA:164,5
|
||||
DA:165,5
|
||||
DA:168,5
|
||||
DA:176,0
|
||||
DA:177,0
|
||||
DA:186,0
|
||||
DA:187,0
|
||||
DA:197,7
|
||||
DA:201,7
|
||||
DA:202,0
|
||||
DA:203,0
|
||||
DA:207,7
|
||||
DA:216,6
|
||||
DA:217,6
|
||||
DA:222,6
|
||||
DA:224,6
|
||||
DA:225,4
|
||||
DA:226,4
|
||||
DA:229,4
|
||||
DA:230,4
|
||||
DA:231,4
|
||||
DA:234,4
|
||||
DA:237,6
|
||||
DA:239,6
|
||||
DA:243,1
|
||||
LF:75
|
||||
LH:64
|
||||
BRDA:39,0,0,22
|
||||
BRDA:39,0,1,0
|
||||
BRDA:129,1,0,5
|
||||
BRDA:135,2,0,2
|
||||
BRDA:139,3,0,0
|
||||
BRDA:140,4,0,0
|
||||
BRDA:149,5,0,5
|
||||
BRDA:191,6,0,7
|
||||
BRDA:195,7,0,7
|
||||
BRDA:196,8,0,7
|
||||
BRDA:201,9,0,0
|
||||
BRDA:202,10,0,0
|
||||
BRDA:225,11,0,4
|
||||
BRDA:229,12,0,4
|
||||
BRDA:230,13,0,4
|
||||
BRF:15
|
||||
DA:198,7
|
||||
DA:203,7
|
||||
DA:205,7
|
||||
DA:206,7
|
||||
DA:209,7
|
||||
DA:210,7
|
||||
DA:211,7
|
||||
DA:215,7
|
||||
DA:216,0
|
||||
DA:217,0
|
||||
DA:221,7
|
||||
DA:230,6
|
||||
DA:231,6
|
||||
DA:236,6
|
||||
DA:238,6
|
||||
DA:239,4
|
||||
DA:240,4
|
||||
DA:243,4
|
||||
DA:244,4
|
||||
DA:245,4
|
||||
DA:248,4
|
||||
DA:251,6
|
||||
DA:253,6
|
||||
DA:257,1
|
||||
LF:81
|
||||
LH:66
|
||||
BRDA:41,0,0,22
|
||||
BRDA:41,0,1,0
|
||||
BRDA:56,1,0,0
|
||||
BRDA:143,2,0,5
|
||||
BRDA:149,3,0,2
|
||||
BRDA:153,4,0,0
|
||||
BRDA:154,5,0,0
|
||||
BRDA:163,6,0,5
|
||||
BRDA:205,7,0,7
|
||||
BRDA:209,8,0,7
|
||||
BRDA:210,9,0,7
|
||||
BRDA:215,10,0,0
|
||||
BRDA:216,11,0,0
|
||||
BRDA:239,12,0,4
|
||||
BRDA:243,13,0,4
|
||||
BRDA:244,14,0,4
|
||||
BRF:16
|
||||
BRH:10
|
||||
end_of_record
|
||||
|
|
Loading…
Reference in a new issue