Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mintlify/prebuild

Package Overview
Dependencies
Maintainers
5
Versions
290
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintlify/prebuild - npm Package Compare versions

Comparing version 1.0.69 to 1.0.70

6

dist/generate.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc