easy-soft-utility 2.8.21 → 2.8.27

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.
@@ -64,11 +64,11 @@ export function calculateTimeInterval(startTime: Date, endTime: Date): {
64
64
  };
65
65
  export function getDayOfWeek({ data: date }: {
66
66
  data: any;
67
- }): number;
67
+ }): 0 | 1 | 2 | 4 | 3 | 6 | 5;
68
68
  /**
69
69
  * Get today in week like '星期日' / '星期一' / '星期二' / '星期三' / '星期四' / '星期五' / '星期六'
70
70
  */
71
- export function getTodayOfWeek(transferChinese?: boolean): string | number;
71
+ export function getTodayOfWeek(transferChinese?: boolean): string | 0 | 1 | 2 | 4 | 3 | 6 | 5;
72
72
  export function calculateDateInterval(date: Date | number | string, nowDate: Date | number | string | null, unit: string | null): number;
73
73
  export function calculateMonthInterval(startMonth: any, endMonth: any): number;
74
74
  import dayjs from 'dayjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-utility",
3
- "version": "2.8.21",
3
+ "version": "2.8.27",
4
4
  "private": false,
5
5
  "description": "easy-soft-utility",
6
6
  "keywords": [
@@ -59,30 +59,30 @@
59
59
  "z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
60
60
  },
