@vercel/python-analysis 0.13.1 → 0.14.0
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 +2 -1
- package/dist/index.js +2 -1
- package/dist/manifest/pyproject/schema.zod.d.ts +35 -0
- package/dist/manifest/pyproject/types.d.ts +1 -0
- 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 +5 -6
- package/dist/wasm/host-utils.d.ts +0 -22
- package/dist/wasm/load.d.ts +0 -4
package/dist/index.cjs
CHANGED
|
@@ -1232,7 +1232,8 @@ var pyProjectDependencyGroupsSchema = import_zod4.z.record(
|
|
|
1232
1232
|
import_zod4.z.array(dependencyGroupEntrySchema)
|
|
1233
1233
|
);
|
|
1234
1234
|
var pyProjectToolVercelFastapiStaticSectionSchema = import_zod4.z.object({
|
|
1235
|
-
cdn: import_zod4.z.boolean().optional()
|
|
1235
|
+
cdn: import_zod4.z.boolean().optional(),
|
|
1236
|
+
exclude: import_zod4.z.boolean().optional()
|
|
1236
1237
|
});
|
|
1237
1238
|
var pyProjectToolVercelFastapiSectionSchema = import_zod4.z.object({
|
|
1238
1239
|
static: pyProjectToolVercelFastapiStaticSectionSchema.optional()
|
package/dist/index.js
CHANGED
|
@@ -1146,7 +1146,8 @@ var pyProjectDependencyGroupsSchema = z4.record(
|
|
|
1146
1146
|
z4.array(dependencyGroupEntrySchema)
|
|
1147
1147
|
);
|
|
1148
1148
|
var pyProjectToolVercelFastapiStaticSectionSchema = z4.object({
|
|
1149
|
-
cdn: z4.boolean().optional()
|
|
1149
|
+
cdn: z4.boolean().optional(),
|
|
1150
|
+
exclude: z4.boolean().optional()
|
|
1150
1151
|
});
|
|
1151
1152
|
var pyProjectToolVercelFastapiSectionSchema = z4.object({
|
|
1152
1153
|
static: pyProjectToolVercelFastapiStaticSectionSchema.optional()
|
|
@@ -197,56 +197,71 @@ export declare const pyProjectDependencyGroupsSchema: z.ZodRecord<z.ZodString, z
|
|
|
197
197
|
}>]>, "many">>;
|
|
198
198
|
export declare const pyProjectToolVercelFastapiStaticSectionSchema: z.ZodObject<{
|
|
199
199
|
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
200
201
|
}, "strip", z.ZodTypeAny, {
|
|
201
202
|
cdn?: boolean | undefined;
|
|
203
|
+
exclude?: boolean | undefined;
|
|
202
204
|
}, {
|
|
203
205
|
cdn?: boolean | undefined;
|
|
206
|
+
exclude?: boolean | undefined;
|
|
204
207
|
}>;
|
|
205
208
|
export declare const pyProjectToolVercelFastapiSectionSchema: z.ZodObject<{
|
|
206
209
|
static: z.ZodOptional<z.ZodObject<{
|
|
207
210
|
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
208
212
|
}, "strip", z.ZodTypeAny, {
|
|
209
213
|
cdn?: boolean | undefined;
|
|
214
|
+
exclude?: boolean | undefined;
|
|
210
215
|
}, {
|
|
211
216
|
cdn?: boolean | undefined;
|
|
217
|
+
exclude?: boolean | undefined;
|
|
212
218
|
}>>;
|
|
213
219
|
}, "strip", z.ZodTypeAny, {
|
|
214
220
|
static?: {
|
|
215
221
|
cdn?: boolean | undefined;
|
|
222
|
+
exclude?: boolean | undefined;
|
|
216
223
|
} | undefined;
|
|
217
224
|
}, {
|
|
218
225
|
static?: {
|
|
219
226
|
cdn?: boolean | undefined;
|
|
227
|
+
exclude?: boolean | undefined;
|
|
220
228
|
} | undefined;
|
|
221
229
|
}>;
|
|
222
230
|
export declare const pyProjectToolVercelSectionSchema: z.ZodObject<{
|
|
223
231
|
fastapi: z.ZodOptional<z.ZodObject<{
|
|
224
232
|
static: z.ZodOptional<z.ZodObject<{
|
|
225
233
|
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
226
235
|
}, "strip", z.ZodTypeAny, {
|
|
227
236
|
cdn?: boolean | undefined;
|
|
237
|
+
exclude?: boolean | undefined;
|
|
228
238
|
}, {
|
|
229
239
|
cdn?: boolean | undefined;
|
|
240
|
+
exclude?: boolean | undefined;
|
|
230
241
|
}>>;
|
|
231
242
|
}, "strip", z.ZodTypeAny, {
|
|
232
243
|
static?: {
|
|
233
244
|
cdn?: boolean | undefined;
|
|
245
|
+
exclude?: boolean | undefined;
|
|
234
246
|
} | undefined;
|
|
235
247
|
}, {
|
|
236
248
|
static?: {
|
|
237
249
|
cdn?: boolean | undefined;
|
|
250
|
+
exclude?: boolean | undefined;
|
|
238
251
|
} | undefined;
|
|
239
252
|
}>>;
|
|
240
253
|
}, "strip", z.ZodTypeAny, {
|
|
241
254
|
fastapi?: {
|
|
242
255
|
static?: {
|
|
243
256
|
cdn?: boolean | undefined;
|
|
257
|
+
exclude?: boolean | undefined;
|
|
244
258
|
} | undefined;
|
|
245
259
|
} | undefined;
|
|
246
260
|
}, {
|
|
247
261
|
fastapi?: {
|
|
248
262
|
static?: {
|
|
249
263
|
cdn?: boolean | undefined;
|
|
264
|
+
exclude?: boolean | undefined;
|
|
250
265
|
} | undefined;
|
|
251
266
|
} | undefined;
|
|
252
267
|
}>;
|
|
@@ -376,30 +391,37 @@ export declare const pyProjectToolSectionSchema: z.ZodObject<{
|
|
|
376
391
|
fastapi: z.ZodOptional<z.ZodObject<{
|
|
377
392
|
static: z.ZodOptional<z.ZodObject<{
|
|
378
393
|
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
394
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
379
395
|
}, "strip", z.ZodTypeAny, {
|
|
380
396
|
cdn?: boolean | undefined;
|
|
397
|
+
exclude?: boolean | undefined;
|
|
381
398
|
}, {
|
|
382
399
|
cdn?: boolean | undefined;
|
|
400
|
+
exclude?: boolean | undefined;
|
|
383
401
|
}>>;
|
|
384
402
|
}, "strip", z.ZodTypeAny, {
|
|
385
403
|
static?: {
|
|
386
404
|
cdn?: boolean | undefined;
|
|
405
|
+
exclude?: boolean | undefined;
|
|
387
406
|
} | undefined;
|
|
388
407
|
}, {
|
|
389
408
|
static?: {
|
|
390
409
|
cdn?: boolean | undefined;
|
|
410
|
+
exclude?: boolean | undefined;
|
|
391
411
|
} | undefined;
|
|
392
412
|
}>>;
|
|
393
413
|
}, "strip", z.ZodTypeAny, {
|
|
394
414
|
fastapi?: {
|
|
395
415
|
static?: {
|
|
396
416
|
cdn?: boolean | undefined;
|
|
417
|
+
exclude?: boolean | undefined;
|
|
397
418
|
} | undefined;
|
|
398
419
|
} | undefined;
|
|
399
420
|
}, {
|
|
400
421
|
fastapi?: {
|
|
401
422
|
static?: {
|
|
402
423
|
cdn?: boolean | undefined;
|
|
424
|
+
exclude?: boolean | undefined;
|
|
403
425
|
} | undefined;
|
|
404
426
|
} | undefined;
|
|
405
427
|
}>>;
|
|
@@ -435,6 +457,7 @@ export declare const pyProjectToolSectionSchema: z.ZodObject<{
|
|
|
435
457
|
fastapi?: {
|
|
436
458
|
static?: {
|
|
437
459
|
cdn?: boolean | undefined;
|
|
460
|
+
exclude?: boolean | undefined;
|
|
438
461
|
} | undefined;
|
|
439
462
|
} | undefined;
|
|
440
463
|
} | undefined;
|
|
@@ -470,6 +493,7 @@ export declare const pyProjectToolSectionSchema: z.ZodObject<{
|
|
|
470
493
|
fastapi?: {
|
|
471
494
|
static?: {
|
|
472
495
|
cdn?: boolean | undefined;
|
|
496
|
+
exclude?: boolean | undefined;
|
|
473
497
|
} | undefined;
|
|
474
498
|
} | undefined;
|
|
475
499
|
} | undefined;
|
|
@@ -733,30 +757,37 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
733
757
|
fastapi: z.ZodOptional<z.ZodObject<{
|
|
734
758
|
static: z.ZodOptional<z.ZodObject<{
|
|
735
759
|
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
760
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
736
761
|
}, "strip", z.ZodTypeAny, {
|
|
737
762
|
cdn?: boolean | undefined;
|
|
763
|
+
exclude?: boolean | undefined;
|
|
738
764
|
}, {
|
|
739
765
|
cdn?: boolean | undefined;
|
|
766
|
+
exclude?: boolean | undefined;
|
|
740
767
|
}>>;
|
|
741
768
|
}, "strip", z.ZodTypeAny, {
|
|
742
769
|
static?: {
|
|
743
770
|
cdn?: boolean | undefined;
|
|
771
|
+
exclude?: boolean | undefined;
|
|
744
772
|
} | undefined;
|
|
745
773
|
}, {
|
|
746
774
|
static?: {
|
|
747
775
|
cdn?: boolean | undefined;
|
|
776
|
+
exclude?: boolean | undefined;
|
|
748
777
|
} | undefined;
|
|
749
778
|
}>>;
|
|
750
779
|
}, "strip", z.ZodTypeAny, {
|
|
751
780
|
fastapi?: {
|
|
752
781
|
static?: {
|
|
753
782
|
cdn?: boolean | undefined;
|
|
783
|
+
exclude?: boolean | undefined;
|
|
754
784
|
} | undefined;
|
|
755
785
|
} | undefined;
|
|
756
786
|
}, {
|
|
757
787
|
fastapi?: {
|
|
758
788
|
static?: {
|
|
759
789
|
cdn?: boolean | undefined;
|
|
790
|
+
exclude?: boolean | undefined;
|
|
760
791
|
} | undefined;
|
|
761
792
|
} | undefined;
|
|
762
793
|
}>>;
|
|
@@ -792,6 +823,7 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
792
823
|
fastapi?: {
|
|
793
824
|
static?: {
|
|
794
825
|
cdn?: boolean | undefined;
|
|
826
|
+
exclude?: boolean | undefined;
|
|
795
827
|
} | undefined;
|
|
796
828
|
} | undefined;
|
|
797
829
|
} | undefined;
|
|
@@ -827,6 +859,7 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
827
859
|
fastapi?: {
|
|
828
860
|
static?: {
|
|
829
861
|
cdn?: boolean | undefined;
|
|
862
|
+
exclude?: boolean | undefined;
|
|
830
863
|
} | undefined;
|
|
831
864
|
} | undefined;
|
|
832
865
|
} | undefined;
|
|
@@ -902,6 +935,7 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
902
935
|
fastapi?: {
|
|
903
936
|
static?: {
|
|
904
937
|
cdn?: boolean | undefined;
|
|
938
|
+
exclude?: boolean | undefined;
|
|
905
939
|
} | undefined;
|
|
906
940
|
} | undefined;
|
|
907
941
|
} | undefined;
|
|
@@ -977,6 +1011,7 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
977
1011
|
fastapi?: {
|
|
978
1012
|
static?: {
|
|
979
1013
|
cdn?: boolean | undefined;
|
|
1014
|
+
exclude?: boolean | undefined;
|
|
980
1015
|
} | undefined;
|
|
981
1016
|
} | undefined;
|
|
982
1017
|
} | undefined;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python-analysis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -43,15 +43,14 @@
|
|
|
43
43
|
"@types/js-yaml": "4.0.9",
|
|
44
44
|
"@types/node": "20.11.0",
|
|
45
45
|
"ts-to-zod": "^3",
|
|
46
|
-
"vitest": "
|
|
46
|
+
"vitest": "4.1.10"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
|
-
"build": "
|
|
49
|
+
"build": "node scripts/build.mjs",
|
|
50
50
|
"build:wasm": "node scripts/build-wasm.mjs",
|
|
51
51
|
"generate:schemas": "ts-to-zod --all",
|
|
52
52
|
"test": "vitest run --config ../../vitest.config.mts",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"type-check": "tsc --noEmit"
|
|
53
|
+
"type-check": "tsc --noEmit",
|
|
54
|
+
"test-unit": "vitest run --config ../../vitest.config.mts"
|
|
56
55
|
}
|
|
57
56
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Host-side implementation of the `vercel:python-analysis/host-utils` WIT interface.
|
|
3
|
-
*/
|
|
4
|
-
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
5
|
-
/**
|
|
6
|
-
* Function type for reading referenced requirement files.
|
|
7
|
-
*/
|
|
8
|
-
export type ReadFileFn = (path: string) => string | null;
|
|
9
|
-
export interface ReadFileContext {
|
|
10
|
-
readFile: ReadFileFn;
|
|
11
|
-
workingDir?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const readFileStorage: AsyncLocalStorage<ReadFileContext>;
|
|
14
|
-
export declare function createHostUtils(): {
|
|
15
|
-
readFile(path: string): string;
|
|
16
|
-
domainToAscii(domain: string): string;
|
|
17
|
-
domainToUnicode(domain: string): [string, boolean];
|
|
18
|
-
nfcNormalize(s: string): string;
|
|
19
|
-
nfdNormalize(s: string): string;
|
|
20
|
-
nfkcNormalize(s: string): string;
|
|
21
|
-
nfkdNormalize(s: string): string;
|
|
22
|
-
};
|
package/dist/wasm/load.d.ts
DELETED