@juzi/wechaty 1.0.106 → 1.0.107
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/cjs/src/package-json.js +2 -2
- package/dist/cjs/src/wechaty/wechaty-base.d.ts +1 -1
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +10 -4
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/login-mixin.js +2 -2
- package/dist/cjs/src/wechaty-mixins/login-mixin.js.map +1 -1
- package/dist/esm/src/package-json.js +2 -2
- package/dist/esm/src/wechaty/wechaty-base.d.ts +1 -1
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +10 -4
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/login-mixin.js +2 -2
- package/dist/esm/src/wechaty-mixins/login-mixin.js.map +1 -1
- package/package.json +1 -1
- package/src/package-json.ts +2 -2
- package/src/wechaty-mixins/login-mixin.ts +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageJson = exports.GIT_COMMIT_HASH = void 0;
|
|
4
|
-
exports.GIT_COMMIT_HASH = '
|
|
4
|
+
exports.GIT_COMMIT_HASH = '261ae2f4118b48c67d8a114a62746277c105e3ed';
|
|
5
5
|
exports.packageJson = {
|
|
6
6
|
"name": "@juzi/wechaty",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.107",
|
|
8
8
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"exports": {
|
|
@@ -233,7 +233,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
233
233
|
readonly isLoggedIn: boolean;
|
|
234
234
|
__loginMixinInited: boolean;
|
|
235
235
|
init(): Promise<void>;
|
|
236
|
-
logout(): Promise<void>;
|
|
236
|
+
logout(reason?: string | undefined): Promise<void>;
|
|
237
237
|
logonoff(): boolean;
|
|
238
238
|
userSelf(): import("../user-modules/contact-self.js").ContactSelfInterface;
|
|
239
239
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
@@ -33,7 +33,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
33
33
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
34
34
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
35
35
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
36
|
-
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
36
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; /**
|
|
37
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
38
|
+
*/
|
|
37
39
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
38
40
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
39
41
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
@@ -106,7 +108,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
106
108
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
107
109
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
108
110
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
109
|
-
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
111
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; /**
|
|
112
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
113
|
+
*/
|
|
110
114
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
111
115
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
112
116
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
@@ -247,7 +251,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
247
251
|
* @example
|
|
248
252
|
* await bot.logout()
|
|
249
253
|
*/
|
|
250
|
-
logout(): Promise<void>;
|
|
254
|
+
logout(reason?: string): Promise<void>;
|
|
251
255
|
/**
|
|
252
256
|
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
253
257
|
*/
|
|
@@ -309,7 +313,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
309
313
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
310
314
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
311
315
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
312
|
-
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
316
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; /**
|
|
317
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
318
|
+
*/
|
|
313
319
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
314
320
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
315
321
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACr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GACX,CAAA"}
|
|
@@ -63,9 +63,9 @@ const loginMixin = (mixinBase) => {
|
|
|
63
63
|
* @example
|
|
64
64
|
* await bot.logout()
|
|
65
65
|
*/
|
|
66
|
-
async logout() {
|
|
66
|
+
async logout(reason) {
|
|
67
67
|
wechaty_puppet_1.log.verbose('WechatyLoginMixin', 'logout()');
|
|
68
|
-
await this.puppet.logout();
|
|
68
|
+
await this.puppet.logout(reason);
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":";;;AAAA,yDAA+C;AAW/C,MAAM,UAAU,GAAG,CAAwE,SAAoB,EAAE,EAAE;IACjH,oBAAG,CAAC,OAAO,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAElE,MAAe,UAAW,SAAQ,SAAS;QAEzC,IAAI,UAAU;YACZ,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAA;QAC/B,CAAC;QAED;;;;;;;WAOG;QACH,IAAI,WAAW;YACb,OAAQ,IAAI,CAAC,WAAsC;iBAChD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;QACpC,CAAC;QAED;;;;;;;;;;WAUG;QACH,IAAI,UAAU;YACZ,IAAI;gBACF,iDAAiD;gBACjD,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAA;aAC9B;YAAC,OAAO,CAAC,EAAE;gBACV,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;gBAErB,oBAAG,CAAC,IAAI,CAAC,mBAAmB,EAAE,iDAAiD,CAAC,CAAA;gBAChF,iDAAiD;gBACjD,OAAO,KAAK,CAAA;aACb;QACH,CAAC;QAED,kBAAkB,GAAG,KAAK,C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/wechaty",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.107",
|
|
5
5
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -233,7 +233,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
233
233
|
readonly isLoggedIn: boolean;
|
|
234
234
|
__loginMixinInited: boolean;
|
|
235
235
|
init(): Promise<void>;
|
|
236
|
-
logout(): Promise<void>;
|
|
236
|
+
logout(reason?: string | undefined): Promise<void>;
|
|
237
237
|
logonoff(): boolean;
|
|
238
238
|
userSelf(): import("../user-modules/contact-self.js").ContactSelfInterface;
|
|
239
239
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
@@ -33,7 +33,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
33
33
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
34
34
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
35
35
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
36
|
-
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
36
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; /**
|
|
37
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
38
|
+
*/
|
|
37
39
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
38
40
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
39
41
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
@@ -106,7 +108,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
106
108
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
107
109
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
108
110
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
109
|
-
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
111
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; /**
|
|
112
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
113
|
+
*/
|
|
110
114
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
111
115
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
112
116
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
@@ -247,7 +251,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
247
251
|
* @example
|
|
248
252
|
* await bot.logout()
|
|
249
253
|
*/
|
|
250
|
-
logout(): Promise<void>;
|
|
254
|
+
logout(reason?: string): Promise<void>;
|
|
251
255
|
/**
|
|
252
256
|
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
253
257
|
*/
|
|
@@ -309,7 +313,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
309
313
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
310
314
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
311
315
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
312
|
-
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
316
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined; /**
|
|
317
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
318
|
+
*/
|
|
313
319
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
314
320
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
315
321
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;oFA+DZ;;;;;;OAMG
|
|
1
|
+
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;oFA+DZ;;;;;;OAMG;;;;;mGAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oFAdH;;;;;;OAMG;;;;;mGAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA7BmB,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;oBACoB,MAAM,GAAG,QAAQ,IAAI,CAAC;IAK7C;;OAEG;gBACU,OAAO;IAKpB;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oFAvBH;;;;;;OAMG;;;;;mGAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBN,CAAA;AAED,aAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAE/C,aAAK,2BAA2B,GAC5B,UAAU,GACV,UAAU,GACV,oBAAoB,CAAA;AAExB,YAAY,EACV,UAAU,EACV,2BAA2B,GAC5B,CAAA;AACD,OAAO,EACL,UAAU,GACX,CAAA"}
|
|
@@ -60,9 +60,9 @@ const loginMixin = (mixinBase) => {
|
|
|
60
60
|
* @example
|
|
61
61
|
* await bot.logout()
|
|
62
62
|
*/
|
|
63
|
-
async logout() {
|
|
63
|
+
async logout(reason) {
|
|
64
64
|
log.verbose('WechatyLoginMixin', 'logout()');
|
|
65
|
-
await this.puppet.logout();
|
|
65
|
+
await this.puppet.logout(reason);
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAW,sBAAsB,CAAA;AAW/C,MAAM,UAAU,GAAG,CAAwE,SAAoB,EAAE,EAAE;IACjH,GAAG,CAAC,OAAO,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAElE,MAAe,UAAW,SAAQ,SAAS;QAEzC,IAAI,UAAU;YACZ,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAA;QAC/B,CAAC;QAED;;;;;;;WAOG;QACH,IAAI,WAAW;YACb,OAAQ,IAAI,CAAC,WAAsC;iBAChD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;QACpC,CAAC;QAED;;;;;;;;;;WAUG;QACH,IAAI,UAAU;YACZ,I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AqD,EACjF,IAAI,KAAK,EAAE,CAAC,KAAK,CAClB,CAAA;YACD,OAAO,IAAI,CAAC,WAAW,CAAA;QACzB,CAAC;KAEF;IAED,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AAaD,OAAO,EACL,UAAU,GACX,CAAA"}
|
package/package.json
CHANGED
package/src/package-json.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { PackageJsonWechaty } from './config'
|
|
6
6
|
|
|
7
|
-
export const GIT_COMMIT_HASH: string = '
|
|
7
|
+
export const GIT_COMMIT_HASH: string = '261ae2f4118b48c67d8a114a62746277c105e3ed'
|
|
8
8
|
export const packageJson: PackageJsonWechaty = {
|
|
9
9
|
"name": "@juzi/wechaty",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.107",
|
|
11
11
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
@@ -79,9 +79,9 @@ const loginMixin = <MixinBase extends typeof WechatySkeleton & PuppetMixin & GEr
|
|
|
79
79
|
* @example
|
|
80
80
|
* await bot.logout()
|
|
81
81
|
*/
|
|
82
|
-
async logout (): Promise<void> {
|
|
82
|
+
async logout (reason?: string): Promise<void> {
|
|
83
83
|
log.verbose('WechatyLoginMixin', 'logout()')
|
|
84
|
-
await this.puppet.logout()
|
|
84
|
+
await this.puppet.logout(reason)
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|