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 {
|
return {
|
||||||
endpoint: opt.bestprice ? profile.bestpriceEndpoint : profile.journeysEndpoint,
|
endpoint: opt.bestprice ? profile.bestpriceEndpoint : profile.journeysEndpoint,
|
||||||
body: query,
|
body: query,
|
||||||
headers: getHeaders('application/x.db.vendo.mob.verbindungssuche.v8+json'),
|
headers: getHeaders('application/x.db.vendo.mob.verbindungssuche.v9+json'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -92,7 +92,7 @@ const formatRefreshJourneyReq = (ctx, refreshToken) => {
|
||||||
return {
|
return {
|
||||||
endpoint: opt.tickets ? profile.refreshJourneysEndpointTickets : profile.refreshJourneysEndpointPolyline,
|
endpoint: opt.tickets ? profile.refreshJourneysEndpointTickets : profile.refreshJourneysEndpointPolyline,
|
||||||
body: query,
|
body: query,
|
||||||
headers: getHeaders('application/x.db.vendo.mob.verbindungssuche.v8+json'),
|
headers: getHeaders('application/x.db.vendo.mob.verbindungssuche.v9+json'),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "db-vendo-client",
|
"name": "db-vendo-client",
|
||||||
"version": "6.10.0",
|
"version": "6.10.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "db-vendo-client",
|
"name": "db-vendo-client",
|
||||||
"version": "6.10.0",
|
"version": "6.10.2",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"content-type": "^1.0.5",
|
"content-type": "^1.0.5",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "db-vendo-client",
|
"name": "db-vendo-client",
|
||||||
"description": "Client for bahn.de public transport APIs.",
|
"description": "Client for bahn.de public transport APIs.",
|
||||||
"version": "6.10.0",
|
"version": "6.10.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
@ -95,7 +95,7 @@
|
||||||
"test-e2e": "VCR_OFF=true tap -t60 -j16 test/e2e/*.js",
|
"test-e2e": "VCR_OFF=true tap -t60 -j16 test/e2e/*.js",
|
||||||
"test-spelling": "cspell .",
|
"test-spelling": "cspell .",
|
||||||
"test": "npm run test-unit && npm run test-integration && npm run test-spelling",
|
"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"
|
"api": "node api.js"
|
||||||
},
|
},
|
||||||
"tap": {
|
"tap": {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue