@tricoteuses/tisseuse 0.1.4 → 0.1.5
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 +1 -1
- package/README.md +36 -1
- package/dist/index.js +1584 -1211
- package/dist/lib/index.d.ts +5 -4
- package/dist/lib/json.d.ts +6 -0
- package/dist/lib/server/config.d.ts +11 -14
- package/dist/lib/server/databases/index.d.ts +20 -2
- package/dist/lib/server/databases/tisseuse.d.ts +1 -0
- package/dist/lib/server/text_links.d.ts +1 -38
- package/dist/lib/text_parsers/ast.d.ts +8 -3
- package/dist/lib/text_parsers/dates.d.ts +4 -0
- package/dist/lib/text_parsers/divisions.d.ts +1 -2
- package/dist/lib/text_parsers/helpers.d.ts +2 -1
- package/dist/lib/text_parsers/index.d.ts +2 -1
- package/dist/lib/text_parsers/text_links.d.ts +50 -0
- package/dist/lib/text_parsers/text_titles_infos.json.d.ts +1 -1217
- package/dist/lib/text_parsers/texts.d.ts +8 -0
- package/dist/scripts/add_links_to_legifrance.d.ts +1 -0
- package/dist/scripts/configure.d.ts +1 -0
- package/dist/scripts/extract_jos_infos.d.ts +1 -0
- package/package.json +5 -3
- package/dist/lib/strings.d.ts +0 -1
|
@@ -12,6 +12,14 @@ export declare const numeroTexteFrancais: import('./parsers.js').TextParser;
|
|
|
12
12
|
export declare const numeroEtOuDateTexteFrancais: import('./parsers.js').TextParser;
|
|
13
13
|
export declare const decisionConseilConstitutionnel: import('./parsers.js').TextParser;
|
|
14
14
|
export declare const optionalEspaceDuTerritoire: import('./parsers.js').TextParser;
|
|
15
|
+
/**
|
|
16
|
+
* Déclaration d’un (nom de) texte français
|
|
17
|
+
*
|
|
18
|
+
* Note: Ce parser suppose que l'input finit avec le nom du texte
|
|
19
|
+
* et qu'elle ne contient rien d'autre après..
|
|
20
|
+
* Note: Ce parser n'utilise pas wordsTree car il sert à le générer.
|
|
21
|
+
*/
|
|
22
|
+
export declare const definitionTexteFrancais: import('./parsers.js').TextParser;
|
|
15
23
|
/**
|
|
16
24
|
* Règle principale pour la reconnaissance d’un texte français
|
|
17
25
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function configure(): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tricoteuses/tisseuse",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "0.1.
|
|
3
|
+
"description": "Find links in/to French legislative documents",
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Assemblée nationale",
|
|
7
7
|
"France",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "vite build",
|
|
44
|
+
"configure": "tsx src/scripts/configure.ts",
|
|
44
45
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
45
46
|
"lint": "eslint .",
|
|
46
47
|
"prepare": "npm run build",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@auditors/core": "^0.7.4",
|
|
51
52
|
"@tricoteuses/assemblee": "^2.3.1",
|
|
52
|
-
"@tricoteuses/legifrance": "^0.
|
|
53
|
+
"@tricoteuses/legifrance": "^0.15.2",
|
|
53
54
|
"@types/fs-extra": "^11.0.4",
|
|
54
55
|
"@types/node": "^24.3.1",
|
|
55
56
|
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"postgres": "^3.4.7",
|
|
62
63
|
"prettier": "^3.0.0",
|
|
63
64
|
"sade": "^1.8.1",
|
|
65
|
+
"tsx": "^4.20.5",
|
|
64
66
|
"typescript": "^5.0.0",
|
|
65
67
|
"vite": "^7.1.5",
|
|
66
68
|
"vite-plugin-dts": "^4.5.4",
|
package/dist/lib/strings.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function escapeHtml<StringOrUndefined extends string | undefined>(s: StringOrUndefined, isAttribute?: boolean): StringOrUndefined;
|