@zgfe/business-lib 1.1.92 → 1.1.93

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.
@@ -21,7 +21,11 @@ var BizDate = function BizDate(_ref) {
21
21
  function disabledDate(current) {
22
22
  var step = includeToday ? 0 : 1;
23
23
  var max = moment().subtract(step, 'days');
24
- var min = moment(max).subtract((envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) ? 200 : 12, 'month');
24
+ var _timeRangeOpen = 12;
25
+ if (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) {
26
+ _timeRangeOpen = typeof (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) === 'boolean' ? (envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen) ? 200 : 12 : envs === null || envs === void 0 ? void 0 : envs.timeRangeOpen;
27
+ }
28
+ var min = moment(max).subtract(_timeRangeOpen, 'month');
25
29
  return current > max || current < min;
26
30
  }
27
31
  if (!dateRange) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.92",
3
+ "version": "1.1.93",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "ce464aa3d46ff363c6d13ef3088f33ea9cb1b1f5",
58
+ "gitHead": "a7e9158d04a4bd7a5d39303e8d020e2c8c499f5a",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }