@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.
- package/dist/{chunk-I6UGZOTH.js → chunk-XYBAD4N6.js} +9 -3
- package/dist/{chunk-I6UGZOTH.js.map → chunk-XYBAD4N6.js.map} +1 -1
- package/dist/{dist-G2XQHKA6.js → dist-DC323R52.js} +2 -2
- package/dist/{dist-GIJDTUKJ.js → dist-NPHL44A3.js} +12 -6
- package/dist/{dist-GIJDTUKJ.js.map → dist-NPHL44A3.js.map} +1 -1
- package/dist/index.js +3 -3
- package/package.json +4 -4
- /package/dist/{dist-G2XQHKA6.js.map → dist-DC323R52.js.map} +0 -0
|
@@ -12241,7 +12241,12 @@ function requirementFieldMap(listing) {
|
|
|
12241
12241
|
return listing;
|
|
12242
12242
|
}
|
|
12243
12243
|
function requirementHint(value) {
|
|
12244
|
-
|
|
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
|
|
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-
|
|
13323
|
+
//# sourceMappingURL=chunk-XYBAD4N6.js.map
|