@t2000/cli 10.13.1 → 10.13.2

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.
@@ -12241,7 +12241,12 @@ function requirementFieldMap(listing) {
12241
12241
  return listing;
12242
12242
  }
12243
12243
  function requirementHint(value) {
12244
- return typeof value === "string" ? value : JSON.stringify(value);
12244
+ if (typeof value === "string") return value;
12245
+ if (value && typeof value === "object" && !Array.isArray(value)) {
12246
+ const desc = value.description;
12247
+ if (typeof desc === "string" && desc.trim().length > 0) return desc;
12248
+ }
12249
+ return JSON.stringify(value);
12245
12250
  }
12246
12251
  function isPlainObject(value) {
12247
12252
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -12252,7 +12257,8 @@ function assertBuyerRequirements(listingRequirements, buyerPayload) {
12252
12257
  }
12253
12258
  if (isPlainObject(listingRequirements)) {
12254
12259
  const fields = requirementFieldMap(listingRequirements);
12255
- const keys = Object.keys(fields);
12260
+ const requiredRaw = listingRequirements.required;
12261
+ const keys = isPlainObject(listingRequirements.properties) && Array.isArray(requiredRaw) && requiredRaw.every((k) => typeof k === "string") ? requiredRaw : Object.keys(fields);
12256
12262
  if (keys.length === 0) {
12257
12263
  return;
12258
12264
  }
@@ -13314,4 +13320,4 @@ export {
13314
13320
  @scure/bip39/index.js:
13315
13321
  (*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
13316
13322
  */
13317
- //# sourceMappingURL=chunk-I6UGZOTH.js.map
13323
+ //# sourceMappingURL=chunk-XYBAD4N6.js.map