@scaffoldly/rowdy 0.0.2-1-beta.20251009124244.c398226 → 0.0.2-1-beta.20251009174832.a32ef61
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.
- package/dist/index.d.ts +8 -0
- package/dist/index.js +65 -28
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,10 +32,18 @@ type URIHealth = {
|
|
|
32
32
|
healthy: boolean;
|
|
33
33
|
latency: CheckResult;
|
|
34
34
|
};
|
|
35
|
+
type Search = {
|
|
36
|
+
key: string;
|
|
37
|
+
value: string;
|
|
38
|
+
} | URLSearchParams | string;
|
|
35
39
|
declare class URI extends URL implements ILoggable {
|
|
36
40
|
readonly insecure: boolean;
|
|
41
|
+
static REASON: string;
|
|
37
42
|
private constructor();
|
|
43
|
+
get reason(): string | undefined;
|
|
44
|
+
withSearch(search: Search, value?: string): this;
|
|
38
45
|
static from(uri: string): URI;
|
|
46
|
+
static fromError(error: Error, code?: number): URI;
|
|
39
47
|
health(): Promise<URIHealth>;
|
|
40
48
|
repr(): string;
|
|
41
49
|
}
|