@secondlayer/cli 8.10.0 → 8.10.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
@@ -31811,7 +31811,7 @@ var {
31811
31811
  // package.json
31812
31812
  var package_default = {
31813
31813
  name: "@secondlayer/cli",
31814
- version: "8.10.0",
31814
+ version: "8.10.1",
31815
31815
  repository: {
31816
31816
  type: "git",
31817
31817
  url: "git+https://github.com/ryanwaits/secondlayer.git",
@@ -31864,7 +31864,7 @@ var package_default = {
31864
31864
  "@secondlayer/sdk": "^6.22.0",
31865
31865
  "@secondlayer/shared": "^6.32.0",
31866
31866
  "@secondlayer/stacks": "^2.5.1",
31867
- "@secondlayer/subgraphs": "^3.14.0",
31867
+ "@secondlayer/subgraphs": "^3.14.1",
31868
31868
  "@biomejs/js-api": "^0.7.0",
31869
31869
  "@biomejs/wasm-nodejs": "^1.9.0",
31870
31870
  esbuild: "^0.19.0",
@@ -32042,7 +32042,13 @@ async function getSubgraphGaps(name, opts) {
32042
32042
  return (await getPlatformClient()).subgraphs.gaps(name, opts);
32043
32043
  }
32044
32044
  async function getContractPrintSchema(contractId) {
32045
- return (await getPlatformClient()).index.printSchema(contractId);
32045
+ let client;
32046
+ try {
32047
+ client = await getPlatformClient();
32048
+ } catch {
32049
+ client = new SecondLayer({ baseUrl: resolveApiUrl() });
32050
+ }
32051
+ return client.index.printSchema(contractId);
32046
32052
  }
32047
32053
  async function getAccountProfile() {
32048
32054
  return httpPlatform("/api/accounts/me");
@@ -38094,5 +38100,5 @@ registerAccountCommand(program);
38094
38100
  registerKeysCommand(program);
38095
38101
  program.parse();
38096
38102
 
38097
- //# debugId=D198B46A9AA7918164756E2164756E21
38103
+ //# debugId=07E11A04E219197464756E2164756E21
38098
38104
  //# sourceMappingURL=cli.js.map