liftie 4.2.0 → 4.2.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/lib/routes/index.js +2 -2
- package/lib/routes/plan.js +7 -10
- package/package.json +2 -3
package/lib/routes/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import querystring from 'node:querystring';
|
|
1
2
|
import Router from '@pirxpilot/router';
|
|
2
3
|
import parseurl from 'parseurl';
|
|
3
|
-
import qs from 'qs';
|
|
4
4
|
import canonical from './canonical.js';
|
|
5
5
|
import headers from './headers.js';
|
|
6
6
|
import plan from './plan.js';
|
|
@@ -189,7 +189,7 @@ export default function routes(app) {
|
|
|
189
189
|
});
|
|
190
190
|
|
|
191
191
|
router.use((req, _res, next) => {
|
|
192
|
-
req.query =
|
|
192
|
+
req.query = querystring.parse(parseurl(req).query);
|
|
193
193
|
next();
|
|
194
194
|
});
|
|
195
195
|
router.get('/', reqData, headers, index, renderResorts);
|
package/lib/routes/plan.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import qs from 'qs';
|
|
2
|
-
|
|
3
1
|
export default function addToTrip(resort) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
2
|
+
const params = new URLSearchParams();
|
|
3
|
+
params.set('stop[name]', resort.name);
|
|
4
|
+
params.set('stop[coordinates][lon]', resort.ll[0]);
|
|
5
|
+
params.set('stop[coordinates][lat]', resort.ll[1]);
|
|
6
|
+
params.set('stop[url]', resort.href);
|
|
7
|
+
params.set('stop[duration]', 7 * 60 * 60 * 1000);
|
|
8
|
+
return params.toString();
|
|
12
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "liftie",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Clean, simple, easy to read, fast ski resort lift status",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -52,13 +52,12 @@
|
|
|
52
52
|
"lodash": "^4.16.6",
|
|
53
53
|
"morgan": "^1.9.0",
|
|
54
54
|
"parseurl": "^1.3.3",
|
|
55
|
-
"qs": "^6.13.1",
|
|
56
55
|
"ro-rating": "~2",
|
|
57
56
|
"tiny-pager": "^2.0.0",
|
|
58
57
|
"to-title-case": "^1.0.0"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
|
-
"@biomejs/biome": "2.3.
|
|
60
|
+
"@biomejs/biome": "2.3.11",
|
|
62
61
|
"@pirxpilot/stylus": "^1.2.0",
|
|
63
62
|
"commander": "~14",
|
|
64
63
|
"postcss": "~8",
|