norn-cli 1.3.12 → 1.3.13

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 CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to the "Norn" extension will be documented in this file.
4
4
 
5
+ ## [1.3.13] - 2026-02-10
6
+
7
+ ### Fixed
8
+ - **Script Variable Resolution**: Fixed `print` showing raw command text instead of script output
9
+ - `extractVariables` now skips runtime-computed values (`var x = run ...`, `var x = $1...`, `var x = METHOD url`)
10
+ - Variables are only pre-populated for static assignments, not scripts/captures
11
+ - **Test Explorer Script Paths**: Fixed script path resolution when running tests through Test Explorer
12
+ - Scripts in imported sequences now resolve relative to the imported file, not the importing file
13
+ - Added `sequenceSources` parameter to Test Explorer execution path
14
+
5
15
  ## [1.3.12] - 2026-02-10
6
16
 
7
17
  ### Fixed
package/dist/cli.js CHANGED
@@ -20032,9 +20032,21 @@ function getNamedRequest(text, name) {
20032
20032
  function extractVariables(text) {
20033
20033
  const variables = {};
20034
20034
  const variableRegex = /^\s*var\s+([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.+)$/gm;
20035
+ const runtimePatterns = [
20036
+ /^run\s+/i,
20037
+ // var x = run ... (scripts/sequences)
20038
+ /^\$\d+/,
20039
+ // var x = $1... (response captures)
20040
+ /^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)\s+/i
20041
+ // var x = METHOD url (request captures)
20042
+ ];
20035
20043
  let match;
20036
20044
  while ((match = variableRegex.exec(text)) !== null) {
20037
20045
  let value = match[2].trim();
20046
+ const isRuntimeValue = runtimePatterns.some((pattern) => pattern.test(value));
20047
+ if (isRuntimeValue) {
20048
+ continue;
20049
+ }
20038
20050
  if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
20039
20051
  value = value.slice(1, -1);
20040
20052
  }
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.12",
5
+ "version": "1.3.13",
6
6
  "publisher": "Norn-PeterKrustanov",
7
7
  "author": {
8
8
  "name": "Peter Krastanov"