native-document 1.0.266 → 1.0.267

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-document",
3
- "version": "1.0.266",
3
+ "version": "1.0.267",
4
4
  "description": "A reactive JavaScript framework that preserves native DOM simplicity without sacrificing modern features",
5
5
  "author": "AfroCodeur <https://github.com/afrocodeur>",
6
6
  "license": "MIT",
@@ -127,6 +127,7 @@ export default function Router($options = {}) {
127
127
  * @returns {{route:Route, params:Object, query:Object, path:string}}
128
128
  */
129
129
  this.resolve = function(target) {
130
+ target = target.valueOf();
130
131
  if(typeof target === 'string') {
131
132
  const route = $routesByName[target];
132
133
  if(route) {