@adinsure-ops/ops-cli 5.1.0 → 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,21 +1,23 @@
1
1
  # Changelogs
2
2
 
3
+ ## 5.1.1: 2024-05-13
3
4
 
4
- ## 5.1.0: 2023-03-29
5
+ - LJADIRD-46524: Added more verbose output to the security context when aquiring token
6
+
7
+ ## 5.1.0: 2024-03-29
5
8
 
6
9
  - LJADIRDSUP-13830: added verbose error output when downloading studio and installing the plugin into the VSCode
7
10
  - LJADIRD-45744: removed Node.js v16 support, only supporting Node.js >=18
8
11
 
9
- ## 5.0.11: 2023-03-26
12
+ ## 5.0.11: 2024-03-26
10
13
 
11
- - LJADIRD-45711: updated regex for matching tags in the gitlab:next-nightly-tag command
14
+ - LJADIRD-45711: updated regex for matching tags in the gitlab:next-nightly-tag command
12
15
 
13
- ## 5.0.10: 2023-03-20
16
+ ## 5.0.10: 2024-03-20
14
17
 
15
18
  - LJADIRDSUP-13469: added gurads for checking if the npmrc file being read is a directory
16
19
 
17
-
18
- ## 5.0.9: 2023-01-03
20
+ ## 5.0.9: 2024-01-03
19
21
 
20
22
  - ops-cli sql command is now case insensitive
21
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
 
@@ -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.1.0",
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.1.0",
4
+ "version": "5.1.1",
5
5
  "author": "Adacta Digital Service Department",
6
6
  "bin": {
7
7
  "ops": "./bin/run.js"