izi-travel-api
Advanced tools
Comparing version 0.1.16 to 0.1.17
32
index.js
@@ -83,18 +83,2 @@ 'use strict'; | ||
var url = 'https://cors-anywhere.herokuapp.com/https://api.izi.travel/mtgobjects/' + museumUuid + '?languages=en&form=full&except=children'; | ||
var iziObject = { | ||
iziOriginal: [], | ||
iziTitle: [], | ||
iziType: [], | ||
iziLatitude: [], | ||
iziLongitude: [], | ||
iziPhoneNumber: [], | ||
iziWebsite: [], | ||
iziCountry: [], | ||
iziCity: [], | ||
iziAddress: [], | ||
iziSchedule: [], | ||
iziDescription: [], | ||
imageFile: [], | ||
audioFile: [] | ||
} | ||
return fetch(url, { | ||
@@ -132,2 +116,18 @@ headers: { | ||
return new Promise(resolve => { | ||
iziObject = { | ||
iziOriginal: [], | ||
iziTitle: [], | ||
iziType: [], | ||
iziLatitude: [], | ||
iziLongitude: [], | ||
iziPhoneNumber: [], | ||
iziWebsite: [], | ||
iziCountry: [], | ||
iziCity: [], | ||
iziAddress: [], | ||
iziSchedule: [], | ||
iziDescription: [], | ||
imageFile: [], | ||
audioFile: [] | ||
} | ||
this.cityData(city, key); | ||
@@ -134,0 +134,0 @@ var that = this; |
{ | ||
"name": "izi-travel-api", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "Node module to assist with izi travel api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7788