@ray-js/router 1.5.0-beta.11 → 1.5.0-beta.12
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/Router.js +0 -2
- package/lib/RouterScheduler.js +5 -10
- package/lib/index.js +0 -2
- package/package.json +5 -5
package/lib/Router.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import "core-js/modules/es.string.replace.js";
|
2
1
|
import { url } from '@ray-js/library';
|
3
2
|
import { history } from './history';
|
4
3
|
export class Router {
|
@@ -14,7 +13,6 @@ export class Router {
|
|
14
13
|
this.scheduler = options.scheduler;
|
15
14
|
// window.router = this
|
16
15
|
}
|
17
|
-
|
18
16
|
normalizeRoute(params) {
|
19
17
|
let {
|
20
18
|
to
|
package/lib/RouterScheduler.js
CHANGED
@@ -1,19 +1,14 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
3
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
4
|
-
import "core-js/modules/es.string.replace.js";
|
5
2
|
import { RouterScheduler as IRouterScheduler } from '@ray-js/types';
|
6
3
|
/**
|
7
4
|
* web 环境下的路由协调器
|
8
5
|
*/
|
9
6
|
export class RouterScheduler extends IRouterScheduler {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
_defineProperty(this, "basename", '/');
|
16
|
-
}
|
7
|
+
$currentRoute = '';
|
8
|
+
$listeners = {};
|
9
|
+
$entityMap = [];
|
10
|
+
basename = '/';
|
11
|
+
|
17
12
|
/**
|
18
13
|
* 当前调度器的 route 地址
|
19
14
|
*/
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/router",
|
3
|
-
"version": "1.5.0-beta.
|
3
|
+
"version": "1.5.0-beta.12",
|
4
4
|
"description": "Ray Core",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -23,17 +23,17 @@
|
|
23
23
|
"watch": "tsc -p ./tsconfig.build.json --module esnext --outDir lib --watch"
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
|
-
"@ray-js/library": "^1.5.0-beta.
|
27
|
-
"@ray-js/types": "^1.5.0-beta.
|
26
|
+
"@ray-js/library": "^1.5.0-beta.12",
|
27
|
+
"@ray-js/types": "^1.5.0-beta.12",
|
28
28
|
"history": "^4.10.1"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
|
-
"@ray-js/cli": "^1.5.0-beta.
|
31
|
+
"@ray-js/cli": "^1.5.0-beta.12",
|
32
32
|
"@types/history": "^4.7.11"
|
33
33
|
},
|
34
34
|
"publishConfig": {
|
35
35
|
"access": "public",
|
36
36
|
"registry": "https://registry.npmjs.org"
|
37
37
|
},
|
38
|
-
"gitHead": "
|
38
|
+
"gitHead": "7fb9ae94b8896c81a6b6556099107cb2daab9c9b"
|
39
39
|
}
|