geoplegma-js 0.0.0-beta → 0.0.1-beta

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/README.md CHANGED
@@ -46,16 +46,15 @@ console.log("from bbox: " + a.map((v) => v.id));
46
46
  npm install
47
47
  ```
48
48
 
49
- - Get the native binding files:
50
-
49
+ - Get the native binding files, and run the script:
51
50
  ```bash
52
- npm run build-native
51
+ ./scripts/dev.sh
53
52
  ```
54
53
 
55
54
  This will:
56
- Build the .node files from GeoPlegma/gp-bindings/js.
57
- Copy them into GeoPlegma-js/native/.
58
- Let your JS code require('./native/something.node') without committing them.
55
+ - Build the .node files from GeoPlegma/gp-bindings/js.
56
+ - Copy them into GeoPlegma-js/native/.
57
+ - Let your JS code require('./native/something.node') without committing them.
59
58
 
60
59
  - Run the unit tests:
61
60
 
@@ -4,8 +4,8 @@ export declare class Dggrs {
4
4
  constructor(dggrs: string)
5
5
  zonesFromBbox(refinementLevel: number, bbox?: Array<Array<number>> | undefined | null, config?: Config | undefined | null): FlatZones
6
6
  zoneFromPoint(refinementLevel: number, point?: Array<number> | undefined | null, config?: Config | undefined | null): FlatZones
7
- zonesFromParent(relativeDepth: number, parentZoneId: string, config?: Config | undefined | null): FlatZones
8
- zoneFromId(zoneId: string, config?: Config | undefined | null): FlatZones
7
+ zonesFromParent(relativeDepth: number, parentZoneId: string | number, config?: Config | undefined | null): FlatZones
8
+ zoneFromId(zoneId: string | number, config?: Config | undefined | null): FlatZones
9
9
  }
10
10
 
11
11
  export interface Config {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geoplegma-js",
3
- "version": "0.0.0-beta",
3
+ "version": "0.0.1-beta",
4
4
  "description": "A JavaScript library for GeoPlegma.",
5
5
  "type": "module",
6
6
  "license": "MIT",