@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 +5 -7
- package/dist/index.js +5 -7
- package/dist/manifest/pipfile/schema.d.ts +6 -6
- package/dist/manifest/pyproject/schema.d.ts +10 -10
- package/dist/manifest/requirement/schema.d.ts +4 -4
- package/dist/manifest/uv-config/schema.d.ts +3 -3
- package/dist/util/fs.d.ts +0 -1
- package/dist/wasm/host-utils.d.ts +0 -1
- package/dist/wasm/vercel_python_analysis.core.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.core2.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.core3.wasm +0 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1126,13 +1126,11 @@ async function convertRequirementsToPyprojectToml(fileContent, options) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
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
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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<
|
|
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
|
|
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
|
|
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
|
|
22
|
+
export declare const UvConfigSchema: z.ZodType<UvConfig>;
|
package/dist/util/fs.d.ts
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|