@ray-js/router 1.4.27 → 1.4.29

Sign up to get free protection for your applications and to get access to all the features.
package/lib/Router.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.string.replace.js";
1
2
  import { url } from '@ray-js/library';
2
3
  import { history } from './history';
3
4
  export class Router {
@@ -1,14 +1,19 @@
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";
2
5
  import { RouterScheduler as IRouterScheduler } from '@ray-js/types';
3
6
  /**
4
7
  * web 环境下的路由协调器
5
8
  */
6
9
  export class RouterScheduler extends IRouterScheduler {
7
- $currentRoute = '';
8
- $listeners = {};
9
- $entityMap = [];
10
- basename = '/';
11
-
10
+ constructor() {
11
+ super(...arguments);
12
+ _defineProperty(this, "$currentRoute", '');
13
+ _defineProperty(this, "$listeners", {});
14
+ _defineProperty(this, "$entityMap", []);
15
+ _defineProperty(this, "basename", '/');
16
+ }
12
17
  /**
13
18
  * 当前调度器的 route 地址
14
19
  */
package/lib/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "core-js/modules/web.dom-collections.iterator.js";
2
+ import "core-js/modules/es.string.replace.js";
1
3
  import { createHistory } from './history';
2
4
  import { Router } from './Router';
3
5
  import { RouterScheduler } from './RouterScheduler';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/router",
3
- "version": "1.4.27",
3
+ "version": "1.4.29",
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.4.27",
27
- "@ray-js/types": "1.4.27",
26
+ "@ray-js/library": "^1.4.29",
27
+ "@ray-js/types": "^1.4.29",
28
28
  "history": "^4.10.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@ray-js/cli": "1.4.27",
31
+ "@ray-js/cli": "^1.4.29",
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": "ec5a33175e901af0218175d2e5afa7bb5de4f1fb"
38
+ "gitHead": "0e8af1a5ca622d02dd56ae854f2da73faf5b1867"
39
39
  }