@scaffoldly/rowdy 0.0.2-1-beta.20251011143634.08bc5fc → 0.0.2-1-beta.20251011161842.06c67d5
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 +9 -3
- package/dist/index.js +323 -289
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
|
|
2
4
|
interface ILoggable {
|
|
3
5
|
repr(): string;
|
|
4
6
|
}
|
|
@@ -38,13 +40,15 @@ type Search = {
|
|
|
38
40
|
} | URLSearchParams | string;
|
|
39
41
|
declare class URI extends URL implements ILoggable {
|
|
40
42
|
readonly insecure: boolean;
|
|
43
|
+
protected static awaits: Map<string, Observable<URI>>;
|
|
41
44
|
static REASON: string;
|
|
42
|
-
|
|
45
|
+
protected constructor(url: URL, insecure?: boolean);
|
|
43
46
|
get reason(): string | undefined;
|
|
44
47
|
withSearch(search: Search, value?: string): this;
|
|
45
48
|
static from(uri: string): URI;
|
|
46
49
|
static fromError(error: Error, code?: number): URI;
|
|
47
|
-
health(): Promise<URIHealth>;
|
|
50
|
+
health(timeoutMs?: number): Promise<URIHealth>;
|
|
51
|
+
await(intervalMs?: number): Observable<URI>;
|
|
48
52
|
repr(): string;
|
|
49
53
|
}
|
|
50
54
|
type Health = {
|
|
@@ -71,4 +75,6 @@ declare class Routes implements IRoutes, ILoggable {
|
|
|
71
75
|
repr(): string;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
|
|
78
|
+
declare const ABORT: AbortController;
|
|
79
|
+
|
|
80
|
+
export { ABORT, Routes, URI };
|