node-easywechat 3.0.0 → 3.1.0

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +22 -1
  3. package/dist/Core/Config.d.ts +1 -1
  4. package/dist/Core/Config.js +3 -1
  5. package/dist/Core/HttpClient/Contracts/HttpClientInterface.d.ts +7 -1
  6. package/dist/Core/HttpClient/Contracts/HttpClientInterface.js +6 -0
  7. package/dist/Core/HttpClient/HttpClient.d.ts +1 -4
  8. package/dist/Core/HttpClient/HttpClient.js +4 -4
  9. package/dist/Core/HttpClient/Mixins/PresetMixin.d.ts +0 -12
  10. package/dist/Core/HttpClient/Mixins/PresetMixin.js +0 -18
  11. package/dist/Core/Support/Obj.js +4 -2
  12. package/dist/MiniApp/Application.d.ts +4 -4
  13. package/dist/MiniApp/Application.js +1 -1
  14. package/dist/MiniApp/Contracts/ApplicationInterface.d.ts +2 -2
  15. package/dist/OfficialAccount/Application.d.ts +4 -4
  16. package/dist/OfficialAccount/Application.js +1 -1
  17. package/dist/OfficialAccount/Contracts/ApplicationInterface.d.ts +2 -2
  18. package/dist/OpenPlatform/Account.d.ts +13 -0
  19. package/dist/OpenPlatform/Account.js +22 -0
  20. package/dist/OpenPlatform/Application.d.ts +152 -0
  21. package/dist/OpenPlatform/Application.js +355 -0
  22. package/dist/OpenPlatform/Authorization.d.ts +23 -0
  23. package/dist/OpenPlatform/Authorization.js +74 -0
  24. package/dist/OpenPlatform/AuthorizerAccessToken.d.ts +19 -0
  25. package/dist/OpenPlatform/AuthorizerAccessToken.js +43 -0
  26. package/dist/OpenPlatform/ComponentAccessToken.d.ts +28 -0
  27. package/dist/OpenPlatform/ComponentAccessToken.js +85 -0
  28. package/dist/OpenPlatform/Config.d.ts +5 -0
  29. package/dist/OpenPlatform/Config.js +16 -0
  30. package/dist/OpenPlatform/Contracts/AccountInterface.d.ts +23 -0
  31. package/dist/OpenPlatform/Contracts/AccountInterface.js +25 -0
  32. package/dist/OpenPlatform/Contracts/ApplicationInterface.d.ts +68 -0
  33. package/dist/OpenPlatform/Contracts/ApplicationInterface.js +60 -0
  34. package/dist/OpenPlatform/Contracts/VerifyTicketInterface.d.ts +23 -0
  35. package/dist/OpenPlatform/Contracts/VerifyTicketInterface.js +25 -0
  36. package/dist/OpenPlatform/Message.d.ts +43 -0
  37. package/dist/OpenPlatform/Message.js +9 -0
  38. package/dist/OpenPlatform/Server.d.ts +61 -0
  39. package/dist/OpenPlatform/Server.js +136 -0
  40. package/dist/OpenPlatform/VerifyTicket.d.ts +13 -0
  41. package/dist/OpenPlatform/VerifyTicket.js +49 -0
  42. package/dist/Pay/Application.d.ts +4 -4
  43. package/dist/Pay/Application.js +1 -1
  44. package/dist/Pay/Client.d.ts +12 -0
  45. package/dist/Pay/Client.js +27 -3
  46. package/dist/Pay/Signature.js +7 -6
  47. package/dist/index.d.ts +3 -2
  48. package/dist/index.js +3 -1
  49. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { OfficialAccountConfig, MiniAppConfig, LogHandler, ServerEventType, ServerHandlerClosure, PayConfig } from './Types/global';
1
+ import { OfficialAccountConfig, MiniAppConfig, LogHandler, ServerEventType, ServerHandlerClosure, PayConfig, OpenPlatformConfig } from './Types/global';
2
2
  import OfficialAccount from './OfficialAccount/Application';
3
3
  import MiniApp from './MiniApp/Application';
4
4
  import Pay from './Pay/Application';
5
+ import OpenPlatform from './OpenPlatform/Application';
5
6
  import CacheInterface from './Core/Contracts/CacheInterface';
6
7
  import ServerRequest from './Core/Http/ServerRequest';
7
8
  import FormData from 'form-data';
8
- export { OfficialAccount, OfficialAccountConfig, MiniApp, MiniAppConfig, Pay, PayConfig, CacheInterface, ServerRequest, LogHandler, ServerEventType, ServerHandlerClosure,
9
+ export { OfficialAccount, OfficialAccountConfig, MiniApp, MiniAppConfig, Pay, PayConfig, OpenPlatform, OpenPlatformConfig, CacheInterface, ServerRequest, LogHandler, ServerEventType, ServerHandlerClosure,
9
10
  /**
10
11
  * 表单对象
11
12
  * @see https://github.com/axios/axios#formdata
package/dist/index.js CHANGED
@@ -3,13 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FormData = exports.ServerRequest = exports.CacheInterface = exports.Pay = exports.MiniApp = exports.OfficialAccount = void 0;
6
+ exports.FormData = exports.ServerRequest = exports.CacheInterface = exports.OpenPlatform = exports.Pay = exports.MiniApp = exports.OfficialAccount = void 0;
7
7
  const Application_1 = __importDefault(require("./OfficialAccount/Application"));
8
8
  exports.OfficialAccount = Application_1.default;
9
9
  const Application_2 = __importDefault(require("./MiniApp/Application"));
10
10
  exports.MiniApp = Application_2.default;
11
11
  const Application_3 = __importDefault(require("./Pay/Application"));
12
12
  exports.Pay = Application_3.default;
13
+ const Application_4 = __importDefault(require("./OpenPlatform/Application"));
14
+ exports.OpenPlatform = Application_4.default;
13
15
  const CacheInterface_1 = __importDefault(require("./Core/Contracts/CacheInterface"));
14
16
  exports.CacheInterface = CacheInterface_1.default;
15
17
  const ServerRequest_1 = __importDefault(require("./Core/Http/ServerRequest"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-easywechat",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "EasyWechat SDK for Node.js (NOT OFFICIAL)",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {