pass line name, Gitter badge, 0.6.2

This commit is contained in:
Jannis R 2017-02-27 16:51:09 +01:00
parent efe2111f4e
commit 92515200d0
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
4 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,4 @@
Copyright (c) 2016, Jannis R Copyright (c) 2017, Jannis R
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

View file

@ -1,7 +1,7 @@
{ {
"name": "hafas-client", "name": "hafas-client",
"description": "JavaScript client for HAFAS mobile APIs.", "description": "JavaScript client for HAFAS mobile APIs.",
"version": "0.6.1", "version": "0.6.2",
"main": "index.js", "main": "index.js",
"files": ["index.js", "parse.js", "stringify.js"], "files": ["index.js", "parse.js", "stringify.js"],
"author": "Jannis R <mail@jannisr.de>", "author": "Jannis R <mail@jannisr.de>",

View file

@ -38,7 +38,7 @@ const location = (l) => {
// todo: what is p.oprX? // todo: what is p.oprX?
const product = (p) => { const product = (p) => {
if (!p) return null if (!p) return null
const result = {line: p.line, class: p.cls} const result = {line: p.line, name: p.name, class: p.cls}
if (p.prodCtx) { if (p.prodCtx) {
result.productCode = +p.prodCtx.catCode result.productCode = +p.prodCtx.catCode
result.productName = p.prodCtx.catOutS result.productName = p.prodCtx.catOutS

View file

@ -7,6 +7,7 @@
[![dependency status](https://img.shields.io/david/derhuerst/hafas-client.svg)](https://david-dm.org/derhuerst/hafas-client) [![dependency status](https://img.shields.io/david/derhuerst/hafas-client.svg)](https://david-dm.org/derhuerst/hafas-client)
[![dev dependency status](https://img.shields.io/david/dev/derhuerst/hafas-client.svg)](https://david-dm.org/derhuerst/hafas-client#info=devDependencies) [![dev dependency status](https://img.shields.io/david/dev/derhuerst/hafas-client.svg)](https://david-dm.org/derhuerst/hafas-client#info=devDependencies)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/hafas-client.svg) ![ISC-licensed](https://img.shields.io/github/license/derhuerst/hafas-client.svg)
[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)
## Installing ## Installing