@appland/appmap 3.189.0 → 3.189.1

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
@@ -1,3 +1,10 @@
1
+ # [@appland/appmap-v3.189.1](https://github.com/getappmap/appmap-js/compare/@appland/appmap-v3.189.0...@appland/appmap-v3.189.1) (2025-05-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update parseLocation to handle negative line numbers correctly ([871139a](https://github.com/getappmap/appmap-js/commit/871139a659115725ffb06276f8f2941456b9ed25)), closes [#2304](https://github.com/getappmap/appmap-js/issues/2304)
7
+
1
8
  # [@appland/appmap-v3.189.0](https://github.com/getappmap/appmap-js/compare/@appland/appmap-v3.188.7...@appland/appmap-v3.189.0) (2025-05-10)
2
9
 
3
10
 
package/LICENSE.txt CHANGED
@@ -12,7 +12,7 @@ Software: @appland/appmap
12
12
 
13
13
  License: MIT License
14
14
 
15
- Copyright 2024, AppLand Inc
15
+ Copyright 2025, AppLand Inc
16
16
 
17
17
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
18
18
  to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@@ -8,13 +8,13 @@ const console_1 = require("console");
8
8
  function parseLocation(location) {
9
9
  if (!location.includes(':'))
10
10
  return [location, undefined];
11
- const locationTest = /([^:]+):(\d+)$/.exec(location);
11
+ const locationTest = /([^:]+):(-?\d+)$/.exec(location);
12
12
  if (!locationTest) {
13
13
  (0, console_1.warn)(chalk_1.default.gray(`Invalid location format: ${location}. Skipping file lookup.`));
14
14
  return;
15
15
  }
16
16
  const [requestedFileName, lineNoStr] = locationTest.slice(1);
17
- const lineNoReturned = lineNoStr ? parseInt(lineNoStr, 10) : undefined;
17
+ const lineNoReturned = lineNoStr && !lineNoStr.startsWith('-') ? parseInt(lineNoStr, 10) : undefined;
18
18
  return [requestedFileName, lineNoReturned];
19
19
  }
20
20
  exports.default = parseLocation;
@@ -1 +1 @@
1
- {"version":3,"file":"parseLocation.js","sourceRoot":"","sources":["../../../src/rpc/explain/parseLocation.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,qCAA+B;AAE/B,SAAwB,aAAa,CAAC,QAAgB;IACpD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAE1D,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrD,IAAI,CAAC,YAAY,EAAE;QACjB,IAAA,cAAI,EAAC,eAAK,CAAC,IAAI,CAAC,4BAA4B,QAAQ,yBAAyB,CAAC,CAAC,CAAC;QAChF,OAAO;KACR;IAED,MAAM,CAAC,iBAAiB,EAAE,SAAS,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7D,MAAM,cAAc,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACvE,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;AAC7C,CAAC;AAZD,gCAYC"}
1
+ {"version":3,"file":"parseLocation.js","sourceRoot":"","sources":["../../../src/rpc/explain/parseLocation.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,qCAA+B;AAE/B,SAAwB,aAAa,CAAC,QAAgB;IACpD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAE1D,MAAM,YAAY,GAAG,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvD,IAAI,CAAC,YAAY,EAAE;QACjB,IAAA,cAAI,EAAC,eAAK,CAAC,IAAI,CAAC,4BAA4B,QAAQ,yBAAyB,CAAC,CAAC,CAAC;QAChF,OAAO;KACR;IAED,MAAM,CAAC,iBAAiB,EAAE,SAAS,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7D,MAAM,cAAc,GAClB,SAAS,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAChF,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC;AAC7C,CAAC;AAbD,gCAaC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appland/appmap",
3
- "version": "3.189.0",
3
+ "version": "3.189.1",
4
4
  "description": "",
5
5
  "bin": "built/cli.js",
6
6
  "engines": {