From 90a2a06507462d27917a133d17ecceca53b5879a Mon Sep 17 00:00:00 2001 From: yanxi Date: Wed, 18 Oct 2023 00:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Readme,=20=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=88=B0=201.6.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 +++---- index.js | 2 +- package.json | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) 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": {