@mailwoman/timezone-lookup 10.8.0 → 11.1.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.
- package/cli/main.ts +3 -4
- package/lib/build.ts +3 -4
- package/lib/index.ts +9 -7
- package/lib/paths.ts +3 -4
- package/lib/schema.ts +6 -5
- package/out/build.d.ts +0 -10
- package/out/build.d.ts.map +1 -1
- package/out/build.js +2 -4
- package/out/build.js.map +1 -1
- package/out/cli/main.d.ts +0 -14
- package/out/cli/main.d.ts.map +1 -1
- package/out/cli/main.js +2 -4
- package/out/cli/main.js.map +1 -1
- package/out/index.d.ts +6 -7
- package/out/index.d.ts.map +1 -1
- package/out/index.js +2 -10
- package/out/index.js.map +1 -1
- package/out/paths.d.ts +0 -7
- package/out/paths.d.ts.map +1 -1
- package/out/paths.js +2 -4
- package/out/paths.js.map +1 -1
- package/out/schema.d.ts +3 -5
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +2 -8
- package/out/schema.js.map +1 -1
- package/package.json +9 -6
package/cli/main.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
3
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
4
|
+
|
|
2
5
|
/**
|
|
3
|
-
* @copyright Sister Software
|
|
4
|
-
* @license AGPL-3.0
|
|
5
|
-
* @author Teffen Ellis, et al.
|
|
6
|
-
*
|
|
7
6
|
* `mailwoman-timezone` — build the polygon DB, or look up a coordinate's iana timezone.
|
|
8
7
|
*
|
|
9
8
|
* ```sh
|
package/lib/build.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Build the timezone polygon DB from a timezone-boundary-builder GeoJSON
|
|
7
6
|
* (`combined-with-oceans.json`, features of `{ properties: { tzid }, geometry:
|
|
8
7
|
* Polygon|MultiPolygon }`). One row per feature: the tzid, a bounding box (for the lookup's
|
package/lib/index.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
+
* `@mailwoman/timezone-lookup` — coordinate → iana timezone, server-side.
|
|
6
|
+
*
|
|
7
|
+
* Point-in-polygon over the timezone-boundary-builder polygons stored in a `node:sqlite`
|
|
8
|
+
* DB (bbox-prefilter + ray-cast), mirroring the resolver's PIP pattern.
|
|
9
|
+
* The UTC offset comes from `Intl.DateTimeFormat` — no tz database dependency.
|
|
5
10
|
*
|
|
6
|
-
*
|
|
7
|
-
* timezone-boundary-builder polygons stored in a `node:sqlite` DB (bbox-prefilter + ray-cast),
|
|
8
|
-
* mirroring the resolver's PIP pattern. The UTC offset comes from `Intl.DateTimeFormat` — no tz
|
|
9
|
-
* database dependency. Build the DB with `mailwoman-timezone build` (see `./build.ts`).
|
|
11
|
+
* Build the DB with `mailwoman-timezone build` (see `./build.ts`).
|
|
10
12
|
*/
|
|
11
13
|
|
|
12
14
|
import type { AnnotationSet, Annotator } from "@mailwoman/annotations"
|
package/lib/paths.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Where the timezone database lives under the data root's `db/` group.
|
|
7
6
|
*/
|
|
8
7
|
|
package/lib/schema.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
+
* The `timezone.db` read interface.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* one is a compile error against the other.
|
|
7
|
+
* Declared beside the reader and the builder that writes it, so a column added
|
|
8
|
+
* to one is a compile error against the other.
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/**
|
package/out/build.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Build the timezone polygon DB from a timezone-boundary-builder GeoJSON
|
|
7
|
-
* (`combined-with-oceans.json`, features of `{ properties: { tzid }, geometry:
|
|
8
|
-
* Polygon|MultiPolygon }`). One row per feature: the tzid, a bounding box (for the lookup's
|
|
9
|
-
* prefilter), and the geometry normalized to MultiPolygon coordinates as JSON.
|
|
10
|
-
*/
|
|
11
1
|
import type { GeoFeature, MultiPolygonLiteral, PolygonLiteral } from "@mailwoman/spatial";
|
|
12
2
|
export type TimezoneFeature = GeoFeature<PolygonLiteral | MultiPolygonLiteral, {
|
|
13
3
|
tzid: string;
|
package/out/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../lib/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../lib/build.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAA6B,mBAAmB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAMpH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,cAAc,GAAG,mBAAmB,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAEhG;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA0DxG"}
|
package/out/build.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* Build the timezone polygon DB from a timezone-boundary-builder GeoJSON
|
|
7
5
|
* (`combined-with-oceans.json`, features of `{ properties: { tzid }, geometry:
|
|
8
6
|
* Polygon|MultiPolygon }`). One row per feature: the tzid, a bounding box (for the lookup's
|
package/out/build.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../lib/build.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../lib/build.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,sBA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C;oBAED,IAAI,GAAG,GAAG,MAAM,EAAE,CAAC;wBAClB,MAAM,GAAG,GAAG,CAAA;oBACb,CAAC;oBAED,IAAI,GAAG,GAAG,MAAM,EAAE,CAAC;wBAClB,MAAM,GAAG,GAAG,CAAA;oBACb,CAAC;oBAED,IAAI,GAAG,GAAG,MAAM,EAAE,CAAC;wBAClB,MAAM,GAAG,GAAG,CAAA;oBACb,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC7F,CAAC;IAED,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACjB,EAAE,CAAC,IAAI,CAAC,gFAAgF,CAAC,CAAA;IAEzF,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAA;AAC1C,CAAC"}
|
package/out/cli/main.d.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @copyright Sister Software
|
|
4
|
-
* @license AGPL-3.0
|
|
5
|
-
* @author Teffen Ellis, et al.
|
|
6
|
-
*
|
|
7
|
-
* `mailwoman-timezone` — build the polygon DB, or look up a coordinate's iana timezone.
|
|
8
|
-
*
|
|
9
|
-
* ```sh
|
|
10
|
-
* mailwoman-timezone build --geojson combined-with-oceans.json --out timezone.db
|
|
11
|
-
* mailwoman-timezone --db timezone.db -- 40.7128 -74.0060
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* The `--` separates flags from coordinates so negative longitudes parse as positionals.
|
|
15
|
-
*/
|
|
16
2
|
export {};
|
|
17
3
|
//# sourceMappingURL=main.d.ts.map
|
package/out/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../cli/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../cli/main.ts"],"names":[],"mappings":""}
|
package/out/cli/main.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
3
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
2
4
|
/**
|
|
3
|
-
* @copyright Sister Software
|
|
4
|
-
* @license AGPL-3.0
|
|
5
|
-
* @author Teffen Ellis, et al.
|
|
6
|
-
*
|
|
7
5
|
* `mailwoman-timezone` — build the polygon DB, or look up a coordinate's iana timezone.
|
|
8
6
|
*
|
|
9
7
|
* ```sh
|
package/out/cli/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../cli/main.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../cli/main.ts"],"names":[],"mappings":";AACA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;GASG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAE7D,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,cAAc,CAAC;IAC9C,OAAO,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACtB;IACD,gBAAgB,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AC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;AACpG,CAAC"}
|
package/out/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* `@mailwoman/timezone-lookup` — coordinate → iana timezone, server-side.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* Point-in-polygon over the timezone-boundary-builder polygons stored in a `node:sqlite`
|
|
5
|
+
* DB (bbox-prefilter + ray-cast), mirroring the resolver's PIP pattern.
|
|
6
|
+
* The UTC offset comes from `Intl.DateTimeFormat` — no tz database dependency.
|
|
7
|
+
*
|
|
8
|
+
* Build the DB with `mailwoman-timezone build` (see `./build.ts`).
|
|
10
9
|
*/
|
|
11
10
|
import type { Annotator } from "@mailwoman/annotations";
|
|
12
11
|
import { SQLiteLookup, type SQLiteLookupOptions } from "@mailwoman/sqlite/lookup";
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAItE,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,IAAI,GAAG,IAAW,GAAG,MAAM,GAAG,IAAI,CAiB1F;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY,CAAC,gBAAgB,CAAC;;IAGjE,YAAY,IAAI,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,EAStD;IAED;;OAEG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAY/C;CACD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,CAUvE"}
|
package/out/index.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* `@mailwoman/timezone-lookup` — coordinate → iana timezone, server-side. Point-in-polygon over the
|
|
7
|
-
* timezone-boundary-builder polygons stored in a `node:sqlite` DB (bbox-prefilter + ray-cast),
|
|
8
|
-
* mirroring the resolver's PIP pattern. The UTC offset comes from `Intl.DateTimeFormat` — no tz
|
|
9
|
-
* database dependency. Build the DB with `mailwoman-timezone build` (see `./build.ts`).
|
|
10
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
11
3
|
import { parseJSONStrict } from "@mailwoman/core/json";
|
|
12
4
|
import { pointInMultiPolygon } from "@mailwoman/spatial/geometries/polygon";
|
|
13
5
|
import { SQLiteLookup } from "@mailwoman/sqlite/lookup";
|
package/out/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAalE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAA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is, et al.
|
|
5
|
-
*
|
|
6
|
-
* Where the timezone database lives under the data root's `db/` group.
|
|
7
|
-
*/
|
|
8
1
|
import type { PathBuilder } from "path-ts";
|
|
9
2
|
/**
|
|
10
3
|
* `$MAILWOMAN_DATA_ROOT/db/timezone`, read when a path is requested.
|
package/out/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAA0D,CAAA"}
|
package/out/paths.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* Where the timezone database lives under the data root's `db/` group.
|
|
7
5
|
*/
|
|
8
6
|
import { databaseRootPath, dataRootPath } from "@mailwoman/core/data-root";
|
package/out/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAG1E;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAgB,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC,UAAU,CAAC,CAAA"}
|
package/out/schema.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* The `timezone.db` read interface.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
* one is a compile error against the other.
|
|
4
|
+
* Declared beside the reader and the builder that writes it, so a column added
|
|
5
|
+
* to one is a compile error against the other.
|
|
8
6
|
*/
|
|
9
7
|
/**
|
|
10
8
|
* One timezone polygon: its IANA identifier, bounding box and encoded geometry.
|
package/out/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,iBAAiB,EAAE,oBAAoB,CAAA;CACvC"}
|
package/out/schema.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* The `timezone.db` read interface. Declared beside the reader and the builder that writes it, so a column added to
|
|
7
|
-
* one is a compile error against the other.
|
|
8
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
9
3
|
export {};
|
|
10
4
|
//# sourceMappingURL=schema.js.map
|
package/out/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/timezone-lookup",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "Coordinate → IANA timezone, server-side. Point-in-polygon over timezone-boundary-builder polygons in a node:sqlite DB; UTC offset via Intl (no tz-db dependency). An @mailwoman/annotations Annotator.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
"!**/*.test.tsx"
|
|
23
23
|
],
|
|
24
24
|
"type": "module",
|
|
25
|
-
"sideEffects":
|
|
25
|
+
"sideEffects": [
|
|
26
|
+
"./cli/main.ts",
|
|
27
|
+
"./out/cli/main.js"
|
|
28
|
+
],
|
|
26
29
|
"imports": {
|
|
27
30
|
"#cli/*": {
|
|
28
31
|
"types": "./out/cli/*.d.ts",
|
|
@@ -87,10 +90,10 @@
|
|
|
87
90
|
}
|
|
88
91
|
},
|
|
89
92
|
"dependencies": {
|
|
90
|
-
"@mailwoman/annotations": "
|
|
91
|
-
"@mailwoman/core": "
|
|
92
|
-
"@mailwoman/spatial": "
|
|
93
|
-
"@mailwoman/sqlite": "
|
|
93
|
+
"@mailwoman/annotations": "11.1.0",
|
|
94
|
+
"@mailwoman/core": "11.1.0",
|
|
95
|
+
"@mailwoman/spatial": "11.1.0",
|
|
96
|
+
"@mailwoman/sqlite": "11.1.0",
|
|
94
97
|
"path-ts": "^2.5.0"
|
|
95
98
|
}
|
|
96
99
|
}
|