🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@mintlify/validation

Package Overview
Dependencies
Maintainers
9
Versions
747
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.738
to
0.1.739
+4
-18
dist/types/deployment/index.d.ts

@@ -11,3 +11,2 @@ import { Analytics, MintConfig, InkeepType, FeatureFlags, LlmSupportedLocaleType, PlanTypeV2 } from '@mintlify/models';

import { EditorPermissionsType, EditorType } from './editor.js';
import { GitlabSource, GithubSource } from './gitSource.js';
import { GitSource } from './gitSource.js';

@@ -33,4 +32,3 @@ import { MCPType } from './mcp.js';

type DeploymentGitSourcesInput = {
gitSource?: GitSource;
gitSources?: DeploymentGitSource[];
gitSources: DeploymentGitSource[];
};

@@ -43,5 +41,3 @@ export type DeploymentType = {

createdAt?: string;
/** @deprecated Use `gitSources` instead. This is kept temporarily for rollback compatibility. */
gitSource?: GitSource;
gitSources: DeploymentGitSource[];
gitSources: NonEmptyArray<DeploymentGitSource>;
sourceChecks?: SourceCheckType[];

@@ -88,4 +84,4 @@ analytics?: Analytics;

};
export declare const getGitSources: ({ gitSource, gitSources, }: DeploymentGitSourcesInput) => NonEmptyArray<GitSource | DeploymentGitSource>;
export declare const getPrimaryGitSource: (deployment: DeploymentGitSourcesInput) => GitSource | DeploymentGitSource;
export declare const getGitSources: ({ gitSources, }: DeploymentGitSourcesInput) => NonEmptyArray<DeploymentGitSource>;
export declare const getPrimaryGitSource: (deployment: DeploymentGitSourcesInput) => DeploymentGitSource;
export type StaticPropsDeploymentAuthType = {

@@ -96,15 +92,5 @@ logoutUrl?: string;

auth?: StaticPropsDeploymentAuthType;
/** @deprecated Use `gitSources` instead. This is kept temporarily for rollback compatibility. */
gitSource?: GitSource;
preview?: DeploymentPreviewType;
atlas?: AtlasDeployment;
};
export type GithubDeploymentType = DeploymentType & {
/** @deprecated Use `gitSources` instead. This is kept temporarily for rollback compatibility. */
gitSource?: GithubSource;
};
export type GitlabDeploymentType = DeploymentType & {
/** @deprecated Use `gitSources` instead. This is kept temporarily for rollback compatibility. */
gitSource?: GitlabSource;
};
export type AtlasDeployment = {

@@ -111,0 +97,0 @@ id: string;

+2
-5

@@ -1,9 +0,6 @@

export const getGitSources = ({ gitSource, gitSources, }) => {
const [primaryGitSource, ...remainingGitSources] = gitSources !== null && gitSources !== void 0 ? gitSources : [];
export const getGitSources = ({ gitSources, }) => {
const [primaryGitSource, ...remainingGitSources] = gitSources;
if (primaryGitSource !== undefined) {
return [primaryGitSource, ...remainingGitSources];
}
if (gitSource !== undefined) {
return [gitSource];
}
throw new Error('Deployment must have at least one git source');

@@ -10,0 +7,0 @@ };

{
"name": "@mintlify/validation",
"version": "0.1.738",
"version": "0.1.739",
"description": "Validates mint.json files",

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

},
"gitHead": "03d1991aa2f6b8e0ec991390bc3e12be623c50ae"
"gitHead": "06f6507cd8d0cb02493bbb5af1f6170362225957"
}

Sorry, the diff of this file is not supported yet