@ray-js/router-mp 0.5.10 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/Router.js +2 -2
- package/lib/RouterScheduler.js +0 -1
- package/package.json +7 -7
package/lib/Router.js
CHANGED
@@ -9,7 +9,7 @@ import "core-js/modules/es.string.replace.js";
|
|
9
9
|
import { url } from '@ray-js/library';
|
10
10
|
import { navigateBack, navigateTo, reLaunch, switchTab, redirectTo, getLaunchOptionsSync } from '@ray-js/api';
|
11
11
|
import { RouterScheduler } from './RouterScheduler';
|
12
|
-
import {
|
12
|
+
import { isThing } from '@ray-js/env';
|
13
13
|
|
14
14
|
function currentPage() {
|
15
15
|
var pages = getCurrentPages();
|
@@ -80,7 +80,7 @@ export var Router = /*#__PURE__*/function () {
|
|
80
80
|
} // FIXME: 智能小程序对路由 path 的跳转未支持绝对路径
|
81
81
|
|
82
82
|
|
83
|
-
if (
|
83
|
+
if (isThing) {
|
84
84
|
matchedPage.path = matchedPage.path.replace(/^\//, '');
|
85
85
|
}
|
86
86
|
}
|
package/lib/RouterScheduler.js
CHANGED
@@ -7,7 +7,6 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
8
8
|
import "core-js/modules/es.array.concat.js";
|
9
9
|
import "core-js/modules/es.object.to-string.js";
|
10
|
-
import "core-js/modules/es.function.name.js";
|
11
10
|
import "core-js/modules/es.array.find.js";
|
12
11
|
import "core-js/modules/web.dom-collections.for-each.js";
|
13
12
|
import { compile, pathToRegexp } from 'path-to-regexp';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/router-mp",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.6.0",
|
4
4
|
"description": "Ray Core",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -20,15 +20,15 @@
|
|
20
20
|
"watch": "tsc -p ./tsconfig.build.json --module esnext --outDir lib --watch"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"@ray-js/api": "^0.
|
24
|
-
"@ray-js/env": "^0.
|
25
|
-
"@ray-js/library": "^0.
|
26
|
-
"@ray-js/types": "^0.
|
23
|
+
"@ray-js/api": "^0.6.0",
|
24
|
+
"@ray-js/env": "^0.6.0",
|
25
|
+
"@ray-js/library": "^0.6.0",
|
26
|
+
"@ray-js/types": "^0.6.0",
|
27
27
|
"@react-navigation/core": "^6.1.0",
|
28
28
|
"path-to-regexp": "^6.2.0"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
|
-
"@ray-js/cli": "^0.
|
31
|
+
"@ray-js/cli": "^0.6.0"
|
32
32
|
},
|
33
33
|
"maintainers": [
|
34
34
|
{
|
@@ -36,6 +36,6 @@
|
|
36
36
|
"email": "tuyafe@tuya.com"
|
37
37
|
}
|
38
38
|
],
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "d7e74c750c02eda67af6e54da93aad14d001acb3",
|
40
40
|
"repository": {}
|
41
41
|
}
|