@adinsure-ops/ops-cli 5.0.10-rc1 → 5.0.11

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,5 +1,14 @@
1
1
  # Changelogs
2
2
 
3
+ ## next
4
+
5
+ - LJADIRD-45711: updated regex for matching tags in the gitlab:next-nightly-tag command
6
+
7
+ ## 5.0.10 2023-03-20
8
+
9
+ - LJADIRDSUP-13469: added gurads for checking if the npmrc file being read is a directory
10
+
11
+
3
12
  ## 5.0.9: 2023-01-03
4
13
 
5
14
  - ops-cli sql command is now case insensitive
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/lib/lib/npmrc.js CHANGED
@@ -17,7 +17,7 @@ export default class NpmRc {
17
17
  if (!fs.existsSync(this.filePath) && createIfNotExists) {
18
18
  fs.writeFileSync(this.filePath, JSON.stringify({}));
19
19
  }
20
- if (fs.existsSync(this.filePath)) {
20
+ if (fs.existsSync(this.filePath) && fs.lstatSync(this.filePath).isFile()) {
21
21
  this.load();
22
22
  }
23
23
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.0.10-rc1",
2
+ "version": "5.0.11",
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.10-rc1",
4
+ "version": "5.0.11",
5
5
  "author": "Adacta Digital Service Department",
6
6
  "bin": {
7
7
  "ops": "./bin/run.js"