remult 0.23.0-exp.22 → 0.23.0-exp.23

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.
@@ -925,7 +925,7 @@ export class RouteImplementation {
925
925
  }
926
926
  let idPosition = path.lastIndexOf('/');
927
927
  if (idPosition >= 0) {
928
- lowerPath = path.substring(0, idPosition) + '/:id';
928
+ lowerPath = lowerPath.substring(0, idPosition) + '/:id';
929
929
  m = this.map.get(lowerPath);
930
930
  if (m) {
931
931
  let h = m.get(req.method.toLowerCase());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.23.0-exp.22",
3
+ "version": "0.23.0-exp.23",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "types": "index.d.ts",
6
6
  "module": "esm/index.js",
@@ -1340,7 +1340,7 @@ var RouteImplementation = /** @class */ (function () {
1340
1340
  }
1341
1341
  var idPosition = path.lastIndexOf('/');
1342
1342
  if (idPosition >= 0) {
1343
- lowerPath = path.substring(0, idPosition) + '/:id';
1343
+ lowerPath = lowerPath.substring(0, idPosition) + '/:id';
1344
1344
  m = this.map.get(lowerPath);
1345
1345
  if (m) {
1346
1346
  var h = m.get(req.method.toLowerCase());