@hebcal/geo-sqlite 5.3.0 → 5.4.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/geo-sqlite v5.
|
|
1
|
+
/*! @hebcal/geo-sqlite v5.4.0 */
|
|
2
2
|
import Database from 'better-sqlite3';
|
|
3
3
|
import { Location, Locale } from '@hebcal/core';
|
|
4
4
|
import '@hebcal/cities';
|
|
@@ -510,6 +510,9 @@ function munge(s) {
|
|
|
510
510
|
.replace(/\+/g, '');
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
+
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
514
|
+
const version = '5.4.0';
|
|
515
|
+
|
|
513
516
|
const GEONAME_SQL = `SELECT
|
|
514
517
|
g.name as name,
|
|
515
518
|
g.asciiname as asciiname,
|
|
@@ -1032,6 +1035,10 @@ class GeoDb {
|
|
|
1032
1035
|
const end = Date.now();
|
|
1033
1036
|
if (this.logger) this.logger.info(`GeoDb: cached ${rows.length} geonames in ${end - start}ms`);
|
|
1034
1037
|
}
|
|
1038
|
+
|
|
1039
|
+
static version() {
|
|
1040
|
+
return version;
|
|
1041
|
+
}
|
|
1035
1042
|
}
|
|
1036
1043
|
|
|
1037
1044
|
/**
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/geo-sqlite",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal"
|
|
7
7
|
],
|
|
8
8
|
"description": "Hebcal ES6 interface to GeoNames and USA ZIP code SQLite databases",
|
|
9
|
-
"module": "./dist/index.
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
|
-
"import": "./dist/index.
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
13
|
"types": "./geo-sqlite.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"bin": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@hebcal/cities": "^6.1.0",
|
|
39
|
-
"@hebcal/core": "^6.0.
|
|
39
|
+
"@hebcal/core": "^6.0.2",
|
|
40
40
|
"better-sqlite3": "^12.4.1",
|
|
41
41
|
"pino": "^10.1.0",
|
|
42
42
|
"pino-pretty": "^13.1.2",
|
|
@@ -44,8 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build:rollup": "rollup -c",
|
|
47
|
+
"build:version": "node ./version.cjs package.json src/pkgVersion.js",
|
|
47
48
|
"build:json2js": "for f in src/*.json; do echo 'export default' > $f.js && cat $f >> $f.js; done",
|
|
48
|
-
"build": "npm run build:json2js && npm run build:rollup",
|
|
49
|
+
"build": "npm run build:version && npm run build:json2js && npm run build:rollup",
|
|
49
50
|
"prepublish": "npm run build",
|
|
50
51
|
"readme": "npx jsdoc2md dist/index.js",
|
|
51
52
|
"test": "ava"
|