node-easywechat 2.9.6 → 2.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
- ## v2.9.6 (2022-04-25)
4
+ ## v2.9.7 (2022-05-16)
5
+
6
+ - Fix: 修复开放平台代理的小程序、公众号实例中没有开放平台专属API的问题 (#22)
7
+
8
+ ## v2.9.6, origin/2.x (2022-05-16)
9
+
10
+ - Fix: 修复第三方平台获取代理的小程序、公众号实例后,无对应方法和token的 (#22)
5
11
 
6
12
  - Docs: 更新企业微信支付证书说明
7
13
 
@@ -11,5 +11,5 @@ export default class MiniProgram extends BaseApplication {
11
11
  setting: SettingClient;
12
12
  tester: TesterClient;
13
13
  constructor(config?: Object, prepends?: Object, id?: String);
14
- registerProviders(): void;
14
+ registerExtraProviders(): void;
15
15
  }
@@ -17,9 +17,9 @@ class MiniProgram extends Application_1.default {
17
17
  this.account = null;
18
18
  this.setting = null;
19
19
  this.tester = null;
20
+ this.registerExtraProviders();
20
21
  }
21
- registerProviders() {
22
- super.registerProviders();
22
+ registerExtraProviders() {
23
23
  this.offsetSet('code', function (app) {
24
24
  return new CodeClient_1.default(app);
25
25
  });
@@ -3,5 +3,5 @@ import MiniProgramClient from './MiniProgram/MiniProgramClient';
3
3
  export default class OfficialAccount extends BaseApplication {
4
4
  mini_program: MiniProgramClient;
5
5
  constructor(config?: Object, prepends?: Object, id?: String);
6
- registerProviders(): void;
6
+ registerExtraProviders(): void;
7
7
  }
@@ -9,9 +9,9 @@ class OfficialAccount extends Application_1.default {
9
9
  constructor(config = {}, prepends = {}, id = null) {
10
10
  super(config, prepends, id);
11
11
  this.mini_program = null;
12
+ this.registerExtraProviders();
12
13
  }
13
- registerProviders() {
14
- super.registerProviders();
14
+ registerExtraProviders() {
15
15
  this.offsetSet('mini_program', function (app) {
16
16
  return new MiniProgramClient_1.default(app);
17
17
  });
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "node-easywechat",
3
- "version": "2.9.6",
3
+ "version": "2.9.7",
4
4
  "description": "EasyWechat SDK for Node.js (NOT OFFICIAL)",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "release": "npx package-release",
8
8
  "build": "rm -rf dist && npx tsc",
9
+ "dev": "npx tsc -w",
9
10
  "test": "npx mocha ./test/**/*.js"
10
11
  },
11
12
  "repository": {