-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api): remove broken universal-speedtest to avoid confusion
- Loading branch information
1 parent
0263a16
commit 0f5e785
Showing
50 changed files
with
49 additions
and
524 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-105 KB
.yarn/cache/convert-units-npm-3.0.0-beta.4-7860874687-caa83a14bb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-33.2 KB
.yarn/cache/universal-speedtest-npm-2.0.5-28ebcc6f1a-8ea88f4669.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
export const clamp = (num: number, min: number, max: number) => { | ||
return num > max ? max : num < min ? min : num; | ||
}; | ||
|
||
export const removePad = (strings: TemplateStringsArray, ...content: any[]) => { | ||
const complete = strings.reduce( | ||
(acc, s, i) => `${acc}${s}${content[i] ?? ''}`, | ||
'' | ||
); | ||
const trimmed = complete.split('\n').filter(s => /^\s*$/.test(s) === false); | ||
const shortestPad = Math.min(...trimmed.map(s => /(?!\s)/.exec(s)!.index)); | ||
|
||
return trimmed.map(s => s.substring(shortestPad)).join('\n'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.