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
289
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.55 to 1.0.56

4

dist/prebuild/categorizeFiles.js

@@ -27,3 +27,3 @@ import * as path from 'path';

isOpenApi = openApiInfo.isOpenApi;
if (!isOpenApi || !openApiInfo.document) {
if (!isOpenApi || !openApiInfo.spec) {
break;

@@ -34,3 +34,3 @@ }

filename: fileName.substring(0, fileName.lastIndexOf('.')),
document: openApiInfo.document,
spec: openApiInfo.spec,
});

@@ -37,0 +37,0 @@ break;

@@ -149,3 +149,3 @@ import matter from 'gray-matter';

openApiFiles?.forEach((file) => {
const openApiFile = file.document;
const openApiFile = file.spec;
const openApiPath = openApiFile?.paths && openApiFile?.paths[endpoint];

@@ -152,0 +152,0 @@ const isFilenameOrNone = !filename || filename === file.filename;

@@ -144,3 +144,3 @@ import SwaggerParser from '@apidevtools/swagger-parser';

filename: 'openapi-from-url',
document: specFromUrl,
spec: specFromUrl,
});

@@ -147,0 +147,0 @@ }

import { OpenAPI } from 'openapi-types';
export declare const getFileExtension: (filename: string) => string;
export declare const openApiCheck: (path: string | OpenAPI.Document) => Promise<{
document: OpenAPI.Document<{}> | undefined;
spec: OpenAPI.Document<{}> | undefined;
isOpenApi: boolean;

@@ -6,0 +6,0 @@ }>;

@@ -10,6 +10,6 @@ import SwaggerParser from '@apidevtools/swagger-parser';

export const openApiCheck = async (path) => {
let document;
let spec;
let isOpenApi = false;
try {
document = await SwaggerParser.validate(path);
spec = await SwaggerParser.validate(path);
isOpenApi = true;

@@ -20,3 +20,3 @@ }

}
return { document, isOpenApi };
return { spec, isOpenApi };
};

@@ -23,0 +23,0 @@ export const filterOutNullInGroup = (group) => {

{
"name": "@mintlify/prebuild",
"type": "module",
"version": "1.0.55",
"version": "1.0.56",
"description": "Helpful functions for Mintlify's prebuild step",

@@ -59,6 +59,6 @@ "author": "Mintlify, Inc.",

"@mintlify/eslint-config-typescript": "1.0.7",
"@mintlify/models": "0.0.46",
"@mintlify/models": "0.0.47",
"@mintlify/prettier-config": "1.0.1",
"@mintlify/ts-config": "2.0.0",
"@mintlify/validation": "0.1.84",
"@mintlify/validation": "0.1.85",
"@trivago/prettier-plugin-sort-imports": "3.x",

@@ -80,3 +80,3 @@ "@tsconfig/recommended": "1.x",

},
"gitHead": "a5ccd27af91d1844d56051568045fd6994fd024b"
"gitHead": "32c09d4e155d6f93b617b04f21da67786dfdd783"
}

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