Socket
Socket
Sign inDemoInstall

nx

Package Overview
Dependencies
139
Maintainers
8
Versions
1179
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 19.0.2 to 19.0.3

src/command-line/deprecated/command-objects.d.ts

24

package.json
{
"name": "nx",
"version": "19.0.2",
"version": "19.0.3",
"private": false,

@@ -69,3 +69,3 @@ "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",

"ora": "5.3.0",
"@nrwl/tao": "19.0.2"
"@nrwl/tao": "19.0.3"
},

@@ -85,12 +85,12 @@ "peerDependencies": {

"optionalDependencies": {
"@nx/nx-darwin-x64": "19.0.2",
"@nx/nx-darwin-arm64": "19.0.2",
"@nx/nx-linux-x64-gnu": "19.0.2",
"@nx/nx-linux-x64-musl": "19.0.2",
"@nx/nx-win32-x64-msvc": "19.0.2",
"@nx/nx-linux-arm64-gnu": "19.0.2",
"@nx/nx-linux-arm64-musl": "19.0.2",
"@nx/nx-linux-arm-gnueabihf": "19.0.2",
"@nx/nx-win32-arm64-msvc": "19.0.2",
"@nx/nx-freebsd-x64": "19.0.2"
"@nx/nx-darwin-x64": "19.0.3",
"@nx/nx-darwin-arm64": "19.0.3",
"@nx/nx-linux-x64-gnu": "19.0.3",
"@nx/nx-linux-x64-musl": "19.0.3",
"@nx/nx-win32-x64-msvc": "19.0.3",
"@nx/nx-linux-arm64-gnu": "19.0.3",
"@nx/nx-linux-arm64-musl": "19.0.3",
"@nx/nx-linux-arm-gnueabihf": "19.0.3",
"@nx/nx-win32-arm64-msvc": "19.0.3",
"@nx/nx-freebsd-x64": "19.0.3"
},

@@ -97,0 +97,0 @@ "nx-migrations": {

@@ -5,24 +5,2 @@ "use strict";

exports.examples = {
'print-affected': [
{
command: 'print-affected',
description: 'Print information about affected projects and the project graph',
},
{
command: 'print-affected --base=main --head=HEAD',
description: 'Print information about the projects affected by the changes between main and HEAD (e.g,. PR)',
},
{
command: 'print-affected -t test',
description: 'Prints information about the affected projects and a list of tasks to test them',
},
{
command: 'print-affected -t build --select=projects',
description: 'Prints the projects property from the print-affected output',
},
{
command: 'print-affected -t build --select=tasks.target.project',
description: 'Prints the tasks.target.project property from the print-affected output',
},
],
affected: [

@@ -170,28 +148,2 @@ {

],
'affected:graph': [
{
command: 'affected:graph --files=libs/mylib/src/index.ts',
description: 'Open the project graph of the workspace in the browser, and highlight the projects affected by changing the index.ts file',
},
{
command: 'affected:graph --base=main --head=HEAD',
description: 'Open the project graph of the workspace in the browser, and highlight the projects affected by the changes between main and HEAD (e.g., PR)',
},
{
command: 'affected:graph --base=main --head=HEAD --file=output.json',
description: 'Save the project graph of the workspace in a json file, and highlight the projects affected by the changes between main and HEAD (e.g., PR)',
},
{
command: 'affected:graph --base=main --head=HEAD --file=output.html',
description: 'Generate a static website with project graph data in an html file, highlighting the projects affected by the changes between main and HEAD (e.g., PR)',
},
{
command: 'affected:graph --base=main~1 --head=main',
description: 'Open the project graph of the workspace in the browser, and highlight the projects affected by the last commit on main',
},
{
command: 'affected:graph --exclude=project-one,project-two',
description: 'Open the project graph of the workspace in the browser, highlight the projects affected, but exclude project-one and project-two',
},
],
list: [

@@ -198,0 +150,0 @@ {

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

const command_object_20 = require("./add/command-object");
const command_objects_1 = require("./deprecated/command-objects");
// Ensure that the output takes up the available width of the terminal.

@@ -49,2 +50,3 @@ yargs.wrap(yargs.terminalWidth());

.command(command_object_1.yargsAffectedTestCommand)
.command(command_objects_1.yargsAffectedGraphCommand)
.command(command_object_2.yargsConnectCommand)

@@ -62,2 +64,3 @@ .command(command_object_3.yargsDaemonCommand)

.command(command_object_11.yargsNewCommand)
.command(command_objects_1.yargsPrintAffectedCommand)
.command(command_object_19.yargsReleaseCommand)

@@ -64,0 +67,0 @@ .command(command_object_12.yargsRepairCommand)

@@ -7,2 +7,3 @@ /**

export { createTempNpmDirectory } from './utils/package-manager';
export { deepEquals } from './utils/json-diff';
export { getExecutorInformation } from './command-line/run/executor-utils';

@@ -13,3 +14,3 @@ export { readNxJson as readNxJsonFromDisk } from './config/nx-json';

export { mergeTargetConfigurations } from './project-graph/utils/project-configuration-utils';
export { readProjectConfigurationsFromRootMap } from './project-graph/utils/project-configuration-utils';
export { readProjectConfigurationsFromRootMap, isCompatibleTarget, } from './project-graph/utils/project-configuration-utils';
export { splitTarget } from './utils/split-target';

@@ -25,4 +26,4 @@ export { combineOptionsForExecutor } from './utils/params';

export { retrieveProjectConfigurations } from './project-graph/utils/retrieve-workspace-files';
export { LoadedNxPlugin } from './project-graph/plugins/internal-api';
export { LoadedNxPlugin, loadNxPlugins, } from './project-graph/plugins/internal-api';
export * from './project-graph/error-types';
export { registerTsProject } from './plugins/js/utils/register';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerTsProject = exports.LoadedNxPlugin = exports.retrieveProjectConfigurations = exports.findProjectForPath = exports.createProjectRootMappingsFromProjectConfigurations = exports.hashWithWorkspaceContext = exports.hashObject = exports.splitByColons = exports.readModulePackageJson = exports.stripIndent = exports.sortObjectByKeys = exports.combineOptionsForExecutor = exports.splitTarget = exports.readProjectConfigurationsFromRootMap = exports.mergeTargetConfigurations = exports.retrieveProjectConfigurationsWithAngularProjects = exports.calculateDefaultProjectName = exports.readNxJsonFromDisk = exports.getExecutorInformation = exports.createTempNpmDirectory = void 0;
exports.registerTsProject = exports.loadNxPlugins = exports.LoadedNxPlugin = exports.retrieveProjectConfigurations = exports.findProjectForPath = exports.createProjectRootMappingsFromProjectConfigurations = exports.hashWithWorkspaceContext = exports.hashObject = exports.splitByColons = exports.readModulePackageJson = exports.stripIndent = exports.sortObjectByKeys = exports.combineOptionsForExecutor = exports.splitTarget = exports.isCompatibleTarget = exports.readProjectConfigurationsFromRootMap = exports.mergeTargetConfigurations = exports.retrieveProjectConfigurationsWithAngularProjects = exports.calculateDefaultProjectName = exports.readNxJsonFromDisk = exports.getExecutorInformation = exports.deepEquals = exports.createTempNpmDirectory = void 0;
const tslib_1 = require("tslib");

@@ -12,2 +12,4 @@ /**

Object.defineProperty(exports, "createTempNpmDirectory", { enumerable: true, get: function () { return package_manager_1.createTempNpmDirectory; } });
var json_diff_1 = require("./utils/json-diff");
Object.defineProperty(exports, "deepEquals", { enumerable: true, get: function () { return json_diff_1.deepEquals; } });
var executor_utils_1 = require("./command-line/run/executor-utils");

@@ -25,2 +27,3 @@ Object.defineProperty(exports, "getExecutorInformation", { enumerable: true, get: function () { return executor_utils_1.getExecutorInformation; } });

Object.defineProperty(exports, "readProjectConfigurationsFromRootMap", { enumerable: true, get: function () { return project_configuration_utils_2.readProjectConfigurationsFromRootMap; } });
Object.defineProperty(exports, "isCompatibleTarget", { enumerable: true, get: function () { return project_configuration_utils_2.isCompatibleTarget; } });
var split_target_1 = require("./utils/split-target");

@@ -49,4 +52,5 @@ Object.defineProperty(exports, "splitTarget", { enumerable: true, get: function () { return split_target_1.splitTarget; } });

Object.defineProperty(exports, "LoadedNxPlugin", { enumerable: true, get: function () { return internal_api_1.LoadedNxPlugin; } });
Object.defineProperty(exports, "loadNxPlugins", { enumerable: true, get: function () { return internal_api_1.loadNxPlugins; } });
tslib_1.__exportStar(require("./project-graph/error-types"), exports);
var register_1 = require("./plugins/js/utils/register");
Object.defineProperty(exports, "registerTsProject", { enumerable: true, get: function () { return register_1.registerTsProject; } });

@@ -28,3 +28,3 @@ import { PluginConfiguration } from '../../config/nx-json';

]>;
export declare function loadNxPlugins(plugins: PluginConfiguration[], root?: string): Promise<[LoadedNxPlugin[], () => void]>;
export declare function loadNxPlugins(plugins: PluginConfiguration[], root?: string, skipDefaultPlugins?: boolean): Promise<[LoadedNxPlugin[], () => void]>;
export declare function getDefaultPlugins(root: string): Promise<string[]>;

@@ -41,3 +41,3 @@ "use strict";

exports.nxPluginCache = new Map();
async function loadNxPlugins(plugins, root = workspace_root_1.workspaceRoot) {
async function loadNxPlugins(plugins, root = workspace_root_1.workspaceRoot, skipDefaultPlugins = false) {
const result = [];

@@ -47,3 +47,5 @@ const loadingMethod = process.env.NX_ISOLATE_PLUGINS === 'true'

: loader_1.loadNxPlugin;
plugins = await normalizePlugins(plugins, root);
plugins = skipDefaultPlugins
? plugins ?? []
: await normalizePlugins(plugins, root);
const cleanupFunctions = [];

@@ -50,0 +52,0 @@ for (const plugin of plugins) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.recordStat = exports.messages = exports.PromptMessages = void 0;
const node_child_process_1 = require("node:child_process");
const is_ci_1 = require("./is-ci");
const package_manager_1 = require("./package-manager");
const messageOptions = {

@@ -66,8 +68,5 @@ setupNxCloud: [

try {
const major = Number(opts.nxVersion.split('.')[0]);
if (process.env.NX_VERBOSE_LOGGING === 'true') {
console.log(`Record stat. Major: ${major}`);
if (!shouldRecordStats()) {
return;
}
if (major < 10 || major > 19)
return; // test version, skip it
const axios = require('axios');

@@ -93,1 +92,14 @@ await (axios['default'] ?? axios)

exports.recordStat = recordStat;
function shouldRecordStats() {
const pmc = (0, package_manager_1.getPackageManagerCommand)();
try {
const stdout = (0, node_child_process_1.execSync)(pmc.getRegistryUrl, { encoding: 'utf-8' });
const url = new URL(stdout.trim());
// don't record stats when testing locally
return url.hostname !== 'localhost';
}
catch {
// fallback to true if we can't detect the registry
return true;
}
}

@@ -14,2 +14,3 @@ export type PackageManager = 'yarn' | 'pnpm' | 'npm';

run: (script: string, args: string) => string;
getRegistryUrl: string;
}

@@ -16,0 +17,0 @@ /**

@@ -79,2 +79,5 @@ "use strict";

list: useBerry ? 'yarn info --name-only' : 'yarn list',
getRegistryUrl: useBerry
? 'yarn config get npmRegistryServer'
: 'yarn config get registry',
};

@@ -100,2 +103,3 @@ },

list: 'pnpm ls --depth 100',
getRegistryUrl: 'pnpm config get registry',
};

@@ -117,2 +121,3 @@ },

list: 'npm ls',
getRegistryUrl: 'npm config get registry',
};

@@ -119,0 +124,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc