@vercel/python-analysis
Advanced tools
+18
-4
@@ -69,3 +69,10 @@ // src/semantic/load.ts | ||
| var PythonAnalysisError = class extends Error { | ||
| constructor({ message, code, path: path4, link, action }) { | ||
| constructor({ | ||
| message, | ||
| code, | ||
| path: path4, | ||
| link, | ||
| action, | ||
| fileContent | ||
| }) { | ||
| super(message); | ||
@@ -78,2 +85,3 @@ this.hideStackTrace = true; | ||
| this.action = action; | ||
| this.fileContent = fileContent; | ||
| } | ||
@@ -140,3 +148,4 @@ }; | ||
| code: "PYTHON_CONFIG_PARSE_ERROR", | ||
| path: filename | ||
| path: filename, | ||
| fileContent: content | ||
| }); | ||
@@ -159,3 +168,4 @@ } | ||
| code: "PYTHON_CONFIG_VALIDATION_ERROR", | ||
| path: filename | ||
| path: filename, | ||
| fileContent: content | ||
| }); | ||
@@ -1980,2 +1990,5 @@ } | ||
| error.path = requirementsTxtRelPath; | ||
| if (!error.fileContent) { | ||
| error.fileContent = requirementsContent; | ||
| } | ||
| throw error; | ||
@@ -1986,3 +1999,4 @@ } | ||
| code: "PYTHON_REQUIREMENTS_PARSE_ERROR", | ||
| path: requirementsTxtRelPath | ||
| path: requirementsTxtRelPath, | ||
| fileContent: requirementsContent | ||
| }); | ||
@@ -1989,0 +2003,0 @@ } |
@@ -25,2 +25,7 @@ export declare const isErrnoException: (error: unknown, code?: string | undefined) => error is NodeJS.ErrnoException; | ||
| action?: string; | ||
| /** | ||
| * The raw content of the file that failed to parse, if available. | ||
| * Useful for diagnostic logging by callers. | ||
| */ | ||
| fileContent?: string; | ||
| } | ||
@@ -38,4 +43,5 @@ /** | ||
| action?: string; | ||
| constructor({ message, code, path, link, action }: PythonAnalysisErrorProps); | ||
| fileContent?: string; | ||
| constructor({ message, code, path, link, action, fileContent, }: PythonAnalysisErrorProps); | ||
| } | ||
| export {}; |
+1
-1
| { | ||
| "name": "@vercel/python-analysis", | ||
| "version": "0.4.0", | ||
| "version": "0.4.1", | ||
| "main": "./dist/index.cjs", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
1554611
0.06%10608
0.45%