Skip to content

Commit

Permalink
upgrage node packages
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikleto committed Jul 4, 2024
1 parent d11ec00 commit dc063d3
Show file tree
Hide file tree
Showing 22 changed files with 5,140 additions and 7,722 deletions.
23 changes: 0 additions & 23 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/node_modules
/dist
.DS_Store
.DS_Store
/build
2 changes: 1 addition & 1 deletion coverage/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion coverage/badge-functions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion coverage/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions coverage/badge-statements.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/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{"total": {"lines":{"total":116,"covered":116,"skipped":0,"pct":100},"statements":{"total":121,"covered":121,"skipped":0,"pct":100},"functions":{"total":18,"covered":18,"skipped":0,"pct":100},"branches":{"total":30,"covered":30,"skipped":0,"pct":100}}
,"/Users/yarik_leto/Documents/projects/algo-ds/src/doubly-linked-list.ts": {"lines":{"total":116,"covered":116,"skipped":0,"pct":100},"functions":{"total":18,"covered":18,"skipped":0,"pct":100},"statements":{"total":121,"covered":121,"skipped":0,"pct":100},"branches":{"total":30,"covered":30,"skipped":0,"pct":100}}
{"total": {"lines":{"total":115,"covered":115,"skipped":0,"pct":100},"statements":{"total":122,"covered":122,"skipped":0,"pct":100},"functions":{"total":18,"covered":18,"skipped":0,"pct":100},"branches":{"total":22,"covered":22,"skipped":0,"pct":100},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":"Unknown"}}
,"/Users/yarik_leto/Documents/projects/algo-ds/src/doubly-linked-list.ts": {"lines":{"total":115,"covered":115,"skipped":0,"pct":100},"functions":{"total":18,"covered":18,"skipped":0,"pct":100},"statements":{"total":122,"covered":122,"skipped":0,"pct":100},"branches":{"total":22,"covered":22,"skipped":0,"pct":100}}
}
8 changes: 8 additions & 0 deletions coverage/lcov-report/block-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ var jumpToCode = (function init() {
}

return function jump(event) {
if (
document.getElementById('fileSearch') === document.activeElement &&
document.activeElement != null
) {
// if we're currently focused on the search input, we don't want to navigate
return;
}

switch (event.which) {
case 78: // n
case 74: // j
Expand Down
38 changes: 14 additions & 24 deletions coverage/lcov-report/doubly-linked-list.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ <h1><a href="index.html">All files</a> doubly-linked-list.ts</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>121/121</span>
<span class='fraction'>122/122</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>30/30</span>
<span class='fraction'>22/22</span>
</div>


Expand All @@ -46,14 +46,20 @@ <h1><a href="index.html">All files</a> doubly-linked-list.ts</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>116/116</span>
<span class='fraction'>115/115</span>
</div>


</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input type="search" id="fileSearch">
</div>
</template>
</div>
<div class='status-line high'></div>
<pre><table class="coverage">
Expand Down Expand Up @@ -303,14 +309,7 @@ <h1><a href="index.html">All files</a> doubly-linked-list.ts</h1>
<a name='L244'></a><a href='#L244'>244</a>
<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></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>
<a name='L247'></a><a href='#L247'>247</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 Down Expand Up @@ -556,9 +555,6 @@ <h1><a href="index.html">All files</a> doubly-linked-list.ts</h1>
<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>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">export interface Node&lt;NodeValueType&gt; {
value: NodeValueType;
next: Node&lt;NodeValueType&gt; | null;
Expand All @@ -583,8 +579,6 @@ <h1><a href="index.html">All files</a> doubly-linked-list.ts</h1>
addBefore: (valueBefore: NodeValueType, value: NodeValueType) =&gt; boolean;
addAfter: (valueAfter: NodeValueType, value: NodeValueType) =&gt; boolean;
getNodeByValue: (value: NodeValueType) =&gt; Node&lt;NodeValueType&gt; | null;
&nbsp;
__proto__: null;
}
&nbsp;
export type ForEachFunction&lt;NodeValueType&gt; = (value: NodeValueType, index: number) =&gt; void;
Expand Down Expand Up @@ -803,23 +797,19 @@ <h1><a href="index.html">All files</a> doubly-linked-list.ts</h1>
isEmpty,
addBefore,
addAfter,
&nbsp;
__proto__: null // Delete inherited fields from proto
// @ts-expect-error Delete inherited fields from proto
__proto__: null
};
}
&nbsp;
export default createDoublyLinkedList;
&nbsp;
&nbsp;</pre></td></tr></table></pre>

<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Sun Apr 11 2021 02:59:26 GMT+0300 (Eastern European Summer Time)
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-07-04T16:43:57.614Z
</div>
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
Expand Down
Binary file modified coverage/lcov-report/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 14 additions & 9 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ <h1>All files</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>121/121</span>
<span class='fraction'>122/122</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>30/30</span>
<span class='fraction'>22/22</span>
</div>


Expand All @@ -46,14 +46,20 @@ <h1>All files</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>116/116</span>
<span class='fraction'>115/115</span>
</div>


</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input type="search" id="fileSearch">
</div>
</template>
</div>
<div class='status-line high'></div>
<div class="pad1">
Expand All @@ -78,13 +84,13 @@ <h1>All files</h1>
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="121" class="abs high">121/121</td>
<td data-value="122" class="abs high">122/122</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="30" class="abs high">30/30</td>
<td data-value="22" class="abs high">22/22</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="18" class="abs high">18/18</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="116" class="abs high">116/116</td>
<td data-value="115" class="abs high">115/115</td>
</tr>

</tbody>
Expand All @@ -94,10 +100,9 @@ <h1>All files</h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Sun Apr 11 2021 02:59:26 GMT+0300 (Eastern European Summer Time)
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-07-04T16:43:57.614Z
</div>
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
Expand Down
Binary file modified coverage/lcov-report/sort-arrow-sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions coverage/lcov-report/sorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,31 @@ var addSorting = (function() {
return getTableHeader().querySelectorAll('th')[n];
}

function onFilterInput() {
const searchValue = document.getElementById('fileSearch').value;
const rows = document.getElementsByTagName('tbody')[0].children;
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
if (
row.textContent
.toLowerCase()
.includes(searchValue.toLowerCase())
) {
row.style.display = '';
} else {
row.style.display = 'none';
}
}
}

// loads the search box
function addSearchBox() {
var template = document.getElementById('filterTemplate');
var templateClone = template.content.cloneNode(true);
templateClone.getElementById('fileSearch').oninput = onFilterInput;
template.parentElement.appendChild(templateClone);
}

// loads all columns
function loadColumns() {
var colNodes = getTableHeader().querySelectorAll('th'),
Expand Down Expand Up @@ -162,6 +187,7 @@ var addSorting = (function() {
}
cols = loadColumns();
loadData();
addSearchBox();
addSortIndicators();
enableUI();
};
Expand Down
Loading

0 comments on commit dc063d3

Please sign in to comment.