euparliamentmonitor 1.0.69 → 1.0.71
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "euparliamentmonitor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.71",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "European Parliament Intelligence Platform - Monitor political activity with systematic transparency",
|
|
6
6
|
"main": "scripts/index.js",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"@eslint/js": "10.0.1",
|
|
157
157
|
"@playwright/test": "1.62.1",
|
|
158
158
|
"@types/d3": "7.4.3",
|
|
159
|
-
"@types/markdown-it": "14.
|
|
159
|
+
"@types/markdown-it": "14.2.0",
|
|
160
160
|
"@types/node": "26.4.0",
|
|
161
161
|
"@types/papaparse": "5.5.2",
|
|
162
162
|
"@typescript-eslint/eslint-plugin": "8.68.0",
|
|
@@ -170,15 +170,15 @@
|
|
|
170
170
|
"esbuild": "0.28.2",
|
|
171
171
|
"eslint": "10.9.1",
|
|
172
172
|
"eslint-config-prettier": "10.1.8",
|
|
173
|
-
"eslint-plugin-jsdoc": "64.2
|
|
173
|
+
"eslint-plugin-jsdoc": "64.3.2",
|
|
174
174
|
"eslint-plugin-security": "4.0.1",
|
|
175
175
|
"eslint-plugin-sonarjs": "4.2.0",
|
|
176
176
|
"fast-check": "4.9.0",
|
|
177
|
-
"happy-dom": "20.
|
|
177
|
+
"happy-dom": "20.12.0",
|
|
178
178
|
"html-minifier-terser": "7.2.0",
|
|
179
179
|
"htmlhint": "1.9.2",
|
|
180
180
|
"husky": "9.1.7",
|
|
181
|
-
"jscpd": "5.0
|
|
181
|
+
"jscpd": "5.1.0",
|
|
182
182
|
"knip": "6.33.0",
|
|
183
183
|
"lint-staged": "17.4.1",
|
|
184
184
|
"mermaid": "11.17.2",
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"sharp": "0.35.4",
|
|
189
189
|
"terser": "5.51.2",
|
|
190
190
|
"ts-api-utils": "2.5.0",
|
|
191
|
-
"tsx": "4.23.
|
|
191
|
+
"tsx": "4.23.13",
|
|
192
192
|
"typedoc": "0.28.20",
|
|
193
193
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
194
194
|
"typescript-7": "npm:typescript@7.0.2",
|
|
@@ -199,8 +199,8 @@
|
|
|
199
199
|
"node": ">=26"
|
|
200
200
|
},
|
|
201
201
|
"dependencies": {
|
|
202
|
-
"european-parliament-mcp-server": "1.4.
|
|
203
|
-
"markdown-it": "
|
|
202
|
+
"european-parliament-mcp-server": "1.4.32",
|
|
203
|
+
"markdown-it": "15.0.1",
|
|
204
204
|
"markdown-it-anchor": "9.2.1",
|
|
205
205
|
"markdown-it-attrs": "5.0.1",
|
|
206
206
|
"markdown-it-deflist": "4.0.0",
|
|
@@ -214,7 +214,8 @@
|
|
|
214
214
|
"js-yaml": "5.2.2",
|
|
215
215
|
"flatted": "3.4.2",
|
|
216
216
|
"path-to-regexp": "8.4.2",
|
|
217
|
-
"ip-address": "10.
|
|
217
|
+
"ip-address": "10.3.1",
|
|
218
|
+
"brace-expansion": "5.0.9",
|
|
218
219
|
"uuid": "14.0.1",
|
|
219
220
|
"qs": "6.15.3",
|
|
220
221
|
"axios": "1.18.1"
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @module Aggregator/MarkdownRenderer
|
|
3
|
-
* @description Markdown-to-HTML renderer for the aggregated article.
|
|
4
|
-
*
|
|
5
|
-
* Uses `markdown-it` with a focused plugin stack:
|
|
6
|
-
* - `markdown-it-anchor` — slugged `id`s on every heading
|
|
7
|
-
* - `markdown-it-footnote` — footnote reference support for artifacts
|
|
8
|
-
* - `markdown-it-attrs` — `{.class #id}` suffixes for table/fence styling
|
|
9
|
-
* - `markdown-it-deflist` — definition lists in stakeholder artifacts
|
|
10
|
-
*
|
|
11
|
-
* A custom fence override transforms ```` ```mermaid ```` blocks into
|
|
12
|
-
* `<pre class="mermaid" role="img" aria-label="...">…</pre>` so the
|
|
13
|
-
* vendored client-side `mermaid.esm.min.mjs` (shipped under `js/vendor/`)
|
|
14
|
-
* can progressively enhance them. No network calls, no inline script,
|
|
15
|
-
* CSP `script-src 'self'` preserved.
|
|
16
|
-
*/
|
|
17
|
-
import MarkdownIt from 'markdown-it';
|
|
1
|
+
import type { MarkdownIt as MarkdownItType } from 'markdown-it';
|
|
18
2
|
/** Options controlling `renderMarkdown`. */
|
|
19
3
|
export interface RenderOptions {
|
|
20
4
|
/**
|
|
@@ -50,7 +34,7 @@ export interface TocEntry {
|
|
|
50
34
|
* @returns Configured MarkdownIt instance with anchor, footnote, attrs,
|
|
51
35
|
* deflist, mermaid fence override, and table wrapping installed
|
|
52
36
|
*/
|
|
53
|
-
export declare function buildMarkdownIt():
|
|
37
|
+
export declare function buildMarkdownIt(): MarkdownItType;
|
|
54
38
|
/**
|
|
55
39
|
* Strip a leading YAML front matter block from a Markdown document. Generated
|
|
56
40
|
* `article.md` files are Jekyll-compatible, but the deterministic HTML
|
|
@@ -284,7 +284,7 @@ function installMermaidFence(md) {
|
|
|
284
284
|
const token = tokens[idx];
|
|
285
285
|
if (!token)
|
|
286
286
|
return '';
|
|
287
|
-
const info = (token.info
|
|
287
|
+
const info = (token.info ?? '').trim().toLowerCase();
|
|
288
288
|
if (info === 'mermaid') {
|
|
289
289
|
const currentIndex = mermaidIndex++;
|
|
290
290
|
const env2 = env;
|
|
@@ -376,7 +376,8 @@ function harvestToc(tokens) {
|
|
|
376
376
|
const level = Number.parseInt(token.tag.slice(1), 10);
|
|
377
377
|
if (!Number.isFinite(level) || level < 2 || level > 6)
|
|
378
378
|
continue;
|
|
379
|
-
const
|
|
379
|
+
const slugValue = token.attrGet('id');
|
|
380
|
+
const slug = typeof slugValue === 'string' ? slugValue : null;
|
|
380
381
|
const inline = tokens[i + 1];
|
|
381
382
|
if (inline?.type !== 'inline')
|
|
382
383
|
continue;
|
|
@@ -26,7 +26,7 @@ export declare function classifyToolError(message: string): string;
|
|
|
26
26
|
* covering the two shapes historically emitted by the EP MCP server.
|
|
27
27
|
*
|
|
28
28
|
* 1. **Uniform envelope** (all feeds as of
|
|
29
|
-
* `european-parliament-mcp-server@1.4.
|
|
29
|
+
* `european-parliament-mcp-server@1.4.30`) —
|
|
30
30
|
* `{status:"unavailable", items:[], generatedAt:"..."}` established by
|
|
31
31
|
* Hack23/European-Parliament-MCP-Server#301 and extended to
|
|
32
32
|
* `get_events_feed`/`get_procedures_feed` by
|
|
@@ -55,7 +55,7 @@ export function classifyToolError(message) {
|
|
|
55
55
|
* covering the two shapes historically emitted by the EP MCP server.
|
|
56
56
|
*
|
|
57
57
|
* 1. **Uniform envelope** (all feeds as of
|
|
58
|
-
* `european-parliament-mcp-server@1.4.
|
|
58
|
+
* `european-parliament-mcp-server@1.4.30`) —
|
|
59
59
|
* `{status:"unavailable", items:[], generatedAt:"..."}` established by
|
|
60
60
|
* Hack23/European-Parliament-MCP-Server#301 and extended to
|
|
61
61
|
* `get_events_feed`/`get_procedures_feed` by
|