@tricoteuses/tisseuse 0.12.6 → 0.12.9
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/{html-C6wrEfXU.js → html-D3MxsPeu.js} +2 -0
- package/dist/index.js +1 -1
- package/dist/server.js +1 -1
- package/dist/src/lib/extractors/action_directives.d.ts +3 -3
- package/dist/src/lib/extractors/article_portions.d.ts +1 -1
- package/dist/src/lib/extractors/definitions.d.ts +2 -2
- package/dist/src/lib/extractors/links.d.ts +4 -4
- package/dist/src/lib/extractors/references.d.ts +3 -3
- package/dist/src/lib/extractors/table_of_contents.d.ts +4 -4
- package/dist/src/lib/linkers/html.d.ts +4 -4
- package/dist/src/lib/linkers/markdown.d.ts +2 -2
- package/dist/src/lib/loaders/assemblee.d.ts +1 -1
- package/dist/src/lib/loaders/legifrance.d.ts +1 -1
- package/dist/src/lib/server/config.d.ts +1 -1
- package/dist/src/lib/server/linkers/html.d.ts +1 -1
- package/dist/src/lib/server/text_parsers/transformers.d.ts +1 -1
- package/package.json +19 -19
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $t as t, A as n, An as r, At as i, B as a, Bt as o, C as s, Cn as c, Ct as l, D as u, Dn as d, Dt as f, E as p, En as m, Et as h, F as g, Fn as ee, Ft as te, G as ne, Gt as re, H as ie, Ht as ae, I as oe, In as _, It as se, J as ce, Jt as le, K as ue, Kt as de, L as fe, Lt as v, M as pe, Mn as me, Mt as y, N as he, Nn as ge, Nt as b, O as _e, On as ve, Ot as ye, P as be, Pn as xe, Pt as Se, Q as Ce, Qt as we, R as Te, Rt as Ee, S as De, Sn as x, St as Oe, T as ke, Tn as Ae, Tt as je, U as Me, Ut as Ne, V as Pe, Vt as S, W as Fe, Wt as Ie, X as Le, Xt as Re, Y as ze, Yt as Be, Z as Ve, Zt as He, _ as Ue, _n as C, _t as We, a as Ge, an as Ke, at as qe, b as Je, bn as Ye, bt as Xe, c as Ze, cn as Qe, ct as $e, d as et, dn as tt, dt as nt, en as rt, et as it, f as at, fn as ot, ft as st, g as ct, gn as w, gt as lt, h as ut, hn as dt, ht as ft, i as T, in as pt, it as mt, j as E, jn as ht, jt as gt, k as _t, kn as D, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qt as Ft, r as It, rn as Lt, rt as Rt, s as zt, sn as Bt, st as Vt, t as Ht, tn as Ut, tt as Wt, u as Gt, un as Kt, ut as qt, v as Jt, vn as O, vt as Yt, w as Xt, wn as Zt, wt as Qt, x as $t, xn as en, xt as tn, y as nn, yn as rn, yt as an, z as on, zt as sn } from "./html-
|
|
1
|
+
import { $ as e, $t as t, A as n, An as r, At as i, B as a, Bt as o, C as s, Cn as c, Ct as l, D as u, Dn as d, Dt as f, E as p, En as m, Et as h, F as g, Fn as ee, Ft as te, G as ne, Gt as re, H as ie, Ht as ae, I as oe, In as _, It as se, J as ce, Jt as le, K as ue, Kt as de, L as fe, Lt as v, M as pe, Mn as me, Mt as y, N as he, Nn as ge, Nt as b, O as _e, On as ve, Ot as ye, P as be, Pn as xe, Pt as Se, Q as Ce, Qt as we, R as Te, Rt as Ee, S as De, Sn as x, St as Oe, T as ke, Tn as Ae, Tt as je, U as Me, Ut as Ne, V as Pe, Vt as S, W as Fe, Wt as Ie, X as Le, Xt as Re, Y as ze, Yt as Be, Z as Ve, Zt as He, _ as Ue, _n as C, _t as We, a as Ge, an as Ke, at as qe, b as Je, bn as Ye, bt as Xe, c as Ze, cn as Qe, ct as $e, d as et, dn as tt, dt as nt, en as rt, et as it, f as at, fn as ot, ft as st, g as ct, gn as w, gt as lt, h as ut, hn as dt, ht as ft, i as T, in as pt, it as mt, j as E, jn as ht, jt as gt, k as _t, kn as D, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qt as Ft, r as It, rn as Lt, rt as Rt, s as zt, sn as Bt, st as Vt, t as Ht, tn as Ut, tt as Wt, u as Gt, un as Kt, ut as qt, v as Jt, vn as O, vt as Yt, w as Xt, wn as Zt, wt as Qt, x as $t, xn as en, xt as tn, y as nn, yn as rn, yt as an, z as on, zt as sn } from "./html-D3MxsPeu.js";
|
|
2
2
|
//#region ../../node_modules/@tricoteuses/legifrance/dist/legal/index.js
|
|
3
3
|
function cn(e, t) {
|
|
4
4
|
if (e != null) {
|
package/dist/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PortionSelector } from '
|
|
2
|
-
import { ActionTarget, TextAstReference } from '
|
|
3
|
-
import { FragmentPosition } from '
|
|
1
|
+
import { PortionSelector } from './article_portions.js';
|
|
2
|
+
import { ActionTarget, TextAstReference } from '../text_parsers/ast.js';
|
|
3
|
+
import { FragmentPosition } from '../text_parsers/fragments.js';
|
|
4
4
|
export type ActionReplacement = {
|
|
5
5
|
type: "text";
|
|
6
6
|
text: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DivisionType, PortionType, TextAstLocalization, TextAstReference } from '
|
|
1
|
+
import { DivisionType, PortionType, TextAstLocalization, TextAstReference } from '../text_parsers/ast.js';
|
|
2
2
|
export type PortionSelectorStep = {
|
|
3
3
|
type: PortionType | DivisionType;
|
|
4
4
|
index?: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TextAstArticle, TextAstDivision } from '
|
|
2
|
-
import { TextParserContext } from '
|
|
1
|
+
import { TextAstArticle, TextAstDivision } from '../text_parsers/ast.js';
|
|
2
|
+
import { TextParserContext } from '../text_parsers/parsers.js';
|
|
3
3
|
export declare function extractBillDefinitions(context: TextParserContext): Generator<TextAstArticle | TextAstDivision, void, unknown>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Sql } from 'postgres';
|
|
2
|
-
import { TextAstArticle, TextAstDivision, TextAstPosition, TextAstReference, TextAstText } from '
|
|
3
|
-
import { FragmentPosition, FragmentReverseTransformation } from '
|
|
4
|
-
import { TextParserContext } from '
|
|
5
|
-
import { Transformation } from '
|
|
2
|
+
import { TextAstArticle, TextAstDivision, TextAstPosition, TextAstReference, TextAstText } from '../text_parsers/ast.js';
|
|
3
|
+
import { FragmentPosition, FragmentReverseTransformation } from '../text_parsers/fragments.js';
|
|
4
|
+
import { TextParserContext } from '../text_parsers/parsers.js';
|
|
5
|
+
import { Transformation } from '../text_parsers/transformers.js';
|
|
6
6
|
export type DefinitionOrLink = ArticleDefinition | ArticleLink | DivisionLink | TextLink;
|
|
7
7
|
export interface ArticleDefinition {
|
|
8
8
|
article: TextAstArticle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextAstCitation, TextAstReference } from '
|
|
2
|
-
import { TextParserContext } from '
|
|
3
|
-
import { Transformation } from '
|
|
1
|
+
import { TextAstCitation, TextAstReference } from '../text_parsers/ast.js';
|
|
2
|
+
import { TextParserContext } from '../text_parsers/parsers.js';
|
|
3
|
+
import { Transformation } from '../text_parsers/transformers.js';
|
|
4
4
|
export declare function extractCitationReferences(context: TextParserContext, citation: TextAstCitation): Generator<TextAstReference, void>;
|
|
5
5
|
export declare function extractReferences(context: TextParserContext): Generator<TextAstReference, void>;
|
|
6
6
|
export declare function extractReferencesWithOriginalTransformations(context: TextParserContext, transformation: Transformation): Generator<TextAstReference, void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DivisionType } from '
|
|
2
|
-
import { FragmentPosition, FragmentReverseTransformation } from '
|
|
3
|
-
import { TextParserContext } from '
|
|
4
|
-
import { Transformation } from '
|
|
1
|
+
import { DivisionType } from '../text_parsers/ast.js';
|
|
2
|
+
import { FragmentPosition, FragmentReverseTransformation } from '../text_parsers/fragments.js';
|
|
3
|
+
import { TextParserContext } from '../text_parsers/parsers.js';
|
|
4
|
+
import { Transformation } from '../text_parsers/transformers.js';
|
|
5
5
|
export interface TableOfContents {
|
|
6
6
|
articles?: TableOfContentsArticle[];
|
|
7
7
|
divisions?: TableOfContentsDivision[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Sql } from 'postgres';
|
|
2
|
-
import { DefinitionOrLink, TextLinksParserState } from '
|
|
3
|
-
import { LinkType } from '
|
|
4
|
-
import { TextParserContext } from '
|
|
5
|
-
import { Transformation } from '
|
|
2
|
+
import { DefinitionOrLink, TextLinksParserState } from '../extractors/links.js';
|
|
3
|
+
import { LinkType } from '../links.js';
|
|
4
|
+
import { TextParserContext } from '../text_parsers/parsers.js';
|
|
5
|
+
import { Transformation } from '../text_parsers/transformers.js';
|
|
6
6
|
export declare function addLinksToHtml({ canutesDb, date, html, linkBaseUrl, linkType, logIgnoredReferencesTypes, logPartialReferences, logReferences, onLink, previousContext, state, }: {
|
|
7
7
|
canutesDb: Sql;
|
|
8
8
|
date: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Sql } from 'postgres';
|
|
2
|
-
import { LinkType } from '
|
|
3
|
-
import { TextParserContext } from '
|
|
2
|
+
import { LinkType } from '../links.js';
|
|
3
|
+
import { TextParserContext } from '../text_parsers/parsers.js';
|
|
4
4
|
export declare function addLinksToMarkdown({ canutesDb, date, linkBaseUrl, linkType, previousContext, text, }: {
|
|
5
5
|
canutesDb: Sql;
|
|
6
6
|
date: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document, DossierParlementaire } from '@tricoteuses/assemblee';
|
|
2
2
|
import { Sql } from 'postgres';
|
|
3
|
-
import { AssembleeObjectCache } from '
|
|
3
|
+
import { AssembleeObjectCache } from '../cache.js';
|
|
4
4
|
export declare function getOrLoadDocument(canutesDb: Sql, assembleeObjectCache: AssembleeObjectCache, uid: string): Promise<Document | undefined>;
|
|
5
5
|
export declare function getOrLoadDocumentsByDossierParlementaireUid(canutesDb: Sql, assembleeObjectCache: AssembleeObjectCache, dossierUid: string): Promise<Document[]>;
|
|
6
6
|
export declare function getOrLoadDossierParlementaire(canutesDb: Sql, assembleeObjectCache: AssembleeObjectCache, uid: string): Promise<DossierParlementaire | undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Jo, JorfArticle, JorfSectionTa, JorfTextelr, JorfTexteVersion, LegiArticle, LegiSectionTa, LegiTextelr, LegiTexteVersion } from '@tricoteuses/legifrance';
|
|
2
2
|
import { PendingQuery, Row, Sql } from 'postgres';
|
|
3
|
-
import { LegifranceObjectCache } from '
|
|
3
|
+
import { LegifranceObjectCache } from '../cache.js';
|
|
4
4
|
export interface ArticleExtension {
|
|
5
5
|
num?: string;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkType } from '
|
|
1
|
+
import { LinkType } from '../../links.js';
|
|
2
2
|
import { Sql } from 'postgres';
|
|
3
3
|
export declare function addLinksOrReferencesToHtmlFile({ canutesDb, date, defaultTextId, htmlFilePath, htmlTransformationsInputDir, htmlTransformationsOutputDir, htmlWithLinksFilePath, htmlWithLinksOrReferencesFilePath, htmlWithLinksTransformationsOutputDir, htmlWithReferencesFilePath, linkBaseUrl, linkType, logIgnoredReferencesTypes, logPartialReferences, logReferences, referredLegifranceTextsInfosFilePath, }: {
|
|
4
4
|
canutesDb: Sql;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Transformation } from '
|
|
1
|
+
import { Transformation } from '../../text_parsers/transformers.js';
|
|
2
2
|
export declare function readTransformation(inputDocument: string, transformationDir: string): Transformation;
|
|
3
3
|
export declare function writeTransformation(transformation: Transformation, transformationDir: string, indexesPath?: string): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tricoteuses/tisseuse",
|
|
3
3
|
"description": "Find links in/to French legislative documents",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Assemblée nationale",
|
|
7
7
|
"France",
|
|
@@ -63,31 +63,31 @@
|
|
|
63
63
|
"test:unit": "vitest"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@tricoteuses/assemblee": "^3.2.
|
|
67
|
-
"@tricoteuses/legifrance": "^0.18.
|
|
68
|
-
"@tricoteuses/senat": "^3.
|
|
66
|
+
"@tricoteuses/assemblee": "^3.2.7",
|
|
67
|
+
"@tricoteuses/legifrance": "^0.18.7",
|
|
68
|
+
"@tricoteuses/senat": "^3.1.11",
|
|
69
69
|
"@types/fs-extra": "^11.0.4",
|
|
70
|
-
"@types/node": "^25.
|
|
70
|
+
"@types/node": "^25.8.0",
|
|
71
71
|
"@types/papaparse": "^5.5.2",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
73
|
-
"@typescript-eslint/parser": "^8.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^8.59.2",
|
|
73
|
+
"@typescript-eslint/parser": "^8.59.2",
|
|
74
74
|
"cheerio": "^1.2.0",
|
|
75
75
|
"dedent-js": "^1.0.1",
|
|
76
|
-
"dotenv": "^17.
|
|
77
|
-
"eslint": "^10.
|
|
78
|
-
"fs-extra": "^11.3.
|
|
76
|
+
"dotenv": "^17.4.2",
|
|
77
|
+
"eslint": "^10.4.0",
|
|
78
|
+
"fs-extra": "^11.3.5",
|
|
79
79
|
"papaparse": "^5.5.3",
|
|
80
|
-
"postgres": "^3.4.
|
|
81
|
-
"prettier": "^3.8.
|
|
80
|
+
"postgres": "^3.4.9",
|
|
81
|
+
"prettier": "^3.8.3",
|
|
82
82
|
"sade": "^1.8.1",
|
|
83
|
-
"tsx": "^4.
|
|
84
|
-
"typescript": "^6.0.
|
|
85
|
-
"typesense": "^3.0.
|
|
86
|
-
"vite": "^8.0.
|
|
87
|
-
"vite-plugin-dts": "^
|
|
88
|
-
"vitest": "^4.1.
|
|
83
|
+
"tsx": "^4.22.0",
|
|
84
|
+
"typescript": "^6.0.3",
|
|
85
|
+
"typesense": "^3.0.6",
|
|
86
|
+
"vite": "^8.0.13",
|
|
87
|
+
"vite-plugin-dts": "^5.0.0",
|
|
88
|
+
"vitest": "^4.1.6"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"zod": "^4.3
|
|
91
|
+
"zod": "^4.4.3"
|
|
92
92
|
}
|
|
93
93
|
}
|