@heripo/research-radar 5.3.1 → 5.3.3
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/README.md +44 -5
- package/dist/index.d.ts +19 -18
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/package.json +17 -16
package/README.md
CHANGED
|
@@ -74,6 +74,22 @@ npm install @heripo/research-radar '@llm-newsletter-kit/core@~3.0.6'
|
|
|
74
74
|
|
|
75
75
|
An OpenAI API key is always required and supplies all default models. The optional compatibility path for Anthropic or Google newsletter generation additionally requires that provider's key. Keys are passed explicitly to the library; load environment variables in your application.
|
|
76
76
|
|
|
77
|
+
### Transitive dependency security
|
|
78
|
+
|
|
79
|
+
This repository's `package-lock.json` resolves the audited dependencies for development and CI. Consumers use their own lockfiles, so upgrading this library alone does not guarantee that an existing vulnerable transitive dependency is replaced. The current AI SDK and Cheerio dependency ranges still allow `undici` 7.29.0.
|
|
80
|
+
|
|
81
|
+
For npm applications, merge the following into the **application's root `package.json`** to require a patched undici 7.x version. Overrides declared by an installed library are ignored by npm ([npm overrides documentation](https://docs.npmjs.com/cli/v11/configuring-npm/package-json/#overrides)). The selector leaves undici 8.x, used by jsdom, unchanged.
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"overrides": {
|
|
86
|
+
"undici@>=7.0.0 <7.30.0": "^7.30.0"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Run `npm install`, inspect `npm ls undici`, and run `npm audit`, then commit the application's updated lockfile. If your application directly depends on undici 7.x, update that direct dependency to `^7.30.0` as well. A clean audit of this repository does not certify a consumer's dependency graph.
|
|
92
|
+
|
|
77
93
|
## Quick Start
|
|
78
94
|
|
|
79
95
|
Implement the four repository interfaces for your storage layer, then call this application-level wrapper. The repositories in this example are supplied by the caller; no database adapter is bundled.
|
|
@@ -172,7 +188,7 @@ Defaults below describe the checked-in code, not provider recommendations. `open
|
|
|
172
188
|
| Importance scoring | OpenAI | `gpt-6-sol` |
|
|
173
189
|
| Newsletter generation | OpenAI | `gpt-6-sol` |
|
|
174
190
|
|
|
175
|
-
Override any task independently with `models`.
|
|
191
|
+
Override any task independently with `models`. Each value accepts an OpenAI model ID string or the installed `ai` package's public `LanguageModel` type. Strings use `openAIApiKey`; provider model objects are passed through unchanged and use their own provider configuration. Omitted or `undefined` fields retain the defaults in `llmConfig.models`:
|
|
176
192
|
|
|
177
193
|
```typescript
|
|
178
194
|
await generateNewsletter({
|
|
@@ -188,7 +204,29 @@ await generateNewsletter({
|
|
|
188
204
|
});
|
|
189
205
|
```
|
|
190
206
|
|
|
191
|
-
|
|
207
|
+
Mix model ID strings and provider objects in the same configuration:
|
|
208
|
+
|
|
209
|
+
```typescript
|
|
210
|
+
import { createAnthropic } from '@ai-sdk/anthropic';
|
|
211
|
+
import { createGoogleGenerativeAI } from '@ai-sdk/google';
|
|
212
|
+
|
|
213
|
+
const anthropic = createAnthropic({ apiKey: anthropicApiKey });
|
|
214
|
+
const google = createGoogleGenerativeAI({ apiKey: googleApiKey });
|
|
215
|
+
|
|
216
|
+
await generateNewsletter({
|
|
217
|
+
...repositories,
|
|
218
|
+
openAIApiKey,
|
|
219
|
+
models: {
|
|
220
|
+
heritageBidTriage: 'gpt-6-luna',
|
|
221
|
+
classifyTags: google('gemini-3.1-pro-preview'),
|
|
222
|
+
analyzeImages: google('gemini-3.1-pro-preview'),
|
|
223
|
+
determineImportance: anthropic('claude-sonnet-4-6'),
|
|
224
|
+
generateNewsletter: anthropic('claude-sonnet-4-6'),
|
|
225
|
+
},
|
|
226
|
+
});
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
The optional `contentGeneration: { provider, apiKey, model? }` compatibility path still supports Anthropic and Google for newsletter generation. `models.generateNewsletter` takes precedence when both are supplied. If `models.generateNewsletter` is omitted or `undefined`, the existing `contentGeneration` provider/model selection applies; without either option, generation uses `llmConfig.models.generateNewsletter`. `openAIApiKey` remains required even when supplying model objects for every stage.
|
|
192
230
|
|
|
193
231
|
[src/config/index.ts](./src/config/index.ts) defines Korean output (`outputLanguage: '한국어'`), the cultural heritage domain (`expertField: ['문화유산']`), brand name, `subscribePageUrl`, LLM `maxRetries: 5`, chain `stopAfterAttempt: 3`, and generation `temperature: 0.3`. Publication settings are `minimumArticleCountForIssue: 5` and `priorityArticleScoreThreshold: 8`; the core engine evaluates them. In the locked core 3.0.6 implementation, the count check skips **5 or fewer** candidates unless at least one has importance score >= 8. An empty candidate list is always skipped.
|
|
194
232
|
|
|
@@ -277,14 +315,15 @@ npm run build # clean dist/ and build with Rollup (ESM + types)
|
|
|
277
315
|
npm run lint # lint source files
|
|
278
316
|
npm run lint:fix # lint with autofix
|
|
279
317
|
npm run lint:ci # quiet CI lint
|
|
280
|
-
npm run typecheck # TypeScript type-check
|
|
318
|
+
npm run typecheck # TypeScript type-check (source and tests)
|
|
319
|
+
npm test # offline model configuration regression tests
|
|
281
320
|
|
|
282
321
|
# formatting
|
|
283
322
|
npm run format # format src/ with Prettier
|
|
284
323
|
npm run format:check # check src/ formatting
|
|
285
324
|
```
|
|
286
325
|
|
|
287
|
-
The build emits ESM, declarations, and a JavaScript sourcemap; runtime dependencies remain external. CI runs `npm ci`, `format:check`, `lint:ci`, `typecheck`, and `build` on the minimum supported Node.js version (24.15.0), the latest 24.x, and the latest 26.x for pull requests and manual dispatch. Formatting scripts cover `src/`; to check the READMEs explicitly, run `npx prettier --check README.md README-ko.md`.
|
|
326
|
+
The build emits ESM, declarations, and a JavaScript sourcemap; runtime dependencies remain external. CI runs `npm ci`, `format:check`, `lint:ci`, `typecheck`, `npm test`, and `build` on the minimum supported Node.js version (24.15.0), the latest 24.x, and the latest 26.x for pull requests and manual dispatch. Formatting scripts cover `src/`; to check the READMEs explicitly, run `npx prettier --check README.md README-ko.md`. `npm test` uses Node's experimental module mocking and the installed AI SDK test utilities; it makes no LLM, crawling, or email requests.
|
|
288
327
|
|
|
289
328
|
For maintainers, `release` publishes to npm, while `release:patch`, `release:minor`, and `release:major` bump the version and publish. The version hooks build first and push commits/tags; `prepublishOnly` builds before publishing.
|
|
290
329
|
|
|
@@ -412,7 +451,7 @@ const contentGeneration: ContentGenerationConfig = {
|
|
|
412
451
|
|
|
413
452
|
Compatibility defaults: openai=`gpt-6-sol`, anthropic=`claude-sonnet-4-6`, google=`gemini-3.1-pro-preview`
|
|
414
453
|
|
|
415
|
-
To change analysis providers,
|
|
454
|
+
To change analysis providers, pass compatible AI SDK model objects through `models.classifyTags`, `models.analyzeImages`, and `models.determineImportance`. Also adapt domain-specific minimum-score rules in the analysis provider, output language and expert fields in config, package metadata, and the GitHub Actions runner/Slack settings for your fork.
|
|
416
455
|
|
|
417
456
|
**Search keywords**: `heripo`, `kimhongyeon`, `#D2691E`, `openai`, `gpt-5`, `contentGeneration`
|
|
418
457
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UrlString, ParsedTarget, CrawlingTargetGroup, CrawlingTarget, UnscoredArticle, ArticleForUpdateByAnalysis, ArticleForGenerateContent, Newsletter, IsoDateString, AppLogger, EmailService, EmailMessage, PromptProvider, DateService as DateService$1, TaskService as TaskService$1, AnalysisProvider as AnalysisProvider$1, ContentGenerateProvider as ContentGenerateProvider$1, HtmlTemplate, CrawlingProvider as CrawlingProvider$1, GenerateNewsletterConfig } from '@llm-newsletter-kit/core';
|
|
2
|
-
import { OpenAIProvider } from '@ai-sdk/openai';
|
|
3
2
|
import { LanguageModel } from 'ai';
|
|
3
|
+
import { OpenAIProvider } from '@ai-sdk/openai';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Repository interface for task management
|
|
@@ -204,8 +204,8 @@ interface NewsletterRepository {
|
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Uses the required OpenAI key for every default model. Each task accepts an
|
|
207
|
-
* OpenAI model
|
|
208
|
-
* can still select Anthropic or Google.
|
|
207
|
+
* OpenAI model ID or an AI SDK LanguageModel directly. The compatibility
|
|
208
|
+
* content-generation option can still select Anthropic or Google.
|
|
209
209
|
*
|
|
210
210
|
* `models.generateNewsletter` takes precedence over `contentGeneration`.
|
|
211
211
|
*/
|
|
@@ -245,18 +245,18 @@ type ContentGenerationConfig = {
|
|
|
245
245
|
model?: string;
|
|
246
246
|
};
|
|
247
247
|
/**
|
|
248
|
-
* OpenAI model IDs used by each LLM task.
|
|
248
|
+
* OpenAI model IDs or AI SDK LanguageModel instances used by each LLM task.
|
|
249
249
|
*
|
|
250
250
|
* Omitted values use the defaults from `llmConfig.models`. Content generation
|
|
251
|
-
*
|
|
251
|
+
* accepts provider model instances unchanged, or the legacy `contentGeneration`
|
|
252
252
|
* option; `models.generateNewsletter` takes precedence when both are supplied.
|
|
253
253
|
*/
|
|
254
254
|
interface NewsletterModelConfig {
|
|
255
|
-
heritageBidTriage?: string;
|
|
256
|
-
classifyTags?: string;
|
|
257
|
-
analyzeImages?: string;
|
|
258
|
-
determineImportance?: string;
|
|
259
|
-
generateNewsletter?: string;
|
|
255
|
+
heritageBidTriage?: string | LanguageModel;
|
|
256
|
+
classifyTags?: string | LanguageModel;
|
|
257
|
+
analyzeImages?: string | LanguageModel;
|
|
258
|
+
determineImportance?: string | LanguageModel;
|
|
259
|
+
generateNewsletter?: string | LanguageModel;
|
|
260
260
|
}
|
|
261
261
|
/**
|
|
262
262
|
* Newsletter generator dependencies interface
|
|
@@ -264,12 +264,13 @@ interface NewsletterModelConfig {
|
|
|
264
264
|
interface NewsletterGeneratorDependencies {
|
|
265
265
|
/** OpenAI API key used by every default model. */
|
|
266
266
|
openAIApiKey: string;
|
|
267
|
-
/** OpenAI model
|
|
267
|
+
/** OpenAI model IDs or AI SDK model instances for every LLM task (optional). */
|
|
268
268
|
models?: NewsletterModelConfig;
|
|
269
269
|
/**
|
|
270
270
|
* Non-OpenAI content generation configuration (optional).
|
|
271
271
|
*
|
|
272
|
-
* Prefer `models.generateNewsletter
|
|
272
|
+
* Prefer `models.generateNewsletter`. String IDs use `openAIApiKey`; model
|
|
273
|
+
* instances use their own provider configuration.
|
|
273
274
|
* This remains available for Anthropic/Google compatibility.
|
|
274
275
|
*/
|
|
275
276
|
contentGeneration?: ContentGenerationConfig;
|
|
@@ -422,9 +423,9 @@ declare class TaskService implements TaskService$1<number> {
|
|
|
422
423
|
}
|
|
423
424
|
|
|
424
425
|
interface AnalysisModels {
|
|
425
|
-
classifyTags:
|
|
426
|
-
analyzeImages:
|
|
427
|
-
determineImportance:
|
|
426
|
+
classifyTags: LanguageModel;
|
|
427
|
+
analyzeImages: LanguageModel;
|
|
428
|
+
determineImportance: LanguageModel;
|
|
428
429
|
}
|
|
429
430
|
/**
|
|
430
431
|
* Analysis provider implementation
|
|
@@ -435,13 +436,13 @@ declare class AnalysisProvider implements AnalysisProvider$1 {
|
|
|
435
436
|
private readonly articleRepository;
|
|
436
437
|
private readonly tagRepository;
|
|
437
438
|
classifyTagOptions: {
|
|
438
|
-
model:
|
|
439
|
+
model: LanguageModel;
|
|
439
440
|
};
|
|
440
441
|
analyzeImagesOptions: {
|
|
441
|
-
model:
|
|
442
|
+
model: LanguageModel;
|
|
442
443
|
};
|
|
443
444
|
determineScoreOptions: {
|
|
444
|
-
model:
|
|
445
|
+
model: LanguageModel;
|
|
445
446
|
minimumImportanceScoreRules: Array<{
|
|
446
447
|
targetUrl: string;
|
|
447
448
|
minScore: number;
|
package/dist/index.js
CHANGED
|
@@ -5133,9 +5133,10 @@ function createNewsletterGenerator(dependencies) {
|
|
|
5133
5133
|
const openai = createOpenAI({
|
|
5134
5134
|
apiKey: dependencies.openAIApiKey,
|
|
5135
5135
|
});
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5136
|
+
// Resolve each task separately so even explicit undefined keeps its default.
|
|
5137
|
+
const resolveModel = (task) => {
|
|
5138
|
+
const model = dependencies.models?.[task] ?? llmConfig.models[task];
|
|
5139
|
+
return typeof model === 'string' ? openai(model) : model;
|
|
5139
5140
|
};
|
|
5140
5141
|
const dateService = new DateService(dependencies.publishDate);
|
|
5141
5142
|
const taskService = new TaskService(dependencies.taskRepository);
|
|
@@ -5144,7 +5145,7 @@ function createNewsletterGenerator(dependencies) {
|
|
|
5144
5145
|
// reach per-article scoring is decided here, 100 titles per request. The
|
|
5145
5146
|
// deterministic filter stays behind it as the fallback.
|
|
5146
5147
|
createHeritageBidTriage({
|
|
5147
|
-
model:
|
|
5148
|
+
model: resolveModel('heritageBidTriage'),
|
|
5148
5149
|
onFallback: (reason, batchSize) => {
|
|
5149
5150
|
dependencies.logger?.info({
|
|
5150
5151
|
event: 'crawl.g2b.triage.fallback',
|
|
@@ -5153,9 +5154,9 @@ function createNewsletterGenerator(dependencies) {
|
|
|
5153
5154
|
},
|
|
5154
5155
|
}));
|
|
5155
5156
|
const analysisProvider = new AnalysisProvider({
|
|
5156
|
-
classifyTags:
|
|
5157
|
-
analyzeImages:
|
|
5158
|
-
determineImportance:
|
|
5157
|
+
classifyTags: resolveModel('classifyTags'),
|
|
5158
|
+
analyzeImages: resolveModel('analyzeImages'),
|
|
5159
|
+
determineImportance: resolveModel('determineImportance'),
|
|
5159
5160
|
}, dependencies.articleRepository, dependencies.tagRepository);
|
|
5160
5161
|
// Inject display date from DateService into template options
|
|
5161
5162
|
const templateOptions = dependencies.templateOptions
|
|
@@ -5175,11 +5176,11 @@ function createNewsletterGenerator(dependencies) {
|
|
|
5175
5176
|
};
|
|
5176
5177
|
resolvedBrandName = '한국고고학회 뉴스레터';
|
|
5177
5178
|
}
|
|
5178
|
-
const contentModel = dependencies.models?.generateNewsletter
|
|
5179
|
-
?
|
|
5179
|
+
const contentModel = dependencies.models?.generateNewsletter !== undefined
|
|
5180
|
+
? resolveModel('generateNewsletter')
|
|
5180
5181
|
: dependencies.contentGeneration
|
|
5181
5182
|
? createContentGenerationModel(dependencies.contentGeneration)
|
|
5182
|
-
:
|
|
5183
|
+
: resolveModel('generateNewsletter');
|
|
5183
5184
|
const contentGenerateProvider = new ContentGenerateProvider(contentModel, dependencies.articleRepository, dependencies.newsletterRepository, templateOptions, resolvedBrandName);
|
|
5184
5185
|
return new GenerateNewsletter({
|
|
5185
5186
|
contentOptions: resolvedContentOptions,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@heripo/research-radar",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "5.3.
|
|
5
|
+
"version": "5.3.3",
|
|
6
6
|
"description": "AI-driven intelligence for Korean cultural heritage. This package serves as both a ready-to-use newsletter service and a practical implementation example for the LLM-Newsletter-Kit.",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"lint:fix": "eslint --fix ./src",
|
|
35
35
|
"lint:ci": "eslint --quiet ./src",
|
|
36
36
|
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test": "node --experimental-test-module-mocks --import tsx --test test/*.test.ts",
|
|
37
38
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md,mdx}\"",
|
|
38
39
|
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md,mdx}\"",
|
|
39
40
|
"dev:crawler": "tsx watch --env-file-if-exists=dev-tools/crawler-debugger/.env dev-tools/crawler-debugger/server.ts",
|
|
@@ -48,15 +49,15 @@
|
|
|
48
49
|
"author": "kimhongyeon",
|
|
49
50
|
"license": "Apache-2.0",
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@ai-sdk/anthropic": "^4.0.
|
|
52
|
-
"@ai-sdk/google": "^4.0.
|
|
53
|
-
"@ai-sdk/openai": "^4.0.
|
|
54
|
-
"ai": "^7.0.
|
|
52
|
+
"@ai-sdk/anthropic": "^4.0.71",
|
|
53
|
+
"@ai-sdk/google": "^4.0.87",
|
|
54
|
+
"@ai-sdk/openai": "^4.0.83",
|
|
55
|
+
"ai": "^7.0.127",
|
|
55
56
|
"cheerio": "^1.2.0",
|
|
56
|
-
"dompurify": "^3.4.
|
|
57
|
-
"jsdom": "^30.1.
|
|
58
|
-
"juice": "^12.
|
|
59
|
-
"safe-markdown2html": "^1.0.
|
|
57
|
+
"dompurify": "^3.4.16",
|
|
58
|
+
"jsdom": "^30.1.1",
|
|
59
|
+
"juice": "^12.2.0",
|
|
60
|
+
"safe-markdown2html": "^1.0.14",
|
|
60
61
|
"turndown": "^7.2.4"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
@@ -64,23 +65,23 @@
|
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
67
|
"@eslint/js": "^10.0.1",
|
|
67
|
-
"@llm-newsletter-kit/core": "^3.0.
|
|
68
|
+
"@llm-newsletter-kit/core": "^3.0.7",
|
|
68
69
|
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
69
70
|
"@types/express": "^5.0.6",
|
|
70
71
|
"@types/jsdom": "^30.0.0",
|
|
71
|
-
"@types/node": "^26.6.
|
|
72
|
+
"@types/node": "^26.6.4",
|
|
72
73
|
"@types/turndown": "^5.0.6",
|
|
73
|
-
"eslint": "^10.
|
|
74
|
+
"eslint": "^10.12.0",
|
|
74
75
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
75
76
|
"express": "^5.2.1",
|
|
76
|
-
"prettier": "^3.9.
|
|
77
|
+
"prettier": "^3.9.9",
|
|
77
78
|
"rimraf": "^6.1.3",
|
|
78
|
-
"rollup": "^4.
|
|
79
|
+
"rollup": "^4.64.0",
|
|
79
80
|
"rollup-plugin-dts": "^6.5.1",
|
|
80
81
|
"rollup-plugin-typescript2": "^0.37.0",
|
|
81
|
-
"tsx": "^4.23.
|
|
82
|
+
"tsx": "^4.23.15",
|
|
82
83
|
"typescript": "^6.0.3",
|
|
83
|
-
"typescript-eslint": "^8.
|
|
84
|
+
"typescript-eslint": "^8.71.0"
|
|
84
85
|
},
|
|
85
86
|
"repository": {
|
|
86
87
|
"type": "git",
|