native-document 1.0.130 → 1.0.132

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.
@@ -7112,6 +7112,17 @@ var NativeDocument = (function (exports) {
7112
7112
  * @returns {{route:Route, params:Object, query:Object, path:string}}
7113
7113
  */
7114
7114
  this.resolve = function(target) {
7115
+ if(typeof target === 'string') {
7116
+ const route = $routesByName[target];
7117
+ if(route) {
7118
+ return {
7119
+ route,
7120
+ params: [],
7121
+ query: [],
7122
+ path: route.url({ name: target })
7123
+ };
7124
+ }
7125
+ }
7115
7126
  if(Validator.isJson(target)) {
7116
7127
  const route = $routesByName[target.name];
7117
7128
  if(!route) {