@thepassle/app-tools 0.7.7 → 0.7.9

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/env/dev.js ADDED
@@ -0,0 +1,2 @@
1
+ export const DEV = true;
2
+ export const PROD = false;
package/env/prod.js ADDED
@@ -0,0 +1,2 @@
1
+ export const DEV = false;
2
+ export const PROD = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thepassle/app-tools",
3
- "version": "0.7.7",
3
+ "version": "0.7.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -53,8 +53,8 @@
53
53
  "./state/index.js",
54
54
  "./utils.js",
55
55
  "./utils/*.js",
56
- "./env/env-dev.js",
57
- "./env/env-prod.js"
56
+ "./env/dev.js",
57
+ "./env/prod.js"
58
58
  ],
59
59
  "keywords": [
60
60
  "router",
package/router/index.js CHANGED
@@ -106,8 +106,7 @@ export class Router extends EventTarget {
106
106
  }
107
107
 
108
108
  _onPopState = () => {
109
- this.route = this._matchRoute(new URL(window.location.href));
110
- this._notifyUrlChanged();
109
+ this.navigate(new URL(window.location.href));
111
110
  }
112
111
 
113
112
  _onAnchorClick = (e) => {