mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
parent
48f2cefb5b
commit
ef42edbfd7
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
'use strict'
|
||||
|
||||
const crypto = require('crypto')
|
||||
const createHash = require('create-hash')
|
||||
let captureStackTrace = () => {}
|
||||
if (process.env.NODE_ENV === 'dev') {
|
||||
captureStackTrace = require('capture-stack-trace')
|
||||
|
@ -9,7 +9,7 @@ const {stringify} = require('query-string')
|
|||
const Promise = require('pinkie-promise')
|
||||
const {fetch} = require('fetch-ponyfill')({Promise})
|
||||
|
||||
const md5 = input => crypto.createHash('md5').update(input).digest()
|
||||
const md5 = input => createHash('md5').update(input).digest()
|
||||
|
||||
const request = (profile, data) => {
|
||||
const body = profile.transformReqBody({lang: 'en', svcReqL: [data]})
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "hafas-client",
|
||||
"description": "JavaScript client for HAFAS public transport APIs.",
|
||||
"version": "2.7.2",
|
||||
"version": "2.7.3",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js",
|
||||
|
@ -33,6 +33,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"capture-stack-trace": "^1.0.0",
|
||||
"create-hash": "^1.2.0",
|
||||
"fetch-ponyfill": "^6.0.0",
|
||||
"lodash": "^4.17.5",
|
||||
"luxon": "^0.5.8",
|
||||
|
|
Loading…
Add table
Reference in a new issue