@ray-js/router-mp 1.7.52 → 1.7.54
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 +5 -1
- package/package.json +6 -6
package/lib/Router.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import "core-js/modules/es.regexp.constructor.js";
|
|
3
|
+
import "core-js/modules/es.regexp.dot-all.js";
|
|
4
|
+
import "core-js/modules/es.regexp.exec.js";
|
|
5
|
+
import "core-js/modules/es.string.replace.js";
|
|
2
6
|
import { navigateBack, navigateTo, reLaunch, redirectTo, switchTab } from '@ray-js/api';
|
|
3
7
|
import { url } from '@ray-js/library';
|
|
4
8
|
import { RouterScheduler, currentPage } from './RouterScheduler';
|
|
@@ -198,7 +202,7 @@ export class Router {
|
|
|
198
202
|
const page = currentPage();
|
|
199
203
|
const reg = RegExp('^' + this.urlPrefix + '/');
|
|
200
204
|
const r = page.route.replace(reg, '');
|
|
201
|
-
const path = url.params(
|
|
205
|
+
const path = url.params("/".concat(r), page.options);
|
|
202
206
|
const {
|
|
203
207
|
pathname,
|
|
204
208
|
query,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/router-mp",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.54",
|
|
4
4
|
"description": "Ray Core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ray"
|
|
@@ -26,20 +26,20 @@
|
|
|
26
26
|
"@ray-js/api": "^1.6.32"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ray-js/env": "1.7.
|
|
30
|
-
"@ray-js/library": "1.7.
|
|
31
|
-
"@ray-js/types": "1.7.
|
|
29
|
+
"@ray-js/env": "1.7.54",
|
|
30
|
+
"@ray-js/library": "1.7.54",
|
|
31
|
+
"@ray-js/types": "1.7.54",
|
|
32
32
|
"@react-navigation/core": "^6.4.17",
|
|
33
33
|
"path-to-regexp": "^6.3.0",
|
|
34
34
|
"slash": "^5.1.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@ray-js/cli": "1.7.
|
|
37
|
+
"@ray-js/cli": "1.7.54",
|
|
38
38
|
"typescript": "^5.8.3"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public",
|
|
42
42
|
"registry": "https://registry.npmjs.org"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "5116e3b87db4744a118a9fe97f88a8c708b44a93"
|
|
45
45
|
}
|