diff --git a/README.md b/README.md index d2e957f..7791c3f 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,12 @@ 微信官方 js-sdk ---- -说明: 仅将官方 js-sdk 发布到 npm,支持 CommonJS,便于 browserify, webpack 等直接使用。 +说明: 仅将官方 js-sdk 发布到 npm,支持 CommonJS,便于 browserify, webpack 等直接使用,支持 TypeScript。 -从 1.6.1 版本开始支持 TypeScript -js源码: https://res.wx.qq.com/open/js/jweixin-1.6.0.js +官方 JS 源码: https://res.wx.qq.com/open/js/jweixin-1.6.0.js -官方使用说明: https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141115 +官方使用说明: https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/JS-SDK.html 安装: ```shell diff --git a/index.js b/index.js index ffa92f2..aed0a87 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ })(typeof window === "object" && window, function (r, e) { if (!r) { console.warn("can't use weixin-js-sdk in server side"); - return {}; + return; } var a, c, n, i, t, o, s, d, l, u, p, f, m, g, h, S, y, I, v, _, w, T; if (!r.jWeixin) diff --git a/package.json b/package.json index 717649c..57ed893 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "weixin-js-sdk", - "version": "1.6.1", + "version": "1.6.2", + "license": "MIT", "main": "index.js", "description": "微信官方 js-sdk npm 安装版,支持 typescript", "repository": {