File tree 3 files changed +4
-4
lines changed
packages/rules-unit-testing/src/impl
repo-scripts/changelog-generator
scripts/emulator-testing/emulators
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export async function loadFirestoreRules(
48
48
projectId : string ,
49
49
rules : string
50
50
) : Promise < void > {
51
- const resp = await fetch (
51
+ const resp = await undiciFetch (
52
52
makeUrl ( hostAndPort , `/emulator/v1/projects/${ projectId } :securityRules` ) ,
53
53
{
54
54
method : 'PUT' ,
@@ -72,7 +72,7 @@ export async function loadStorageRules(
72
72
hostAndPort : HostAndPort ,
73
73
rules : string
74
74
) : Promise < void > {
75
- const resp = await fetch ( makeUrl ( hostAndPort , '/internal/setRules' ) , {
75
+ const resp = await undiciFetch ( makeUrl ( hostAndPort , '/internal/setRules' ) , {
76
76
method : 'PUT' ,
77
77
headers : {
78
78
'Content-Type' : 'application/json'
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ async function getFixedIssueLink(
106
106
) . then ( data => data . json ( ) ) ;
107
107
108
108
const body = ( response as undiciResponse ) . body ;
109
- if ( ! body ) {
109
+ if ( ! body ) {
110
110
return '' ;
111
111
}
112
112
const match = fixedIssueRegex . exec ( body . toString ( ) ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import { ChildProcess } from 'child_process';
21
21
import * as fs from 'fs' ;
22
22
import * as os from 'os' ;
23
23
import * as path from 'path' ;
24
- import { fetch as undiciFetch } from 'node-fetch ' ;
24
+ import { fetch as undiciFetch } from 'undici ' ;
25
25
// @ts -ignore
26
26
import * as tmp from 'tmp' ;
27
27
You can’t perform that action at this time.
0 commit comments