We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ed9cc2 commit e6e0d2bCopy full SHA for e6e0d2b
packages/utils/src/misc.ts
@@ -159,6 +159,10 @@ export function parseUrl(
159
protocol?: string;
160
relative?: string;
161
} {
162
+ if (!url) {
163
+ return {};
164
+ }
165
+
166
const match = url.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
167
168
if (!match) {
packages/utils/src/object.ts
@@ -202,8 +202,6 @@ function serializeValue<T>(value: T): T | string {
202
203
/** JSDoc */
204
function serializeObject<T>(value: T, depth: number): T | string | {} {
205
- return value;
206
-
207
if (depth === 0) {
208
return serializeValue(value);
209
}
0 commit comments