@staff0rd/assist 0.129.0 → 0.130.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/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.130.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -7520,7 +7520,7 @@ function resolveConnection2(name) {
|
|
|
7520
7520
|
// src/commands/seq/seqQuery.ts
|
|
7521
7521
|
async function seqQuery(filter, options2) {
|
|
7522
7522
|
const conn = resolveConnection2(options2.connection);
|
|
7523
|
-
const count = Number.parseInt(options2.count ?? "
|
|
7523
|
+
const count = Number.parseInt(options2.count ?? "1000", 10);
|
|
7524
7524
|
const params = new URLSearchParams({ filter, count: String(count) });
|
|
7525
7525
|
const url = `${conn.url}/api/events?${params}`;
|
|
7526
7526
|
const response = await fetch(url, {
|
|
@@ -7549,6 +7549,13 @@ async function seqQuery(filter, options2) {
|
|
|
7549
7549
|
}
|
|
7550
7550
|
console.log(chalk88.dim(`
|
|
7551
7551
|
${events.length} events`));
|
|
7552
|
+
if (events.length >= count) {
|
|
7553
|
+
console.log(
|
|
7554
|
+
chalk88.yellow(
|
|
7555
|
+
`Results limited to ${count}. Use --count to retrieve more.`
|
|
7556
|
+
)
|
|
7557
|
+
);
|
|
7558
|
+
}
|
|
7552
7559
|
}
|
|
7553
7560
|
|
|
7554
7561
|
// src/commands/seq/seqSetConnection.ts
|