+2
-2
@@ -71,3 +71,3 @@ 'use strict' | ||
| const offers = [] | ||
| for (let id in body.angebote) { | ||
| for (const id in body.angebote) { | ||
| offers.push(parse.offer(body.angebote[id], notes)) | ||
@@ -77,3 +77,3 @@ } | ||
| const journeys = [] | ||
| for (let id in body.verbindungen) { | ||
| for (const id in body.verbindungen) { | ||
| journeys.push(parse.journey(body.verbindungen[id], offers)) | ||
@@ -80,0 +80,0 @@ } |
+2
-2
@@ -70,3 +70,3 @@ 'use strict' | ||
| let offer = minBy(offers.filter((o) => o.routes.includes(_.sid)), (o) => o.price) | ||
| const offer = minBy(offers.filter((o) => o.routes.includes(_.sid)), (o) => o.price) | ||
| const price = offer ? { | ||
@@ -95,3 +95,3 @@ currency: 'EUR', | ||
| const notes = {} | ||
| for (let ref in data) { | ||
| for (const ref in data) { | ||
| notes[ref] = { name: data[ref].name, description: data[ref].hinweis } | ||
@@ -98,0 +98,0 @@ } |
+12
-12
| { | ||
| "name": "db-prices", | ||
| "version": "3.0.2", | ||
| "version": "3.0.3", | ||
| "description": "Find the cheapest routes using the DB Sparpreise API.", | ||
@@ -39,4 +39,4 @@ "keywords": [ | ||
| "lodash.minby": "^4.6.0", | ||
| "moment-timezone": "^0.5.25", | ||
| "query-string": "^6.7.0", | ||
| "moment-timezone": "^0.5.27", | ||
| "query-string": "^6.8.3", | ||
| "slugg": "^1.2.1" | ||
@@ -46,16 +46,16 @@ }, | ||
| "db-stations": "^2.11.0", | ||
| "depcheck": "^0.8.1", | ||
| "eslint": "^5.16.0", | ||
| "eslint-config-standard": "^12.0.0", | ||
| "eslint-plugin-import": "^2.17.3", | ||
| "eslint-plugin-node": "^9.1.0", | ||
| "eslint-plugin-promise": "^4.1.1", | ||
| "eslint-plugin-standard": "^4.0.0", | ||
| "depcheck": "^0.9.0", | ||
| "eslint": "^6.6.0", | ||
| "eslint-config-standard": "^14.1.0", | ||
| "eslint-plugin-import": "^2.18.2", | ||
| "eslint-plugin-node": "^10.0.0", | ||
| "eslint-plugin-promise": "^4.2.1", | ||
| "eslint-plugin-standard": "^4.0.1", | ||
| "is-roughly-equal": "^0.1.0", | ||
| "tape": "^4.10.2", | ||
| "tape": "^4.11.0", | ||
| "tape-promise": "^4.0.0" | ||
| }, | ||
| "engines": { | ||
| "node": ">=8" | ||
| "node": ">=10" | ||
| } | ||
| } |
+1
-1
@@ -39,3 +39,3 @@ # db-prices | ||
| duration: 1440, // search for routes in the next n minutes | ||
| preferFastRoutes: true | ||
| preferFastRoutes: true, | ||
| travellers: [{ // one or more | ||
@@ -42,0 +42,0 @@ bc: 0, // BahnCard ID (see https://gist.github.com/juliuste/202bb04f450a79f8fa12a2ec3abcd72d) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10036
0.1%1
-50%Updated
Updated