@sentryware/s2-node 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/index.mjs +14 -0
  2. package/package.json +8 -2
package/index.mjs ADDED
@@ -0,0 +1,14 @@
1
+ import s2 from './index.js';
2
+
3
+ export const {
4
+ Point,
5
+ LatLng,
6
+ CellId,
7
+ Cell,
8
+ CellUnion,
9
+ RegionCoverer,
10
+ Earth,
11
+ Polyline,
12
+ } = s2;
13
+
14
+ export default s2;
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@sentryware/s2-node",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Node.js JavaScript and TypeScript bindings for the Google S2 geolocation library.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./index.mjs",
10
+ "require": "./index.js"
11
+ }
12
+ },
7
13
  "repository": {
8
14
  "type": "git",
9
15
  "url": "https://github.com/sentryware/s2-node.git"
@@ -39,4 +45,4 @@
39
45
  "node-addon-api": "^8.6.0",
40
46
  "node-gyp": "^11.5.0"
41
47
  }
42
- }
48
+ }