@tricoteuses/tisseuse 0.8.0 → 0.11.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/LICENSE.md +6 -2
- package/README.md +2 -2
- package/dist/html-DfrdIKTl.js +12741 -0
- package/dist/index.js +1262 -5183
- package/dist/lib/alineas/alineas_numbers.d.ts +5 -0
- package/dist/lib/articles.d.ts +1 -1
- package/dist/lib/extractors/action_directives.d.ts +54 -0
- package/dist/lib/extractors/article_portions.d.ts +59 -0
- package/dist/lib/extractors/definitions.d.ts +3 -0
- package/dist/lib/{text_parsers → extractors}/links.d.ts +35 -22
- package/dist/lib/extractors/references.d.ts +8 -0
- package/dist/lib/{table_of_contents.d.ts → extractors/table_of_contents.d.ts} +10 -2
- package/dist/lib/index.d.ts +18 -6
- package/dist/lib/linkers/html.d.ts +43 -0
- package/dist/lib/linkers/markdown.d.ts +14 -0
- package/dist/lib/loaders/assemblee.d.ts +3 -3
- package/dist/lib/loaders/legifrance.d.ts +10 -10
- package/dist/lib/markdown.d.ts +1 -0
- package/dist/lib/server/alineas/alineas_images_utils.d.ts +88 -0
- package/dist/lib/server/config.d.ts +1 -4
- package/dist/lib/server/databases/index.d.ts +3 -17
- package/dist/lib/server/html_simplifier.d.ts +34 -0
- package/dist/lib/server/index.d.ts +3 -0
- package/dist/lib/server/linkers/html.d.ts +20 -0
- package/dist/lib/server/tables_of_contents.d.ts +2 -0
- package/dist/lib/text_parsers/actions.d.ts +11 -1
- package/dist/lib/text_parsers/articles.d.ts +15 -15
- package/dist/lib/text_parsers/ast.d.ts +8 -3
- package/dist/lib/text_parsers/citations.d.ts +4 -4
- package/dist/lib/text_parsers/dates.d.ts +10 -10
- package/dist/lib/text_parsers/divisions.d.ts +13 -13
- package/dist/lib/text_parsers/helpers.d.ts +2 -1
- package/dist/lib/text_parsers/numbers.d.ts +16 -15
- package/dist/lib/text_parsers/parsers.d.ts +17 -1
- package/dist/lib/text_parsers/portions.d.ts +25 -19
- package/dist/lib/text_parsers/prepositions.d.ts +7 -6
- package/dist/lib/text_parsers/references.d.ts +17 -15
- package/dist/lib/text_parsers/relative_locations.d.ts +9 -9
- package/dist/lib/text_parsers/search_queries.d.ts +7 -0
- package/dist/lib/text_parsers/search_queries.test.d.ts +1 -0
- package/dist/lib/text_parsers/separators.d.ts +3 -3
- package/dist/lib/text_parsers/texts.d.ts +14 -14
- package/dist/lib/text_parsers/typography.d.ts +9 -9
- package/dist/scripts/add_links_to_senat_parsed_documents.d.ts +1 -0
- package/dist/scripts/{link_table_of_contents_to_simplified_html.d.ts → add_positions_to_table_of_contents.d.ts} +1 -13
- package/dist/scripts/associate_jorf_textes_with_assemblee_commissions.d.ts +1 -0
- package/dist/scripts/associate_jorf_textes_with_dossiers_legislatifs_assemblee.d.ts +1 -0
- package/dist/scripts/enrich_assemblee_documents.d.ts +1 -0
- package/dist/scripts/extract_alineas_images.d.ts +71 -0
- package/dist/scripts/generate_alineas_numbers_review.d.ts +24 -0
- package/dist/scripts/{extract_texts_infos.d.ts → index_typesense.d.ts} +1 -0
- package/dist/scripts/merge_reviewed_alineas_numbers.d.ts +16 -0
- package/dist/scripts/simplify_word_html.d.ts +1 -0
- package/dist/server.js +19497 -74
- package/package.json +29 -17
- package/dist/lib/server/databases/tisseuse.d.ts +0 -1
- package/dist/lib/text_parsers/index.d.ts +0 -8
- package/dist/lib/text_parsers/text_titles_infos.json.d.ts +0 -4
- package/dist/scripts/extract_assemblee_dossiers_et_documents_infos.d.ts +0 -6
- package/dist/scripts/test.d.ts +0 -0
- /package/dist/lib/{text_parsers/index.test.d.ts → extractors/action_directives.test.d.ts} +0 -0
- /package/dist/lib/{text_parsers/links.test.d.ts → extractors/article_portions.test.d.ts} +0 -0
- /package/dist/{scripts/add_links_to_assemblee_documents.d.ts → lib/extractors/links.test.d.ts} +0 -0
- /package/dist/{scripts/etude_natures_dates_et_titres_textes.d.ts → lib/extractors/references.test.d.ts} +0 -0
- /package/dist/{scripts/extract_jos_infos.d.ts → lib/server/html_simplifier.test.d.ts} +0 -0
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.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Assemblée nationale",
|
|
7
7
|
"France",
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
"Sénat"
|
|
13
13
|
],
|
|
14
14
|
"author": "Emmanuel Raviart <emmanuel@raviart.com>",
|
|
15
|
+
"contributors": [
|
|
16
|
+
"Camille Moulin <public_commits@proton.me>"
|
|
17
|
+
],
|
|
15
18
|
"bugs": {
|
|
16
19
|
"url": "https://git.tricoteuses.fr/logiciels/tricoteuses-juridique/issues"
|
|
17
20
|
},
|
|
@@ -23,7 +26,7 @@
|
|
|
23
26
|
},
|
|
24
27
|
"type": "module",
|
|
25
28
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
29
|
+
"node": ">=24"
|
|
27
30
|
},
|
|
28
31
|
"files": [
|
|
29
32
|
"dist",
|
|
@@ -47,9 +50,13 @@
|
|
|
47
50
|
"access": "public"
|
|
48
51
|
},
|
|
49
52
|
"scripts": {
|
|
53
|
+
"associate:jorf:commissions": "tsx src/scripts/associate_jorf_textes_with_assemblee_commissions.ts",
|
|
54
|
+
"associate:jorf:dossiers": "tsx src/scripts/associate_jorf_textes_with_dossiers_legislatifs_assemblee.ts",
|
|
50
55
|
"build": "vite build",
|
|
51
56
|
"configure": "tsx src/scripts/configure.ts",
|
|
52
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
57
|
+
"format": "prettier --write \"src/**/*.ts\" \"*.md\"",
|
|
58
|
+
"index:jos": "tsx src/scripts/extract_jos_infos.ts",
|
|
59
|
+
"index:typesense": "tsx src/scripts/index_typesense.ts",
|
|
53
60
|
"lint": "eslint .",
|
|
54
61
|
"prepack": "npm run build",
|
|
55
62
|
"test": "npm run test:unit -- --run",
|
|
@@ -57,23 +64,28 @@
|
|
|
57
64
|
},
|
|
58
65
|
"devDependencies": {
|
|
59
66
|
"@auditors/core": "^0.7.4",
|
|
60
|
-
"@tricoteuses/assemblee": "^2.
|
|
61
|
-
"@tricoteuses/legifrance": "^0.
|
|
67
|
+
"@tricoteuses/assemblee": "^3.2.0",
|
|
68
|
+
"@tricoteuses/legifrance": "^0.18.0",
|
|
69
|
+
"@tricoteuses/senat": "^2.22.16",
|
|
62
70
|
"@types/fs-extra": "^11.0.4",
|
|
63
|
-
"@types/node": "^
|
|
64
|
-
"@
|
|
65
|
-
"@typescript-eslint/
|
|
71
|
+
"@types/node": "^25.5.0",
|
|
72
|
+
"@types/papaparse": "^5.5.2",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
74
|
+
"@typescript-eslint/parser": "^8.57.2",
|
|
75
|
+
"cheerio": "^1.2.0",
|
|
66
76
|
"dedent-js": "^1.0.1",
|
|
67
|
-
"dotenv": "^17.
|
|
68
|
-
"eslint": "^
|
|
69
|
-
"fs-extra": "^11.3.
|
|
70
|
-
"
|
|
71
|
-
"
|
|
77
|
+
"dotenv": "^17.3.1",
|
|
78
|
+
"eslint": "^10.1.0",
|
|
79
|
+
"fs-extra": "^11.3.4",
|
|
80
|
+
"papaparse": "^5.5.3",
|
|
81
|
+
"postgres": "^3.4.8",
|
|
82
|
+
"prettier": "^3.8.1",
|
|
72
83
|
"sade": "^1.8.1",
|
|
73
|
-
"tsx": "^4.
|
|
74
|
-
"typescript": "^5.
|
|
75
|
-
"
|
|
84
|
+
"tsx": "^4.21.0",
|
|
85
|
+
"typescript": "^5.9.3",
|
|
86
|
+
"typesense": "^3.0.4",
|
|
87
|
+
"vite": "^8.0.3",
|
|
76
88
|
"vite-plugin-dts": "^4.5.4",
|
|
77
|
-
"vitest": "^4.
|
|
89
|
+
"vitest": "^4.1.2"
|
|
78
90
|
}
|
|
79
91
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function configureTisseuseDatabase(): Promise<void>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TextAstCitation, TextAstReference } from './ast.js';
|
|
2
|
-
import { TextParserContext } from './parsers.js';
|
|
3
|
-
import { Transformation } from './transformers.js';
|
|
4
|
-
export declare function parseCitationReferences(context: TextParserContext, citation: TextAstCitation): Generator<TextAstReference, void>;
|
|
5
|
-
export declare function parseReferences(context: TextParserContext): Generator<TextAstReference, void>;
|
|
6
|
-
export declare function parseReferencesWithOriginalTransformations(context: TextParserContext, transformation: Transformation): Generator<TextAstReference, void>;
|
|
7
|
-
export declare const getParsedReferences: (context: TextParserContext) => TextAstReference[];
|
|
8
|
-
export declare const getParsedReferencesWithOriginalTransformations: (context: TextParserContext, transformation: Transformation) => TextAstReference[];
|
package/dist/scripts/test.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{scripts/add_links_to_assemblee_documents.d.ts → lib/extractors/links.test.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|