towns-bot 0.0.348 → 0.0.350

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/index.js CHANGED
@@ -1197,7 +1197,7 @@ var import_zod = require("zod");
1197
1197
  var import_picocolors4 = require("picocolors");
1198
1198
  var import_sdk = require("@towns-protocol/sdk");
1199
1199
 
1200
- // ../dlog/dist/binary.js
1200
+ // ../utils/dist/binary.js
1201
1201
  var import_wire = require("@bufbuild/protobuf/wire");
1202
1202
 
1203
1203
  // ../../node_modules/@noble/hashes/esm/utils.js
@@ -1263,7 +1263,7 @@ function hexToBytes2(data) {
1263
1263
  return hexToBytes(sliced);
1264
1264
  }
1265
1265
 
1266
- // ../dlog/dist/binary.js
1266
+ // ../utils/dist/binary.js
1267
1267
  function bin_fromHexString(hexString) {
1268
1268
  return hexToBytes2(hexString);
1269
1269
  }
@@ -1284,20 +1284,20 @@ function isHexString(value) {
1284
1284
  return /^(0x)?[0-9a-fA-F]+$/.test(value);
1285
1285
  }
1286
1286
 
1287
- // ../dlog/dist/check.js
1287
+ // ../utils/dist/check.js
1288
1288
  var import_proto = require("@towns-protocol/proto");
1289
1289
 
1290
- // ../dlog/dist/dlog.js
1290
+ // ../utils/dist/dlog.js
1291
1291
  var import_debug = __toESM(require_src(), 1);
1292
1292
 
1293
- // ../dlog/dist/utils.js
1293
+ // ../utils/dist/utils.js
1294
1294
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
1295
1295
  var isNodeEnv = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
1296
1296
  function isTestEnv() {
1297
1297
  return isNodeEnv && (process.env.NODE_ENV === "test" || process.env.VITEST === "true" || process.env.JEST_WORKER_ID !== void 0 || process.env.TS_JEST === "1");
1298
1298
  }
1299
1299
 
1300
- // ../dlog/dist/envUtils.js
1300
+ // ../utils/dist/envUtils.js
1301
1301
  function safeEnv(keys, opts) {
1302
1302
  for (const keyRef of keys) {
1303
1303
  const key = opts?.keyPrefix ? `${opts.keyPrefix}${keyRef}` : keyRef;
@@ -1315,7 +1315,7 @@ function safeEnv(keys, opts) {
1315
1315
  return void 0;
1316
1316
  }
1317
1317
 
1318
- // ../dlog/dist/dlog.js
1318
+ // ../utils/dist/dlog.js
1319
1319
  import_debug.default.enabled = (ns) => {
1320
1320
  if (ns.length > 0 && ns[ns.length - 1] === "*") {
1321
1321
  return true;
@@ -1485,7 +1485,7 @@ var dlogError = (ns) => {
1485
1485
  return l;
1486
1486
  };
1487
1487
 
1488
- // ../dlog/dist/check.js
1488
+ // ../utils/dist/check.js
1489
1489
  var log = dlogError("csb:error");
1490
1490
 
1491
1491
  // src/modules/update-commands.ts
@@ -1601,7 +1601,7 @@ ${errors}`);
1601
1601
  }
1602
1602
  try {
1603
1603
  const signerContext = await (0, import_sdk.makeSignerContextFromBearerToken)(bearerToken);
1604
- const appRegistryUrl = (0, import_sdk.getAppRegistryUrl)(env);
1604
+ const appRegistryUrl = (0, import_sdk.townsEnv)().getAppRegistryUrl(env);
1605
1605
  const { appRegistryRpcClient } = await import_sdk.AppRegistryService.authenticate(
1606
1606
  signerContext,
1607
1607
  appRegistryUrl