@heripo/research-radar 2.2.0 → 2.3.0
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/index.cjs +533 -500
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +533 -500
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,8 @@ interface NewsletterGeneratorDependencies {
|
|
|
199
199
|
publishDate?: string;
|
|
200
200
|
/** Newsletter template customization options (optional) */
|
|
201
201
|
templateOptions?: NewsletterTemplateOptions;
|
|
202
|
+
/** Custom fetch function for crawling (e.g., proxy-based fetch). Optional. */
|
|
203
|
+
customFetch?: typeof fetch;
|
|
202
204
|
}
|
|
203
205
|
/**
|
|
204
206
|
* Newsletter generation execution function
|
|
@@ -397,9 +399,11 @@ declare class CrawlingProvider implements CrawlingProvider$1 {
|
|
|
397
399
|
private readonly articleRepository;
|
|
398
400
|
/** Maximum number of concurrent crawling operations */
|
|
399
401
|
maxConcurrency: number;
|
|
400
|
-
|
|
402
|
+
/** Optional custom fetch function (e.g., proxy-based fetch) */
|
|
403
|
+
customFetch?: typeof fetch;
|
|
401
404
|
/** Crawling target groups configuration */
|
|
402
405
|
crawlingTargetGroups: CrawlingTargetGroup[];
|
|
406
|
+
constructor(articleRepository: ArticleRepository, customFetch?: typeof fetch);
|
|
403
407
|
/**
|
|
404
408
|
* Fetch existing articles by URLs to avoid duplicate crawling
|
|
405
409
|
* @param articleUrls - URLs to check
|
|
@@ -419,7 +423,7 @@ declare class CrawlingProvider implements CrawlingProvider$1 {
|
|
|
419
423
|
}): Promise<number>;
|
|
420
424
|
}
|
|
421
425
|
|
|
422
|
-
declare
|
|
426
|
+
declare function createCrawlingTargetGroups(customFetch?: typeof fetch): CrawlingTargetGroup[];
|
|
423
427
|
|
|
424
428
|
/**
|
|
425
429
|
* Content options type extracted from core GenerateNewsletterConfig
|
|
@@ -455,5 +459,5 @@ declare const llmConfig: {
|
|
|
455
459
|
};
|
|
456
460
|
};
|
|
457
461
|
|
|
458
|
-
export { AnalysisProvider, ContentGenerateProvider, CrawlingProvider, DateService, TaskService, contentOptions,
|
|
462
|
+
export { AnalysisProvider, ContentGenerateProvider, CrawlingProvider, DateService, TaskService, contentOptions, createCrawlingTargetGroups, generateNewsletter, generateWelcomeHTML, llmConfig, newsletterConfig };
|
|
459
463
|
export type { ArticleRepository, ContentOptions, NewsletterConfig, NewsletterGeneratorDependencies, NewsletterRepository, NewsletterTemplateOptions, PreviewNewsletterOptions, TagRepository, TaskRepository, WelcomeTemplateOptions };
|