@ray-js/router 1.6.19 → 1.6.20-alpha.0
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 +0 -2
- package/lib/RouterScheduler.js +5 -11
- package/lib/index.js +0 -3
- package/package.json +5 -5
package/lib/Router.js
CHANGED
package/lib/RouterScheduler.js
CHANGED
@@ -1,23 +1,17 @@
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
3
|
-
import "core-js/modules/es.regexp.exec.js";
|
4
|
-
import "core-js/modules/es.string.replace.js";
|
5
2
|
import "core-js/modules/esnext.iterator.constructor.js";
|
6
3
|
import "core-js/modules/esnext.iterator.for-each.js";
|
7
4
|
import "core-js/modules/esnext.iterator.some.js";
|
8
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
9
5
|
import { RouterScheduler as IRouterScheduler } from '@ray-js/types';
|
10
6
|
/**
|
11
7
|
* web 环境下的路由协调器
|
12
8
|
*/
|
13
9
|
export class RouterScheduler extends IRouterScheduler {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
_defineProperty(this, "basename", '/');
|
20
|
-
}
|
10
|
+
$currentRoute = '';
|
11
|
+
$listeners = {};
|
12
|
+
$entityMap = [];
|
13
|
+
basename = '/';
|
14
|
+
|
21
15
|
/**
|
22
16
|
* 当前调度器的 route 地址
|
23
17
|
*/
|
package/lib/index.js
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
import "core-js/modules/es.regexp.exec.js";
|
2
|
-
import "core-js/modules/es.string.replace.js";
|
3
|
-
import "core-js/modules/web.dom-collections.iterator.js";
|
4
1
|
import { createHistory } from './history';
|
5
2
|
import { Router } from './Router';
|
6
3
|
import { RouterScheduler } from './RouterScheduler';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/router",
|
3
|
-
"version": "1.6.
|
3
|
+
"version": "1.6.20-alpha.0",
|
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.6.
|
27
|
-
"@ray-js/types": "1.6.
|
26
|
+
"@ray-js/library": "1.6.20-alpha.0",
|
27
|
+
"@ray-js/types": "1.6.20-alpha.0",
|
28
28
|
"history": "^4.10.1"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
|
-
"@ray-js/cli": "1.6.
|
31
|
+
"@ray-js/cli": "1.6.20-alpha.0",
|
32
32
|
"@types/history": "^5.0.0"
|
33
33
|
},
|
34
34
|
"publishConfig": {
|
35
35
|
"access": "public",
|
36
36
|
"registry": "https://registry.npmjs.com"
|
37
37
|
},
|
38
|
-
"gitHead": "
|
38
|
+
"gitHead": "6111376e4f7189596d01d840c06e43284eb74d2e"
|
39
39
|
}
|