@sovovs/bycli 2.1.42 → 2.1.43

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.
@@ -129,7 +129,7 @@ function transportError(error, credentials) {
129
129
  if (isWechatVerificationResponse(redactedMessage, redactedHint)) {
130
130
  return new AuthRequiredError(
131
131
  DOMAIN,
132
- 'WeChat article index requires environment verification. Complete it in the open browser tab and run the command again.',
132
+ 'WeChat article index requires environment verification. Complete it in the retained browser tab and explicitly confirm completion to the caller.',
133
133
  );
134
134
  }
135
135
  return new CommandExecutionError(
@@ -71,7 +71,7 @@ export async function resolveWechatArticleUrl(page, rawUrl) {
71
71
  if (/验证码|安全验证|异常访问|访问过于频繁|请输入验证码/.test(text)) {
72
72
  throw new AuthRequiredError(
73
73
  'weixin.sogou.com',
74
- 'Sogou Weixin requires verification. Complete it in the open browser tab and run the command again.',
74
+ 'Sogou Weixin requires verification. Complete it in the retained browser tab and explicitly confirm completion to the caller.',
75
75
  );
76
76
  }
77
77
  if (!isTrustedWechatArticleUrl(result?.finalUrl)) {
@@ -131,7 +131,7 @@ export async function resolveBrowserCredentials(page, options = {}) {
131
131
 
132
132
  throw new AuthRequiredError(
133
133
  DOMAIN,
134
- 'WeChat login is required. The login tab is open; complete QR-code login and run the command again.',
134
+ 'WeChat login is required. Complete QR-code login in the retained browser tab and explicitly confirm completion to the caller.',
135
135
  );
136
136
  }
137
137
  }
@@ -144,7 +144,7 @@ export async function searchSogouArticlePage(page, { query, pageNo, preloadedUrl
144
144
  if (payload.blocked) {
145
145
  throw new AuthRequiredError(
146
146
  SOGOU_WEIXIN_DOMAIN,
147
- 'Sogou Weixin requires verification. Complete it in the open browser tab and run the command again.',
147
+ 'Sogou Weixin requires verification. Complete it in the retained browser tab and explicitly confirm completion to the caller.',
148
148
  );
149
149
  }
150
150
  if (payload.invalidCount > 0) {
@@ -233,7 +233,7 @@ cli({
233
233
  if (data?.errorHint === 'environment verification required') {
234
234
  throw new AuthRequiredError(
235
235
  'mp.weixin.qq.com',
236
- 'WeChat article page requires environment verification. Complete it in the open browser tab and run the command again.',
236
+ 'WeChat article page requires environment verification. Complete it in the retained browser tab and explicitly confirm completion to the caller.',
237
237
  );
238
238
  }
239
239
  const rows = await downloadArticle({
@@ -120,7 +120,7 @@ export async function fetchArticleHtmlInBrowser(article, page) {
120
120
  if (result?.accessIssue) {
121
121
  throw new AuthRequiredError(
122
122
  DOMAIN,
123
- 'WeChat article page requires environment verification. Complete it in the open browser tab and run the command again.',
123
+ 'WeChat article page requires environment verification. Complete it in the retained browser tab and explicitly confirm completion to the caller.',
124
124
  );
125
125
  }
126
126
  if (!isTrustedWechatArticleUrl(result?.finalUrl)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sovovs/bycli",
3
- "version": "2.1.42",
3
+ "version": "2.1.43",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },