@ray-js/router-mp 1.3.6 → 1.3.8
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/lib/Router.js +0 -6
- package/package.json +7 -7
package/lib/Router.js
CHANGED
@@ -13,7 +13,6 @@ import "core-js/modules/es.regexp.sticky.js";
|
|
13
13
|
import "core-js/modules/es.regexp.to-string.js";
|
14
14
|
import { url } from '@ray-js/library';
|
15
15
|
import { navigateBack, navigateTo, reLaunch, switchTab, redirectTo, getLaunchOptionsSync } from '@ray-js/api';
|
16
|
-
import { isThing } from '@ray-js/env';
|
17
16
|
import { RouterScheduler } from './RouterScheduler';
|
18
17
|
|
19
18
|
function currentPage() {
|
@@ -90,7 +89,6 @@ export var Router = /*#__PURE__*/function () {
|
|
90
89
|
/**
|
91
90
|
* 坑点之一
|
92
91
|
* 微信小程序: app.json 里的页面配置不能以`/`开头,wx.navigatorTo 却需要
|
93
|
-
* 涂鸦小程序: 都不能以`/`开头
|
94
92
|
*/
|
95
93
|
|
96
94
|
|
@@ -98,10 +96,6 @@ export var Router = /*#__PURE__*/function () {
|
|
98
96
|
finalPath = ('/' + this.urlPrefix + '/' + finalPath).replace(/\/+/g, '/');
|
99
97
|
}
|
100
98
|
|
101
|
-
if (isThing) {
|
102
|
-
finalPath = finalPath.replace(/^\//, '');
|
103
|
-
}
|
104
|
-
|
105
99
|
matchedPage.path = finalPath;
|
106
100
|
return Promise.resolve(matchedPage);
|
107
101
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/router-mp",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.8",
|
4
4
|
"description": "Ray Core",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -20,16 +20,16 @@
|
|
20
20
|
"watch": "tsc -p ./tsconfig.build.json --module esnext --outDir lib --watch"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"@ray-js/api": "^1.3.
|
24
|
-
"@ray-js/env": "^1.3.
|
25
|
-
"@ray-js/library": "^1.3.
|
26
|
-
"@ray-js/types": "^1.3.
|
23
|
+
"@ray-js/api": "^1.3.8",
|
24
|
+
"@ray-js/env": "^1.3.8",
|
25
|
+
"@ray-js/library": "^1.3.8",
|
26
|
+
"@ray-js/types": "^1.3.8",
|
27
27
|
"@react-navigation/core": "^6.1.0",
|
28
28
|
"path-to-regexp": "^6.2.0",
|
29
29
|
"slash": "^5.0.0"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
-
"@ray-js/cli": "^1.3.
|
32
|
+
"@ray-js/cli": "^1.3.8"
|
33
33
|
},
|
34
34
|
"maintainers": [
|
35
35
|
{
|
@@ -37,6 +37,6 @@
|
|
37
37
|
"email": "tuyafe@tuya.com"
|
38
38
|
}
|
39
39
|
],
|
40
|
-
"gitHead": "
|
40
|
+
"gitHead": "074cc99e10cdad9b69b389a283244d9f4ecb05b3",
|
41
41
|
"repository": {}
|
42
42
|
}
|