Skip to content

Commit

Permalink
fix: Import of runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
asafgardin committed Dec 4, 2024
1 parent d24dc65 commit af96613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BrowserFilesHandler } from './files/BrowserFilesHandler';
import { BrowserFetch, Fetch, NodeFetch } from './fetch';
import { NodeFilesHandler } from './files/NodeFilesHandler';
import { BaseFilesHandler } from './files/BaseFilesHandler';
import { isBrowser, isWebWorker } from 'runtime';
import { isBrowser, isWebWorker } from './runtime';

export function createFetchInstance(): Fetch {
if (isBrowser || isWebWorker) {
Expand Down
2 changes: 1 addition & 1 deletion src/files/NodeFilesHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FilePathOrFileObject } from 'types';
import { BaseFilesHandler } from './BaseFilesHandler';
import { FormDataRequest } from 'types/API';
import { isNode } from 'runtime';
import { isNode } from '../runtime';

export class NodeFilesHandler extends BaseFilesHandler {
private async convertReadableStream(readableStream: ReadableStream): Promise<NodeJS.ReadableStream> {
Expand Down

0 comments on commit af96613

Please sign in to comment.