@mintlify/prebuild
Advanced tools
Comparing version 1.0.69 to 1.0.70
export const generateDecoratedMintNavigationFromPages = (filenamePageMetadataMap, mintConfigNav) => { | ||
const filenames = Object.keys(filenamePageMetadataMap); | ||
const createNav = (nav) => { | ||
@@ -8,4 +7,5 @@ return { | ||
if (typeof page === 'string') { | ||
if (filenames.includes(page)) { | ||
return filenamePageMetadataMap[page]; | ||
const pageMetadata = filenamePageMetadataMap[page]; | ||
if (pageMetadata) { | ||
return pageMetadata; | ||
} | ||
@@ -12,0 +12,0 @@ else { |
@@ -100,10 +100,11 @@ import { getOpenApiOperationMethodAndEndpoint } from '@mintlify/common'; | ||
if (n.name === 'img' || n.name === 'source') { | ||
const srcAttrIndex = n.attributes.findIndex((attr) => attr.name === 'src'); | ||
const nodeUrl = n.attributes[srcAttrIndex].value; | ||
const srcAttr = n.attributes.find((attr) => attr.name === 'src'); | ||
const nodeUrl = srcAttr?.value; | ||
if ( | ||
// <img/> component | ||
srcAttrIndex !== -1 && | ||
srcAttr && | ||
nodeUrl && | ||
!isAbsoluteUrl(nodeUrl) && | ||
!isDataString(nodeUrl)) { | ||
n.attributes[srcAttrIndex].value = removeContentDirectoryPath(nodeUrl); | ||
srcAttr.value = removeContentDirectoryPath(nodeUrl); | ||
} | ||
@@ -110,0 +111,0 @@ } |
{ | ||
"name": "@mintlify/prebuild", | ||
"type": "module", | ||
"version": "1.0.69", | ||
"version": "1.0.70", | ||
"description": "Helpful functions for Mintlify's prebuild step", | ||
@@ -54,6 +54,6 @@ "author": "Mintlify, Inc.", | ||
"@mintlify/eslint-config-typescript": "1.0.9", | ||
"@mintlify/models": "0.0.51", | ||
"@mintlify/models": "0.0.52", | ||
"@mintlify/prettier-config": "1.0.1", | ||
"@mintlify/ts-config": "2.0.1", | ||
"@mintlify/validation": "0.1.94", | ||
"@mintlify/ts-config": "2.0.2", | ||
"@mintlify/validation": "0.1.95", | ||
"@trivago/prettier-plugin-sort-imports": "3.x", | ||
@@ -73,5 +73,5 @@ "@tsconfig/recommended": "1.x", | ||
"dependencies": { | ||
"@mintlify/common": "1.0.1" | ||
"@mintlify/common": "1.0.2" | ||
}, | ||
"gitHead": "999f35530b15583af7280003c55a90fec3967601" | ||
"gitHead": "0bda04b12eafb95772aa8e4cbf8f5cf2d246fb8e" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
740
290
22
50
7
189
96668
+ Added@mintlify/common@1.0.2(transitive)
+ Added@mintlify/models@0.0.52(transitive)
- Removed@mintlify/common@1.0.1(transitive)
- Removed@mintlify/models@0.0.51(transitive)
Updated@mintlify/common@1.0.2