From ed5301351fb6a86750a8eed6087ee7206505b411 Mon Sep 17 00:00:00 2001 From: Hugo <95517615+HugoHSun@users.noreply.github.com> Date: Thu, 25 Jun 2026 15:43:28 +1000 Subject: [PATCH] fix: use browser-compatible url imports --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 686f2920..59128bed 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,10 +2,10 @@ import type { CodeBuilderOptions } from './helpers/code-builder.js'; import type { ReducedHelperObject } from './helpers/reducer.js'; import type { ClientId, TargetId } from './targets/index.js'; import type { Request as NpmHarRequest, Param, PostDataCommon } from 'har-format'; -import type { UrlWithParsedQuery } from 'node:url'; import type { Merge } from 'type-fest'; +import type { UrlWithParsedQuery } from 'url'; -import { format as urlFormat, parse as urlParse } from 'node:url'; +import { format as urlFormat, parse as urlParse } from 'url'; import { stringify as queryStringify } from 'qs';