beer-network 1.1.1-alpha.4 → 1.1.1-alpha.5

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/api.js CHANGED
@@ -1,7 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const session_1 = require("./session");
4
- class Fetch {
1
+ import { Session } from './session';
2
+ export default class Fetch {
5
3
  constructor(pathPrefix) {
6
4
  this.pathPrefix = pathPrefix;
7
5
  }
@@ -76,7 +74,7 @@ class Fetch {
76
74
  * 默认授权方式.
77
75
  */
78
76
  authorization() {
79
- const bearer = session_1.Session.getBearer();
77
+ const bearer = Session.getBearer();
80
78
  if (bearer === undefined || bearer === '') {
81
79
  return {};
82
80
  }
@@ -117,4 +115,3 @@ class Fetch {
117
115
  });
118
116
  }
119
117
  }
120
- exports.default = Fetch;
package/elementUtils.js CHANGED
@@ -1,6 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class ElementUtils {
1
+ export default class ElementUtils {
4
2
  /**
5
3
  * 选择文件本地文件.
6
4
  */
@@ -31,4 +29,3 @@ class ElementUtils {
31
29
  document.body.removeChild(link);
32
30
  }
33
31
  }
34
- exports.default = ElementUtils;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-network",
3
3
  "private": false,
4
- "version": "1.1.1-alpha.4",
4
+ "version": "1.1.1-alpha.5",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "pub-w": "copy package.json .\\dist\\package.json && npm publish ./dist"
package/session.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Session = void 0;
4
- class Session {
1
+ export class Session {
5
2
  /**
6
3
  * 获取令牌.
7
4
  * <li>window.sessionKey 设置读取缓存用户信息的Key, 默认 login_user.</li>
@@ -37,4 +34,3 @@ class Session {
37
34
  }
38
35
  }
39
36
  }
40
- exports.Session = Session;
package/utils.js CHANGED
@@ -1,6 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class Utils {
1
+ export default class Utils {
4
2
  /**
5
3
  * 获取URI 地址参数.
6
4
  * @param key 参数名称.
@@ -36,4 +34,3 @@ class Utils {
36
34
  return navigator.clipboard.writeText(value);
37
35
  }
38
36
  }
39
- exports.default = Utils;