@juzi/wechaty 1.0.14 → 1.0.15

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.
@@ -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 = 'd1834615f01dcf976d65b075518016d2aae81a48';
4
+ exports.GIT_COMMIT_HASH = '936f924157052c64b1410f2a519d4f16e012e721';
5
5
  exports.packageJson = {
6
6
  "name": "@juzi/wechaty",
7
- "version": "1.0.14",
7
+ "version": "1.0.15",
8
8
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
9
9
  "type": "module",
10
10
  "exports": {
@@ -157,7 +157,7 @@ class ContactMixin extends MixinBase {
157
157
  /**
158
158
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
159
159
  */
160
- const CONCURRENCY = 17;
160
+ const CONCURRENCY = 10;
161
161
  const contactIterator = (0, rx_queue_1.concurrencyExecuter)(CONCURRENCY)(idToContact)(contactIdList);
162
162
  const contactList = [];
163
163
  for await (const contact of contactIterator) {
@@ -139,7 +139,7 @@ class PostMixin extends (0, mod_js_1.wechatifyMixinBase)() {
139
139
  /**
140
140
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
141
141
  */
142
- const CONCURRENCY = 17;
142
+ const CONCURRENCY = 10;
143
143
  const postIterator = (0, rx_queue_1.concurrencyExecuter)(CONCURRENCY)(idToPost)(postIdList);
144
144
  const postList = [];
145
145
  for await (const post of postIterator) {
@@ -89,7 +89,7 @@ class RoomMixin extends MixinBase {
89
89
  /**
90
90
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
91
91
  */
92
- const CONCURRENCY = 17;
92
+ const CONCURRENCY = 10;
93
93
  const roomIterator = (0, rx_queue_1.concurrencyExecuter)(CONCURRENCY)(idToRoom)(roomIdList);
94
94
  const roomList = [];
95
95
  for await (const room of roomIterator) {
@@ -257,7 +257,7 @@ class RoomMixin extends MixinBase {
257
257
  /**
258
258
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
259
259
  */
260
- const CONCURRENCY = 17;
260
+ const CONCURRENCY = 10;
261
261
  const contactIterator = (0, rx_queue_1.concurrencyExecuter)(CONCURRENCY)(doReady)(memberIdList);
262
262
  for await (const contact of contactIterator) {
263
263
  void contact; // just a empty loop to wait all iterator finished
@@ -1,7 +1,7 @@
1
- export const GIT_COMMIT_HASH = 'd1834615f01dcf976d65b075518016d2aae81a48';
1
+ export const GIT_COMMIT_HASH = '936f924157052c64b1410f2a519d4f16e012e721';
2
2
  export const packageJson = {
3
3
  "name": "@juzi/wechaty",
4
- "version": "1.0.14",
4
+ "version": "1.0.15",
5
5
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
6
6
  "type": "module",
7
7
  "exports": {
@@ -131,7 +131,7 @@ class ContactMixin extends MixinBase {
131
131
  /**
132
132
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
133
133
  */
134
- const CONCURRENCY = 17;
134
+ const CONCURRENCY = 10;
135
135
  const contactIterator = concurrencyExecuter(CONCURRENCY)(idToContact)(contactIdList);
136
136
  const contactList = [];
137
137
  for await (const contact of contactIterator) {
@@ -112,7 +112,7 @@ class PostMixin extends wechatifyMixinBase() {
112
112
  /**
113
113
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
114
114
  */
115
- const CONCURRENCY = 17;
115
+ const CONCURRENCY = 10;
116
116
  const postIterator = concurrencyExecuter(CONCURRENCY)(idToPost)(postIdList);
117
117
  const postList = [];
118
118
  for await (const post of postIterator) {
@@ -86,7 +86,7 @@ class RoomMixin extends MixinBase {
86
86
  /**
87
87
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
88
88
  */
89
- const CONCURRENCY = 17;
89
+ const CONCURRENCY = 10;
90
90
  const roomIterator = concurrencyExecuter(CONCURRENCY)(idToRoom)(roomIdList);
91
91
  const roomList = [];
92
92
  for await (const room of roomIterator) {
@@ -254,7 +254,7 @@ class RoomMixin extends MixinBase {
254
254
  /**
255
255
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
256
256
  */
257
- const CONCURRENCY = 17;
257
+ const CONCURRENCY = 10;
258
258
  const contactIterator = concurrencyExecuter(CONCURRENCY)(doReady)(memberIdList);
259
259
  for await (const contact of contactIterator) {
260
260
  void contact; // just a empty loop to wait all iterator finished
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,10 +4,10 @@
4
4
  */
5
5
  import type { PackageJsonWechaty } from './config'
6
6
 
7
- export const GIT_COMMIT_HASH: string = 'd1834615f01dcf976d65b075518016d2aae81a48'
7
+ export const GIT_COMMIT_HASH: string = '936f924157052c64b1410f2a519d4f16e012e721'
8
8
  export const packageJson: PackageJsonWechaty = {
9
9
  "name": "@juzi/wechaty",
10
- "version": "1.0.14",
10
+ "version": "1.0.15",
11
11
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
12
12
  "type": "module",
13
13
  "exports": {
@@ -181,7 +181,7 @@ class ContactMixin extends MixinBase implements SayableSayer {
181
181
  /**
182
182
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
183
183
  */
184
- const CONCURRENCY = 17
184
+ const CONCURRENCY = 10
185
185
  const contactIterator = concurrencyExecuter(CONCURRENCY)(idToContact)(contactIdList)
186
186
 
187
187
  const contactList: ContactInterface[] = []
@@ -184,7 +184,7 @@ class PostMixin extends wechatifyMixinBase() {
184
184
  /**
185
185
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
186
186
  */
187
- const CONCURRENCY = 17
187
+ const CONCURRENCY = 10
188
188
  const postIterator = concurrencyExecuter(CONCURRENCY)(idToPost)(postIdList)
189
189
 
190
190
  const postList: PostInterface[] = []
@@ -158,7 +158,7 @@ class RoomMixin extends MixinBase implements SayableSayer {
158
158
  /**
159
159
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
160
160
  */
161
- const CONCURRENCY = 17
161
+ const CONCURRENCY = 10
162
162
  const roomIterator = concurrencyExecuter(CONCURRENCY)(idToRoom)(roomIdList)
163
163
 
164
164
  const roomList: RoomInterface[] = []
@@ -353,7 +353,7 @@ class RoomMixin extends MixinBase implements SayableSayer {
353
353
  /**
354
354
  * we need to use concurrencyExecuter to reduce the parallel number of the requests
355
355
  */
356
- const CONCURRENCY = 17
356
+ const CONCURRENCY = 10
357
357
  const contactIterator = concurrencyExecuter(CONCURRENCY)(doReady)(memberIdList)
358
358
 
359
359
  for await (const contact of contactIterator) {