@bluedot-innovation/models 3.0.4-alpha.1 → 3.0.5-alpha.1

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,6 +1,12 @@
1
+ ## 3.0.5
2
+ - `User` - Remove password field
3
+
4
+ ## 3.0.4
5
+ - `Polygon` - disallow a vertices next 2 being the same
6
+
1
7
  ## 3.0.3
2
8
  - `BoundingBox` - disallow same values for `northEast` and `southWest`
3
- - `Polygon` - disallow vertices to have same values twice in a row
9
+ - `Polygon` - disallow a vertices next vertice being the same
4
10
 
5
11
  ## 3.0.2
6
12
  - Remove `_id`'s on the actions and filters (for real this time)
@@ -95,8 +95,8 @@ describe('Polygon', () => {
95
95
  "latitude": -37.81902680201739,
96
96
  "longitude": 144.9821037054062
97
97
  }, {
98
- "latitude": -36.81902680201739,
99
- "longitude": 143.9821037054062
98
+ "latitude": -36.81902680201745,
99
+ "longitude": 143.9821037054032
100
100
  }, {
101
101
  "latitude": -37.23968786929315,
102
102
  "longitude": 144.1216155433654
@@ -114,13 +114,13 @@ describe('Polygon', () => {
114
114
  "latitude": -37.81902680201739,
115
115
  "longitude": 144.9821037054062
116
116
  }, {
117
- "latitude": -36.81902680201739,
118
- "longitude": 143.9821037054062
117
+ "latitude": -36.81902680201745,
118
+ "longitude": 143.9821037054033
119
119
  }, {
120
120
  "latitude": -37.81902680201739,
121
121
  "longitude": 144.9821037054062
122
122
  }, {
123
- "latitude": -37.2396878692931,
123
+ "latitude": -37.23968786929314,
124
124
  "longitude": 144.1216155433654
125
125
  }]
126
126
 
package/models/User.js CHANGED
@@ -26,7 +26,6 @@ let UserSchema = new mongoose.Schema({
26
26
  message: '{VALUE} is not a valid email'
27
27
  }
28
28
  },
29
- password: {type: String},
30
29
  firstName: {type: String, required: true},
31
30
  lastName: {type: String, required: true},
32
31
  phoneNumber: {type: String, maxlength: 20},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "3.0.4-alpha.1",
3
+ "version": "3.0.5-alpha.1",
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",