@bluedot-innovation/models 2.0.14-alpha.1 → 2.0.14

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,5 +1,5 @@
1
1
  ## 2.0.14
2
- - Remove `password` from user model
2
+ - Allow bearing filter greater than 90 degrees
3
3
 
4
4
  ## 2.0.13
5
5
  - Republish to bring changes from 2.0.11
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- requiredFields: ['username', 'firstName', 'lastName', 'isAdmin', 'accountId'],
2
+ requiredFields: ['username', 'password', 'firstName', 'lastName', 'isAdmin', 'accountId'],
3
3
  customValidators: [
4
4
  {name: 'phoneNumber', invalidInputs: ['409203492039284232034398']},
5
5
  {name: 'creationTime', invalidInputs: ['21/07/2017', 'thursday']},
package/models/User.js CHANGED
@@ -26,6 +26,7 @@ let UserSchema = new mongoose.Schema({
26
26
  message: '{VALUE} is not a valid email'
27
27
  }
28
28
  },
29
+ password: {type: String, required: true},
29
30
  firstName: {type: String, required: true},
30
31
  lastName: {type: String, required: true},
31
32
  phoneNumber: {type: String, maxlength: 20},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.14-alpha.1",
3
+ "version": "2.0.14",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {