@alicloud/alfa-react 1.5.1-alpha.6 → 1.5.2

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.
@@ -55,6 +55,7 @@ var stripBasename = function stripBasename(path, basename) {
55
55
  */
56
56
  export default function createApplication(loader) {
57
57
  return function Application(props) {
58
+ var _window$history;
58
59
  var name = props.name,
59
60
  version = props.version,
60
61
  manifest = props.manifest,
@@ -102,7 +103,7 @@ export default function createApplication(loader) {
102
103
  // if (customProps.__innerStamp) console.warn('Please do not use __innerStamp which used in internal.');
103
104
  // 更新标记,保证每次更新都会更新
104
105
  customProps.__innerStamp = (+new Date()).toString(36);
105
- customProps.__historyState = history.state;
106
+ customProps.__historyState = (_window$history = window.history) === null || _window$history === void 0 ? void 0 : _window$history.state;
106
107
  if (customProps.path) customProps.path = addLeftSlash(customProps.path);
107
108
 
108
109
  // 受控模式锁定一些参数
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export var version = '1.5.1-alpha.6';
1
+ export var version = '1.5.2';
@@ -65,6 +65,7 @@ var stripBasename = function stripBasename(path, basename) {
65
65
  */
66
66
  function createApplication(loader) {
67
67
  return function Application(props) {
68
+ var _window$history;
68
69
  var name = props.name,
69
70
  version = props.version,
70
71
  manifest = props.manifest,
@@ -112,7 +113,7 @@ function createApplication(loader) {
112
113
  // if (customProps.__innerStamp) console.warn('Please do not use __innerStamp which used in internal.');
113
114
  // 更新标记,保证每次更新都会更新
114
115
  customProps.__innerStamp = (+new Date()).toString(36);
115
- customProps.__historyState = history.state;
116
+ customProps.__historyState = (_window$history = window.history) === null || _window$history === void 0 ? void 0 : _window$history.state;
116
117
  if (customProps.path) customProps.path = addLeftSlash(customProps.path);
117
118
 
118
119
  // 受控模式锁定一些参数
package/lib/version.js CHANGED
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- var version = '1.5.1-alpha.6';
7
+ var version = '1.5.2';
8
8
  exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/alfa-react",
3
- "version": "1.5.1-alpha.6",
3
+ "version": "1.5.2",
4
4
  "description": "Alfa Framework (React Version)",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -36,8 +36,8 @@
36
36
  "classnames": "^2.2.6",
37
37
  "crypto-js": "^4.1.1",
38
38
  "prop-types": "^15.8.1",
39
- "@alicloud/console-os-loader": "1.4.30-alpha.0",
40
- "@alicloud/alfa-core": "1.4.32"
39
+ "@alicloud/alfa-core": "1.4.32",
40
+ "@alicloud/console-os-loader": "1.4.30-alpha.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=16.0.0"
@@ -1 +1 @@
1
- export declare const version = "1.5.1-alpha.6";
1
+ export declare const version = "1.5.2";