@sap/cli-core 2025.2.0 → 2025.3.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/CHANGELOG.md +6 -0
- package/commands/handler/fetch/utils.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 2025.2.0
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- URL path parameters are not correctly URI-encoded following the example of [`encodeURIComponent()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent). This can lead to issues when using a command which requires an option value with special characters, such as `/`, as a path parameter in the API URL.
|
|
13
|
+
|
|
8
14
|
## 2024.24.0
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -60,7 +60,7 @@ const handleMappingIn = (mapping, url, value, headers, bodyWrapper) => {
|
|
|
60
60
|
}
|
|
61
61
|
else if (mapping.in === "path") {
|
|
62
62
|
// eslint-disable-next-line no-param-reassign
|
|
63
|
-
url.pathname = url.pathname.replace(new RegExp(`${CURLY_OPEN_ENCODED}${mapping.name}${CURLY_CLOSED_ENCODED}`, "g"), value);
|
|
63
|
+
url.pathname = url.pathname.replace(new RegExp(`${CURLY_OPEN_ENCODED}${mapping.name}${CURLY_CLOSED_ENCODED}`, "g"), encodeURIComponent(value));
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
66
|
if (!bodyWrapper.body) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cli-core",
|
|
3
|
-
"version": "2025.
|
|
3
|
+
"version": "2025.3.0",
|
|
4
4
|
"description": "Command-Line Interface (CLI) Core Module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "SAP SE",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"ajv": "8.17.1",
|
|
21
|
-
"axios": "1.7.
|
|
21
|
+
"axios": "1.7.9",
|
|
22
22
|
"commander": "12.1.0",
|
|
23
23
|
"compare-versions": "6.1.1",
|
|
24
24
|
"config": "3.3.12",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"form-data": "4.0.1",
|
|
27
27
|
"fs-extra": "11.2.0",
|
|
28
28
|
"https": "1.0.0",
|
|
29
|
-
"https-proxy-agent": "7.0.
|
|
29
|
+
"https-proxy-agent": "7.0.6",
|
|
30
30
|
"lodash": "4.17.21",
|
|
31
31
|
"open": "8.4.2",
|
|
32
32
|
"path": "0.12.7",
|