@majkapp/plugin-kit 1.0.9 → 1.0.10

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.
@@ -153,11 +153,11 @@ function validateEntity(entityType, entity) {
153
153
  function pathToRegex(p) {
154
154
  const keys = [];
155
155
  const pattern = p
156
- .replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1')
157
156
  .replace(/\/:([A-Za-z0-9_]+)/g, (_m, k) => {
158
157
  keys.push(k);
159
158
  return '/([^/]+)';
160
- });
159
+ })
160
+ .replace(/([.+*?=^!${}()[\]|/\\])/g, '\\$1');
161
161
  return { regex: new RegExp(`^${pattern}$`), keys };
162
162
  }
163
163
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majkapp/plugin-kit",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Fluent builder framework for creating robust MAJK plugins",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",