From 32dd7d22e9e8e1dc0487c9fcd2b5c1848378826f Mon Sep 17 00:00:00 2001 From: Soha Jin Date: Sun, 10 Sep 2017 13:45:26 +0800 Subject: [PATCH] format document --- index.js | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 5d3ce38..b546d83 100644 --- a/index.js +++ b/index.js @@ -21,12 +21,12 @@ var OIHSDK = function (key, secret, interfaceUrl) { if (interfaceUrl) { config.oiinhand.interfaceUrl = interfaceUrl; } - let params={}; - if(key){ - params.apikey=config.oiinhand.auth.key; + var params = {}; + if (key) { + params.apikey = config.oiinhand.auth.key; } - if(secret){ - params.apisecret=config.oiinhand.auth.secret; + if (secret) { + params.apisecret = config.oiinhand.auth.secret; } var axiosInstance = axios.create({ baseURL: config.oiinhand.interfaceUrl, diff --git a/package.json b/package.json index 5aac54c..69dfd0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oiinhand-sdk-axios", - "version": "1.1.2", + "version": "1.1.3", "description": "The Node.js SDK for OI in Hand API", "main": "index.js", "scripts": {