gis-common 2.2.5 → 2.2.6

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.
@@ -1033,6 +1033,9 @@ Date.prototype.addDate = function (interval, number) {
1033
1033
  lastMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() - 1, 1),
1034
1034
  thisMonthDate: new Date(new Date().getFullYear(), new Date().getMonth(), 1),
1035
1035
  nextMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1),
1036
+ lastWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - 7 - new Date().getDay()),
1037
+ thisWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - new Date().getDay()),
1038
+ nextWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 + 7 - new Date().getDay()),
1036
1039
  lastDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() - 1),
1037
1040
  thisDayDate: new Date(new Date().setHours(0, 0, 0, 0)),
1038
1041
  nextDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1),
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "gis-common",
3
3
  "description": "gis-common",
4
4
  "main": "dist/resource.min.js",
5
- "version": "2.2.5",
5
+ "version": "2.2.6",
6
6
  "author": "Guo.Yan <luv02@vip.qq.com>",
7
7
  "license": "MIT",
8
8
  "private": false,