Comparing version 19.1.0-beta.2 to 19.1.0-beta.3
@@ -30,4 +30,10 @@ "use strict"; | ||
const accessToken = environment_1.ACCESS_TOKEN ? environment_1.ACCESS_TOKEN : options.accessToken; | ||
if (!accessToken) { | ||
throw new Error(`Unable to authenticate. Either define accessToken in nx.json or set the NX_CLOUD_ACCESS_TOKEN env variable. If you do not want to use Nx Cloud for this command, either set NX_NO_CLOUD=true, or pass the --no-cloud flag.`); | ||
const nxCloudId = options.nxCloudId; | ||
if (!accessToken && !nxCloudId) { | ||
if (process.env.NX_CLOUD_ENABLE_LOGIN === 'true' && !nxCloudId) { | ||
throw new Error(`Unable to authenticate. Please connect your workspace to Nx Cloud to define a valid Nx Cloud Id. If you are in a CI context, please set the NX_CLOUD_ACCESS_TOKEN environment variable or define an access token in your nx.json.`); | ||
} | ||
else { | ||
throw new Error(`Unable to authenticate. Either define accessToken in nx.json or set the NX_CLOUD_ACCESS_TOKEN env variable.`); | ||
} | ||
} | ||
@@ -34,0 +40,0 @@ if (options.customProxyConfigPath) { |
{ | ||
"name": "nx-cloud", | ||
"version": "19.1.0-beta.2", | ||
"version": "19.1.0-beta.3", | ||
"description": "Distributed caching and task execution for Lerna and Nx", | ||
@@ -32,5 +32,5 @@ "keywords": [ | ||
"ini": "4.1.3", | ||
"@nrwl/nx-cloud": "19.1.0-beta.2" | ||
"@nrwl/nx-cloud": "19.1.0-beta.3" | ||
}, | ||
"type": "commonjs" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
420212
5515
135
+ Added@nrwl/nx-cloud@19.1.0-beta.3(transitive)
- Removed@nrwl/nx-cloud@19.1.0-beta.2(transitive)
Updated@nrwl/nx-cloud@19.1.0-beta.3