@xfe-repo/web-router 1.1.0 → 1.1.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.
package/dist/index.js CHANGED
@@ -285,6 +285,7 @@ var import_history = require("history");
285
285
  var import_component2 = require("@loadable/component");
286
286
  var import_react_router_dom3 = require("react-router-dom");
287
287
  var import_query_string = __toESM(require("query-string"));
288
+ var import_env = require("@xfe-repo/web-utils/env");
288
289
  __reExport(src_exports, require("react-router-dom"), module.exports);
289
290
  // src/routes.ts
290
291
  var import_component = __toESM(require("@loadable/component"));
@@ -454,7 +455,7 @@ function createNavigator(options) {
454
455
  } else if (action === "POP") {
455
456
  stack.pop();
456
457
  }
457
- console.log("router", action, pathname, stack);
458
+ if (!import_env.isProduction) console.log("router", action, pathname, stack);
458
459
  });
459
460
  _navigator.reLaunch = function(path, state) {
460
461
  var _stack_;
package/dist/index.mjs CHANGED
@@ -201,6 +201,7 @@ import { createHashHistory, createBrowserHistory, createMemoryHistory } from "hi
201
201
  import { loadableReady } from "@loadable/component";
202
202
  import { matchRoutes } from "react-router-dom";
203
203
  import queryString from "query-string";
204
+ import { isProduction } from "@xfe-repo/web-utils/env";
204
205
  export * from "react-router-dom";
205
206
  // src/routes.ts
206
207
  import loadable from "@loadable/component";
@@ -370,7 +371,7 @@ function createNavigator(options) {
370
371
  } else if (action === "POP") {
371
372
  stack.pop();
372
373
  }
373
- console.log("router", action, pathname, stack);
374
+ if (!isProduction) console.log("router", action, pathname, stack);
374
375
  });
375
376
  _navigator.reLaunch = function(path, state) {
376
377
  var _stack_;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-router",
3
- "version": "1.1.0",
3
+ "version": "1.1.3",
4
4
  "sideEffects": false,
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,15 +23,16 @@
23
23
  "@loadable/component": "^5.16.4",
24
24
  "history": "^5.3.0",
25
25
  "query-string": "^7.1.3",
26
- "react-router-dom": "^6.26.2"
26
+ "react-router-dom": "^6.26.2",
27
+ "@xfe-repo/web-utils": "1.1.3"
27
28
  },
28
29
  "devDependencies": {
29
30
  "@types/loadable__component": "^5.13.9",
30
31
  "@types/node": "^20.16.5",
31
32
  "@types/react": "^18",
32
- "@xfe-repo/eslint-config": "0.0.2",
33
- "@xfe-repo/typescript-config": "0.0.3",
34
- "@xfe-repo/web-register": "1.1.0"
33
+ "@xfe-repo/eslint-config": "0.0.4",
34
+ "@xfe-repo/web-register": "1.1.3",
35
+ "@xfe-repo/typescript-config": "0.0.6"
35
36
  },
36
37
  "scripts": {
37
38
  "build": "tsup",