gitlab-releaser
Advanced tools
Comparing version 6.0.0 to 7.0.0
16
index.js
@@ -111,2 +111,3 @@ 'use strict'; | ||
*/ | ||
// eslint-disable-next-line sonarjs/cognitive-complexity -- Allow < 10 | ||
const expandAllEnvironmentVariables = (release, options) => { | ||
@@ -119,3 +120,2 @@ for (const [key, value] of Object.entries(release)) { | ||
); | ||
// eslint-disable-next-line sonarjs/elseif-without-else -- no action on else | ||
} else if (Array.isArray(value)) { | ||
@@ -125,2 +125,16 @@ release[key] = value.map((item) => | ||
); | ||
// eslint-disable-next-line sonarjs/elseif-without-else -- no action | ||
} else if (key === 'assets') { | ||
release[key].links = value.links.map((assetLink) => { | ||
// Only process existing entries | ||
for (const [assetKey, assetValue] of Object.entries( | ||
assetLink | ||
)) { | ||
assetLink[assetKey] = expandEnvironmentVariables( | ||
assetValue, | ||
options.allowEmptyVariables | ||
); | ||
} | ||
return assetLink; | ||
}); | ||
} | ||
@@ -127,0 +141,0 @@ } |
@@ -9,3 +9,3 @@ 'use strict'; | ||
const fs = require('fs'); | ||
const fs = require('node:fs'); | ||
const logger = require('ci-logger'); | ||
@@ -12,0 +12,0 @@ const releaselog = require('releaselog'); |
@@ -9,4 +9,4 @@ 'use strict'; | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const fs = require('node:fs'); | ||
const path = require('node:path'); | ||
const Ajv = require('ajv').default; | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "gitlab-releaser", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Generate arguments for GitLab release-cli command", | ||
@@ -43,5 +43,5 @@ "bin": "./bin/gitlab-releaser.js", | ||
"devDependencies": { | ||
"@aarongoldenthal/eslint-config-standard": "^23.1.1", | ||
"@aarongoldenthal/eslint-config-standard": "^24.0.0", | ||
"bin-tester": "^4.0.1", | ||
"eslint": "^8.50.0", | ||
"eslint": "^8.53.0", | ||
"jest": "^29.7.0", | ||
@@ -55,6 +55,6 @@ "jest-junit": "^16.0.0", | ||
"ci-logger": "^6.0.0", | ||
"commander": "^11.0.0", | ||
"commander": "^11.1.0", | ||
"gitlab-ci-env": "^9.0.0", | ||
"releaselog": "^4.0.1" | ||
"releaselog": "^5.0.0" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
34521
604
1
0
+ Addedcommander@12.1.0(transitive)
+ Addedreleaselog@5.0.1(transitive)
- Removedreleaselog@4.0.1(transitive)
Updatedcommander@^11.1.0
Updatedreleaselog@^5.0.0