@vercel/python-analysis 0.11.0 → 0.11.1

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.
package/dist/index.cjs CHANGED
@@ -1126,13 +1126,11 @@ async function convertRequirementsToPyprojectToml(fileContent, options) {
1126
1126
  }
1127
1127
  }
1128
1128
  }
1129
- if (deps.length > 0) {
1130
- pyproject.project = {
1131
- name: "app",
1132
- version: "0.1.0",
1133
- dependencies: deps
1134
- };
1135
- }
1129
+ pyproject.project = {
1130
+ name: "app",
1131
+ version: "0.1.0",
1132
+ dependencies: deps
1133
+ };
1136
1134
  const uv = {};
1137
1135
  const indexes = buildIndexEntries(parsed.pipOptions);
1138
1136
  if (indexes.length > 0) {
package/dist/index.js CHANGED
@@ -1045,13 +1045,11 @@ async function convertRequirementsToPyprojectToml(fileContent, options) {
1045
1045
  }
1046
1046
  }
1047
1047
  }
1048
- if (deps.length > 0) {
1049
- pyproject.project = {
1050
- name: "app",
1051
- version: "0.1.0",
1052
- dependencies: deps
1053
- };
1054
- }
1048
+ pyproject.project = {
1049
+ name: "app",
1050
+ version: "0.1.0",
1051
+ dependencies: deps
1052
+ };
1055
1053
  const uv = {};
1056
1054
  const indexes = buildIndexEntries(parsed.pipOptions);
