Skip to content

Commit 32c461a

Browse files
committed
Fixed fdc tests
1 parent 82faa08 commit 32c461a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/data-connect/src/network/fetch.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@
1515
* limitations under the License.
1616
*/
1717

18+
import { isCloudWorkstation } from '@firebase/util';
19+
1820
import {
1921
Code,
2022
DataConnectError,
2123
DataConnectOperationError,
2224
DataConnectOperationFailureResponse
2325
} from '../core/error';
2426
import { SDK_VERSION } from '../core/version';
25-
import { logDebug, logError } from '../logger';
27+
import { logError } from '../logger';
2628

2729
import { CallerSdkType, CallerSdkTypeEnum } from './transport';
28-
import { isCloudWorkstation } from '@firebase/util';
2930

3031
let connectFetch: typeof fetch | null = globalThis.fetch;
3132
export function initializeFetch(fetchImpl: typeof fetch): void {

packages/util/index.node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ export * from './src/exponential_backoff';
4242
export * from './src/formatters';
4343
export * from './src/compat';
4444
export * from './src/global';
45+
export * from './src/url';

packages/util/src/url.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
* limitations under the License.
1616
*/
1717

18+
/**
19+
* Checks whether a host url is a cloud workstation.
20+
*/
1821
export function isCloudWorkstation(url: string): boolean {
1922
return url.endsWith('.cloudworkstations.dev');
2023
}

0 commit comments

Comments
 (0)