@mailwoman/spatial 5.8.0 → 5.10.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/bbox.ts +3 -3
- package/coordinate-formats.test.ts +1 -1
- package/countries/codes.ts +255 -252
- package/countries/index.ts +2 -2
- package/feature.ts +1 -1
- package/geometries/collection.ts +4 -4
- package/geometries/index.ts +4 -4
- package/geometries/line-string.ts +2 -2
- package/geometries/point.ts +4 -4
- package/geometries/polygon.test.ts +1 -1
- package/geometries/polygon.ts +21 -19
- package/google/index.ts +1 -1
- package/h3/index.ts +1 -1
- package/index.ts +11 -11
- package/objects.ts +1 -1
- package/out/bbox.d.ts +2 -2
- package/out/countries/codes.d.ts +252 -251
- package/out/countries/codes.d.ts.map +1 -1
- package/out/countries/codes.js +251 -252
- package/out/countries/codes.js.map +1 -1
- package/out/countries/index.d.ts +2 -2
- package/out/feature.d.ts +1 -1
- package/out/geometries/collection.d.ts +4 -4
- package/out/geometries/index.d.ts +4 -4
- package/out/geometries/line-string.d.ts +2 -2
- package/out/geometries/point.d.ts +5 -5
- package/out/geometries/polygon.d.ts +20 -19
- package/out/geometries/polygon.d.ts.map +1 -1
- package/out/geometries/polygon.js +17 -18
- package/out/geometries/polygon.js.map +1 -1
- package/out/google/index.d.ts +1 -1
- package/out/h3/index.d.ts +1 -1
- package/out/index.d.ts +11 -11
- package/out/objects.d.ts +1 -1
- package/out/projection.d.ts +5 -4
- package/out/projection.d.ts.map +1 -1
- package/out/projection.js +4 -5
- package/out/projection.js.map +1 -1
- package/out/regions/index.d.ts +2 -2
- package/out/sdk/index.d.ts +1 -1
- package/out/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -5
- package/projection.ts +6 -4
- package/regions/codes.ts +1 -1
- package/regions/index.ts +2 -2
- package/sdk/index.ts +1 -1
- package/sdk/well-known-text.test.ts +1 -1
- package/tsconfig.json +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/spatial",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"description": "Spatial analysis, geocoding, and other geo-related utilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"geo",
|
|
@@ -22,21 +22,39 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
"./package.json": "./package.json",
|
|
24
24
|
"./schema/*.json": "./dist/schema/*.json",
|
|
25
|
-
"./sdk":
|
|
26
|
-
|
|
25
|
+
"./sdk": {
|
|
26
|
+
"types": "./out/sdk/index.d.ts",
|
|
27
|
+
"default": "./out/sdk/index.js"
|
|
28
|
+
},
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./out/index.d.ts",
|
|
31
|
+
"default": "./out/index.js"
|
|
32
|
+
}
|
|
27
33
|
},
|
|
28
34
|
"publishConfig": {
|
|
35
|
+
"exports": {
|
|
36
|
+
"./package.json": "./package.json",
|
|
37
|
+
"./schema/*.json": "./dist/schema/*.json",
|
|
38
|
+
"./sdk": {
|
|
39
|
+
"types": "./out/sdk/index.d.ts",
|
|
40
|
+
"default": "./out/sdk/index.js"
|
|
41
|
+
},
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./out/index.d.ts",
|
|
44
|
+
"default": "./out/index.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
29
47
|
"access": "public"
|
|
30
48
|
},
|
|
31
49
|
"dependencies": {
|
|
32
|
-
"@mailwoman/core": "5.
|
|
50
|
+
"@mailwoman/core": "5.10.0",
|
|
33
51
|
"geo-coordinates-parser": "^1.7.4",
|
|
34
52
|
"h3-js": "^4.4.0",
|
|
35
53
|
"wkx": "^0.5.0"
|
|
36
54
|
},
|
|
37
55
|
"devDependencies": {
|
|
38
56
|
"@googlemaps/google-maps-services-js": "^3.4.2",
|
|
39
|
-
"@mailwoman/annotations": "5.
|
|
57
|
+
"@mailwoman/annotations": "5.10.0",
|
|
40
58
|
"@types/google.maps": "^3.65.1",
|
|
41
59
|
"type-fest": "^5.7.0"
|
|
42
60
|
},
|
package/projection.ts
CHANGED
|
@@ -9,15 +9,17 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @category Geo
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export const CoordinateProjection = {
|
|
13
13
|
/**
|
|
14
14
|
* Coordinate system used in Google Earth and GSP systems.
|
|
15
15
|
*
|
|
16
16
|
* It represents Earth as a three-dimensional ellipsoid.
|
|
17
17
|
*/
|
|
18
|
-
WGS84
|
|
18
|
+
WGS84: "4326",
|
|
19
19
|
/**
|
|
20
20
|
* North American Datum 1983, a geodetic reference system used in the TIGER/Line data.
|
|
21
21
|
*/
|
|
22
|
-
NAD83
|
|
23
|
-
}
|
|
22
|
+
NAD83: "4269",
|
|
23
|
+
} as const
|
|
24
|
+
|
|
25
|
+
export type CoordinateProjection = (typeof CoordinateProjection)[keyof typeof CoordinateProjection]
|
package/regions/codes.ts
CHANGED
package/regions/index.ts
CHANGED
package/sdk/index.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"emitDecoratorMetadata": true,
|
|
6
6
|
"experimentalDecorators": true,
|
|
7
7
|
"emitDeclarationOnly": false,
|
|
8
|
-
"
|
|
8
|
+
"rewriteRelativeImportExtensions": true,
|
|
9
|
+
"erasableSyntaxOnly": true
|
|
9
10
|
},
|
|
10
11
|
"exclude": ["./out/**/*", "./**/*.test.ts", "./**/*.test.tsx"],
|
|
11
12
|
"references": [
|