@secondlayer/cli 5.4.0 → 5.4.1

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 CHANGED
@@ -32321,7 +32321,7 @@ var {
32321
32321
  // package.json
32322
32322
  var package_default = {
32323
32323
  name: "@secondlayer/cli",
32324
- version: "5.4.0",
32324
+ version: "5.4.1",
32325
32325
  description: "CLI for subgraphs and blockchain indexing on Stacks",
32326
32326
  type: "module",
32327
32327
  bin: {
@@ -33468,6 +33468,10 @@ async function resolveSubscriptionRef(client, ref) {
33468
33468
  detail: await client.subscriptions.get(nameMatches[0].id)
33469
33469
  };
33470
33470
  }
33471
+ const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
33472
+ if (!UUID_RE.test(ref)) {
33473
+ throw new Error(`Subscription "${ref}" not found.`);
33474
+ }
33471
33475
  return {
33472
33476
  id: ref,
33473
33477
  detail: await client.subscriptions.get(ref)
@@ -37096,5 +37100,5 @@ registerAccountCommand(program);
37096
37100
  registerBillingCommand(program);
37097
37101
  program.parse();
37098
37102
 
37099
- //# debugId=7D07B6242D81B6A564756E2164756E21
37103
+ //# debugId=F6198A7D6A4B4A3F64756E2164756E21
37100
37104
  //# sourceMappingURL=cli.js.map