gis-common 2.2.5 → 2.2.7

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.
@@ -242,10 +242,11 @@ __webpack_require__.d(__webpack_exports__, "DevicePixelRatio", function() { retu
242
242
  COORDINATE_ERROR: '坐标验证失败',
243
243
  JSON_PARSE_ERROR: 'JSON解析失败,格式有误',
244
244
  JSON_VALUE_ERROR: 'JSON无此键',
245
- PARAMETER_ERROR: '参数验证失败',
246
- PARAMETER_ERROR_ARRAY: '参数格式验证失败:必须是数组',
247
- PARAMETER_ERROR_STRING: '参数格式验证失败:必须是字符',
248
- PARAMETER_ERROR_FUNCTION: '参数格式验证失败:必须是函数',
245
+ PARAMETER_ERROR: '验证数据类型失败',
246
+ PARAMETER_ERROR_ARRAY: '格式类型验证失败:必须是数组',
247
+ PARAMETER_ERROR_STRING: '格式类型验证失败:必须是字符',
248
+ PARAMETER_ERROR_FUNCTION: '格式类型验证失败:必须是函数',
249
+ PARAMETER_ERROR_OBJECT: '格式类型验证失败:必须是对象',
249
250
  PARAMETER_ERROR_LACK: '参数缺失'
250
251
  });
251
252
  // CONCATENATED MODULE: ./src/constant/LayerType.js
@@ -1033,6 +1034,9 @@ Date.prototype.addDate = function (interval, number) {
1033
1034
  lastMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() - 1, 1),
1034
1035
  thisMonthDate: new Date(new Date().getFullYear(), new Date().getMonth(), 1),
1035
1036
  nextMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1),
1037
+ lastWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - 7 - new Date().getDay()),
1038
+ thisWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - new Date().getDay()),
1039
+ nextWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 + 7 - new Date().getDay()),
1036
1040
  lastDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() - 1),
1037
1041
  thisDayDate: new Date(new Date().setHours(0, 0, 0, 0)),
1038
1042
  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.7",
6
6
  "author": "Guo.Yan <luv02@vip.qq.com>",
7
7
  "license": "MIT",
8
8
  "private": false,