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

@mintlify/validation

Package Overview
Dependencies
Maintainers
5
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintlify/validation - npm Package Compare versions

Comparing version 0.1.63 to 0.1.64

3

dist/mint-config/schemas/navigation.d.ts

@@ -6,2 +6,3 @@ import { NavigationGroup } from '@mintlify/models';

icon: z.ZodOptional<z.ZodString>;
iconType: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-solid", "solid", "thin"]>>;
version: z.ZodOptional<z.ZodString>;

@@ -11,2 +12,3 @@ }, "strict", z.ZodTypeAny, {

icon?: string | undefined;
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-solid" | "solid" | "thin" | undefined;
version?: string | undefined;

@@ -16,4 +18,5 @@ }, {

icon?: string | undefined;
iconType?: "brands" | "duotone" | "light" | "regular" | "sharp-solid" | "solid" | "thin" | undefined;
version?: string | undefined;
}>;
export declare const navigationSchema: z.ZodArray<z.ZodType<NavigationGroup, z.ZodTypeDef, NavigationGroup>, "many">;

@@ -0,1 +1,2 @@

import { iconTypes } from '@mintlify/models';
import { z } from 'zod';

@@ -12,2 +13,11 @@ // export to allow type testing against @mintlify/models

icon: z.string({ invalid_type_error: 'Icon must be a string.' }).optional(),
iconType: z
.enum(iconTypes, {
errorMap: function () {
return {
message: 'group iconType must be one of the following strings: brands, duotone, light, sharp-solid, solid, thin',
};
},
})
.optional(),
version: z.string({ invalid_type_error: 'Version must be a string.' }).optional(),

@@ -14,0 +24,0 @@ }, { invalid_type_error: 'Navigation entry must be an object.' })

6

package.json
{
"name": "@mintlify/validation",
"version": "0.1.63",
"version": "0.1.64",
"description": "Validates mint.json files",

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

"@mintlify/eslint-config-typescript": "1.0.7",
"@mintlify/models": "0.0.29",
"@mintlify/models": "0.0.30",
"@mintlify/prettier-config": "1.0.1",

@@ -82,3 +82,3 @@ "@mintlify/ts-config": "1.0.7",

},
"gitHead": "f9a29f3de6300880517b4748f7b4822c625680c2"
"gitHead": "ebc76997a0bd3685141f7718faabd3ef84ce2092"
}

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