@stadiamaps/ferrostar 0.23.0 → 0.24.0

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/ferrostar.d.ts CHANGED
@@ -100,6 +100,7 @@ export interface RouteStep {
100
100
  distance: number;
101
101
  duration: number;
102
102
  roadName: string | undefined;
103
+ exits: string[];
103
104
  instruction: string;
104
105
  visualInstructions: VisualInstruction[];
105
106
  spokenInstructions: SpokenInstruction[];
package/ferrostar_bg.js CHANGED
@@ -188,6 +188,13 @@ function debugString(val) {
188
188
  // TODO we could test for more things here, like `Set`s and `Map`s.
189
189
  return className;
190
190
  }
191
+
192
+ function passArray8ToWasm0(arg, malloc) {
193
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
194
+ getUint8ArrayMemory0().set(arg, ptr / 1);
195
+ WASM_VECTOR_LEN = arg.length;
196
+ return ptr;
197
+ }
191
198
  /**
192
199
  * JavaScript wrapper for `location_simulation_from_coordinates`.
193
200
  * @param {any} coordinates
@@ -270,13 +277,6 @@ export function advanceLocationSimulation(state) {
270
277
  return takeObject(ret);
271
278
  }
272
279
 
273
- function passArray8ToWasm0(arg, malloc) {
274
- const ptr = malloc(arg.length * 1, 1) >>> 0;
275
- getUint8ArrayMemory0().set(arg, ptr / 1);
276
- WASM_VECTOR_LEN = arg.length;
277
- return ptr;
278
- }
279
-
280
280
  function handleError(f, args) {
281
281
  try {
282
282
  return f.apply(this, args);
@@ -544,6 +544,11 @@ export function __wbindgen_string_new(arg0, arg1) {
544
544
  return addHeapObject(ret);
545
545
  };
546
546
 
547
+ export function __wbindgen_as_number(arg0) {
548
+ const ret = +getObject(arg0);
549
+ return ret;
550
+ };
551
+
547
552
  export function __wbindgen_object_clone_ref(arg0) {
548
553
  const ret = getObject(arg0);
549
554
  return addHeapObject(ret);
@@ -554,11 +559,6 @@ export function __wbindgen_error_new(arg0, arg1) {
554
559
  return addHeapObject(ret);
555
560
  };
556
561
 
557
- export function __wbindgen_as_number(arg0) {
558
- const ret = +getObject(arg0);
559
- return ret;
560
- };
561
-
562
562
  export function __wbindgen_jsval_loose_eq(arg0, arg1) {
563
563
  const ret = getObject(arg0) == getObject(arg1);
564
564
  return ret;
package/ferrostar_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "Luke Seelenbinder <luke@stadiamaps.com>"
8
8
  ],
9
9
  "description": "The core of modern turn-by-turn navigation.",
10
- "version": "0.23.0",
10
+ "version": "0.24.0",
11
11
  "license": "BSD-3-Clause",
12
12
  "repository": {
13
13
  "type": "git",