@tricoteuses/assemblee 2.3.0 → 2.3.1
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/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as B, t as x, g as _, m as Q, a as s, b as X, d as V, e as z, f as J, h as Z, i as K, l as ee, j as te, k as ne, w as re, n as U, o as k, p as oe, q as C } from "./parse-Ccs6wcUg.js";
|
|
2
|
-
import { C as O } from "./loaders-
|
|
3
|
-
import { n as mt, H as gt, b as pt, a as yt, c as ht, I as Rt, J as xt, D as Tt, o as Dt, q as wt, E as vt, F as bt, f as St, L as At, K as Et, O as Ot, U as Ct, V as Mt, M as _t, N as Pt, g as Lt, h as Nt, W as It, P as Bt, i as Ut, j as kt, r as Yt, s as Ft, Q as qt, R as jt, d as $t, k as Wt, S as Ht, t as Gt, u as Qt, v as Xt, w as Vt, x as zt, y as Jt, G as Zt, X as Kt, T as en, z as tn, e as nn, l as rn, B as on, m as an, A as sn, p as cn } from "./loaders-
|
|
2
|
+
import { C as O } from "./loaders-C-k_WVHj.js";
|
|
3
|
+
import { n as mt, H as gt, b as pt, a as yt, c as ht, I as Rt, J as xt, D as Tt, o as Dt, q as wt, E as vt, F as bt, f as St, L as At, K as Et, O as Ot, U as Ct, V as Mt, M as _t, N as Pt, g as Lt, h as Nt, W as It, P as Bt, i as Ut, j as kt, r as Yt, s as Ft, Q as qt, R as jt, d as $t, k as Wt, S as Ht, t as Gt, u as Qt, v as Xt, w as Vt, x as zt, y as Jt, G as Zt, X as Kt, T as en, z as tn, e as nn, l as rn, B as on, m as an, A as sn, p as cn } from "./loaders-C-k_WVHj.js";
|
|
4
4
|
import { A as fn, a as dn, C as ln, b as mn, c as gn, D as pn, E as yn, d as hn, S as Rn, T as xn, e as Tn, f as Dn, g as wn } from "./amendements-40Z7OJLT.js";
|
|
5
5
|
var Y = /* @__PURE__ */ ((e) => (e.Amendements = "amendements", e))(Y || {});
|
|
6
6
|
const Qe = Object.values(Y);
|
|
@@ -4,6 +4,7 @@ import i from "node:path";
|
|
|
4
4
|
import "node:crypto";
|
|
5
5
|
import "glob";
|
|
6
6
|
import { C as Pe } from "./amendements-40Z7OJLT.js";
|
|
7
|
+
import "node:fs/promises";
|
|
7
8
|
var Be = /* @__PURE__ */ ((e) => (e.Api = "API", e.Assemblee = "ASSEMBLEE", e.Bureau = "BUREAU", e.Circonscription = "CIRCONSCRIPTION", e.Cjr = "CJR", e.Cmp = "CMP", e.Cnpe = "CNPE", e.Cnps = "CNPS", e.Comnl = "COMNL", e.Comper = "COMPER", e.Comsenat = "COMSENAT", e.Comspsenat = "COMSPSENAT", e.Confpt = "CONFPT", e.Constitu = "CONSTITU", e.Deleg = "DELEG", e.Delegbureau = "DELEGBUREAU", e.Delegsenat = "DELEGSENAT", e.Ga = "GA", e.Ge = "GE", e.Gevi = "GEVI", e.Gouvernement = "GOUVERNEMENT", e.Gp = "GP", e.Groupesenat = "GROUPESENAT", e.Hcj = "HCJ", e.Ministere = "MINISTERE", e.Miseval = "MISEVAL", e.Misgrtr = "MISGRTR", e.Misinfo = "MISINFO", e.Misinfocom = "MISINFOCOM", e.Misinfopre = "MISINFOPRE", e.Offpar = "OFFPAR", e.Orgaint = "ORGAINT", e.Orgextparl = "ORGEXTPARL", e.Parpol = "PARPOL", e.Presrep = "PRESREP", e.Senat = "SENAT", e))(Be || {}), f = /* @__PURE__ */ ((e) => (e[e.Quatorze = 14] = "Quatorze", e[e.Quinze = 15] = "Quinze", e[e.Seize = 16] = "Seize", e[e.DixSept = 17] = "DixSept", e[e.DixHuit = 18] = "DixHuit", e[e.All = 0] = "All", e))(f || {}), w = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ActeursEtOrganes = 1] = "ActeursEtOrganes", e[e.Agendas = 2] = "Agendas", e[e.Amendements = 4] = "Amendements", e[e.DossiersLegislatifs = 8] = "DossiersLegislatifs", e[e.Photos = 16] = "Photos", e[e.Scrutins = 32] = "Scrutins", e[e.Questions = 64] = "Questions", e[e.ComptesRendusSeances = 128] = "ComptesRendusSeances", e[e.All = 255] = "All", e))(w || {});
|
|
8
9
|
function J(e, n) {
|
|
9
10
|
const s = i.join(n, e.filename);
|
|
@@ -3505,7 +3506,7 @@ function cs(e, n) {
|
|
|
3505
3506
|
const s = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
3506
3507
|
return e === void 0 || s.includes(0) || n.legislature === f.All ? !0 : s.includes(n.legislature);
|
|
3507
3508
|
}
|
|
3508
|
-
function*
|
|
3509
|
+
function* Es(e, n, s = {}) {
|
|
3509
3510
|
for (const {
|
|
3510
3511
|
item: a,
|
|
3511
3512
|
datasetLegislature: y
|
|
@@ -3520,7 +3521,7 @@ function* bs(e, n, s = {}) {
|
|
|
3520
3521
|
))
|
|
3521
3522
|
yield { acteur: a, datasetLegislature: y };
|
|
3522
3523
|
}
|
|
3523
|
-
function*
|
|
3524
|
+
function* _s(e, n, s = {}) {
|
|
3524
3525
|
for (const {
|
|
3525
3526
|
item: a,
|
|
3526
3527
|
datasetLegislature: y
|
|
@@ -3535,7 +3536,7 @@ function* Es(e, n, s = {}) {
|
|
|
3535
3536
|
))
|
|
3536
3537
|
yield { organe: a, datasetLegislature: y };
|
|
3537
3538
|
}
|
|
3538
|
-
function*
|
|
3539
|
+
function* Rs(e, n, s = {}) {
|
|
3539
3540
|
for (const {
|
|
3540
3541
|
item: a,
|
|
3541
3542
|
datasetLegislature: y
|
|
@@ -3550,7 +3551,7 @@ function* _s(e, n, s = {}) {
|
|
|
3550
3551
|
))
|
|
3551
3552
|
yield { amendement: a, datasetLegislature: y };
|
|
3552
3553
|
}
|
|
3553
|
-
function*
|
|
3554
|
+
function* Is(e, n, s = {}) {
|
|
3554
3555
|
for (const {
|
|
3555
3556
|
item: a,
|
|
3556
3557
|
datasetLegislature: y
|
|
@@ -3565,7 +3566,7 @@ function* Rs(e, n, s = {}) {
|
|
|
3565
3566
|
))
|
|
3566
3567
|
yield { document: a, datasetLegislature: y };
|
|
3567
3568
|
}
|
|
3568
|
-
function*
|
|
3569
|
+
function* Ps(e, n, s = {}) {
|
|
3569
3570
|
for (const {
|
|
3570
3571
|
item: a,
|
|
3571
3572
|
datasetLegislature: y
|
|
@@ -3580,7 +3581,7 @@ function* Is(e, n, s = {}) {
|
|
|
3580
3581
|
))
|
|
3581
3582
|
yield { dossierParlementaire: a, datasetLegislature: y };
|
|
3582
3583
|
}
|
|
3583
|
-
function*
|
|
3584
|
+
function* Cs(e, n, s = {}) {
|
|
3584
3585
|
for (const {
|
|
3585
3586
|
item: a,
|
|
3586
3587
|
datasetLegislature: y
|
|
@@ -3595,7 +3596,7 @@ function* Ps(e, n, s = {}) {
|
|
|
3595
3596
|
))
|
|
3596
3597
|
yield { reunion: a, datasetLegislature: y };
|
|
3597
3598
|
}
|
|
3598
|
-
function*
|
|
3599
|
+
function* Ts(e, n, s = {}) {
|
|
3599
3600
|
for (const {
|
|
3600
3601
|
item: a,
|
|
3601
3602
|
datasetLegislature: y
|
|
@@ -3610,7 +3611,7 @@ function* Cs(e, n, s = {}) {
|
|
|
3610
3611
|
))
|
|
3611
3612
|
yield { scrutin: a, datasetLegislature: y };
|
|
3612
3613
|
}
|
|
3613
|
-
function*
|
|
3614
|
+
function* Ms(e, n, s = {}) {
|
|
3614
3615
|
for (const {
|
|
3615
3616
|
item: a,
|
|
3616
3617
|
datasetLegislature: y
|
|
@@ -3625,7 +3626,7 @@ function* Ts(e, n, s = {}) {
|
|
|
3625
3626
|
))
|
|
3626
3627
|
yield { question: a, datasetLegislature: y };
|
|
3627
3628
|
}
|
|
3628
|
-
function*
|
|
3629
|
+
function* hs(e, n, s = {}) {
|
|
3629
3630
|
for (const {
|
|
3630
3631
|
item: a,
|
|
3631
3632
|
datasetLegislature: y
|
|
@@ -3640,7 +3641,7 @@ function* Ms(e, n, s = {}) {
|
|
|
3640
3641
|
))
|
|
3641
3642
|
yield { compteRendu: a, datasetLegislature: y };
|
|
3642
3643
|
}
|
|
3643
|
-
function*
|
|
3644
|
+
function* xs(e, n) {
|
|
3644
3645
|
const s = `Comptes_Rendus_Commissions_${os(n)}_nettoye`, a = i.join(e, s);
|
|
3645
3646
|
if (p.existsSync(a))
|
|
3646
3647
|
for (const y of Ge(a))
|
|
@@ -3661,7 +3662,7 @@ function* Ge(e) {
|
|
|
3661
3662
|
n.isDirectory() ? yield* Ge(s) : n.isFile() && s.endsWith(".json") && (yield s);
|
|
3662
3663
|
}
|
|
3663
3664
|
}
|
|
3664
|
-
function
|
|
3665
|
+
function Vs(e, n, s, { log: a = !1 } = {}) {
|
|
3665
3666
|
const y = {}, _ = {};
|
|
3666
3667
|
if (n & w.ActeursEtOrganes)
|
|
3667
3668
|
for (const c of Q.acteursEtOrganes) {
|
|
@@ -3877,7 +3878,7 @@ function xs(e, n, s, { log: a = !1 } = {}) {
|
|
|
3877
3878
|
compteRenduByUid: Y
|
|
3878
3879
|
};
|
|
3879
3880
|
}
|
|
3880
|
-
function
|
|
3881
|
+
function Fs(e, n, s, { log: a = !1 } = {}) {
|
|
3881
3882
|
const y = {}, _ = {};
|
|
3882
3883
|
if (n & w.ActeursEtOrganes)
|
|
3883
3884
|
for (const c of Q.acteursEtOrganes) {
|
|
@@ -4040,7 +4041,7 @@ function Vs(e, n, s, { log: a = !1 } = {}) {
|
|
|
4040
4041
|
compteRenduByUid: Y
|
|
4041
4042
|
};
|
|
4042
4043
|
}
|
|
4043
|
-
function
|
|
4044
|
+
function Ls(e, n, s) {
|
|
4044
4045
|
const a = i.join(e, "Documents"), y = js(a, n), _ = i.join(y, "index.json");
|
|
4045
4046
|
if (!p.pathExistsSync(_))
|
|
4046
4047
|
return;
|
|
@@ -4050,7 +4051,7 @@ function Fs(e, n, s) {
|
|
|
4050
4051
|
if (T !== void 0)
|
|
4051
4052
|
return { format: I, path: i.join(y, T), url: h };
|
|
4052
4053
|
}
|
|
4053
|
-
function
|
|
4054
|
+
function Js(e, n, { log: s = !1 } = {}) {
|
|
4054
4055
|
const a = i.join(
|
|
4055
4056
|
e,
|
|
4056
4057
|
`photos_deputes_${// TODO: Handle Legislature.All.
|
|
@@ -4061,7 +4062,7 @@ function Ls(e, n, { log: s = !1 } = {}) {
|
|
|
4061
4062
|
const y = p.readFileSync(a, { encoding: "utf8" });
|
|
4062
4063
|
return JSON.parse(y);
|
|
4063
4064
|
}
|
|
4064
|
-
function
|
|
4065
|
+
function $s(e, { log: n = !1 } = {}) {
|
|
4065
4066
|
const s = i.join(
|
|
4066
4067
|
e,
|
|
4067
4068
|
"photos_senateurs",
|
|
@@ -4096,10 +4097,10 @@ function js(e, n) {
|
|
|
4096
4097
|
const o = i.join(h, t.substring(0, 3));
|
|
4097
4098
|
return p.ensureDirSync(o), i.join(o, n);
|
|
4098
4099
|
}
|
|
4099
|
-
function
|
|
4100
|
+
function qs(e, n) {
|
|
4100
4101
|
return we(e, n, rs);
|
|
4101
4102
|
}
|
|
4102
|
-
function
|
|
4103
|
+
function Us(e, n) {
|
|
4103
4104
|
const s = as.exec(n);
|
|
4104
4105
|
Ne.notStrictEqual(
|
|
4105
4106
|
s,
|
|
@@ -4112,7 +4113,7 @@ function qs(e, n) {
|
|
|
4112
4113
|
const h = i.join(I, T.substring(0, 3)), t = i.join(h, T.substring(3, 3));
|
|
4113
4114
|
return p.ensureDirSync(t), i.join(t, n);
|
|
4114
4115
|
}
|
|
4115
|
-
function
|
|
4116
|
+
function Qs(e, n) {
|
|
4116
4117
|
const s = us.exec(n);
|
|
4117
4118
|
Ne.notStrictEqual(
|
|
4118
4119
|
s,
|
|
@@ -4125,10 +4126,10 @@ function Us(e, n) {
|
|
|
4125
4126
|
const I = i.join(_, R.substring(0, 3));
|
|
4126
4127
|
return p.ensureDirSync(I), i.join(I, n);
|
|
4127
4128
|
}
|
|
4128
|
-
function
|
|
4129
|
+
function Bs(e, n) {
|
|
4129
4130
|
return we(e, n, ps);
|
|
4130
4131
|
}
|
|
4131
|
-
function
|
|
4132
|
+
function Xs(e, n) {
|
|
4132
4133
|
const s = ls.exec(n);
|
|
4133
4134
|
Ne.notStrictEqual(
|
|
4134
4135
|
s,
|
|
@@ -4155,7 +4156,7 @@ function we(e, n, s) {
|
|
|
4155
4156
|
return p.ensureDirSync(I), i.join(I, n);
|
|
4156
4157
|
}
|
|
4157
4158
|
export {
|
|
4158
|
-
|
|
4159
|
+
Is as $,
|
|
4159
4160
|
bn as A,
|
|
4160
4161
|
Hn as B,
|
|
4161
4162
|
Be as C,
|
|
@@ -4180,26 +4181,26 @@ export {
|
|
|
4180
4181
|
Ln as V,
|
|
4181
4182
|
Xn as W,
|
|
4182
4183
|
Qn as X,
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4184
|
+
Es as Y,
|
|
4185
|
+
_s as Z,
|
|
4186
|
+
Rs as _,
|
|
4186
4187
|
Xe as a,
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4188
|
+
Ps as a0,
|
|
4189
|
+
Cs as a1,
|
|
4190
|
+
Ts as a2,
|
|
4191
|
+
Ms as a3,
|
|
4192
|
+
hs as a4,
|
|
4193
|
+
xs as a5,
|
|
4194
|
+
Vs as a6,
|
|
4195
|
+
Fs as a7,
|
|
4196
|
+
Ls as a8,
|
|
4197
|
+
Js as a9,
|
|
4198
|
+
$s as aa,
|
|
4199
|
+
qs as ab,
|
|
4200
|
+
Us as ac,
|
|
4201
|
+
Qs as ad,
|
|
4202
|
+
Bs as ae,
|
|
4203
|
+
Xs as af,
|
|
4203
4204
|
w as ag,
|
|
4204
4205
|
k as ah,
|
|
4205
4206
|
ze as b,
|
package/lib/loaders.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "node:assert";
|
|
2
2
|
import "fs-extra";
|
|
3
3
|
import "node:path";
|
|
4
|
-
import { ag as i, Y as r, _ as d, a4 as l, a5 as n, $ as b, a0 as A, Z as p, a3 as u, a1 as D, a2 as L, a6 as h, a7 as F, a8 as c, a9 as U, aa as R, af as C, p as P, ab as g, ae as S, ac as f, ad as Q, ah as k } from "./loaders-
|
|
4
|
+
import { ag as i, Y as r, _ as d, a4 as l, a5 as n, $ as b, a0 as A, Z as p, a3 as u, a1 as D, a2 as L, a6 as h, a7 as F, a8 as c, a9 as U, aa as R, af as C, p as P, ab as g, ae as S, ac as f, ad as Q, ah as k } from "./loaders-C-k_WVHj.js";
|
|
5
5
|
import "./amendements-40Z7OJLT.js";
|
|
6
6
|
export {
|
|
7
7
|
i as EnabledDatasets,
|