norn-cli 1.3.5 → 1.3.7
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 +14 -0
- package/dist/cli.js +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the "Norn" extension will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.3.7] - 2026-02-09
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **Named Requests with Header Groups**: Fixed `run RequestName` failing when the named request uses header groups
|
|
9
|
+
- `run GetWithJsonHeader` now correctly applies the `Json` header group instead of appending it to the URL
|
|
10
|
+
- Regression from 1.3.4 header groups fix
|
|
11
|
+
|
|
12
|
+
## [1.3.6] - 2026-02-09
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **Empty Array and Object Assertions**: Support for asserting against empty literals
|
|
16
|
+
- `assert $1.body.items == []` now works for empty array comparison
|
|
17
|
+
- `assert $1.body.data == {}` now works for empty object comparison
|
|
18
|
+
|
|
5
19
|
## [1.3.5] - 2026-02-09
|
|
6
20
|
|
|
7
21
|
### Fixed
|
package/dist/cli.js
CHANGED
|
@@ -18961,6 +18961,12 @@ function resolveValue(expr, responses, variables, getValueByPath2, responseIndex
|
|
|
18961
18961
|
if (trimmed.toLowerCase() === "null") {
|
|
18962
18962
|
return { value: null };
|
|
18963
18963
|
}
|
|
18964
|
+
if (trimmed === "[]") {
|
|
18965
|
+
return { value: [] };
|
|
18966
|
+
}
|
|
18967
|
+
if (trimmed === "{}") {
|
|
18968
|
+
return { value: {} };
|
|
18969
|
+
}
|
|
18964
18970
|
return { value: void 0, error: `Cannot resolve expression: ${trimmed}` };
|
|
18965
18971
|
}
|
|
18966
18972
|
function getNestedValue2(obj, path5) {
|
|
@@ -28456,7 +28462,10 @@ async function runSequenceWithJar(sequenceContent, fileVariables, cookieJar, wor
|
|
|
28456
28462
|
let requestUrl = "";
|
|
28457
28463
|
let requestMethod = "";
|
|
28458
28464
|
try {
|
|
28459
|
-
|
|
28465
|
+
let requestParsed = parserHttpRequest(namedRequest.content, runtimeVariables);
|
|
28466
|
+
if (apiDefinitions && apiDefinitions.headerGroups.length > 0) {
|
|
28467
|
+
requestParsed = applyHeaderGroupsToRequest(requestParsed, namedRequest.content, apiDefinitions.headerGroups, runtimeVariables);
|
|
28468
|
+
}
|
|
28460
28469
|
requestUrl = requestParsed.url;
|
|
28461
28470
|
requestMethod = requestParsed.method;
|
|
28462
28471
|
const effectiveRetryCount = parsed.retryCount ?? requestParsed.retryCount;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "norn-cli",
|
|
3
3
|
"displayName": "Norn - REST Client",
|
|
4
4
|
"description": "A powerful REST client for making HTTP requests with sequences, variables, scripts, and cookie support",
|
|
5
|
-
"version": "1.3.
|
|
5
|
+
"version": "1.3.7",
|
|
6
6
|
"publisher": "Norn-PeterKrustanov",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Peter Krastanov"
|