chore: deps

This commit is contained in:
iCrawl
2022-09-02 21:48:05 +02:00
parent b9c62ac0f0
commit 1d460e0434
15 changed files with 476 additions and 231 deletions

View File

@@ -7,9 +7,7 @@ import type { RequestOptions } from '../REST.js';
import { RequestMethod } from '../RequestManager.js';
export function parseHeader(header: string[] | string | undefined): string | undefined {
if (header === undefined) {
return header;
} else if (typeof header === 'string') {
if (header === undefined || typeof header === 'string') {
return header;
}