@tarojs/router 3.6.26 → 3.6.28

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/api.js CHANGED
@@ -54,7 +54,7 @@ function navigate(option, method) {
54
54
  const state = { timestamp: Date.now() };
55
55
  if (pathPieces.pathname) {
56
56
  const originPath = routesAlias.getOrigin(pathPieces.pathname);
57
- if (!RouterConfig.isPage(addLeadingSlash(originPath))) {
57
+ if (!RouterConfig.isPage(addLeadingSlash(originPath)) && !RouterConfig.isPage(addLeadingSlash(pathPieces.pathname))) {
58
58
  const res = { errMsg: `${method}:fail page ${originPath} is not found` };
59
59
  fail === null || fail === void 0 ? void 0 : fail(res);
60
60
  complete === null || complete === void 0 ? void 0 : complete(res);
package/dist/index.cjs.js CHANGED
@@ -570,7 +570,7 @@ function navigate(option, method) {
570
570
  const state = { timestamp: Date.now() };
571
571
  if (pathPieces.pathname) {
572
572
  const originPath = routesAlias.getOrigin(pathPieces.pathname);
573
- if (!RouterConfig.isPage(runtime.addLeadingSlash(originPath))) {
573
+ if (!RouterConfig.isPage(runtime.addLeadingSlash(originPath)) && !RouterConfig.isPage(runtime.addLeadingSlash(pathPieces.pathname))) {
574
574
  const res = { errMsg: `${method}:fail page ${originPath} is not found` };
575
575
  fail === null || fail === void 0 ? void 0 : fail(res);
576
576
  complete === null || complete === void 0 ? void 0 : complete(res);
package/dist/index.esm.js CHANGED
@@ -569,7 +569,7 @@ function navigate(option, method) {
569
569
  const state = { timestamp: Date.now() };
570
570
  if (pathPieces.pathname) {
571
571
  const originPath = routesAlias.getOrigin(pathPieces.pathname);
572
- if (!RouterConfig.isPage(addLeadingSlash(originPath))) {
572
+ if (!RouterConfig.isPage(addLeadingSlash(originPath)) && !RouterConfig.isPage(addLeadingSlash(pathPieces.pathname))) {
573
573
  const res = { errMsg: `${method}:fail page ${originPath} is not found` };
574
574
  fail === null || fail === void 0 ? void 0 : fail(res);
575
575
  complete === null || complete === void 0 ? void 0 : complete(res);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/router",
3
- "version": "3.6.26",
3
+ "version": "3.6.28",
4
4
  "description": "Taro-router",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.esm.js",
@@ -44,14 +44,14 @@
44
44
  "rollup-plugin-ts": "^3.0.2",
45
45
  "ts-jest": "^29.0.5",
46
46
  "typescript": "^4.7.4",
47
- "@tarojs/taro": "3.6.26",
48
- "@tarojs/shared": "3.6.26",
49
- "@tarojs/runtime": "3.6.26"
47
+ "@tarojs/taro": "3.6.28",
48
+ "@tarojs/runtime": "3.6.28",
49
+ "@tarojs/shared": "3.6.28"
50
50
  },
51
51
  "peerDependencies": {
52
- "@tarojs/runtime": "3.6.26",
53
- "@tarojs/taro": "3.6.26",
54
- "@tarojs/shared": "3.6.26"
52
+ "@tarojs/taro": "3.6.28",
53
+ "@tarojs/runtime": "3.6.28",
54
+ "@tarojs/shared": "3.6.28"
55
55
  },
56
56
  "scripts": {
57
57
  "prebuild": "pnpm run clean",