From ed7fb3fdad2b0c8e021ab7d598fd69f184337ae8 Mon Sep 17 00:00:00 2001 From: tdzl2003 Date: Wed, 4 May 2016 23:37:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG:=20=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9D=A5=E8=87=AA=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/index.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index a903554..b6ce945 100644 --- a/lib/index.js +++ b/lib/index.js @@ -50,7 +50,7 @@ export async function checkUpdate(APPKEY) { }); if (resp.status !== 200) { - throw new Error(resp.message); + throw new Error((await resp.json()).message); } return await resp.json(); diff --git a/package.json b/package.json index 3fef74c..5f96229 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "1.0.1", + "version": "1.0.3", "description": "react-native hot update", "main": "lib/index.js", "scripts": { @@ -33,7 +33,7 @@ "isomorphic-fetch": "^2.2.1", "mkdir-recursive": "^0.2.1", "node-apk-parser": "^0.2.3", - "node-bsdiff": "^0.1.3", + "node-bsdiff": "^0.1.4", "progress": "^1.1.8", "read": "^1.0.7", "request": "^2.69.0",