mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-11-10 21:10:19 +02:00
Compare commits
3 commits
b2d9a4e53e
...
5ac43bcfba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ac43bcfba | ||
|
|
5a2e4f5d13 | ||
|
|
2b1e816c7f |
3 changed files with 6 additions and 6 deletions
|
|
@ -75,7 +75,7 @@ const formatJourneysReq = (ctx, from, to, when, outFrwd, journeysRef) => {
|
|||
return {
|
||||
endpoint: opt.bestprice ? profile.bestpriceEndpoint : profile.journeysEndpoint,
|
||||
body: query,
|
||||
headers: getHeaders('application/x.db.vendo.mob.verbindungssuche.v8+json'),
|
||||
headers: getHeaders('application/x.db.vendo.mob.verbindungssuche.v9+json'),
|
||||
method: 'post',
|
||||
};
|
||||
};
|
||||
|
|
@ -92,7 +92,7 @@ const formatRefreshJourneyReq = (ctx, refreshToken) => {
|
|||
return {
|
||||
endpoint: opt.tickets ? profile.refreshJourneysEndpointTickets : profile.refreshJourneysEndpointPolyline,
|
||||
body: query,
|
||||
headers: getHeaders('application/x.db.vendo.mob.verbindungssuche.v8+json'),
|
||||
headers: getHeaders('application/x.db.vendo.mob.verbindungssuche.v9+json'),
|
||||
method: 'post',
|
||||
};
|
||||
};
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "db-vendo-client",
|
||||
"version": "6.10.0",
|
||||
"version": "6.10.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "db-vendo-client",
|
||||
"version": "6.10.0",
|
||||
"version": "6.10.2",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"content-type": "^1.0.5",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "db-vendo-client",
|
||||
"description": "Client for bahn.de public transport APIs.",
|
||||
"version": "6.10.0",
|
||||
"version": "6.10.2",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
"test-e2e": "VCR_OFF=true tap -t60 -j16 test/e2e/*.js",
|
||||
"test-spelling": "cspell .",
|
||||
"test": "npm run test-unit && npm run test-integration && npm run test-spelling",
|
||||
"prepublishOnly": "npm run lint && npm test",
|
||||
"prepublishOnly": "npm run lint",
|
||||
"api": "node api.js"
|
||||
},
|
||||
"tap": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue