@ray-js/router-mp 0.5.3-beta-1 → 0.5.4-beta-1
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.d.ts +1 -1
- package/lib/Router.js +4 -2
- package/package.json +7 -7
package/lib/Router.d.ts
CHANGED
@@ -7,7 +7,7 @@ export declare class Router implements TRouter {
|
|
7
7
|
*/
|
8
8
|
private normalizeRoute;
|
9
9
|
push(to: string, options?: RouteOptions): void;
|
10
|
-
replace(to: string): void;
|
10
|
+
replace(to: string, options?: RouteOptions): void;
|
11
11
|
reload(): void;
|
12
12
|
go(delta: number): void;
|
13
13
|
back(): void;
|
package/lib/Router.js
CHANGED
@@ -124,9 +124,11 @@ export var Router = /*#__PURE__*/function () {
|
|
124
124
|
}
|
125
125
|
}, {
|
126
126
|
key: "replace",
|
127
|
-
value: function replace(to) {
|
127
|
+
value: function replace(to, options) {
|
128
|
+
var subpackage = options === null || options === void 0 ? void 0 : options.subpackage;
|
128
129
|
this.normalizeRoute({
|
129
|
-
to: to
|
130
|
+
to: to,
|
131
|
+
subpackage: subpackage
|
130
132
|
}).then(function (route) {
|
131
133
|
if (route.isTabBar) {
|
132
134
|
switchTab({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/router-mp",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.4-beta-1",
|
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.5.
|
24
|
-
"@ray-js/env": "^0.5.
|
25
|
-
"@ray-js/library": "^0.5.
|
26
|
-
"@ray-js/types": "^0.5.
|
23
|
+
"@ray-js/api": "^0.5.4-beta-1",
|
24
|
+
"@ray-js/env": "^0.5.4-beta-1",
|
25
|
+
"@ray-js/library": "^0.5.4-beta-1",
|
26
|
+
"@ray-js/types": "^0.5.4-beta-1",
|
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.5.
|
31
|
+
"@ray-js/cli": "^0.5.4-beta-1"
|
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": "082be93566d9dbd7a3c1191820a20bfe3bf1ee61",
|
40
40
|
"repository": {}
|
41
41
|
}
|