Socket
Socket
Sign inDemoInstall

nx

Package Overview
Dependencies
Maintainers
8
Versions
1371
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nx - npm Package Compare versions

Comparing version 19.7.0-beta.4 to 19.7.0-beta.5

24

package.json
{
"name": "nx",
"version": "19.7.0-beta.4",
"version": "19.7.0-beta.5",
"private": false,

@@ -74,3 +74,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.7.0-beta.4"
"@nrwl/tao": "19.7.0-beta.5"
},

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

"optionalDependencies": {
"@nx/nx-darwin-x64": "19.7.0-beta.4",
"@nx/nx-darwin-arm64": "19.7.0-beta.4",
"@nx/nx-linux-x64-gnu": "19.7.0-beta.4",
"@nx/nx-linux-x64-musl": "19.7.0-beta.4",
"@nx/nx-win32-x64-msvc": "19.7.0-beta.4",
"@nx/nx-linux-arm64-gnu": "19.7.0-beta.4",
"@nx/nx-linux-arm64-musl": "19.7.0-beta.4",
"@nx/nx-linux-arm-gnueabihf": "19.7.0-beta.4",
"@nx/nx-win32-arm64-msvc": "19.7.0-beta.4",
"@nx/nx-freebsd-x64": "19.7.0-beta.4"
"@nx/nx-darwin-x64": "19.7.0-beta.5",
"@nx/nx-darwin-arm64": "19.7.0-beta.5",
"@nx/nx-linux-x64-gnu": "19.7.0-beta.5",
"@nx/nx-linux-x64-musl": "19.7.0-beta.5",
"@nx/nx-win32-x64-msvc": "19.7.0-beta.5",
"@nx/nx-linux-arm64-gnu": "19.7.0-beta.5",
"@nx/nx-linux-arm64-musl": "19.7.0-beta.5",
"@nx/nx-linux-arm-gnueabihf": "19.7.0-beta.5",
"@nx/nx-win32-arm64-msvc": "19.7.0-beta.5",
"@nx/nx-freebsd-x64": "19.7.0-beta.5"
},

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

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

command: 'login [nxCloudUrl]',
describe: false,
describe: 'Login to Nx Cloud. This command is an alias for [`nx-cloud login`](/ci/reference/nx-cloud-cli#npx-nxcloud-login).',
builder: (yargs) => (0, shared_options_1.withVerbose)(yargs.positional('nxCloudUrl', {

@@ -10,0 +10,0 @@ describe: 'The Nx Cloud URL of the instance you are trying to connect to. If no positional argument is provided, this command will connect to https://cloud.nx.app.',

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

command: 'logout',
describe: false,
describe: 'Logout from Nx Cloud. This command is an alias for [`nx-cloud logout`](/ci/reference/nx-cloud-cli#npx-nxcloud-logout).',
builder: (yargs) => (0, shared_options_1.withVerbose)(yargs),

@@ -10,0 +10,0 @@ handler: async (args) => {

@@ -45,14 +45,2 @@ "use strict";

}
async function createNxCloudWorkspaceV1(workspaceName, installationSource, nxInitDate) {
const apiUrl = (0, get_cloud_options_1.getCloudUrl)();
const response = await require('axios').post(`${apiUrl}/nx-cloud/create-org-and-workspace`, {
workspaceName,
installationSource,
nxInitDate,
});
if (response.data.message) {
throw new Error(response.data.message);
}
return response.data;
}
async function createNxCloudWorkspaceV2(workspaceName, installationSource, nxInitDate) {

@@ -85,15 +73,2 @@ const apiUrl = (0, get_cloud_options_1.getCloudUrl)();

}
function addNxCloudOptionsToNxJson(tree, token, directory = '') {
const nxJsonPath = (0, path_1.join)(directory, 'nx.json');
if (tree.exists(nxJsonPath)) {
(0, json_1.updateJson)(tree, (0, path_1.join)(directory, 'nx.json'), (nxJson) => {
const overrideUrl = process.env.NX_CLOUD_API || process.env.NRWL_API;
if (overrideUrl) {
nxJson.nxCloudUrl = overrideUrl;
}
nxJson.nxCloudAccessToken = token;
return nxJson;
});
}
}
function addNxCloudIdToNxJson(tree, nxCloudId, directory = '') {

@@ -129,18 +104,8 @@ const nxJsonPath = (0, path_1.join)(directory, 'nx.json');

return null;
if (process.env.NX_ENABLE_LOGIN === 'true') {
responseFromCreateNxCloudWorkspaceV2 = await createNxCloudWorkspaceV2(getRootPackageName(tree), schema.installationSource, getNxInitDate());
addNxCloudIdToNxJson(tree, responseFromCreateNxCloudWorkspaceV2?.nxCloudId, schema.directory);
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree, {
silent: schema.hideFormatLogs,
});
return responseFromCreateNxCloudWorkspaceV2.nxCloudId;
}
else {
responseFromCreateNxCloudWorkspaceV1 = await createNxCloudWorkspaceV1(getRootPackageName(tree), schema.installationSource, getNxInitDate());
addNxCloudOptionsToNxJson(tree, responseFromCreateNxCloudWorkspaceV1?.token, schema.directory);
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree, {
silent: schema.hideFormatLogs,
});
return responseFromCreateNxCloudWorkspaceV1.token;
}
responseFromCreateNxCloudWorkspaceV2 = await createNxCloudWorkspaceV2(getRootPackageName(tree), schema.installationSource, getNxInitDate());
addNxCloudIdToNxJson(tree, responseFromCreateNxCloudWorkspaceV2?.nxCloudId, schema.directory);
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree, {
silent: schema.hideFormatLogs,
});
return responseFromCreateNxCloudWorkspaceV2.nxCloudId;
}

@@ -147,0 +112,0 @@ async function connectToNxCloudGenerator(tree, options) {

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