@tahminator/sapling 1.4.1 → 1.5.0

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.
@@ -8,7 +8,7 @@ export function _Route({ method, path = "", }) {
8
8
  var _a;
9
9
  const ctor = target.constructor;
10
10
  const list = (_a = _routeStore.get(ctor)) !== null && _a !== void 0 ? _a : [];
11
- list.push({ method, path: path !== null && path !== void 0 ? path : "", fnName: String(propertyKey) });
11
+ list.push({ method, path, fnName: String(propertyKey) });
12
12
  _routeStore.set(ctor, list);
13
13
  };
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tahminator/sapling",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "A library to help you write cleaner Express.js code",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -16,7 +16,7 @@
16
16
  "/dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@types/express": "^5.0.3",
20
- "express": "^5.1.0"
19
+ "@types/express": "^5.0.6",
20
+ "express": "^5.2.1"
21
21
  }
22
22
  }