@ray-js/router 1.4.42 → 1.4.44

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/es.string.replace.js";
4
+ import "core-js/modules/web.dom-collections.iterator.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
  */
@@ -7,4 +7,4 @@ export declare function createHistory(options: {
7
7
  onChange: (component: PageComponent, params: {
8
8
  page: MatchedPage;
9
9
  }) => void;
10
- }): History<unknown>;
10
+ }): History;
package/lib/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "core-js/modules/es.string.replace.js";
2
+ import "core-js/modules/web.dom-collections.iterator.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.42",
3
+ "version": "1.4.44",
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.42",
27
- "@ray-js/types": "1.4.42",
26
+ "@ray-js/library": "1.4.44",
27
+ "@ray-js/types": "1.4.44",
28
28
  "history": "^4.10.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@ray-js/cli": "1.4.42",
32
- "@types/history": "^4.7.11"
31
+ "@ray-js/cli": "1.4.44",
32
+ "@types/history": "^5.0.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public",
36
36
  "registry": "https://registry.npmjs.org"
37
37
  },
38
- "gitHead": "248b5bb0a425502d5ac45a1a8af5a6b96d3e1dc9"
38
+ "gitHead": "f18e70a94d4b1e9e916ea373da3cafeb8b4d4ab6"
39
39
  }