Skip to content

Commit

Permalink
feat: cheerio returns cherrio.load for pro version website sync
Browse files Browse the repository at this point in the history
  • Loading branch information
FinleyGe committed Sep 4, 2024
1 parent 85a11d0 commit e24e9ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/global/core/dataset/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export type PushDatasetDataChunkProps = {
export type PostWebsiteSyncParams = {
datasetId: string;
billId: string;
dynamic?: boolean;
};

export type PushDatasetDataProps = {
Expand Down
2 changes: 2 additions & 0 deletions packages/service/common/string/cheerio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,5 @@ export const urlsFetch = async ({

return response;
};

export const loadContent = async (content: string) => cheerio.load(content);

0 comments on commit e24e9ff

Please sign in to comment.