wechat-mp-controller 0.1.1 → 0.1.3

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/dist/index.d.ts CHANGED
@@ -38,9 +38,9 @@ export declare class Controller {
38
38
  }>;
39
39
  submitAudit(options: {
40
40
  message: string;
41
- uploaderOfTargetVersion: {
41
+ uploader: {
42
42
  name: string;
43
- openid: string;
43
+ openId: string;
44
44
  };
45
45
  }): Promise<void>;
46
46
  }
package/dist/index.js CHANGED
@@ -119,8 +119,8 @@ export class Controller {
119
119
  action: 'get_class',
120
120
  token: urlToken,
121
121
  lang: 'zh-CN',
122
- openid: options.uploaderOfTargetVersion.openid,
123
- user_name: encodeURIComponent(options.uploaderOfTargetVersion.name)
122
+ openid: options.uploader.openId,
123
+ user_name: encodeURIComponent(options.uploader.name)
124
124
  });
125
125
  await this.page.goto(`https://mp.weixin.qq.com/wxamp/wadevelopcode/get_class?${searchParams.toString()}`);
126
126
  await this.page.waitForSelector('.weui-desktop-form__control-group textarea');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wechat-mp-controller",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "license": "MIT",