@akc42/app-utils 4.0.1 → 4.0.3

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.
Files changed (2) hide show
  1. package/location.js +2 -2
  2. package/package.json +1 -1
package/location.js CHANGED
@@ -18,7 +18,7 @@
18
18
  along with Distributed Router. If not, see <http://www.gnu.org/licenses/>.
19
19
  */
20
20
 
21
- import {Debug} from './debug.js';
21
+ import Debug from './debug.js';
22
22
  let routeCallback = null;
23
23
  let lastChangedAt;
24
24
  let route = null;
@@ -79,7 +79,7 @@ function routeChanged(e) {
79
79
  let newPath = route.path;
80
80
  if(e.detail.path !== undefined) {
81
81
  if (Number.isInteger(e.detail.segment)) {
82
- debug('route change called path', e.detail.path, 'segments', d.detail.segment, 'current path', route.path )
82
+ debug('route change called path', e.detail.path, 'segments', e.detail.segment, 'current path', route.path )
83
83
  let segments = route.path.split('/');
84
84
  if (segments[0] === '') segments.shift(); //loose leeding
85
85
  if(segments.length < e.detail.segment) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akc42/app-utils",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "General Utilities for SPAs",
5
5
  "exports": {
6
6
  ".": "./*.js"