Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nxlv/python

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nxlv/python - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

2

package.json
{
"name": "@nxlv/python",
"version": "1.4.0",
"version": "1.5.0",
"description": "Custom NX Plugin to support the Python language",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -74,3 +74,7 @@ "use strict";

buildTomlData.tool.poetry.dependencies = {};
buildTomlData.tool.poetry['dev-dependencies'] = {};
buildTomlData.tool.poetry.group = {
dev: {
dependencies: {}
}
};
if (pythonDependency) {

@@ -77,0 +81,0 @@ buildTomlData.tool.poetry.dependencies['python'] = pythonDependency;

@@ -25,3 +25,7 @@ import { ProjectGraph, ProjectGraphProcessorContext, Workspace, WorkspaceJsonConfiguration } from '@nrwl/devkit';

dependencies: PyprojectTomlDependencies;
'dev-dependencies': PyprojectTomlDependencies;
group?: {
[key: string]: {
dependencies: PyprojectTomlDependencies;
};
};
extras?: {

@@ -28,0 +32,0 @@ [key: string]: string[];

@@ -9,3 +9,2 @@ "use strict";

const path_1 = (0, tslib_1.__importDefault)(require("path"));
const POETRY_DEV_DEPENDENCIES = 'dev-dependencies';
const getDependents = (projectName, workspace, cwd) => {

@@ -23,2 +22,3 @@ const deps = [];

const getDependencies = (projectName, workspace, cwd) => {
var _a;
const projectData = workspace.projects[projectName];

@@ -30,3 +30,3 @@ const pyprojectToml = (0, devkit_1.joinPathFragments)(projectData.root, 'pyproject.toml');

resolveDependencies(tomlData.tool.poetry.dependencies, projectData, workspace, cwd, deps, 'main');
resolveDependencies(tomlData.tool.poetry[POETRY_DEV_DEPENDENCIES], projectData, workspace, cwd, deps, 'dev');
resolveDependencies((_a = tomlData.tool.poetry.group) === null || _a === void 0 ? void 0 : _a.dev.dependencies, projectData, workspace, cwd, deps, 'dev');
}

@@ -49,2 +49,3 @@ return deps;

const checkProjectIsDependent = (workspace, project, root, cwd) => {
var _a;
const projectData = workspace.projects[project];

@@ -54,3 +55,3 @@ const pyprojectToml = (0, devkit_1.joinPathFragments)(projectData.root, 'pyproject.toml');

const tomlData = getPyprojectData(pyprojectToml);
return isProjectDependent(tomlData.tool.poetry.dependencies, projectData, root, cwd) || isProjectDependent(tomlData.tool.poetry[POETRY_DEV_DEPENDENCIES], projectData, root, cwd);
return isProjectDependent(tomlData.tool.poetry.dependencies, projectData, root, cwd) || isProjectDependent((_a = tomlData.tool.poetry.group) === null || _a === void 0 ? void 0 : _a.dev.dependencies, projectData, root, cwd);
}

@@ -72,3 +73,3 @@ return false;

const resolveDependencies = (dependencies, projectData, workspace, cwd, deps, category) => {
for (const dep in dependencies) {
for (const dep in dependencies || {}) {
const depData = dependencies[dep];

@@ -75,0 +76,0 @@ if (depData instanceof Object && depData.path) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc