@eventcatalog/core 2.44.1 → 2.44.2

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.
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "2.44.1";
40
+ var version = "2.44.2";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-AUGREOCT.js";
4
- import "../chunk-HGLZ22GT.js";
3
+ } from "../chunk-W3FSNUE2.js";
4
+ import "../chunk-TCVLQDC4.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "2.44.1";
109
+ var version = "2.44.2";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-ECUXDBJ7.js";
4
- import "../chunk-AUGREOCT.js";
5
- import "../chunk-HGLZ22GT.js";
3
+ } from "../chunk-KCYQRYTG.js";
4
+ import "../chunk-W3FSNUE2.js";
5
+ import "../chunk-TCVLQDC4.js";
6
6
  import "../chunk-E7TXTI7G.js";
7
7
  export {
8
8
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-AUGREOCT.js";
3
+ } from "./chunk-W3FSNUE2.js";
4
4
  import {
5
5
  getEventCatalogConfigFile,
6
6
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "2.44.1";
2
+ var version = "2.44.2";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HGLZ22GT.js";
3
+ } from "./chunk-TCVLQDC4.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "2.44.1";
28
+ var version = "2.44.2";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-HGLZ22GT.js";
3
+ } from "./chunk-TCVLQDC4.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
157
157
  var import_os = __toESM(require("os"), 1);
158
158
 
159
159
  // package.json
160
- var version = "2.44.1";
160
+ var version = "2.44.2";
161
161
 
162
162
  // src/constants.ts
163
163
  var VERSION = version;
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-DCLTVJDP.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-ECUXDBJ7.js";
10
- import "./chunk-AUGREOCT.js";
9
+ } from "./chunk-KCYQRYTG.js";
10
+ import "./chunk-W3FSNUE2.js";
11
11
  import {
12
12
  catalogToAstro,
13
13
  checkAndConvertMdToMdx
@@ -15,7 +15,7 @@ import {
15
15
  import "./chunk-EXAALOQA.js";
16
16
  import {
17
17
  VERSION
18
- } from "./chunk-HGLZ22GT.js";
18
+ } from "./chunk-TCVLQDC4.js";
19
19
  import {
20
20
  isAuthEnabled,
21
21
  isBackstagePluginEnabled,
@@ -33,13 +33,21 @@ interface TypedLocals {
33
33
  }
34
34
 
35
35
  // Wildcard matching utilities
36
- export function matchesPattern(pattern: string, pathname: string): boolean {
37
- const regexPattern = pattern
38
- .replace(/\*/g, '[^/]+') // * matches any characters except /
39
- .replace(/\*\*/g, '.*'); // ** matches any characters including /
40
-
41
- const regex = new RegExp(`^${regexPattern}$`);
42
- return regex.test(pathname);
36
+ export function matchesPattern(pattern: string, path: string): boolean {
37
+ const escapeRegExp = (str: string) => str.replace(/[-/\\^$+?.()|[\]{}]/g, '\\$&');
38
+
39
+ // Convert the pattern to a regular expression
40
+ const regexStr = pattern
41
+ .split('/')
42
+ .map((part) => {
43
+ if (part === '**') return '.*';
44
+ if (part === '*') return '[^/]+';
45
+ return escapeRegExp(part);
46
+ })
47
+ .join('/');
48
+
49
+ const regex = new RegExp(`^${regexStr}$`);
50
+ return regex.test(path);
43
51
  }
44
52
 
45
53
  function calculateSpecificity(pattern: string): number {
@@ -21,7 +21,6 @@ try {
21
21
  console.log('✅ Loaded custom RBAC middleware');
22
22
  }
23
23
  } catch (error) {
24
- console.log('Error loading custom RBAC middleware:', error);
25
24
  // Just silently fail, we don't want to block the app
26
25
  }
27
26
 
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "2.44.1",
9
+ "version": "2.44.2",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },