import axios from 'axios';

export default itemIdentifier => axios.get(`items`, {
  baseURL: `https://track.bpost.be/btr/api/`,
  responseType: `json`,
  params: { itemIdentifier },
}).then(res => res.data.items[0])
.catch(e => e);

const axios = require(`axios`);

export default itemIdentifier => axios.get(`items`, {
  baseURL: `https://track.bpost.be/btr/api/`,
  responseType: `json`,
  params: { itemIdentifier },
}).then(res => res.data.items[0])
.catch(e => e);

Revert using es6 import for axios
:rewind: Revert using es6 import for axios

This reverts commit 0f04f3b3cf7281eb96fa35fc6f933998bd9ec40c.