1057
1055
  if (indexes.length > 0) {
@@ -11,30 +11,30 @@ import type { PipfileDependency, PipfileDependencyDetail, PipfileLike, PipfileLo
11
11
  /**
12
12
  * Schema for Pipfile dependency detail.
13
13
  */
14
- export declare const PipfileDependencyDetailSchema: z.ZodType<PipfileDependencyDetail, z.ZodTypeDef, PipfileDependencyDetail>;
14
+ export declare const PipfileDependencyDetailSchema: z.ZodType<PipfileDependencyDetail>;
15
15
  /**
16
16
  * Schema for Pipfile dependency (string version specifier or detail object).
17
17
  */
18
- export declare const PipfileDependencySchema: z.ZodType<PipfileDependency, z.ZodTypeDef, PipfileDependency>;
18
+ export declare const PipfileDependencySchema: z.ZodType<PipfileDependency>;
19
19
  /**
20
20
  * Schema for Pipfile source configuration.
21
21
  */
22
- export declare const PipfileSourceSchema: z.ZodType<PipfileSource, z.ZodTypeDef, PipfileSource>;
22
+ export declare const PipfileSourceSchema: z.ZodType<PipfileSource>;
23
23
  /**
24
24
  * Schema for Pipfile.
25
25
  *
26
26
  * Note: This is an intersection type (z.record().and(z.object())) so we don't
27
27
  * call .passthrough() - the record part already allows additional keys.
28
28
  */
29
- export declare const PipfileLikeSchema: z.ZodType<PipfileLike, z.ZodTypeDef, PipfileLike>;
29
+ export declare const PipfileLikeSchema: z.ZodType<PipfileLike>;
30
30
  /**
31
31
  * Schema for Pipfile.lock _meta section.
32
32
  */
33
- export declare const PipfileLockMetaSchema: z.ZodType<PipfileLockMeta, z.ZodTypeDef, PipfileLockMeta>;
33
+ export declare const PipfileLockMetaSchema: z.ZodType<PipfileLockMeta>;
34
34
  /**
35
35
  * Schema for Pipfile.lock.
36
36
  *
37
37
  * Note: This is an intersection type (z.record().and(z.object())) so we don't
38
38
  * call .passthrough() - the record part already allows additional keys.
39
39
  */
40
- export declare const PipfileLockLikeSchema: z.ZodType<PipfileLockLike, z.ZodTypeDef, PipfileLockLike>;
40
+ export declare const PipfileLockLikeSchema: z.ZodType<PipfileLockLike>;
@@ -11,40 +11,40 @@ import type { License, LicenseObject, Person, PyProjectBuildSystem, PyProjectDep
11
11
  /**
12
12
  * Schema for [build-system] per PEP 518.
13
13
  */
14
- export declare const PyProjectBuildSystemSchema: z.ZodType<PyProjectBuildSystem, z.ZodTypeDef, PyProjectBuildSystem>;
14
+ export declare const PyProjectBuildSystemSchema: z.ZodType<PyProjectBuildSystem>;
15
15
  /**
16
16
  * Schema for author/maintainer entries.
17
17
  */
18
- export declare const PersonSchema: z.ZodType<Person, z.ZodTypeDef, Person>;
18
+ export declare const PersonSchema: z.ZodType<Person>;
19
19
  /**
20
20
  * Schema for readme field as an object.
21
21
  */
22
- export declare const ReadmeObjectSchema: z.ZodType<ReadmeObject, z.ZodTypeDef, ReadmeObject>;
22
+ export declare const ReadmeObjectSchema: z.ZodType<ReadmeObject>;
23
23
  /**
24
24
  * Schema for readme field (can be string or object).
25
25
  */
26
- export declare const ReadmeSchema: z.ZodType<Readme, z.ZodTypeDef, Readme>;
26
+ export declare const ReadmeSchema: z.ZodType<Readme>;
27
27
  /**
28
28
  * Schema for license field as an object.
29
29
  */
30
- export declare const LicenseObjectSchema: z.ZodType<LicenseObject, z.ZodTypeDef, LicenseObject>;
30
+ export declare const LicenseObjectSchema: z.ZodType<LicenseObject>;
31
31
  /**
32
32
  * Schema for license field (can be string or object).
33
33
  */
34
- export declare const LicenseSchema: z.ZodType<License, z.ZodTypeDef, License>;
34
+ export declare const LicenseSchema: z.ZodType<License>;
35
35
  /**
36
36
  * Schema for core PEP 621 fields for [project].
37
37
  */
38
- export declare const PyProjectProjectSchema: z.ZodType<PyProjectProject, z.ZodTypeDef, PyProjectProject>;
38
+ export declare const PyProjectProjectSchema: z.ZodType<PyProjectProject>;
39
39
  /**
40
40
  * Schema for [dependency-groups].
41
41
  */
42
- export declare const PyProjectDependencyGroupsSchema: z.ZodType<PyProjectDependencyGroups, z.ZodTypeDef, PyProjectDependencyGroups>;
42
+ export declare const PyProjectDependencyGroupsSchema: z.ZodType<PyProjectDependencyGroups>;
43
43
  /**
44
44
  * Schema for [tool.FOO] section.
45
45
  */
46
- export declare const PyProjectToolSectionSchema: z.ZodType<PyProjectToolSection, z.ZodTypeDef, PyProjectToolSection>;
46
+ export declare const PyProjectToolSectionSchema: z.ZodType<PyProjectToolSection>;
47
47
  /**
48
48
  * Schema for a pyproject.toml file.
49
49
  */
50
- export declare const PyProjectTomlSchema: z.ZodType<PyProjectToml, z.ZodTypeDef, PyProjectToml>;
50
+ export declare const PyProjectTomlSchema: z.ZodType<PyProjectToml>;
@@ -7,12 +7,12 @@
7
7
  * @module requirement/schema
8
8
  */
9
9
  import type { z } from 'zod';
10
- import type { DependencySource, NormalizedRequirement } from './types';
10
+ import type { DependencySource, HashDigest, NormalizedRequirement } from './types';
11
11
  /**
12
12
  * Schema for dependency source information (git, path, or index).
13
13
  * Used in [tool.uv.sources] in pyproject.toml.
14
14
  */
15
- export declare const DependencySourceSchema: z.ZodType<DependencySource, z.ZodTypeDef, DependencySource>;
15
+ export declare const DependencySourceSchema: z.ZodType<DependencySource>;
16
16
  /**
17
17
  * Schema for a normalized representation of a Python dependency.
18
18
  * This is the common format used by all parsers before converting to PEP 508 format.
@@ -20,9 +20,9 @@ export declare const DependencySourceSchema: z.ZodType<DependencySource, z.ZodTy
20
20
  * Note: This schema uses the generated version without passthrough since
21
21
  * NormalizedRequirement is an internal type with a known structure.
22
22
  */
23
- export declare const NormalizedRequirementSchema: z.ZodType<NormalizedRequirement, z.ZodTypeDef, NormalizedRequirement>;
23
+ export declare const NormalizedRequirementSchema: z.ZodType<NormalizedRequirement>;
24
24
  /**
25
25
  * Schema for parsed hash digest for a requirement.
26
26
  * Format: algorithm:hash_value (e.g., "sha256:abc123...")
27
27
  */
28
- export declare const HashDigestSchema: z.ZodType<string, z.ZodTypeDef, string>;
28
+ export declare const HashDigestSchema: z.ZodType<HashDigest>;
@@ -11,12 +11,12 @@ import type { UvConfig, UvConfigWorkspace, UvIndexEntry } from './types';
11
11
  /**
12
12
  * Schema for uv workspace configuration.
13
13
  */
14
- export declare const UvConfigWorkspaceSchema: z.ZodType<UvConfigWorkspace, z.ZodTypeDef, UvConfigWorkspace>;
14
+ export declare const UvConfigWorkspaceSchema: z.ZodType<UvConfigWorkspace>;
15
15
  /**
16
16
  * Schema for uv index entry configuration.
17
17
  */
18
- export declare const UvIndexEntrySchema: z.ZodType<UvIndexEntry, z.ZodTypeDef, UvIndexEntry>;
18
+ export declare const UvIndexEntrySchema: z.ZodType<UvIndexEntry>;
19
19
  /**
20
20
  * Schema for [tool.uv] section in pyproject.toml or uv.toml.
21
21
  */
22
- export declare const UvConfigSchema: z.ZodType<UvConfig, z.ZodTypeDef, UvConfig>;
22
+ export declare const UvConfigSchema: z.ZodType<UvConfig>;
package/dist/util/fs.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /** Absolute filesystem path. */
3
2
  export type AbsPath = string;
4
3
  /** Relative filesystem path. */
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * Host-side implementation of the `vercel:python-analysis/host-utils` WIT interface.
4
3
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python-analysis",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",