From c538002ada098b29dbc09c32002e8c77c5c380ea Mon Sep 17 00:00:00 2001 From: Guo Yu Date: Wed, 24 Dec 2014 15:31:12 +0800 Subject: [PATCH] Add default value to param `country` and `lang` --- lib/apis.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/apis.js b/lib/apis.js index df6b943..d73f6e5 100644 --- a/lib/apis.js +++ b/lib/apis.js @@ -32,8 +32,8 @@ exports.routes = { 'iATANumber=', 'romanStateProvince=', 'japanStateProvince=', - 'localeCode=zh_CN', // hardcode here. - 'country={{country}}', // TODO: default by `CN` + 'localeCode={{lang|default("zh_CN")}}', // default lang by `zh_CN` + 'country={{country|default("CN")}}', // default by `CN` 'stateProvince={{province}}', 'chinaStateProvince={{province}}', // only support provinces' IDs in China for now. 'city={{city}}', diff --git a/package.json b/package.json index bcd3f59..291afd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "starwood", - "version": "0.1.0", + "version": "0.1.1", "description": "starwood hotels price fetcher", "main": "index.js", "scripts": {