@esportsplus/routing 0.0.48 → 0.0.49

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.
@@ -151,6 +151,7 @@ class Router {
151
151
  let properties = [middleware, routes], property;
152
152
  while (property = properties.pop()) {
153
153
  let copy = property[METHOD_NAME_ALL], into = property[method];
154
+ property[method] = Object.create(null);
154
155
  for (let path in copy) {
155
156
  into[path] = [...copy[path]];
156
157
  }
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "prepublishOnly": "npm run build"
18
18
  },
19
19
  "types": "./build/index.d.ts",
20
- "version": "0.0.48"
20
+ "version": "0.0.49"
21
21
  }
@@ -230,6 +230,8 @@ class Router<T> {
230
230
  let copy = property[METHOD_NAME_ALL],
231
231
  into = property[method];
232
232
 
233
+ property[method] = Object.create(null);
234
+
233
235
  for (let path in copy) {
234
236
  into[path] = [ ...copy[path] ];
235
237
  }