You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@vercel/python-analysis

Package Overview
Dependencies
Maintainers
2
Versions
16
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.7.0
to
0.8.0
+1
-1
dist/index.d.ts

@@ -9,3 +9,3 @@ /**

*/
export { containsAppOrHandler } from './semantic/entrypoints';
export { containsAppOrHandler, getStringConstant, parseDjangoSettingsModule, } from './semantic/entrypoints';
export type { Distribution, DistributionIndex, PackagePath, DirectUrlInfo, } from './manifest/dist-metadata';

@@ -12,0 +12,0 @@ export { scanDistributions } from './manifest/dist-metadata';

@@ -30,1 +30,21 @@ /**

export declare function containsAppOrHandler(source: string): Promise<boolean>;
/**
* Extract the string value of a top-level constant with the given name.
* Only considers simple assignments (NAME = "string") and annotated assignments
* (NAME: str = "string") at module level. Returns the first matching string
* value, or null if not found or the value is not a string literal.
*
* @param source - Python source code
* @param name - Constant name (e.g. "VERSION", "APP_NAME")
* @returns The string value or null
*/
export declare function getStringConstant(source: string, name: string): Promise<string | null>;
/**
* Parse manage.py content for DJANGO_SETTINGS_MODULE (e.g. from
* os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')).
* Uses the WASM Python parser to extract the value from the AST.
*
* @param content - Raw content of manage.py
* @returns The settings module string (e.g. 'app.settings') or null if not found
*/
export declare function parseDjangoSettingsModule(content: string): Promise<string | null>;

@@ -72,2 +72,4 @@ // world root:component/root

containsAppOrHandler(source: string): boolean,
getStringConstant(source: string, name: string): string | undefined,
parseDjangoSettingsModule(source: string): string | undefined,
parseDistMetadata(content: Uint8Array): DistMetadata,

@@ -74,0 +76,0 @@ parseRecord(content: string): Array<RecordEntry>,

{
"name": "@vercel/python-analysis",
"version": "0.7.0",
"version": "0.8.0",
"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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display