61
61
  "dependencies": {
62
- "dayjs": "^1.11.10",
62
+ "dayjs": "^1.11.11",
63
63
  "js-base64": "^3.7.7",
64
64
  "lodash": "^4.17.21",
65
65
  "node-cache": "^5.1.2",
66
66
  "object-hash": "^3.0.0",
67
- "qs": "^6.12.0",
68
- "react": "^18.2.0",
69
- "react-dom": "^18.2.0"
67
+ "qs": "^6.12.1",
68
+ "react": "^18.3.1",
69
+ "react-dom": "^18.3.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@babel/core": "^7.24.0",
73
- "@babel/eslint-parser": "^7.23.10",
74
- "@babel/plugin-external-helpers": "^7.23.3",
75
- "@babel/plugin-proposal-decorators": "^7.24.0",
76
- "@babel/plugin-transform-class-properties": "^7.23.3",
77
- "@babel/plugin-transform-runtime": "^7.24.0",
78
- "@babel/preset-env": "^7.24.0",
79
- "@babel/preset-react": "^7.23.3",
80
- "@babel/runtime": "^7.24.0",
72
+ "@babel/core": "^7.24.5",
73
+ "@babel/eslint-parser": "^7.24.5",
74
+ "@babel/plugin-external-helpers": "^7.24.1",
75
+ "@babel/plugin-proposal-decorators": "^7.24.1",
76
+ "@babel/plugin-transform-class-properties": "^7.24.1",
77
+ "@babel/plugin-transform-runtime": "^7.24.3",
78
+ "@babel/preset-env": "^7.24.5",
79
+ "@babel/preset-react": "^7.24.1",
80
+ "@babel/runtime": "^7.24.5",
81
81
  "@changesets/cli": "^2.27.1",
82
- "@commitlint/cli": "^19.1.0",
83
- "@commitlint/config-conventional": "^19.1.0",
82
+ "@commitlint/cli": "^19.3.0",
83
+ "@commitlint/config-conventional": "^19.2.2",
84
84
  "@commitlint/config-pnpm-scopes": "^19.1.0",
85
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
85
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.13",
86
86
  "@rollup/plugin-alias": "^5.1.0",
87
87
  "@rollup/plugin-babel": "6.0.4",
88
88
  "@rollup/plugin-buble": "^1.0.3",
@@ -95,27 +95,27 @@
95
95
  "@svgr/rollup": "^8.1.0",
96
96
  "@types/fs-extra": "^11.0.4",
97
97
  "@types/jest": "^29.5.12",
98
- "@types/lodash": "^4.17.0",
99
- "@types/node": "^20.11.27",
98
+ "@types/lodash": "^4.17.1",
99
+ "@types/node": "^20.12.11",
100
100
  "@types/object-hash": "^3.0.6",
101
- "@types/qs": "^6.9.12",
102
- "@types/react": "^18.2.66",
101
+ "@types/qs": "^6.9.15",
102
+ "@types/react": "^18.3.1",
103
103
  "@types/shelljs": "^0.8.15",
104
- "@types/webpack-env": "^1.18.4",
105
- "@typescript-eslint/eslint-plugin": "^7.2.0",
106
- "@typescript-eslint/parser": "^7.2.0",
107
- "autoprefixer": "^10.4.18",
104
+ "@types/webpack-env": "^1.18.5",
105
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
106
+ "@typescript-eslint/parser": "^7.8.0",
107
+ "autoprefixer": "^10.4.19",
108
108
  "babel-cli": "^6.26.0",
109
109
  "babel-jest": "^29.7.0",
110
110
  "babel-plugin-import": "^1.13.8",
111
111
  "classnames": "^2.5.1",
112
112
  "commitizen": "^4.3.0",
113
- "conventional-changelog-conventionalcommits": "^7.0.2",
113
+ "conventional-changelog-conventionalcommits": "^8.0.0",
114
114
  "cross-env": "^7.0.3",
115
- "cssnano": "^6.1.0",
116
- "cz-git": "^1.9.0",
115
+ "cssnano": "^7.0.1",
116
+ "cz-git": "^1.9.1",
117
117
  "documentation": "^14.0.3",
118
- "easy-soft-develop": "^2.1.70",
118
+ "easy-soft-develop": "^2.1.92",
119
119
  "eslint": "^8.57.0",
120
120
  "eslint-config-airbnb": "^19.0.4",
121
121
  "eslint-config-airbnb-typescript": "^18.0.0",
@@ -124,40 +124,40 @@
124
124
  "eslint-import-resolver-typescript": "^3.6.1",
125
125
  "eslint-plugin-eslint-comments": "^3.2.0",
126
126
  "eslint-plugin-import": "^2.29.1",
127
- "eslint-plugin-jest": "^27.9.0",
127
+ "eslint-plugin-jest": "^28.5.0",
128
128
  "eslint-plugin-jsx-a11y": "^6.8.0",
129
129
  "eslint-plugin-prettier": "^5.1.3",
130
130
  "eslint-plugin-promise": "^6.1.1",
131
- "eslint-plugin-react": "^7.34.0",
132
- "eslint-plugin-react-hooks": "^4.6.0",
133
- "eslint-plugin-simple-import-sort": "^12.0.0",
134
- "eslint-plugin-unicorn": "^51.0.1",
131
+ "eslint-plugin-react": "^7.34.1",
132
+ "eslint-plugin-react-hooks": "^4.6.2",
133
+ "eslint-plugin-simple-import-sort": "^12.1.0",
134
+ "eslint-plugin-unicorn": "^52.0.0",
135
135
  "husky": "^9.0.11",
136
136
  "jest": "^29.7.0",
137
137
  "lint-staged": "^15.2.2",
138
138
  "mm": "^3.4.0",
139
- "npm-check-updates": "^16.14.16",
140
- "postcss": "^8.4.35",
139
+ "npm-check-updates": "^16.14.20",
140
+ "postcss": "^8.4.38",
141
141
  "postcss-less": "^6.0.0",
142
142
  "postcss-pxtorem": "^6.1.0",
143
143
  "prettier": "^3.2.5",
144
144
  "prettier-plugin-organize-imports": "^3.2.4",
145
- "prettier-plugin-packagejson": "^2.4.12",
146
- "react-refresh": "^0.14.0",
145
+ "prettier-plugin-packagejson": "^2.5.0",
146
+ "react-refresh": "^0.14.2",
147
147
  "rimraf": "^5.0.5",
148
- "rollup": "^4.13.0",
148
+ "rollup": "^4.17.2",
149
149
  "rollup-plugin-copy": "^3.5.0",
150
150
  "rollup-plugin-livereload": "^2.0.5",
151
151
  "rollup-plugin-postcss": "^4.0.2",
152
152
  "rollup-plugin-serve": "^3.0.0",
153
153
  "rollup-plugin-typescript2": "^0.36.0",
154
154
  "shelljs": "^0.8.5",
155
- "stylelint": "^16.2.1",
155
+ "stylelint": "^16.5.0",
156
156
  "stylelint-config-css-modules": "^4.4.0",
157
157
  "stylelint-config-standard": "^36.0.0",
158
158
  "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
159
159
  "stylelint-order": "^6.0.4",
160
160
  "terminal-kit": "^3.1.1",
161
- "webpack": "^5.90.3"
161
+ "webpack": "^5.91.0"
162
162
  }
163
163
  }