@bluedot-innovation/models 5.1.33 → 5.1.35

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 5.1.35
2
+ - Update moongose-json-patch module
3
+
4
+ ## 5.1.34
5
+ - Minor change for DayRange validation
6
+
1
7
  ## 5.1.33
2
8
  - Checked for duplicate geofeatures _ids
3
9
 
@@ -20,10 +20,6 @@ function validateDateRange (type, callback) {
20
20
 
21
21
  if (!startDate && !endDate) return callback(false, `Must have a startDate, endDate, or both.`)
22
22
 
23
- if (!startDate) startDate = new Date(startDate)
24
-
25
- if (!endDate) endDate = new Date(endDate)
26
-
27
23
  if (startDate && endDate && endDate < startDate) return callback(false, `startDate has to be less than endDate.`)
28
24
 
29
25
  callback(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "5.1.33",
3
+ "version": "5.1.35",
4
4
  "main": "Models.js",
5
5
  "scripts": {
6
6
  "lint": "./node_modules/.bin/eslint -c .eslintrc.js ./models/*.js ./__tests__/**/*.js ./__tests__/**/**/*.js ./schemas/*.js",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@bluedot-innovation/enums": "^2.1.5",
32
- "@bluedot-innovation/mongoose-json-patch": "0.0.6",
32
+ "@bluedot-innovation/mongoose-json-patch": "0.0.8",
33
33
  "@mongoosejs/double": "^0.1.2",
34
34
  "@turf/area": "^6.0.1",
35
35
  "deep-equal": "^1.0.1",