@akc42/app-utils 4.2.0 → 4.2.2

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/debug.js CHANGED
@@ -133,7 +133,7 @@ function Debug(t) {
133
133
  }, '');
134
134
  if (initialised) performance.mark(this.topic, { detail: message }); //save our message locally regardless of if enabled
135
135
  let enabled = false;
136
- const debugConf = sessionStorage.get('debug');
136
+ const debugConf = sessionStorage.getItem('debug');
137
137
  if (debugConf) {
138
138
  const topics = debugConf.split(':');
139
139
  if (topics.includes(this.topic)) enabled = true;
package/location.js CHANGED
@@ -55,7 +55,7 @@ export function disconnectUrl() {
55
55
  }
56
56
 
57
57
  function urlChanged() {
58
- let path = window.decodeURIComponent(window.location.pathname);
58
+ let path = window.location.pathname;
59
59
  const slashIndex = path.lastIndexOf('/');
60
60
  if (path.substring(slashIndex + 1).indexOf('.') >= 0) {
61
61
  //we have a '.' in the last part of the path, so cut off this segment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akc42/app-utils",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "General Utilities for SPAs",
5
5
  "exports": {
6
6
  ".": "./*.js"
package/route.js CHANGED
@@ -73,7 +73,7 @@ export default class Route {
73
73
  if (j <= 0) {
74
74
  return this._clearOutActive();
75
75
  }
76
- let segment = urlPieces.shift();
76
+ let segment = decodeURIComponent(urlPieces.shift());
77
77
  j--;
78
78
  if (matchedPieces[i].length !== 0) {
79
79
  if (matchedPieces[i].substring(0,1) === ':') {