mirror of
https://github.com/ION606/linkedin-api.git
synced 2026-06-05 23:16:14 +00:00
company size fix
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ export function numsToSizes(...nums) {
|
||||
|
||||
const ranges = nums.map(findRangeIndex);
|
||||
if (ranges.includes(-1)) throw `${nums} CONTAINS AN INVALID RANGE!`;
|
||||
return `[${ranges.join(",")}]`;
|
||||
return `${ranges.join(",")}`;
|
||||
}
|
||||
|
||||
|
||||
|
||||
+3
-2
@@ -38,8 +38,9 @@ export class LoadingBar {
|
||||
this.size = size;
|
||||
this.cursor = 0;
|
||||
this.timer = null;
|
||||
this.y = process.stdout.rows;
|
||||
|
||||
cursorTo(process.stdout, this.cursor);
|
||||
cursorTo(process.stdout, this.cursor, this.y);
|
||||
|
||||
// draw the initial outline
|
||||
process.stdout.write("\x1B[?25l");
|
||||
@@ -49,7 +50,7 @@ export class LoadingBar {
|
||||
}
|
||||
|
||||
increment(amt = 1) {
|
||||
cursorTo(process.stdout, this.cursor);
|
||||
cursorTo(process.stdout, this.cursor, this.y);
|
||||
for (let i = 0; i < amt; i++) process.stdout.write("\u2588");
|
||||
this.cursor += amt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user