@kmkf-fe-packages/kmkf-utils 0.24.0-alpha.6 → 0.24.0
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/README.md +1 -1
- package/dist/esm/bsAddressData/index.js +10 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
112233
|
|
@@ -5,8 +5,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
import Monitor from "kmkf-monitor";
|
|
8
9
|
import request from "../request";
|
|
9
10
|
import { toTree } from "../utils";
|
|
11
|
+
import moment from "moment";
|
|
10
12
|
var BsAddressData = /*#__PURE__*/function () {
|
|
11
13
|
function BsAddressData() {
|
|
12
14
|
var _this = this;
|
|
@@ -30,12 +32,16 @@ var BsAddressData = /*#__PURE__*/function () {
|
|
|
30
32
|
_this.addrData = res;
|
|
31
33
|
_this.addrNameMap = map;
|
|
32
34
|
_this.addressOptions = toTree(list, 1);
|
|
35
|
+
window.bsAddress = _this;
|
|
33
36
|
return;
|
|
34
37
|
}
|
|
35
38
|
} catch (e) {
|
|
36
39
|
var _Object$keys;
|
|
37
40
|
if (((_Object$keys = Object.keys(_this.addrData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) > 0) return;
|
|
38
41
|
}
|
|
42
|
+
Monitor.automaticReport({
|
|
43
|
+
message: "bs\u5730\u5740-\u5F00\u59CB\u8BF7\u6C42\uFF1A".concat(moment().format("YYYY-MM-DD hh:mm:ss"))
|
|
44
|
+
});
|
|
39
45
|
request({
|
|
40
46
|
url: "/qy/gdfw/template/queryBsAreas",
|
|
41
47
|
method: "get",
|
|
@@ -54,6 +60,10 @@ var BsAddressData = /*#__PURE__*/function () {
|
|
|
54
60
|
_this.addrData = res;
|
|
55
61
|
_this.addrNameMap = map;
|
|
56
62
|
_this.addressOptions = toTree(list, 1);
|
|
63
|
+
window.bsAddress = _this;
|
|
64
|
+
Monitor.automaticReport({
|
|
65
|
+
message: "bs\u5730\u5740-\u83B7\u53D6\u6570\u636E\uFF1A".concat(moment().format("YYYY-MM-DD hh:mm:ss"))
|
|
66
|
+
});
|
|
57
67
|
});
|
|
58
68
|
});
|
|
59
69
|
_defineProperty(this, "parseData", function (addrCode) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "0.24.0
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "yarn run lint && father build",
|
|
11
|
+
"jest:init": "jest --init",
|
|
11
12
|
"lint": "eslint . --ext .ts",
|
|
12
13
|
"lint:fix": "npx eslint . --ext .ts --fix",
|
|
13
|
-
"jest:init": "jest --init",
|
|
14
14
|
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"lint-staged": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"kmkf-monitor": "^0.8.8",
|
|
25
26
|
"lodash": "^4.17.21",
|
|
26
27
|
"umi-request": "^1.4.0"
|
|
27
28
|
},
|
|
@@ -39,8 +40,8 @@
|
|
|
39
40
|
"publishConfig": {
|
|
40
41
|
"access": "public"
|
|
41
42
|
},
|
|
43
|
+
"gitHead": "133439d300dbb2cca26ccac67026ec0190d71a84",
|
|
42
44
|
"gitHooks": {
|
|
43
45
|
"pre-commit": "lint-staged"
|
|
44
|
-
}
|
|
45
|
-
"gitHead": "6e3d1a99ef237be68f0bb97ca9b597a594a02a68"
|
|
46
|
+
}
|
|
46
47
|
}
|