@bluedot-innovation/models 2.0.12-alpha.1 → 2.0.12-alpha.2

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,4 +1,4 @@
1
- ## 2.0.11
1
+ ## 2.0.12
2
2
  - Update bearingFilter to allow wrap around angles (e.g. 315deg & 45deg)
3
3
 
4
4
  ## 2.0.10
@@ -19,10 +19,14 @@ BearingFilterSchema.add({
19
19
  function validateAngles (toAngle, magicCallback) {
20
20
  let fromAngle = this.fromAngle
21
21
 
22
- if (!toAngle === undefined) {
22
+ if (toAngle === undefined) {
23
23
  return magicCallback(false, 'toAngle is required')
24
24
  }
25
25
 
26
+ if (fromAngle === undefined) {
27
+ return magicCallback(false, 'fromAngle is required')
28
+ }
29
+
26
30
  if (toAngle === fromAngle) {
27
31
  return magicCallback(false, 'fromAngle and toAngle cannot be the same')
28
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.12-alpha.1",
3
+ "version": "2.0.12-alpha.2",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {