Skip to content

Commit c50e42d

Browse files
committed
chore: run prettier
1 parent 2b0a43d commit c50e42d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/fetch-mock/src/Matchers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import glob from 'glob-to-regexp';
44
import * as regexparam from 'regexparam';
55
import { isSubsetOf } from './IsSubsetOf.js';
66
import { dequal as isEqual } from 'dequal';
7-
import { normalizeHeaders, getPath, getHost, normalizeUrl } from './RequestUtils.js';
7+
import {
8+
normalizeHeaders,
9+
getPath,
10+
getHost,
11+
normalizeUrl,
12+
} from './RequestUtils.js';
813

914
export type URLMatcherObject = {
1015
begin?: string;

packages/fetch-mock/src/RequestUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ export function getHost(url: string): string | null {
129129
if (absoluteUrlRX.test(url)) {
130130
return new URL(url).host;
131131
} else if ('location' in globalThis) {
132-
return globalThis.location.host
132+
return globalThis.location.host;
133133
}
134-
return null
134+
return null;
135135
}
136136

137137
export function getQuery(url: string): string {

0 commit comments

Comments
 (0)