@wemap/geo 3.2.2 → 3.2.6

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/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/geo"
13
13
  },
14
14
  "name": "@wemap/geo",
15
- "version": "3.2.2",
15
+ "version": "3.2.6",
16
16
  "bugs": {
17
17
  "url": "https://github.com/wemap/wemap-modules-js/issues"
18
18
  },
@@ -26,8 +26,8 @@
26
26
  ],
27
27
  "license": "ISC",
28
28
  "dependencies": {
29
- "@wemap/logger": "^3.2.1",
30
- "@wemap/maths": "^3.2.1"
29
+ "@wemap/logger": "^3.2.3",
30
+ "@wemap/maths": "^3.2.3"
31
31
  },
32
- "gitHead": "6ff8c054aed5ccbf0f456aad752c43f46fe6b278"
32
+ "gitHead": "0b4bcb307a86aa10d123603698961463baf931fd"
33
33
  }
@@ -2,14 +2,11 @@
2
2
  import chai from 'chai';
3
3
  import chaiAlmost from 'chai-almost';
4
4
 
5
- import Logger from '@wemap/logger';
6
-
7
5
  import BoundingBox from './BoundingBox.js';
8
6
  import Coordinates from './Coordinates.js';
9
7
 
10
8
  const expect = chai.expect;
11
9
  chai.use(chaiAlmost());
12
- Logger.enable(false);
13
10
 
14
11
  let boundingBox;
15
12
  const northEast = new Coordinates(10, 40);
@@ -127,8 +127,10 @@ class AbsoluteHeading {
127
127
  };
128
128
  }
129
129
 
130
- static fromJson(json) {
131
- return new AbsoluteHeading(json);
130
+ static fromJson({
131
+ heading, time, accuracy
132
+ }) {
133
+ return new AbsoluteHeading(heading, time, accuracy);
132
134
  }
133
135
 
134
136
  }