From 1415036e46d3d5ce877978f3f4a577ef976e7ed4 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sat, 16 Dec 2017 07:54:39 +0100 Subject: [PATCH] add missing dep, expose profile --- index.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4e4eaad5..f57ec057 100644 --- a/index.js +++ b/index.js @@ -227,6 +227,7 @@ const createClient = (profile) => { const client = {departures, journeys, locations, nearby} if (profile.journeyPart) client.journeyPart = journeyPart if (profile.radar) client.radar = radar + Object.defineProperty(client, 'profile', {value: profile}) return client } diff --git a/package.json b/package.json index c2df49f1..e7c2db7b 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "pinkie-promise": "^2.0.1", "query-string": "^5.0.0", "slugg": "^1.2.0", + "vbb-parse-line": "^0.2.5", "vbb-parse-ticket": "^0.2.1", "vbb-short-station-name": "^0.4.0", "vbb-stations": "^5.8.0", @@ -47,7 +48,6 @@ "tape": "^4.8.0", "tape-promise": "^2.0.1", "validate-fptf": "^1.0.2", - "vbb-parse-line": "^0.2.5", "vbb-stations-autocomplete": "^2.9.0" }, "scripts": {