@adinsure-ops/ops-cli 5.0.10 → 5.1.0
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 +11 -1
- package/lib/commands/download/studio.js +4 -1
- package/lib/lib/gitlab.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/CHANGELOGS.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Changelogs
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
## 5.1.0: 2023-03-29
|
|
5
|
+
|
|
6
|
+
- LJADIRDSUP-13830: added verbose error output when downloading studio and installing the plugin into the VSCode
|
|
7
|
+
- LJADIRD-45744: removed Node.js v16 support, only supporting Node.js >=18
|
|
8
|
+
|
|
9
|
+
## 5.0.11: 2023-03-26
|
|
10
|
+
|
|
11
|
+
- LJADIRD-45711: updated regex for matching tags in the gitlab:next-nightly-tag command
|
|
12
|
+
|
|
13
|
+
## 5.0.10: 2023-03-20
|
|
4
14
|
|
|
5
15
|
- LJADIRDSUP-13469: added gurads for checking if the npmrc file being read is a directory
|
|
6
16
|
|
|
@@ -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) {
|
package/lib/lib/gitlab.js
CHANGED
|
@@ -34,10 +34,10 @@ export default class GitLab {
|
|
|
34
34
|
});
|
|
35
35
|
// eslint-disable-next-line unicorn/no-array-for-each, @typescript-eslint/no-explicit-any
|
|
36
36
|
response.data.forEach((tag) => {
|
|
37
|
-
const regex = new RegExp(`${prefix}(.*)`);
|
|
37
|
+
const regex = new RegExp(`${prefix}(v\\d*\\.\\d*\\.\\d*-\\d{4}.*)`);
|
|
38
38
|
let searchTag = tag;
|
|
39
39
|
const match = tag.name.match(regex);
|
|
40
|
-
if (match[1]) {
|
|
40
|
+
if (match !== null && match[1]) {
|
|
41
41
|
searchTag = match[1];
|
|
42
42
|
}
|
|
43
43
|
const customOptions = {
|
package/oclif.manifest.json
CHANGED
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
|
|
4
|
+
"version": "5.1.0",
|
|
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": "
|
|
77
|
+
"node": ">=18"
|
|
78
78
|
},
|
|
79
79
|
"files": [
|
|
80
80
|
"/bin",
|