@mintlify/common 1.0.1288 → 1.0.1289
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.
|
@@ -106,8 +106,9 @@ export const parseSdkTargetFromMetadata = (metadata, inherited) => {
|
|
|
106
106
|
const format = typeof raw.format === 'string' && isSdkFormat(raw.format) ? raw.format : undefined;
|
|
107
107
|
const source = typeof raw.source === 'string' && raw.source.length > 0 ? raw.source : undefined;
|
|
108
108
|
const parent = typeof raw.parent === 'string' && raw.parent.length > 0 ? raw.parent : undefined;
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
const namespace = typeof raw.namespace === 'string' && raw.namespace.length > 0 ? raw.namespace : undefined;
|
|
110
|
+
target = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (format ? { format } : {})), (source ? { source } : {})), { kind,
|
|
111
|
+
name }), (parent ? { parent } : {})), (namespace ? { namespace } : {}));
|
|
111
112
|
}
|
|
112
113
|
else {
|
|
113
114
|
return undefined;
|
|
@@ -123,6 +124,6 @@ export const resolveSdkTarget = (target, inherited) => {
|
|
|
123
124
|
if (MEMBER_KINDS.has(target.kind) && !target.parent) {
|
|
124
125
|
return undefined;
|
|
125
126
|
}
|
|
126
|
-
return Object.assign({ format,
|
|
127
|
-
source, kind: target.kind, name: target.name }, (target.parent ? { parent: target.parent } : {}));
|
|
127
|
+
return Object.assign(Object.assign({ format,
|
|
128
|
+
source, kind: target.kind, name: target.name }, (target.parent ? { parent: target.parent } : {})), (target.namespace ? { namespace: target.namespace } : {}));
|
|
128
129
|
};
|