@shelby-protocol/cli 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/bin/entry.js +5 -13
  2. package/package.json +1 -1
package/bin/entry.js CHANGED
@@ -4,7 +4,7 @@
4
4
  import { Command } from "commander";
5
5
 
6
6
  // package.json
7
- var version = "0.0.6";
7
+ var version = "0.0.7";
8
8
 
9
9
  // src/commands/init.tsx
10
10
  import { render } from "ink";
@@ -1168,15 +1168,7 @@ var require2 = createRequire(import.meta.url);
1168
1168
  var __dirname = dirname(fileURLToPath(import.meta.url));
1169
1169
  var RS;
1170
1170
  try {
1171
- try {
1172
- RS = require2(join(__dirname, "binding.node"));
1173
- } catch {
1174
- try {
1175
- RS = require2(join(dirname(process.execPath), "binding.node"));
1176
- } catch {
1177
- RS = require2(join(process.cwd(), "bin", "binding.node"));
1178
- }
1179
- }
1171
+ RS = require2(join(__dirname, "binding.node"));
1180
1172
  } catch {
1181
1173
  RS = require2("@ronomon/reed-solomon");
1182
1174
  }
@@ -1271,12 +1263,11 @@ async function generateCommitments(fullData, onChunk, options) {
1271
1263
  };
1272
1264
  }
1273
1265
 
1274
- // ../../packages/sdk/dist/chunk-OR3AKY3F.mjs
1266
+ // ../../packages/sdk/dist/chunk-AASWNUSM.mjs
1275
1267
  import { Readable as Readable3 } from "stream";
1276
1268
  import {
1277
1269
  AccountAddress as AccountAddress3,
1278
1270
  Aptos as Aptos2,
1279
- AptosApiError,
1280
1271
  Hex,
1281
1272
  MoveVector
1282
1273
  } from "@aptos-labs/ts-sdk";
@@ -1317,7 +1308,8 @@ var ShelbyBlobClient = class _ShelbyBlobClient {
1317
1308
  expirationMicros: metadata.expiration_micros
1318
1309
  };
1319
1310
  } catch (error) {
1320
- if (error instanceof AptosApiError && error.data?.message?.includes("sub_status: Some(404)")) {
1311
+ if (error instanceof Error && // Depending on the network, the error message may show up differently.
1312
+ (error.message?.includes("sub_status: Some(404)") || error.message?.includes("EBLOB_NOT_FOUND"))) {
1321
1313
  return void 0;
1322
1314
  }
1323
1315
  throw error;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shelby-protocol/cli",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "private": false,
6
6
  "bin": {
7
7
  "shelby": "bin/entry.js"