@secondlayer/cli 17.0.3 → 18.0.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/cli.js +9 -9
- package/dist/cli.js.map +3 -3
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -202495,7 +202495,7 @@ var {
|
|
|
202495
202495
|
// package.json
|
|
202496
202496
|
var package_default = {
|
|
202497
202497
|
name: "@secondlayer/cli",
|
|
202498
|
-
version: "
|
|
202498
|
+
version: "18.0.0",
|
|
202499
202499
|
description: "Run a Stacks index on your own hardware — set it up, restore verified history, and keep it current.",
|
|
202500
202500
|
repository: {
|
|
202501
202501
|
type: "git",
|
|
@@ -202534,8 +202534,8 @@ var package_default = {
|
|
|
202534
202534
|
"@inquirer/prompts": "^8.2.0",
|
|
202535
202535
|
"@secondlayer/bundler": "^0.6.1",
|
|
202536
202536
|
"@secondlayer/scaffold": "^1.6.1",
|
|
202537
|
-
"@secondlayer/sdk": "^
|
|
202538
|
-
"@secondlayer/shared": "^11.
|
|
202537
|
+
"@secondlayer/sdk": "^13.0.0",
|
|
202538
|
+
"@secondlayer/shared": "^11.14.0",
|
|
202539
202539
|
"@secondlayer/stacks": "^6.1.0",
|
|
202540
202540
|
"@secondlayer/subgraphs": "^6.2.5",
|
|
202541
202541
|
esbuild: "^0.28.2",
|
|
@@ -205255,6 +205255,10 @@ function formatWebhookTarget(sub) {
|
|
|
205255
205255
|
}
|
|
205256
205256
|
return `${sub.subgraphName}.${sub.tableName}`;
|
|
205257
205257
|
}
|
|
205258
|
+
function formatAuthLine(auth) {
|
|
205259
|
+
const scheme = auth.type === "bearer" ? auth.hasSecret ? "bearer token (set, hidden)" : "bearer (no token set)" : auth.type === "basic" ? auth.hasSecret ? "basic auth (set, hidden)" : "basic (no credentials set)" : "none";
|
|
205260
|
+
return auth.headerNames.length > 0 ? `${scheme}, headers: ${auth.headerNames.join(", ")}` : scheme;
|
|
205261
|
+
}
|
|
205258
205262
|
function printWebhookDetail(sub) {
|
|
205259
205263
|
console.log(formatKeyValue([
|
|
205260
205264
|
["ID", sub.id],
|
|
@@ -205264,6 +205268,7 @@ function printWebhookDetail(sub) {
|
|
|
205264
205268
|
["Format", sub.format],
|
|
205265
205269
|
["Runtime", sub.runtime ?? "none"],
|
|
205266
205270
|
["URL", sub.url],
|
|
205271
|
+
["Auth", formatAuthLine(sub.auth)],
|
|
205267
205272
|
["Last Delivery", sub.lastDeliveryAt ?? "none"],
|
|
205268
205273
|
["Last Success", sub.lastSuccessAt ?? "none"],
|
|
205269
205274
|
["Circuit Failures", String(sub.circuitFailures)],
|
|
@@ -205279,11 +205284,6 @@ function printWebhookDetail(sub) {
|
|
|
205279
205284
|
console.log(dim(`
|
|
205280
205285
|
Filter:`));
|
|
205281
205286
|
console.log(JSON.stringify(sub.filter, null, 2));
|
|
205282
|
-
if (Object.keys(sub.authConfig).length > 0) {
|
|
205283
|
-
console.log(dim(`
|
|
205284
|
-
Auth config:`));
|
|
205285
|
-
console.log(JSON.stringify(sub.authConfig, null, 2));
|
|
205286
|
-
}
|
|
205287
205287
|
}
|
|
205288
205288
|
var DOCTOR_ISSUE_TITLES = {
|
|
205289
205289
|
warning: "This webhook can't fire yet",
|
|
@@ -209059,5 +209059,5 @@ registerCreditsCommand(program);
|
|
|
209059
209059
|
registerArchiveCommand(program);
|
|
209060
209060
|
program.parse();
|
|
209061
209061
|
|
|
209062
|
-
//# debugId=
|
|
209062
|
+
//# debugId=268D1F88F7CF1FDE64756E2164756E21
|
|
209063
209063
|
//# sourceMappingURL=cli.js.map
|