@hebcal/geo-sqlite 4.5.0 → 4.5.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 +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/geo-sqlite v4.5.
|
|
1
|
+
/*! @hebcal/geo-sqlite v4.5.1 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -63,10 +63,12 @@ LIMIT 10`;
|
|
|
63
63
|
const ZIP_FULLTEXT_COMPLETE_SQL = `SELECT ZipCode
|
|
64
64
|
FROM ZIPCodes_CityFullText5
|
|
65
65
|
WHERE ZIPCodes_CityFullText5 MATCH ?
|
|
66
|
+
ORDER BY Population DESC
|
|
66
67
|
LIMIT 20`;
|
|
67
68
|
const GEONAME_COMPLETE_SQL = `SELECT geonameid
|
|
68
69
|
FROM geoname_fulltext
|
|
69
70
|
WHERE geoname_fulltext MATCH ?
|
|
71
|
+
ORDER BY population DESC
|
|
70
72
|
LIMIT 20`;
|
|
71
73
|
const stateNames = {
|
|
72
74
|
'AK': 'Alaska',
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/geo-sqlite v4.5.
|
|
1
|
+
/*! @hebcal/geo-sqlite v4.5.1 */
|
|
2
2
|
import Database from 'better-sqlite3';
|
|
3
3
|
import { Location, Locale } from '@hebcal/core';
|
|
4
4
|
import '@hebcal/cities';
|
|
@@ -51,10 +51,12 @@ LIMIT 10`;
|
|
|
51
51
|
const ZIP_FULLTEXT_COMPLETE_SQL = `SELECT ZipCode
|
|
52
52
|
FROM ZIPCodes_CityFullText5
|
|
53
53
|
WHERE ZIPCodes_CityFullText5 MATCH ?
|
|
54
|
+
ORDER BY Population DESC
|
|
54
55
|
LIMIT 20`;
|
|
55
56
|
const GEONAME_COMPLETE_SQL = `SELECT geonameid
|
|
56
57
|
FROM geoname_fulltext
|
|
57
58
|
WHERE geoname_fulltext MATCH ?
|
|
59
|
+
ORDER BY population DESC
|
|
58
60
|
LIMIT 20`;
|
|
59
61
|
const stateNames = {
|
|
60
62
|
'AK': 'Alaska',
|