@bluedot-innovation/models 2.0.19-alpha.14 → 2.0.19-alpha.16

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.
@@ -14,10 +14,10 @@ schema.proximity = {
14
14
  const ZoneBeaconSchema = new mongoose.Schema(schema)
15
15
 
16
16
  // optional mongoose
17
- let model = (mongooseInstance) => {
17
+ let ZoneBeaconModel = (mongooseInstance) => {
18
18
  const instance = mongooseInstance || mongoose
19
19
  return instance.model('ZoneBeacon', ZoneBeaconSchema)
20
20
  }
21
21
 
22
22
  // Exports Mongoose Model, Mongoose Schema, JSON schema (required locally for discriminators)
23
- module.exports = { Model: model, Schema: ZoneBeaconSchema, rawSchema: schema }
23
+ module.exports = { Model: ZoneBeaconModel, Schema: ZoneBeaconSchema, rawSchema: schema }
@@ -80,7 +80,7 @@ function validateBeaconType (v, magicCallback) {
80
80
  }
81
81
 
82
82
  // optional mongoose
83
- let model = (mongooseInstance) => {
83
+ let BeaconModel = (mongooseInstance) => {
84
84
  const instance = mongooseInstance || mongoose
85
85
  let Beacon = instance.model('Beacon', BeaconSchema)
86
86
 
@@ -90,5 +90,6 @@ let model = (mongooseInstance) => {
90
90
 
91
91
  return Beacon
92
92
  }
93
+
93
94
  // Exports Mongoose Model, Mongoose Schema, JSON schema (required locally for discriminators)
94
- module.exports = { Model: model, Schema: BeaconSchema, rawSchema: schema }
95
+ module.exports = { Model: BeaconModel, Schema: BeaconSchema, rawSchema: schema }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.19-alpha.14",
3
+ "version": "2.0.19-alpha.16",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {
@@ -3,7 +3,8 @@ const mongooseHidden = require('mongoose-hidden')({defaultHidden: {
3
3
  creationTime: true,
4
4
  lastUpdateTime: true,
5
5
  __v: true,
6
- secret: true
6
+ secret: true,
7
+ geometry: true
7
8
  }})
8
9
 
9
10
  module.exports = mongooseHidden;