@mintlify/validation 0.1.752 → 0.1.754

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,6 +25,7 @@ export type SearchFilterCount = {
25
25
  export type DeploymentGitSource = GitSource & {
26
26
  mountPath: string;
27
27
  label: string;
28
+ isBase?: boolean;
28
29
  };
29
30
  type NonEmptyArray<T> = [T, ...T[]];
30
31
  type DeploymentGitSourcesInput = {
@@ -6,7 +6,9 @@ export const getGitSources = ({ gitSources, }) => {
6
6
  throw new Error('Deployment must have at least one git source');
7
7
  };
8
8
  export const getPrimaryGitSource = (deployment) => {
9
- return getGitSources(deployment)[0];
9
+ var _a;
10
+ const gitSources = getGitSources(deployment);
11
+ return (_a = gitSources.find((gitSource) => gitSource.isBase === true)) !== null && _a !== void 0 ? _a : gitSources[0];
10
12
  };
11
13
  export * from './auth.js';
12
14
  export * from './deploymentEntitlements.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/validation",
3
- "version": "0.1.752",
3
+ "version": "0.1.754",
4
4
  "description": "Validates mint.json files",
5
5
  "author": "Mintlify, Inc.",
6
6
  "bugs": {
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@mintlify/mdx": "3.0.4",
44
- "@mintlify/models": "0.0.327",
44
+ "@mintlify/models": "0.0.328",
45
45
  "arktype": "2.1.27",
46
46
  "fractional-indexing": "3.2.0",
47
47
  "js-yaml": "4.1.1",
@@ -72,5 +72,5 @@
72
72
  "typescript": "5.5.3",
73
73
  "vitest": "2.1.9"
74
74
  },
75
- "gitHead": "e97ef7a14b84d58d5cf4acb64bed4b637f5da460"
75
+ "gitHead": "df4dba0ccde011a386c7e3c6bcebd34ef1d05951"
76
76
  }