@hebcal/geo-sqlite 4.7.0 → 4.7.1
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/dist/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/geo-sqlite v4.7.
|
|
1
|
+
/*! @hebcal/geo-sqlite v4.7.1 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -236,6 +236,11 @@ class GeoDb {
|
|
|
236
236
|
|
|
237
237
|
lookupGeoname(geonameid) {
|
|
238
238
|
geonameid = +geonameid;
|
|
239
|
+
|
|
240
|
+
if (geonameid === 293396) {
|
|
241
|
+
geonameid = 293397;
|
|
242
|
+
}
|
|
243
|
+
|
|
239
244
|
const found = this.geonamesCache.get(geonameid);
|
|
240
245
|
if (typeof found !== 'undefined') return found;
|
|
241
246
|
const result = this.geonamesStmt.get(geonameid);
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/geo-sqlite v4.7.
|
|
1
|
+
/*! @hebcal/geo-sqlite v4.7.1 */
|
|
2
2
|
import Database from 'better-sqlite3';
|
|
3
3
|
import { Location, Locale } from '@hebcal/core';
|
|
4
4
|
import '@hebcal/cities';
|
|
@@ -224,6 +224,11 @@ class GeoDb {
|
|
|
224
224
|
|
|
225
225
|
lookupGeoname(geonameid) {
|
|
226
226
|
geonameid = +geonameid;
|
|
227
|
+
|
|
228
|
+
if (geonameid === 293396) {
|
|
229
|
+
geonameid = 293397;
|
|
230
|
+
}
|
|
231
|
+
|
|
227
232
|
const found = this.geonamesCache.get(geonameid);
|
|
228
233
|
if (typeof found !== 'undefined') return found;
|
|
229
234
|
const result = this.geonamesStmt.get(geonameid);
|