@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 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
@@ -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
- constructor() {
11
- super(...arguments);
12
- _defineProperty(this, "$currentRoute", '');
13
- _defineProperty(this, "$listeners", {});
14
- _defineProperty(this, "$entityMap", []);
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
@@ -1,5 +1,3 @@
1
- import "core-js/modules/web.dom-collections.iterator.js";
2
- import "core-js/modules/es.string.replace.js";
3
1
  import { createHistory } from './history';
4
2
  import { Router } from './Router';
5
3
  import { RouterScheduler } from './RouterScheduler';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/router",
3
- "version": "1.5.0-beta.11",
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.11",
27
- "@ray-js/types": "^1.5.0-beta.11",
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.11",
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": "4b672baff874f366149a5a3007366a2eba7e5132"
38
+ "gitHead": "7fb9ae94b8896c81a6b6556099107cb2daab9c9b"
39
39
  }