Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@vercel/python-analysis

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/python-analysis - npm Package Compare versions

Comparing version
0.4.0
to
0.4.1
+18
-4
dist/index.js

@@ -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