@skrillex1224/chrome-article-publish-extension 1.0.5 → 1.0.7

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.
@@ -579,6 +579,7 @@ declare class DouyinAdapter extends CodeAdapter {
579
579
  };
580
580
  private userInfo;
581
581
  private cachedImageXToken;
582
+ private activePublishOptions;
582
583
  private readonly HEADER_RULES;
583
584
  checkAuth(): Promise<AuthResult>;
584
585
  publish(article: Article, options?: PublishOptions): Promise<SyncResult>;
@@ -586,11 +587,14 @@ declare class DouyinAdapter extends CodeAdapter {
586
587
  private createPublishContext;
587
588
  private publishVideo;
588
589
  getStatus(statusRef: PublishStatusRef): Promise<PublishStatusResult>;
590
+ private queryItemStatus;
591
+ private isTransientStatusError;
589
592
  private resolveStatusId;
590
593
  private getStatusUserId;
591
594
  private resolveCurrentUserId;
592
595
  private fetchItemDetail;
593
596
  private fetchItemMget;
597
+ private getCreatorJsonWithFetchFallback;
594
598
  private extractDetailStatusItem;
595
599
  private extractMgetStatusItem;
596
600
  private toStatusItem;
@@ -620,6 +624,7 @@ declare class DouyinAdapter extends CodeAdapter {
620
624
  private extractBodyText;
621
625
  private normalizeText;
622
626
  private buildPublishItem;
627
+ private resolveDouyinHashtag;
623
628
  private uploadDouyinVideo;
624
629
  private waitForVideoTransend;
625
630
  private buildVideoPublishPayload;
@@ -633,6 +638,8 @@ declare class DouyinAdapter extends CodeAdapter {
633
638
  private assertPublishSuccess;
634
639
  private extractPublishPostId;
635
640
  private looksLikeSecondVerify;
641
+ private throwSecondVerify;
642
+ private notifySecondVerify;
636
643
  private detectImageSize;
637
644
  private parseJsonText;
638
645
  private pickString;
@@ -15,7 +15,7 @@ import {
15
15
  createLogger,
16
16
  htmlToMarkdown,
17
17
  parseMarkdownImages
18
- } from "../chunk-HHDGQYVN.js";
18
+ } from "../chunk-NERXWCKG.js";
19
19
 
20
20
  // src/adapters/types.ts
21
21
  var DEFAULT_PREPROCESS_CONFIG = {
@@ -1705,7 +1705,7 @@ ${markdown}`;
1705
1705
  * 清理文件名,移除非法字符
1706
1706
  */
1707
1707
  sanitizeFilename(name) {
1708
- return name.replace(/[<>:"/\\|?*]/g, "_").replace(/[\x00-\x1f]/g, "").replace(/\.+$/, "").trim().slice(0, 200) || "article";
1708
+ return name.replace(/[<>:"/\\|?*]/g, "_").replace(/[\x00-\x1f]/g, "").replace(/\.+$/, "").trim() || "article";
1709
1709
  }
1710
1710
  };
1711
1711