@digitraffic/common 2024.6.14-2 → 2024.6.26-2
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/utils/base64.d.mts
CHANGED
package/dist/utils/geometry.mjs
CHANGED
@@ -87,8 +87,8 @@ function distanceBetweenWGS84PointsInKm(fromXLon, fromYLat, toXLon, toYLat) {
|
|
87
87
|
* @param pos2
|
88
88
|
*/
|
89
89
|
export function distanceBetweenPositionsInKm(pos1, pos2) {
|
90
|
-
if (pos1.length
|
91
|
-
throw Error(`Positions ${pos1.toString()} and ${pos2.toString()}
|
90
|
+
if (pos1.length < 2 || pos1.length > 3 || pos2.length < 2 || pos2.length > 3) {
|
91
|
+
throw Error(`Illegal Positions ${pos1.toString()} and ${pos2.toString()}. Both must have length between 2 or 3.`);
|
92
92
|
}
|
93
93
|
return distanceBetweenWGS84PointsInKm(pos1[0], pos1[1], pos2[0], pos2[1]);
|
94
94
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@digitraffic/common",
|
3
|
-
"version": "2024.6.
|
3
|
+
"version": "2024.6.26-2",
|
4
4
|
"description": "",
|
5
5
|
"type": "module",
|
6
6
|
"repository": {
|
@@ -103,71 +103,72 @@
|
|
103
103
|
"./dist/aws/runtime/digitraffic-integration-response": "./dist/aws/runtime/digitraffic-integration-response.mjs"
|
104
104
|
},
|
105
105
|
"peerDependencies": {
|
106
|
-
"@aws-sdk/client-api-gateway": "^3.
|
107
|
-
"@aws-sdk/client-s3": "^3.
|
108
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
109
|
-
"@aws-sdk/client-sns": "^3.
|
110
|
-
"@aws-sdk/lib-storage": "^3.
|
111
|
-
"
|
112
|
-
"aws-cdk-lib": "^2.
|
113
|
-
"change-case": "5.
|
106
|
+
"@aws-sdk/client-api-gateway": "^3.600.0",
|
107
|
+
"@aws-sdk/client-s3": "^3.600.0",
|
108
|
+
"@aws-sdk/client-secrets-manager": "^3.600.0",
|
109
|
+
"@aws-sdk/client-sns": "^3.600.0",
|
110
|
+
"@aws-sdk/lib-storage": "^3.600.0",
|
111
|
+
"aws-sdk": "^2.1648.0",
|
112
|
+
"aws-cdk-lib": "^2.147.1",
|
113
|
+
"change-case": "^5.4.4",
|
114
114
|
"constructs": "^10.3.0",
|
115
|
-
"date-fns": "
|
116
|
-
"date-fns-tz": "
|
115
|
+
"date-fns": "^3.6.0",
|
116
|
+
"date-fns-tz": "^3.1.3",
|
117
117
|
"etag": "^1.8.1",
|
118
118
|
"geojson-validation": "^1.0.2",
|
119
|
-
"ky": "^1.
|
120
|
-
"lodash": "
|
119
|
+
"ky": "^1.3.0",
|
120
|
+
"lodash": "^4.17.21",
|
121
121
|
"node-ttl": "^0.2.0",
|
122
|
-
"pg-native": "^3.0
|
123
|
-
"pg-promise": "^11.
|
122
|
+
"pg-native": "^3.1.0",
|
123
|
+
"pg-promise": "^11.8.0"
|
124
124
|
},
|
125
125
|
"devDependencies": {
|
126
|
-
"@aws-sdk/client-api-gateway": "3.
|
127
|
-
"@aws-sdk/client-s3": "3.
|
128
|
-
"@aws-sdk/client-secrets-manager": "3.
|
129
|
-
"@aws-sdk/client-sns": "3.
|
130
|
-
"@aws-sdk/lib-storage": "3.
|
126
|
+
"@aws-sdk/client-api-gateway": "^3.600.0",
|
127
|
+
"@aws-sdk/client-s3": "^3.600.0",
|
128
|
+
"@aws-sdk/client-secrets-manager": "^3.600.0",
|
129
|
+
"@aws-sdk/client-sns": "^3.600.0",
|
130
|
+
"@aws-sdk/lib-storage": "^3.600.0",
|
131
|
+
"aws-cdk-lib": "^2.147.1",
|
132
|
+
"change-case": "^5.4.4",
|
133
|
+
"constructs": "^10.3.0",
|
134
|
+
"date-fns": "^3.6.0",
|
135
|
+
"date-fns-tz": "^3.1.3",
|
136
|
+
"etag": "^1.8.1",
|
137
|
+
"geojson-validation": "^1.0.2",
|
138
|
+
"ky": "^1.3.0",
|
139
|
+
"lodash": "^4.17.21",
|
140
|
+
"node-ttl": "^0.2.0",
|
141
|
+
"pg-native": "^3.1.0",
|
142
|
+
"pg-promise": "^11.8.0",
|
131
143
|
"@jest/globals": "^29.7.0",
|
132
|
-
"@rushstack/eslint-config": "^3.
|
133
|
-
"@rushstack/heft": "^0.66.
|
134
|
-
"@rushstack/heft-jest-plugin": "^0.
|
135
|
-
"@rushstack/heft-lint-plugin": "^0.3.
|
136
|
-
"@rushstack/heft-typescript-plugin": "^0.
|
137
|
-
"@smithy/types": "2.
|
138
|
-
"@types/aws-lambda": "8.10.
|
139
|
-
"@types/etag": "1.8.3",
|
144
|
+
"@rushstack/eslint-config": "^3.7.0",
|
145
|
+
"@rushstack/heft": "^0.66.18",
|
146
|
+
"@rushstack/heft-jest-plugin": "^0.12.0",
|
147
|
+
"@rushstack/heft-lint-plugin": "^0.3.39",
|
148
|
+
"@rushstack/heft-typescript-plugin": "^0.5.16",
|
149
|
+
"@smithy/types": "^3.2.0",
|
150
|
+
"@types/aws-lambda": "^8.10.140",
|
151
|
+
"@types/etag": "^1.8.3",
|
140
152
|
"@types/geojson": "^7946.0.14",
|
141
153
|
"@types/geojson-validation": "^1.0.3",
|
142
|
-
"@types/jest": "29.5.12",
|
143
|
-
"@types/lodash": "4.
|
144
|
-
"@types/madge": "5.0.3",
|
145
|
-
"@types/node": "20.
|
146
|
-
"@typescript-eslint/eslint-plugin": "
|
147
|
-
"@typescript-eslint/parser": "^
|
148
|
-
"aws-
|
149
|
-
"
|
150
|
-
"change-case": "5.3.0",
|
151
|
-
"constructs": "10.3.0",
|
152
|
-
"date-fns": "~2.30.0",
|
153
|
-
"date-fns-tz": "~2.0.1",
|
154
|
-
"eslint": "~8.57.0",
|
154
|
+
"@types/jest": "^29.5.12",
|
155
|
+
"@types/lodash": "^4.17.5",
|
156
|
+
"@types/madge": "^5.0.3",
|
157
|
+
"@types/node": "^20.14.9",
|
158
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
159
|
+
"@typescript-eslint/parser": "^7.14.1",
|
160
|
+
"aws-sdk": "^2.1648.0",
|
161
|
+
"eslint": "^8.57.0",
|
155
162
|
"eslint-config-prettier": "^9.1.0",
|
156
|
-
"eslint-plugin-deprecation": "
|
157
|
-
"etag": "^1.8.1",
|
158
|
-
"geojson-validation": "^1.0.2",
|
163
|
+
"eslint-plugin-deprecation": "^3.0.0",
|
159
164
|
"jest": "^29.7.0",
|
160
165
|
"jest-junit": "^16.0.0",
|
161
|
-
"
|
162
|
-
"
|
163
|
-
"
|
164
|
-
"
|
165
|
-
"
|
166
|
-
"
|
167
|
-
"rimraf": "^5.0.5",
|
168
|
-
"ts-jest": "^29.1.2",
|
169
|
-
"typescript": "~5.3.3",
|
170
|
-
"velocityjs": "2.0.6"
|
166
|
+
"madge": "^7.0.0",
|
167
|
+
"prettier": "^3.3.2",
|
168
|
+
"rimraf": "^5.0.7",
|
169
|
+
"ts-jest": "^29.1.5",
|
170
|
+
"typescript": "^5.5.2",
|
171
|
+
"velocityjs": "^2.0.6"
|
171
172
|
},
|
172
173
|
"scripts": {
|
173
174
|
"build": "tsc",
|