@dbx-tools/shared-core 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/net.ts +4 -4
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dbx-tools/shared-core",
3
3
  "repository": {
4
4
  "type": "git",
5
- "url": "git+https://github-reggie-db/reggie-db/dbx-tools.git",
5
+ "url": "git+https://github.com/reggie-db/dbx-tools.git",
6
6
  "directory": "workspaces/shared/core"
7
7
  },
8
8
  "devDependencies": {
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "main": "index.ts",
18
18
  "license": "UNLICENSED",
19
- "version": "0.1.8",
19
+ "version": "0.1.10",
20
20
  "types": "index.ts",
21
21
  "type": "module",
22
22
  "exports": {
package/src/net.ts CHANGED
@@ -178,9 +178,9 @@ export function urlBuilder(): UrlBuilder;
178
178
  * urlBuilder({ url: "http://y" }); // http://y/
179
179
  * urlBuilder(); // http://localhost/
180
180
  */
181
- export function urlBuilder(input?: UrlLike): UrlBuilder | null;
181
+ export function urlBuilder(input?: UrlLike): UrlBuilder | undefined;
182
182
 
183
- export function urlBuilder(input?: UrlLike): UrlBuilder | null {
183
+ export function urlBuilder(input?: UrlLike): UrlBuilder | undefined {
184
184
  if (input instanceof URL) {
185
185
  return new UrlBuilderImpl(input);
186
186
  }
@@ -210,7 +210,7 @@ export function urlBuilder(input?: UrlLike): UrlBuilder | null {
210
210
  return urlBuilder(defaultUrl());
211
211
  }
212
212
  const url = parseUrl(input);
213
- return url ? urlBuilder(url) : null;
213
+ return url ? urlBuilder(url) : undefined;
214
214
  }
215
215
 
216
216
  /**
@@ -255,7 +255,7 @@ function parseUrl(input: string): URL | null {
255
255
  if (input && input.includes(URL_SCHEME_SEPARATOR)) {
256
256
  try {
257
257
  return new URL(input);
258
- } catch {}
258
+ } catch { }
259
259
  }
260
260
  return null;
261
261
  }