@appland/search 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/built/snippet-index.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [@appland/search-v1.1.3](https://github.com/getappmap/appmap-js/compare/@appland/search-v1.1.2...@appland/search-v1.1.3) (2025-02-05)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Snippet paths are URI encoded ([088ac7e](https://github.com/getappmap/appmap-js/commit/088ac7eb22dceadd320ae1a162ee8d7290f88b9b))
|
7
|
+
|
1
8
|
# [@appland/search-v1.1.2](https://github.com/getappmap/appmap-js/compare/@appland/search-v1.1.1...@appland/search-v1.1.2) (2025-01-23)
|
2
9
|
|
3
10
|
|
package/built/snippet-index.js
CHANGED
@@ -68,7 +68,10 @@ var SnippetType;
|
|
68
68
|
function fileChunkSnippetId(filePath, startLine) {
|
69
69
|
return {
|
70
70
|
type: 'file-chunk',
|
71
|
-
id: [filePath, startLine]
|
71
|
+
id: [filePath, startLine]
|
72
|
+
.filter((t) => Boolean(t))
|
73
|
+
.map(encodeURIComponent)
|
74
|
+
.join(':'),
|
72
75
|
};
|
73
76
|
}
|
74
77
|
function parseFileChunkSnippetId(snippetId) {
|
@@ -79,7 +82,7 @@ function parseFileChunkSnippetId(snippetId) {
|
|
79
82
|
(0, assert_1.default)(filePath);
|
80
83
|
const startLine = parts.shift();
|
81
84
|
return {
|
82
|
-
filePath: filePath,
|
85
|
+
filePath: decodeURIComponent(filePath),
|
83
86
|
startLine: startLine ? parseInt(startLine, 10) : undefined,
|
84
87
|
};
|
85
88
|
}
|