@dereekb/dbx-cli 13.14.0 → 13.16.0
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/firebase-api-manifest/main.js +147 -132
- package/firebase-api-manifest/package.json +3 -3
- package/generate-firestore-indexes/main.js +37 -24
- package/generate-firestore-indexes/package.json +2 -2
- package/generate-mcp-manifest/main.js +49 -37
- package/generate-mcp-manifest/package.json +3 -3
- package/index.cjs.js +549 -331
- package/index.esm.js +549 -332
- package/lint-cache/package.json +2 -2
- package/manifest-extract/index.cjs.js +131 -118
- package/manifest-extract/index.esm.js +131 -118
- package/manifest-extract/package.json +2 -2
- package/package.json +15 -6
- package/src/lib/util/output.d.ts +11 -3
- package/test/index.cjs.js +1 -1
- package/test/index.esm.js +1 -1
- package/test/package.json +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"bin": {
|
|
@@ -28,12 +28,21 @@
|
|
|
28
28
|
"import": "./manifest-extract/index.cjs.mjs",
|
|
29
29
|
"default": "./manifest-extract/index.cjs.js"
|
|
30
30
|
},
|
|
31
|
+
"./model-test": {
|
|
32
|
+
"module": "./model-test/index.esm.js",
|
|
33
|
+
"types": "./model-test/index.d.ts",
|
|
34
|
+
"import": "./model-test/index.cjs.mjs",
|
|
35
|
+
"default": "./model-test/index.cjs.js"
|
|
36
|
+
},
|
|
31
37
|
"./test": {
|
|
32
38
|
"module": "./test/index.esm.js",
|
|
33
39
|
"types": "./test/index.d.ts",
|
|
34
40
|
"import": "./test/index.cjs.mjs",
|
|
35
41
|
"default": "./test/index.cjs.js"
|
|
36
42
|
},
|
|
43
|
+
"./validate": {
|
|
44
|
+
"default": "./validate/index.js"
|
|
45
|
+
},
|
|
37
46
|
"./package.json": "./package.json",
|
|
38
47
|
".": {
|
|
39
48
|
"import": "./index.esm.js",
|
|
@@ -41,11 +50,11 @@
|
|
|
41
50
|
}
|
|
42
51
|
},
|
|
43
52
|
"peerDependencies": {
|
|
44
|
-
"@dereekb/date": "13.
|
|
45
|
-
"@dereekb/firebase": "13.
|
|
46
|
-
"@dereekb/model": "13.
|
|
47
|
-
"@dereekb/nestjs": "13.
|
|
48
|
-
"@dereekb/util": "13.
|
|
53
|
+
"@dereekb/date": "13.16.0",
|
|
54
|
+
"@dereekb/firebase": "13.16.0",
|
|
55
|
+
"@dereekb/model": "13.16.0",
|
|
56
|
+
"@dereekb/nestjs": "13.16.0",
|
|
57
|
+
"@dereekb/util": "13.16.0",
|
|
49
58
|
"@nestjs/common": "^11.1.19",
|
|
50
59
|
"arktype": "^2.2.0",
|
|
51
60
|
"jiti": "2.6.1",
|
package/src/lib/util/output.d.ts
CHANGED
|
@@ -55,6 +55,13 @@ export declare const DEFAULT_CLI_SECRET_PATTERNS: CliSecretPattern[];
|
|
|
55
55
|
* back to the built-in `CliError` / `Error` / unknown branches. Returning `undefined` defers to the defaults.
|
|
56
56
|
*/
|
|
57
57
|
export type CliErrorMapper = (error: unknown) => Maybe<CliErrorOutput>;
|
|
58
|
+
/**
|
|
59
|
+
* Default per-request HTTP timeout in milliseconds, applied when no explicit `--timeout` is set.
|
|
60
|
+
*
|
|
61
|
+
* Without a default, the HTTP layer's `fetch` waits indefinitely on an unresponsive server, which
|
|
62
|
+
* surfaces as a CLI (or CI test) that hangs forever rather than failing with a clear error.
|
|
63
|
+
*/
|
|
64
|
+
export declare const DEFAULT_CLI_HTTP_TIMEOUT_MS = 60000;
|
|
58
65
|
/**
|
|
59
66
|
* Configures output options from parsed CLI arguments.
|
|
60
67
|
*
|
|
@@ -105,10 +112,11 @@ export declare function tracedFetch(fetcher: typeof fetch | undefined, input: st
|
|
|
105
112
|
/**
|
|
106
113
|
* Sets the process-wide HTTP timeout (in milliseconds) honored by the HTTP layer.
|
|
107
114
|
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
115
|
+
* The HTTP helpers thread a positive value into an `AbortController` so individual `fetch` calls
|
|
116
|
+
* cancel after the configured duration. `undefined` falls back to {@link DEFAULT_CLI_HTTP_TIMEOUT_MS};
|
|
117
|
+
* `0` (or a negative value) disables the timeout entirely (the request waits indefinitely).
|
|
110
118
|
*
|
|
111
|
-
* @param ms - Timeout in ms, or `undefined` to
|
|
119
|
+
* @param ms - Timeout in ms, `0`/negative to disable, or `undefined` to fall back to the default.
|
|
112
120
|
*/
|
|
113
121
|
export declare function setCliTimeoutMs(ms: Maybe<number>): void;
|
|
114
122
|
/**
|
package/test/index.cjs.js
CHANGED
|
@@ -335,7 +335,7 @@ function _ts_generator(thisArg, body) {
|
|
|
335
335
|
case 2:
|
|
336
336
|
address = server.address();
|
|
337
337
|
port = (typeof address === "undefined" ? "undefined" : _type_of(address)) === 'object' && address ? address.port : 0;
|
|
338
|
-
trimmedPrefix = prefix.
|
|
338
|
+
trimmedPrefix = prefix.replaceAll(/^\/+|\/+$/g, '');
|
|
339
339
|
apiBaseUrl = trimmedPrefix.length > 0 ? "http://".concat(host, ":").concat(port, "/").concat(trimmedPrefix) : "http://".concat(host, ":").concat(port);
|
|
340
340
|
return [
|
|
341
341
|
2,
|
package/test/index.esm.js
CHANGED
|
@@ -333,7 +333,7 @@ function _ts_generator(thisArg, body) {
|
|
|
333
333
|
case 2:
|
|
334
334
|
address = server.address();
|
|
335
335
|
port = (typeof address === "undefined" ? "undefined" : _type_of(address)) === 'object' && address ? address.port : 0;
|
|
336
|
-
trimmedPrefix = prefix.
|
|
336
|
+
trimmedPrefix = prefix.replaceAll(/^\/+|\/+$/g, '');
|
|
337
337
|
apiBaseUrl = trimmedPrefix.length > 0 ? "http://".concat(host, ":").concat(port, "/").concat(trimmedPrefix) : "http://".concat(host, ":").concat(port);
|
|
338
338
|
return [
|
|
339
339
|
2,
|
package/test/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli/test",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.16.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/date": "13.
|
|
6
|
-
"@dereekb/dbx-cli": "13.
|
|
7
|
-
"@dereekb/firebase": "13.
|
|
8
|
-
"@dereekb/firebase-server/test": "13.
|
|
9
|
-
"@dereekb/model": "13.
|
|
10
|
-
"@dereekb/nestjs": "13.
|
|
11
|
-
"@dereekb/rxjs": "13.
|
|
12
|
-
"@dereekb/util": "13.
|
|
5
|
+
"@dereekb/date": "13.16.0",
|
|
6
|
+
"@dereekb/dbx-cli": "13.16.0",
|
|
7
|
+
"@dereekb/firebase": "13.16.0",
|
|
8
|
+
"@dereekb/firebase-server/test": "13.16.0",
|
|
9
|
+
"@dereekb/model": "13.16.0",
|
|
10
|
+
"@dereekb/nestjs": "13.16.0",
|
|
11
|
+
"@dereekb/rxjs": "13.16.0",
|
|
12
|
+
"@dereekb/util": "13.16.0",
|
|
13
13
|
"@nestjs/common": "^11.1.19",
|
|
14
14
|
"arktype": "^2.2.0",
|
|
15
15
|
"vitest": "4.1.5",
|