@swarm-tips/client 0.4.0 → 0.4.2
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/SBOM.spdx.json +5 -5
- package/dist/agent.js +1 -2
- package/dist/cli/swarm-tx.js +8 -2
- package/dist/cli/swarm.js +10 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/SBOM.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@swarm-tips/client-0.4.
|
|
6
|
-
"documentNamespace": "https://swarm.tips/sbom/client/0.4.
|
|
5
|
+
"name": "@swarm-tips/client-0.4.2",
|
|
6
|
+
"documentNamespace": "https://swarm.tips/sbom/client/0.4.2",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-11-
|
|
8
|
+
"created": "2026-11-12T07:46:22.352Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: sdk/client/scripts/generate-sbom.mjs",
|
|
11
11
|
"Organization: Swarm Tips"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
{
|
|
16
16
|
"name": "@swarm-tips/client",
|
|
17
17
|
"SPDXID": "SPDXRef-Package",
|
|
18
|
-
"versionInfo": "0.4.
|
|
19
|
-
"downloadLocation": "https://www.npmjs.com/package/@swarm-tips/client/v/0.4.
|
|
18
|
+
"versionInfo": "0.4.2",
|
|
19
|
+
"downloadLocation": "https://www.npmjs.com/package/@swarm-tips/client/v/0.4.2",
|
|
20
20
|
"filesAnalyzed": false,
|
|
21
21
|
"licenseConcluded": "MIT",
|
|
22
22
|
"licenseDeclared": "MIT"
|
package/dist/agent.js
CHANGED
|
@@ -330,8 +330,7 @@ export class SwarmAgent {
|
|
|
330
330
|
const targetNet = net ?? self.network;
|
|
331
331
|
const tournamentId = opts?.tournamentId ?? ACTIVE_TOURNAMENT_ID[targetNet];
|
|
332
332
|
const limit = opts?.limit ?? 20;
|
|
333
|
-
|
|
334
|
-
return self.gameClient.http.get(`/tournaments/${encodeURIComponent(String(tournamentId))}/leaderboard?limit=${encodeURIComponent(String(limit))}${suffix}`);
|
|
333
|
+
return self.gameClient.http.get(`/leaderboard?tournament_id=${encodeURIComponent(String(tournamentId))}&limit=${encodeURIComponent(String(limit))}`);
|
|
335
334
|
},
|
|
336
335
|
};
|
|
337
336
|
}
|
package/dist/cli/swarm-tx.js
CHANGED
|
@@ -40,7 +40,13 @@ async function main() {
|
|
|
40
40
|
}
|
|
41
41
|
throw new Error("usage: swarm-tx <build|inspect|verify|broadcast> [input.json]; otherwise JSON is read from stdin");
|
|
42
42
|
}
|
|
43
|
-
main().
|
|
43
|
+
main().then(() => {
|
|
44
|
+
if (process.stdout.writableNeedDrain) {
|
|
45
|
+
process.stdout.once("drain", () => process.exit(0));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
process.exit(0);
|
|
49
|
+
}, (error) => {
|
|
44
50
|
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
45
|
-
process.
|
|
51
|
+
process.exit(1);
|
|
46
52
|
});
|
package/dist/cli/swarm.js
CHANGED
|
@@ -506,11 +506,19 @@ function isDirectExecution() {
|
|
|
506
506
|
return false;
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
+
function exitAfterFlush(code) {
|
|
510
|
+
const finish = () => process.exit(code);
|
|
511
|
+
if (process.stdout.writableNeedDrain) {
|
|
512
|
+
process.stdout.once("drain", finish);
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
finish();
|
|
516
|
+
}
|
|
509
517
|
if (isDirectExecution()) {
|
|
510
518
|
runSwarmCli(process.argv.slice(2)).then((code) => {
|
|
511
|
-
|
|
519
|
+
exitAfterFlush(code);
|
|
512
520
|
}, (err) => {
|
|
513
521
|
process.stderr.write(`${err instanceof Error ? err.message : String(err)}\n`);
|
|
514
|
-
|
|
522
|
+
exitAfterFlush(2);
|
|
515
523
|
});
|
|
516
524
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CLIENT_VERSION = "0.4.
|
|
1
|
+
export declare const CLIENT_VERSION = "0.4.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLIENT_VERSION = "0.4.
|
|
1
|
+
export const CLIENT_VERSION = "0.4.2";
|