@mintlify/validation
Advanced tools
@@ -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; |
@@ -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 @@ }; |
+2
-2
| { | ||
| "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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
3717811
-0.02%73023
-0.02%