@kapeta/local-cluster-service 0.70.4 → 0.70.5
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
|
+
## [0.70.5](https://github.com/kapetacom/local-cluster-service/compare/v0.70.4...v0.70.5) (2024-09-11)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* strip hash of URLs for refs ([#242](https://github.com/kapetacom/local-cluster-service/issues/242)) ([681a3fd](https://github.com/kapetacom/local-cluster-service/commit/681a3fdcfd837eb4d0d3411ee719e2dc68334522))
|
7
|
+
|
1
8
|
## [0.70.4](https://github.com/kapetacom/local-cluster-service/compare/v0.70.3...v0.70.4) (2024-09-10)
|
2
9
|
|
3
10
|
|
@@ -10,9 +10,10 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
10
10
|
exports.SystemIdHeader = 'System-Id';
|
11
11
|
function normalizePath(path) {
|
12
12
|
return path
|
13
|
-
.replace(
|
14
|
-
.replace(
|
15
|
-
.replace(
|
13
|
+
.replace(/#.*$/g, '') // Remove hash
|
14
|
+
.replace(/\?.*$/gi, '') // Remove query params
|
15
|
+
.replace(/:[a-z][a-z_]*\b/gi, '*') // Replace all params with *
|
16
|
+
.replace(/\{[a-z-.]+}/gi, '*'); // Replace all variables with *
|
16
17
|
}
|
17
18
|
exports.normalizePath = normalizePath;
|
18
19
|
async function writePageToDisk(systemId, event) {
|
@@ -10,9 +10,10 @@ const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
10
10
|
exports.SystemIdHeader = 'System-Id';
|
11
11
|
function normalizePath(path) {
|
12
12
|
return path
|
13
|
-
.replace(
|
14
|
-
.replace(
|
15
|
-
.replace(
|
13
|
+
.replace(/#.*$/g, '') // Remove hash
|
14
|
+
.replace(/\?.*$/gi, '') // Remove query params
|
15
|
+
.replace(/:[a-z][a-z_]*\b/gi, '*') // Replace all params with *
|
16
|
+
.replace(/\{[a-z-.]+}/gi, '*'); // Replace all variables with *
|
16
17
|
}
|
17
18
|
exports.normalizePath = normalizePath;
|
18
19
|
async function writePageToDisk(systemId, event) {
|
package/package.json
CHANGED
package/src/storm/page-utils.ts
CHANGED
@@ -17,9 +17,10 @@ export const SystemIdHeader = 'System-Id';
|
|
17
17
|
|
18
18
|
export function normalizePath(path: string) {
|
19
19
|
return path
|
20
|
-
.replace(
|
21
|
-
.replace(
|
22
|
-
.replace(
|
20
|
+
.replace(/#.*$/g, '') // Remove hash
|
21
|
+
.replace(/\?.*$/gi, '') // Remove query params
|
22
|
+
.replace(/:[a-z][a-z_]*\b/gi, '*') // Replace all params with *
|
23
|
+
.replace(/\{[a-z-.]+}/gi, '*'); // Replace all variables with *
|
23
24
|
}
|
24
25
|
|
25
26
|
export async function writePageToDisk(systemId: string, event: StormEventPage) {
|