@ray-js/router-mp 0.5.3-beta-1 → 0.5.3-beta-2

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 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-beta-1",
3
+ "version": "0.5.3-beta-2",
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.3-beta-1",
24
- "@ray-js/env": "^0.5.3-beta-1",
25
- "@ray-js/library": "^0.5.3-beta-1",
26
- "@ray-js/types": "^0.5.3-beta-1",
23
+ "@ray-js/api": "^0.5.3-beta-2",
24
+ "@ray-js/env": "^0.5.3-beta-2",
25
+ "@ray-js/library": "^0.5.3-beta-2",
26
+ "@ray-js/types": "^0.5.3-beta-2",
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.3-beta-1"
31
+ "@ray-js/cli": "^0.5.3-beta-2"
32
32
  },
33
33
  "maintainers": [
34
34
  {
@@ -36,6 +36,6 @@
36
36
  "email": "tuyafe@tuya.com"
37
37
  }
38
38
  ],
39
- "gitHead": "f0b2777cfa84063c1ac866c053a6d2c9e22158ec",
39
+ "gitHead": "027ff15bd031d99b2ab20eff1f2b7dfed242110a",
40
40
  "repository": {}
41
41
  }