@furkot/directions
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -109,2 +109,3 @@ const LatLon = require('geodesy/latlon-spherical'); | ||
let id; | ||
let resolve; | ||
let reject; | ||
@@ -124,6 +125,7 @@ | ||
function timeoutPromise(_, _reject) { | ||
function timeoutPromise(_resolve, _reject) { | ||
resolve = _resolve; | ||
reject = _reject; | ||
id = setTimeout( | ||
() => reject(Error('timeout', { cause: Symbol.for('timeout') })), | ||
() => resolve(), | ||
millis | ||
@@ -130,0 +132,0 @@ ); |
{ | ||
"name": "@furkot/directions", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Directions service for Furkot", | ||
@@ -5,0 +5,0 @@ "author": { |
1464
43950