@hebcal/geo-sqlite 4.10.0 → 4.10.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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/geo-sqlite v4.10.
|
|
1
|
+
/*! @hebcal/geo-sqlite v4.10.1 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var Database = require('better-sqlite3');
|
|
@@ -220,7 +220,7 @@ class GeoDb {
|
|
|
220
220
|
location.geo = 'zip';
|
|
221
221
|
location.zip = zip;
|
|
222
222
|
location.population = result.Population;
|
|
223
|
-
if (result.Elevation) {
|
|
223
|
+
if (result.Elevation && result.Elevation > 0) {
|
|
224
224
|
location.elevation = result.Elevation;
|
|
225
225
|
}
|
|
226
226
|
return location;
|
|
@@ -306,7 +306,7 @@ class GeoDb {
|
|
|
306
306
|
if (result.population) {
|
|
307
307
|
location.population = result.population;
|
|
308
308
|
}
|
|
309
|
-
if (result.elevation) {
|
|
309
|
+
if (result.elevation && result.elevation > 0) {
|
|
310
310
|
location.elevation = result.elevation;
|
|
311
311
|
}
|
|
312
312
|
return location;
|
|
@@ -350,7 +350,7 @@ class GeoDb {
|
|
|
350
350
|
population: res.Population,
|
|
351
351
|
geo: 'zip'
|
|
352
352
|
};
|
|
353
|
-
if (res.Elevation) {
|
|
353
|
+
if (res.Elevation && res.Elevation > 0) {
|
|
354
354
|
obj.elevation = res.Elevation;
|
|
355
355
|
}
|
|
356
356
|
return obj;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/geo-sqlite v4.10.
|
|
1
|
+
/*! @hebcal/geo-sqlite v4.10.1 */
|
|
2
2
|
import Database from 'better-sqlite3';
|
|
3
3
|
import { Location, Locale } from '@hebcal/core';
|
|
4
4
|
import '@hebcal/cities';
|
|
@@ -218,7 +218,7 @@ class GeoDb {
|
|
|
218
218
|
location.geo = 'zip';
|
|
219
219
|
location.zip = zip;
|
|
220
220
|
location.population = result.Population;
|
|
221
|
-
if (result.Elevation) {
|
|
221
|
+
if (result.Elevation && result.Elevation > 0) {
|
|
222
222
|
location.elevation = result.Elevation;
|
|
223
223
|
}
|
|
224
224
|
return location;
|
|
@@ -304,7 +304,7 @@ class GeoDb {
|
|
|
304
304
|
if (result.population) {
|
|
305
305
|
location.population = result.population;
|
|
306
306
|
}
|
|
307
|
-
if (result.elevation) {
|
|
307
|
+
if (result.elevation && result.elevation > 0) {
|
|
308
308
|
location.elevation = result.elevation;
|
|
309
309
|
}
|
|
310
310
|
return location;
|
|
@@ -348,7 +348,7 @@ class GeoDb {
|
|
|
348
348
|
population: res.Population,
|
|
349
349
|
geo: 'zip'
|
|
350
350
|
};
|
|
351
|
-
if (res.Elevation) {
|
|
351
|
+
if (res.Elevation && res.Elevation > 0) {
|
|
352
352
|
obj.elevation = res.Elevation;
|
|
353
353
|
}
|
|
354
354
|
return obj;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/geo-sqlite",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.1",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@hebcal/cities": "^3.2.2",
|
|
32
32
|
"@hebcal/core": "^4.5.1",
|
|
33
33
|
"better-sqlite3": "^9.1.1",
|
|
34
|
-
"pino": "^8.16.
|
|
34
|
+
"pino": "^8.16.2",
|
|
35
35
|
"pino-pretty": "^10.2.3",
|
|
36
36
|
"transliteration": "^2.3.5"
|
|
37
37
|
},
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"@rollup/plugin-json": "^6.0.1",
|
|
55
55
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
56
56
|
"ava": "^5.3.1",
|
|
57
|
-
"eslint": "^8.
|
|
57
|
+
"eslint": "^8.54.0",
|
|
58
58
|
"eslint-config-google": "^0.14.0",
|
|
59
59
|
"jsdoc": "^4.0.2",
|
|
60
60
|
"jsdoc-to-markdown": "^8.0.0",
|
|
61
|
-
"rollup": "^4.
|
|
61
|
+
"rollup": "^4.5.0"
|
|
62
62
|
}
|
|
63
63
|
}
|