wechat-mp-controller 0.1.3 → 0.1.4

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
@@ -1,6 +1,5 @@
1
- export type WeChatMpControllerOptions = {
2
- headless?: boolean;
3
- };
1
+ import { LaunchOptions } from 'puppeteer-core';
2
+ export type WeChatMpControllerOptions = Pick<LaunchOptions, 'headless' | 'userDataDir'>;
4
3
  export declare class WeChatMpController {
5
4
  static create(options?: WeChatMpControllerOptions): Promise<Controller>;
6
5
  }
package/dist/index.js CHANGED
@@ -15,8 +15,7 @@ export class Controller {
15
15
  defaultViewport: null,
16
16
  args: ['--start-maximized'],
17
17
  channel: 'chrome',
18
- headless: options?.headless,
19
- userDataDir: './.wmpc-cache'
18
+ ...options
20
19
  });
21
20
  this.page = await this.browser.newPage();
22
21
  await this.page.goto(`https://mp.weixin.qq.com/`);
package/dist/type.d.ts CHANGED
@@ -21,6 +21,23 @@ export type OriginVersionInfo = {
21
21
  inner_version: number;
22
22
  };
23
23
  };
24
+ experience_info: {
25
+ basic_info: {
26
+ open_id: string;
27
+ version: string;
28
+ nick_name: string;
29
+ time: number;
30
+ describe: string;
31
+ status: number;
32
+ warning_api_list: string[];
33
+ avatar: string;
34
+ fail_reason: string;
35
+ is_speedup: number;
36
+ audit_status: number;
37
+ audit_id: number;
38
+ };
39
+ qr_path: string;
40
+ };
24
41
  develop_info: {
25
42
  info_list: Array<{
26
43
  basic_info: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wechat-mp-controller",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "license": "MIT",