Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

db-prices

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-prices - npm Package Compare versions

Comparing version
3.0.2
to
3.0.3
+2
-2
lib/index.js

@@ -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 @@ }

@@ -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 @@ }

{
"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"
}
}

@@ -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)