Skip to content

Commit a95a38d

Browse files
committed
format and fetch rename fixes
1 parent 8ff801b commit a95a38d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/rules-unit-testing/src/impl/rules.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function loadFirestoreRules(
4848
projectId: string,
4949
rules: string
5050
): Promise<void> {
51-
const resp = await fetch(
51+
const resp = await undiciFetch(
5252
makeUrl(hostAndPort, `/emulator/v1/projects/${projectId}:securityRules`),
5353
{
5454
method: 'PUT',
@@ -72,7 +72,7 @@ export async function loadStorageRules(
7272
hostAndPort: HostAndPort,
7373
rules: string
7474
): Promise<void> {
75-
const resp = await fetch(makeUrl(hostAndPort, '/internal/setRules'), {
75+
const resp = await undiciFetch(makeUrl(hostAndPort, '/internal/setRules'), {
7676
method: 'PUT',
7777
headers: {
7878
'Content-Type': 'application/json'

repo-scripts/changelog-generator/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async function getFixedIssueLink(
106106
).then(data => data.json());
107107

108108
const body = (response as undiciResponse).body;
109-
if(!body) {
109+
if (!body) {
110110
return '';
111111
}
112112
const match = fixedIssueRegex.exec(body.toString());

scripts/emulator-testing/emulators/emulator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { ChildProcess } from 'child_process';
2121
import * as fs from 'fs';
2222
import * as os from 'os';
2323
import * as path from 'path';
24-
import { fetch as undiciFetch } from 'node-fetch';
24+
import { fetch as undiciFetch } from 'undici';
2525
// @ts-ignore
2626
import * as tmp from 'tmp';
2727

0 commit comments

Comments
 (0)