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 +7 -1
- package/dist/OpenPlatform/Authorizer/MiniProgram/Application.d.ts +1 -1
- package/dist/OpenPlatform/Authorizer/MiniProgram/Application.js +2 -2
- package/dist/OpenPlatform/Authorizer/OfficialAccount/Application.d.ts +1 -1
- package/dist/OpenPlatform/Authorizer/OfficialAccount/Application.js +2 -2
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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": {
|