@tempoxyz/patron 0.0.18 → 0.0.19
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/bin.js +3 -3
- package/dist/chunks/{-643GYNS6.js → -I33RKF7A.js} +1 -1
- package/dist/chunks/{chunk-XJOIDBXC.js → chunk-WG4BTHH7.js} +11 -1
- package/dist/chunks/{hook-CCXQ4T4L.js → hook-6DRXW2XN.js} +1 -1
- package/dist/chunks/{hook-process-YHSATQFR.js → hook-process-XBV2NU4E.js} +2 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -4,14 +4,14 @@ const require = __patronCreateRequire(import.meta.url)
|
|
|
4
4
|
|
|
5
5
|
// src/bin.ts
|
|
6
6
|
if (process.argv[2] === "hook") {
|
|
7
|
-
const { runHookProcess } = await import("./chunks/hook-process-
|
|
7
|
+
const { runHookProcess } = await import("./chunks/hook-process-XBV2NU4E.js");
|
|
8
8
|
await runHookProcess().catch(() => void 0);
|
|
9
9
|
process.exit(0);
|
|
10
10
|
} else if (process.argv[2] === "pay") {
|
|
11
|
-
const { runPayProcess } = await import("./chunks/hook-process-
|
|
11
|
+
const { runPayProcess } = await import("./chunks/hook-process-XBV2NU4E.js");
|
|
12
12
|
await runPayProcess().catch(() => void 0);
|
|
13
13
|
process.exit(0);
|
|
14
14
|
} else {
|
|
15
|
-
const { run } = await import("./chunks/-
|
|
15
|
+
const { run } = await import("./chunks/-I33RKF7A.js");
|
|
16
16
|
process.exitCode = await run(process.argv.slice(2));
|
|
17
17
|
}
|
|
@@ -27583,7 +27583,17 @@ var LeaderboardResponse = external_exports.object({
|
|
|
27583
27583
|
claimed: external_exports.boolean().default(true)
|
|
27584
27584
|
})
|
|
27585
27585
|
).default([]),
|
|
27586
|
-
|
|
27586
|
+
/**
|
|
27587
|
+
* tokens and usd are seals bought; spent and spentUsd are seals redeemed, which is what
|
|
27588
|
+
* sites have been paid.
|
|
27589
|
+
*/
|
|
27590
|
+
totals: external_exports.object({
|
|
27591
|
+
tokens: external_exports.number().int(),
|
|
27592
|
+
sites: external_exports.number().int(),
|
|
27593
|
+
usd,
|
|
27594
|
+
spent: external_exports.number().int().default(0),
|
|
27595
|
+
spentUsd: usd.default("0")
|
|
27596
|
+
})
|
|
27587
27597
|
});
|
|
27588
27598
|
var ClaimRequest = external_exports.object({
|
|
27589
27599
|
/** A registrable domain, or an X profile as "x.com/<handle>". */
|
|
@@ -25,7 +25,7 @@ async function runHookProcess(argument = process.argv[3]) {
|
|
|
25
25
|
if (isCursorPayload(payload)) process.stdout.write("{}\n");
|
|
26
26
|
if (!turnEnd(payload) && hookDomains(payload).length === 0) return;
|
|
27
27
|
if (await startPayment(raw)) return;
|
|
28
|
-
const { runHook } = await import("./hook-
|
|
28
|
+
const { runHook } = await import("./hook-6DRXW2XN.js");
|
|
29
29
|
await runHook({
|
|
30
30
|
readInput: async () => raw,
|
|
31
31
|
settings: resolveSettings(),
|
|
@@ -33,7 +33,7 @@ async function runHookProcess(argument = process.argv[3]) {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
async function runPayProcess() {
|
|
36
|
-
const { PAY_TIMEOUT_MS, runHook } = await import("./hook-
|
|
36
|
+
const { PAY_TIMEOUT_MS, runHook } = await import("./hook-6DRXW2XN.js");
|
|
37
37
|
setTimeout(() => process.exit(0), PAY_TIMEOUT_MS + 1e3).unref();
|
|
38
38
|
const raw = await readStdin(HOOK_TIMEOUT_MS);
|
|
39
39
|
await runHook(
|