@adinsure-ops/ops-cli 5.0.11 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOGS.md CHANGED
@@ -1,15 +1,23 @@
1
1
  # Changelogs
2
2
 
3
- ## next
3
+ ## 5.1.1: 2024-05-13
4
4
 
5
- - LJADIRD-45711: updated regex for matching tags in the gitlab:next-nightly-tag command
5
+ - LJADIRD-46524: Added more verbose output to the security context when aquiring token
6
6
 
7
- ## 5.0.10 2023-03-20
7
+ ## 5.1.0: 2024-03-29
8
8
 
9
- - LJADIRDSUP-13469: added gurads for checking if the npmrc file being read is a directory
9
+ - LJADIRDSUP-13830: added verbose error output when downloading studio and installing the plugin into the VSCode
10
+ - LJADIRD-45744: removed Node.js v16 support, only supporting Node.js >=18
11
+
12
+ ## 5.0.11: 2024-03-26
13
+
14
+ - LJADIRD-45711: updated regex for matching tags in the gitlab:next-nightly-tag command
10
15
 
16
+ ## 5.0.10: 2024-03-20
17
+
18
+ - LJADIRDSUP-13469: added gurads for checking if the npmrc file being read is a directory
11
19
 
12
- ## 5.0.9: 2023-01-03
20
+ ## 5.0.9: 2024-01-03
13
21
 
14
22
  - ops-cli sql command is now case insensitive
15
23
  - LJADIRDSUP-12244: axios already returns json and doesn't need to be parsed again
package/README.md CHANGED
@@ -10,7 +10,7 @@ Operations CLI for supporting AdInsure development processes.
10
10
 
11
11
  ## CLI development
12
12
 
13
- For development you will need **[Node.js](https://nodejs.org/en/)** (recommended 16 LTS, minimal 14.0.0) and **[Yarn](https://yarnpkg.com/en/)** installed.
13
+ For development you will need **[Node.js](https://nodejs.org/en/)** (recommended 20 LTS, minimal 18.0.0) and **[Yarn](https://yarnpkg.com/en/)** installed.
14
14
 
15
15
  We recommend **[Visual Studio Code](https://code.visualstudio.com/)** IDE.
16
16
 
@@ -25,11 +25,15 @@ You can run and debug commands directly from terminal by running `ops [command]`
25
25
 
26
26
  ## Upgrade guilde
27
27
 
28
- ### Upgrade to version 5
28
+ ### Upgrade to version 5.1.0
29
+
30
+ 18 or higher is required.
31
+
32
+ ### Upgrade to version 5.0.0
29
33
 
30
34
  Node 16, 18 or 20 is required.
31
35
 
32
- ### Upgrade to version 4
36
+ ### Upgrade to version 4.0.0
33
37
 
34
38
  We changed the way service principal login works. It is no longer needed to call login command for service principal login (for example in CI). Commands `ops login --servicePrincipal -c ${AZURE_CLIENT_ID} -s ${AZURE_CLIENT_SECRET}` should be removed, but `AZURE_CLIENT_ID` and `AZURE_CLIENT_SECRET` environment variables should exists, because OPS Cli uses it in background.
35
39
 
@@ -32,7 +32,10 @@ class DownloadStudio extends CommandBase {
32
32
  installExtension(extensionPath) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  const cp = new ChildProcessCommand();
35
- yield cp.runCommand(['code', '--install-extension', extensionPath, '--force']);
35
+ const commandResult = yield cp.runCommand(['code', '--install-extension', extensionPath, '--force']);
36
+ if (commandResult.error) {
37
+ this.error(`${chalk.redBright('Installing into VSCode failed!')}\n${commandResult.error}`);
38
+ }
36
39
  });
37
40
  }
38
41
  findExtensionIfEnabled(studioVersion, enabled) {
@@ -1,5 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
- import { ConfidentialClientApplication, CryptoProvider, PublicClientApplication } from '@azure/msal-node';
2
+ import { AuthError, ConfidentialClientApplication, CryptoProvider, PublicClientApplication } from '@azure/msal-node';
3
3
  import { reject } from 'lodash-es';
4
4
  import path from 'path';
5
5
  import LocalCachePlugin from './cache.js';
@@ -173,6 +173,14 @@ export default class SecurityContext {
173
173
  resolve(token.account.name);
174
174
  }
175
175
  }).catch(error => {
176
+ if (error instanceof AuthError) {
177
+ const authError = error;
178
+ console.log(`Error name: + ${authError.name}`);
179
+ console.log(`Error message: + ${authError.message}`);
180
+ console.log(`Inner error message: + ${authError.errorMessage}`);
181
+ console.log(`Error correlation id: + ${authError.correlationId}`);
182
+ console.error();
183
+ }
176
184
  throw new Error(error);
177
185
  });
178
186
  });
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.0.11",
2
+ "version": "5.1.1",
3
3
  "commands": {
4
4
  "doctor": {
5
5
  "id": "doctor",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adinsure-ops/ops-cli",
3
3
  "description": "Operations CLI for working with AdInsure",
4
- "version": "5.0.11",
4
+ "version": "5.1.1",
5
5
  "author": "Adacta Digital Service Department",
6
6
  "bin": {
7
7
  "ops": "./bin/run.js"
@@ -74,7 +74,7 @@
74
74
  "@types/node": "^20.5.7"
75
75
  },
76
76
  "engines": {
77
- "node": "^16 || ^18 || ^20"
77
+ "node": ">=18"
78
78
  },
79
79
  "files": [
80
80
  "/bin",